{"id":16957689,"url":"https://github.com/jmks/gira","last_synced_at":"2026-05-19T07:33:31.201Z","repository":{"id":61627161,"uuid":"224775087","full_name":"jmks/gira","owner":"jmks","description":"Manage git branches with Jira information","archived":false,"fork":false,"pushed_at":"2021-11-25T22:50:45.000Z","size":63,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T18:21:16.781Z","etag":null,"topics":["git","go","jira","jira-rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-29T04:10:50.000Z","updated_at":"2021-11-25T22:50:47.000Z","dependencies_parsed_at":"2022-10-18T17:30:43.304Z","dependency_job_id":null,"html_url":"https://github.com/jmks/gira","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmks/gira","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmks%2Fgira","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmks%2Fgira/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmks%2Fgira/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmks%2Fgira/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmks","download_url":"https://codeload.github.com/jmks/gira/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmks%2Fgira/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"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":["git","go","jira","jira-rest-api"],"created_at":"2024-10-13T22:19:42.765Z","updated_at":"2026-05-19T07:33:31.175Z","avatar_url":"https://github.com/jmks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gira\n\nA tool for managing *GI*t branches with ji*RA*.\n\nPronounced \"gear-ra\" (g like \"git\" or \"gif\" :trollface:)\n\n## Description\n\nI frequently have many feature branches. However, CI/Github actions may rebase the feature branch before it is merged to mainline.\nThus, I have many local branches that are not merged into mainline that I would like to remove, with the knowledge the issue is done.\n\nEven if Jira is not configured, or the branch is not tracked in Jira, `gira` can still help you multi-select branches to be deleted.\n\n![](/screenshot.png?raw=true \"Selection screen\")\n\n## Configuration\n\nConfigure with Environment Variables or a Configuration File. Note that the Environment values will override the Configuration File values.\n\n### Environment Variables\n\n| Variable                | Value                                                                                                                 |\n| -------------           | -------------                                                                                                         |\n| GIRA_JIRA_ISSUE_PATTERN | A pattern for identifying a Jira Issue key from a branch name e.g. PM-1701-my-feature-branch has the pattern 'PM-\\d+' |\n| GIRA_JIRA_TOKEN         | Jira API TOKEN                                                                                                        |\n| GIRA_JIRA_USER          | User of the Jira API token e.g. an email address                                                                      |\n| GIRA_JIRA_URL           | Jira base URL e.g. https://issues.apache.org/jira/                                                                    |\n\n### Configuration File\n\nUses the configuration file `.gira.toml` (technically, the format can be any understood by [viper](https://github.com/spf13/viper#reading-config-files)).\n\n`gira` will first look in the current directory for `./.gira.toml`, then at `$HOME/.config/.gira.toml`.\n\nLook at the TOML [sample](/.gira.sample.toml).\n\nNote that if you copy the example, to rename the file as described above, e.g. `cp .gira.sample.toml ./.gira.toml`\n\n## TODO\n\n* Add a log to a file\n* Add config/option to skip certain branches (e.g. `master,main,dev,prod`)\n* Create a [worker pool](https://gobyexample.com/worker-pools) for Jira requests\n* Show `git ls-remotes` info in delete UI\n* Move branch delimiter to configuration\n* Move branch naming pattern to configuration\n* Update README with gif\n* Add more tests :crying_cat_face:\n* configure command to set configuration\n\n## License\n\nThis project is released under the terms of the [MIT license](http://en.wikipedia.org/wiki/MIT_License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmks%2Fgira","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmks%2Fgira","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmks%2Fgira/lists"}