Status: Resolved (View Workflow)
I need to get JIRA issue key from the name of the branch, but from the PR build I cannot obtain in. Source branch name is not listed in the 'env' list. It would be useful if we could somehow obtain the source branch name from the PR build
I checked and $CHANGE_BRANCH environment variable is not set. This is my current setup:
Are you sure it's working with GitHub PRs? I saw some comments online that it's only working with BitBucket.
Hello, how can we use the original branch for pull request builds, instead of the PR-XXX branches?
Figured it out. I set the `Discover branches Strategy` to `only branches that are filed as PRs`, and removed the `discover pull requests` options. Now it builds straight from my pull request branches, exactly like I wanted.
I updated to the latest 2.0.11 but still I can't get the source branch name. It's always set to "PR-" but I think it should be set to `head.ref` from Github api?