gh issue close 5 --comment 'fixed in #10'

Category: GitHub CLI

gh issue close 5 --comment 'fixed in #10'

Close an issue with a resolution note

Closes the issue and --comment leaves a note, here pointing at the PR that fixed it. Closing without a comment loses context for future readers. Use --duplicate-of to fold it into another issue instead of closing standalone.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.