There's an open support case where the Jenkins API returns something like "PR-1" as the branch name when the branch is from a pull request. This means that the correct issue key will never be extracted from the branch name in these cases.
This PR also looks for issue keys in the env vars BRANCH_NAME and CHANGE_BRANCH to avoid this problem
There's an open support case where the Jenkins API returns something like "PR-1" as the branch name when the branch is from a pull request. This means that the correct issue key will never be extracted from the branch name in these cases.
This PR also looks for issue keys in the env vars BRANCH_NAME and CHANGE_BRANCH to avoid this problem