My name is Manish Sharma I am a manager in think way company I do one other work. My name is Manish Sharma I am a manager in think way company I do one other work.
You can automatically close GitHub issues using pull requests by referencing the issue number with
specific keywords in your pull request description or commit message. When the pull request is
merged into the default branch (usually main or
master), GitHub will automatically close the referenced issue.
Syntax for Automatically Closing Issues
In your pull request description (or the merge commit message), use one of the following
keywords followed by #issue-number:
Closes #123
Fixes #123
Resolves #123
Example:
This PR adds validation logic for coupon expiry time.
Fixes #42
This will automatically close issue #42 once the PR is merged.
Supported Keywords (case-insensitive)
Keyword
Works Same As
close
closes
fix
fixes
resolve
resolves
Multiple Issues
You can reference multiple issues like this:
Fixes #12, closes #34, resolves #56
Or one per line:
Fixes #12
Closes #34
Resolves #56
Important Notes
PR must be merged into the default branch (not just any branch).
Only works in pull request descriptions or merge commit messages, not individual commits unless squashed into merge.
Works only on GitHub (or GitHub Enterprise), not on GitLab or Bitbucket.
Tip: Preview What Will Happen
GitHub will display a linked issue preview in the PR under the “Linked issues” section. If it says “will be closed when this pull request is merged,” it's set up correctly.
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
You can automatically close GitHub issues using pull requests by referencing the issue number with specific keywords in your pull request description or commit message. When the pull request is merged into the default branch (usually
mainormaster), GitHub will automatically close the referenced issue.Syntax for Automatically Closing Issues
In your pull request description (or the merge commit message), use one of the following keywords followed by
#issue-number:Closes #123Fixes #123Resolves #123Example:
This will automatically close issue #42 once the PR is merged.
Supported Keywords (case-insensitive)
Multiple Issues
You can reference multiple issues like this:
Or one per line:
Important Notes
Tip: Preview What Will Happen
GitHub will display a linked issue preview in the PR under the “Linked issues” section. If it says “will be closed when this pull request is merged,” it's set up correctly.