{"id":18020872,"url":"https://github.com/rm3l/gh-dev-branch","last_synced_at":"2025-10-17T21:59:23.288Z","repository":{"id":40336524,"uuid":"488767483","full_name":"rm3l/gh-dev-branch","owner":"rm3l","description":"GitHub CLI extension to generate branch names off of issues.","archived":false,"fork":false,"pushed_at":"2025-03-22T07:40:28.000Z","size":88,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T14:22:01.610Z","etag":null,"topics":["branch-names","branching","gh-extension"],"latest_commit_sha":null,"homepage":"","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/rm3l.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-04T23:04:57.000Z","updated_at":"2025-03-22T07:40:26.000Z","dependencies_parsed_at":"2023-12-18T09:49:23.676Z","dependency_job_id":"6fe55c15-224a-4508-adf8-c8b095f1d49c","html_url":"https://github.com/rm3l/gh-dev-branch","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm3l%2Fgh-dev-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm3l%2Fgh-dev-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm3l%2Fgh-dev-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm3l%2Fgh-dev-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rm3l","download_url":"https://codeload.github.com/rm3l/gh-dev-branch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245739012,"owners_count":20664381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["branch-names","branching","gh-extension"],"created_at":"2024-10-30T06:08:06.952Z","updated_at":"2025-10-17T21:59:23.170Z","avatar_url":"https://github.com/rm3l.png","language":"Go","funding_links":["https://paypal.me/rm3l"],"categories":[],"sub_categories":[],"readme":"# gh-dev-branch\n\n[![Build](https://github.com/rm3l/gh-dev-branch/actions/workflows/build.yml/badge.svg)](https://github.com/rm3l/gh-dev-branch/actions/workflows/build.yml)\n[![Lint](https://github.com/rm3l/gh-dev-branch/actions/workflows/lint.yml/badge.svg)](https://github.com/rm3l/gh-dev-branch/actions/workflows/lint.yml)\n[![CodeQL Analysis](https://github.com/rm3l/gh-dev-branch/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/rm3l/gh-dev-branch/actions/workflows/codeql-analysis.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/rm3l/gh-dev-branch)](https://goreportcard.com/report/github.com/rm3l/gh-dev-branch)\n\n\u003e GitHub CLI extension to generate meaningful branch names off of issues.\n\nThis is a simple extension that helps generate meaningful names for branches as soon as you want to start working on a given issue.\n\nThink of it as the CLI counterpart for the beta feature of development branches that can be created in the GitHub UI,\nas documented here: https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-a-branch-for-an-issue \n\n## Installation\n\n- Install the `gh` CLI. See [https://github.com/cli/cli#installation](https://github.com/cli/cli#installation) for further details.\n- Install the extension:\n\n```bash\ngh extension install rm3l/gh-dev-branch\n```\n\n## Usage\n\n```\n❯ gh dev-branch -h\n\nUsage: gh dev-branch \u003cissue\u003e [options]\nOptions:\n  -max-length int\n        max length of generated branch name (default -1)\n  -repo string\n        repository to use for finding the issue\n```\n\n### Examples\n\n```shell\n# Using the current directory. Base repo is determined from the current Git repository\n❯ gh dev-branch 294\n294-could-not-find-unspecified-when-importing-transitive-dependencies\n\n# or you can use the result in other commands, like to create and switch to that new branch\n❯ git switch -c `gh dev-branch 294`     \nSwitched to a new branch '294-could-not-find-unspecified-when-importing-transitive-dependencies'\n```\n\nOr\n\n```shell\n# Using an issue from any other GitHub repo\n❯ gh dev-branch 9792 -repo openwrt/openwrt\n9792-feature-request-deterministic-configuration-export\n```\n\n## Working with the source code\n\n1. Clone the repository:\n\n```\ngit clone https://github.com/rm3l/gh-dev-branch\ncd gh-dev-branch\n```\n\n2. Download and install [Go](https://go.dev/doc/install) to build the project.\n   Or if you are already using the [asdf](https://asdf-vm.com/) version manager, you can just run `asdf install` to install all the necessary tools (declared in the [.tool-versions](.tool-versions) file).\n\n3. Install the local version of this extension; `gh` symlinks to your local source code directory.\n\n```bash\n# Install the local version\ngh extension install .\n```\n\n4. At this point, you can start using it:\n\n```bash\ngh dev-branch \u003cmy-issue-number\u003e [-repo \u003cmy_org/my_repo\u003e]\n```\n\n5. To see changes in the code as you develop, simply build and use the extension\n\n```bash\ngo build \u0026\u0026 gh dev-branch \u003cmy-issue-number\u003e [-repo \u003cmy_org/my_repo\u003e]\n```\n\n## Contribution Guidelines\n\nContributions and issue reporting are more than welcome. So to help out, do feel free to fork this repo and open up a pull request.\nI'll review and merge your changes as quickly as possible.\n\nYou can use [GitHub issues](https://github.com/rm3l/gh-dev-branch/issues) to report bugs.\nHowever, please make sure your description is clear enough and has sufficient instructions to be able to reproduce the issue.\n\n## Developed by\n\n* Armel Soro\n    * [keybase.io/rm3l](https://keybase.io/rm3l)\n    * [rm3l.org](https://rm3l.org) - \u0026lt;armel+gh-dev-branch@rm3l.org\u0026gt; - [@rm3l](https://twitter.com/rm3l)\n    * [paypal.me/rm3l](https://paypal.me/rm3l)\n    * [coinbase.com/rm3l](https://www.coinbase.com/rm3l)\n\n## License\n\n    The MIT License (MIT)\n\n    Copyright (c) 2022-2023 Armel Soro\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm3l%2Fgh-dev-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frm3l%2Fgh-dev-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm3l%2Fgh-dev-branch/lists"}