Skip to content

Commit bba6a80

Browse files
authored
ci: Ignore ticket creation for base branches other than develop/master (#19103)
We already had this that #18987 was not closed because it was a PR to another branch (to make it easier for reviewing): #18987 (comment) When having this a ticket will be opened, but not automatically closed on merge as this workflow is apparently not supported by GitHub if the base branch is not the default (I am not sure if it works for `master`, but if there is a PR to `master` then we should definitely open a ticket, even though it is not autoclosing - just because it might be a mistake that it was opened against `master`)
1 parent 54eb671 commit bba6a80

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/create-issue-for-unreferenced-prs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
check_for_issue_reference:
2121
runs-on: ubuntu-latest
2222
if: |
23-
!contains(github.event.pull_request.labels.*.name, 'Dev: Gitflow')
23+
(github.event.pull_request.base.ref == 'develop' || github.event.pull_request.base.ref == 'master')
24+
&& !contains(github.event.pull_request.labels.*.name, 'Dev: Gitflow')
2425
&& !startsWith(github.event.pull_request.head.ref, 'external-contributor/')
2526
&& !startsWith(github.event.pull_request.head.ref, 'prepare-release/')
2627
&& !startsWith(github.event.pull_request.head.ref, 'dependabot/')

0 commit comments

Comments
 (0)