GitHub Issue Develop
When to use
- The user asks to create or list branches linked to an issue.
- You need a branch name tied to an issue.
Inputs to confirm
- Issue number or URL.
- Branch name (optional) and base branch.
- Whether to checkout after creation.
- Target repo if not current (
--repo OWNER/REPO).
Workflow
- Verify auth:
gh --version gh auth status - List linked branches:
gh issue develop --list 123 - Create a branch (optionally checkout):
gh issue develop 123 --name "feature/123-fix" --base main --checkout
Examples
# Create and checkout a branch for issue 123
~ gh issue develop 123 --checkout
Notes
--branch-repoallows creating the branch in a fork.--basesets the remote base branch for the new branch.
References
- GitHub CLI manual: https://cli.github.com/manual/
gh issue develop --help