Explanation of the "Map commit to Pull Requests Issues" option

If you refer to ticket IDs under the PRs then the option "Map commit to Pull Requests Issues" is used for the PM integration to fetch it. There are two ways to map Git commits to PM issues:
  • The “normal” way is by including the PM issue ID in the commit message, eg. ABC-1234.
  • Some teams use a different approach, where they have the ID in the Git branch name instead, eg. abc-1234-fix-the-broken-things.
Once the branch gets merged, there’s no way for CodeScene to know which commits belonged to that branch, so we can’t just use the branch name to connect commits to IDs. Instead, we look at which PR the branch is connected to, and then we can ask GitHub (or Gitlab, etc.) for the list of commits associated with that PR, and then we have our mapping between PM issues and commits.

From the user’s point of view, this means that you can ignore “Map commit to PR issues” if
  • you use “smart commits”, ie. PM issue ID in the commit message, or
  • you don’t use the branch/PR scheme described above.