Jenkins' github repositories are hooked up to the scm-issue-link daemon.
- To submit a change and have that reflected in a bug report use text like [JENKINS-nnnn] in the commit message.
- To submit a change that fixes an issue use [FIXED JENKINS-nnnn] (or
…FIXES…) in the commit message.
Obviously replace nnnn with the issue number.
For more information see the scm-issue-link page.