gh issue close
Close an issue
What it does
gh issue close closes an issue. --comment leaves a comment on the way, and --reason "not planned" marks that it will not be done; the default reason is "completed".
Often you need not close it by hand: if a pull request's description says Closes #12, the issue closes itself when the PR is merged. gh issue reopen opens it again.
Syntax
gh issue close <number>
gh issue close <number> --comment "<text>"
gh issue reopen <number>Examples
Close issue 12
gh issue close 12issue close— close an issue12— the number
Related commands
- gh issue comment — Comment on an issue
- gh pr create — Open a pull request from the current branch
- gh issue list — List issues