Skip to content

justmejulian/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

Collection of small scripts to automate stuff.

Structure

Scripts

  • branchname - Generates a git branch name from type, issue key, and description
  • taskbranch - Selects an assigned Jira task and turns it into a branch name
  • msgit - Generates a git commit message from staged changes using Ollama
  • createpr - Creates a pull request in Azure DevOps from the current branch

Utils

Reusable libraries that can be imported by scripts.

  • azure - Azure DevOps REST API v7.2 client (pull requests)
  • branchname - Branch name building and slugification helpers
  • fzf - Wrapper around fzf for interactive selection
  • git - Git helpers (e.g. current branch)
  • jira - Jira REST API v2 client with PAT authentication
  • ollama - AI stuff using ollama.com

Development

Requirements

  • Go 1.24+
  • Ollama running locally (for msgit)
# Install all binaries to $GOPATH/bin (make available system-wide)
go install ./...

# Or install individually
go install ./branchname
go install ./taskbranch
go install ./msgit
go install ./createpr

# Check installed binary version (git commit hash) and compare with current repo
go version -m $(which branchname)  # look for vcs.revision in the output
git rev-parse HEAD

# Run tests
go test ./...

# Format
go fmt ./...

# Lint
go vet ./...

Required environment variables (see individual script/library READMEs for details):

  • AZURE_DEVOPS_ORG - Azure DevOps organisation name
  • AZURE_DEVOPS_TOKEN - Azure DevOps Personal Access Token
  • JIRA_DOMAIN - Jira instance domain (e.g. your-company.atlassian.net)
  • JIRA_TOKEN - Jira Personal Access Token
  • OLLAMA_HOST - Ollama API base URL (default: http://localhost:11434)

Why Go?

Nice and easy to run, no need to install dependencies, just run.

Also, I have been meaning to learn Go for a while, so this is a good excuse to do so.

About

collection of small scripts to automate stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages