'How do I make PR link after commit message?
Solution 1:[1]
If a commit message, issue, discussion or pull request comment has a # followed by a numver that's a valid pull request/issue/discussion id, it will automatically format it.
If you add #5 to your commit message and pull request #5 exists, GitHub will create a blue link to it.
Solution 2:[2]
If you want to add PR number after your commit message
You can search last PR number using git API:
https://api.github.com/search/issues?q=sha:<sha-code>
it will give json output; PR is for example "number": 10,
Just do git log and paste sha code there of last commit and you will get the PR number of last commit. Your Current PR number: add +1 to it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | dan1st |
| Solution 2 | leoz |

