How to Link and Issue no with a PR ❓
Things to keep in 🧠
You can link up to ten issues to each pull request.
The issue and pull request must be in the same repository.
Linking an issue with a PR 🔗
- Open the PR in which you want to link the issue. ( Note: If you are a contributor you can only link an issue to your PR. Only maintainers can do with any PR.)
- In the right sidebar, in the "Development" section click ⚙️.
- Click the issue you want to link to the pull request.
- Wow, you successfully linked the issue with the pull request! 🎉
Observations 🔍
-> Issue is linked to the pull request shows as Open 🟢.
-> Successfully merging this pull request may close this issue. ✔️
-> Issue number shows in the pull request commit with #[issue-number]
.
Results ✅
-> Now Merging the pull request will automatically close the linked issue. (Requires a refresh sometime to reflect changes)
Important Notes 🚨
-> Linking an issue can also be done while creating pull request by tag the issue number #17.
-> Linking process can also be done from issue page. Just click the "Development" section and click the Pull request you want to link to issue.
-> Closing the linked issue will not close the pull request.