{"id":17192146,"url":"https://github.com/jdevera/git-jirabranch","last_synced_at":"2026-04-16T00:32:57.053Z","repository":{"id":40340129,"uuid":"492061123","full_name":"jdevera/git-jirabranch","owner":"jdevera","description":"A Git command to start branches from your Jira tickets","archived":false,"fork":false,"pushed_at":"2022-05-13T23:34:33.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-15T15:45:57.710Z","etag":null,"topics":["cli","git","jira"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdevera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-13T23:00:10.000Z","updated_at":"2022-05-16T22:43:32.000Z","dependencies_parsed_at":"2022-08-09T17:40:52.755Z","dependency_job_id":null,"html_url":"https://github.com/jdevera/git-jirabranch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdevera/git-jirabranch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fgit-jirabranch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fgit-jirabranch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fgit-jirabranch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fgit-jirabranch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdevera","download_url":"https://codeload.github.com/jdevera/git-jirabranch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdevera%2Fgit-jirabranch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","git","jira"],"created_at":"2024-10-15T01:28:22.029Z","updated_at":"2026-04-16T00:32:57.022Z","avatar_url":"https://github.com/jdevera.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-jirabranch\n\nStart a new git branch with a name that is coming from the title of one of the Jira tickets currently assigned to you!\n\nIf you **chose** a ticket such as `ISSUE-112: Fix the foos so they can bar`, then your branch will be called\n`ISSUE-112_fix_the_foos_so_they_can_bar`. And you can still edit the name before it is created.\n\nThis requires some setup, but it's gonna be awesome!\n\n## Setup\n\nCopy the tools from the `bin` dir to some dir in your path or add the `bin` dir to your `$PATH` somehow.\n\n### The quick and very opinionated way\n\nRun this if you are on a Mac:\n\n```shell\nbash setup.macos.sh companyname\n```\nWhere `companyname` is the name of your company, all lowercase. This makes a lot of assumptions but it works for me :)\n\n### Install and configure go-jira\n\nYou need to install and configure [This fantastic Jira CLI client](https://github.com/go-jira/jira).\n\nI use brew:\n\n```shell\nbrew install go-jira\n```\n\nWe need three elements to make this work:\n\n1. A custom query to fetch the issues assigned to the current user\n2. A custom command to list issues that match the query\n3. A custom output template to show the data we need in the format we need\n\nThe file `config/jira.d/config.yml` in this repo contains the first two.\nYou can append it to your `~/.jira.d/config.yml`\n\nLastly, add the `cleanlist` output template this script is using by copying the\n`config/jira.d/templates/cleanlist` file to `~/.jira.d/templates/`.\n\nYou can test it by running what `git-jirabranch` will eventually run:\n\n```shell\njira jirabranch\n```\nYou should get the list of issues assigned to you, with a space separating the key from the description.\n\n### Install fzf\n\nIf you don't know [fzf](https://github.com/junegunn/fzf), you're in a for a treat, you'll want to use it in all your\nscripts, I know I do! And of course, this is one of them. Install it!\n\nI use brew:\n\n```shell\nbrew install fzf\n```\n\n### Install slugify\n\nI use [this `slugify` CLI written in Python](https://github.com/un33k/python-slugify) to convert Jira issue titles to suitable branch names.\nYou'll need to install it.\n\nI use [the very useful `pipx`](https://github.com/pypa/pipx), but you do you:\n\n```shell\npipx install python-slugify\n```\n\n### Run it!\n\nIf it is in your `$PATH`, git should find it as a subcommand:\n```shell\ngit jirabranch\n```\n\n## The git-newbranch bonus\n\n```shell\ngit newbranch BRANCH_NAME\n```\nCreate a new git branch with a given name (lame, I know), but wait for it: And set the upstream to the same upstream\nof the current branch.\n\nOkay maybe not that exciting, but since it's part of `git-jirabranch`, I thought of offering it too.\n\nIf you don't care about setting the upstream, then you can ignore this and continue using `git checkout -b branch_name`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdevera%2Fgit-jirabranch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdevera%2Fgit-jirabranch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdevera%2Fgit-jirabranch/lists"}