You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some workflows, it can be useful to treat pull requests differently
depending on the name of the head branch for the pull request.
For example, a team following scaled trunk-based development might use
the `release/*` naming convention for release branches, and may have
different build/deploy processes for those release branches.
This adds `head_branches` and `ignore_head_branches` settings to this
resource, specified as a glob pattern to align with similar filters on
the Concourse git resource, so that teams can run different jobs based
on the head branch of a PR.
See: https://trunkbaseddevelopment.com/#scaled-trunk-based-development
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ Make sure to check out [#migrating](#migrating) to learn more.
34
34
|`required_review_approvals`| No |`2`| Disable triggering of the resource if the pull request does not have at least `X` approved review(s). |
35
35
|`git_crypt_key`| No |`AEdJVENSWVBUS0VZAAAAA...`| Base64 encoded git-crypt key. Setting this will unlock / decrypt the repository with git-crypt. To get the key simply execute `git-crypt export-key -- - | base64` in an encrypted repository. |
36
36
|`base_branch`| No |`master`| Name of a branch. The pipeline will only trigger on pull requests against the specified branch. |
37
+
|`head_branches`| No |`release/*`| If specified, the pipeline will only trigger on pull requests for which the head branch name matches the specified glob pattern. |
38
+
|`ignore_head_branches`| No |`feature/*`| Inverse of the above |
37
39
|`labels`| No |`["bug", "enhancement"]`| The labels on the PR. The pipeline will only trigger on pull requests having at least one of the specified labels. |
38
40
|`disable_git_lfs`| No |`true`| Disable Git LFS, skipping an attempt to convert pointers of files tracked into their corresponding objects when checked out into a working copy. |
39
41
|`states`| No |`["OPEN", "MERGED"]`| The PR states to select (`OPEN`, `MERGED` or `CLOSED`). The pipeline will only trigger on pull requests matching one of the specified states. Default is ["OPEN"]. |
0 commit comments