Skip to content

Commit

Permalink
PIPE-4728 Add is default branch pipeline value
Browse files Browse the repository at this point in the history
A new pipeline value that represents whether the branch the pipeline
was triggered on is the default, following the below criteria:

- `true` when it is the default branch.
- `false` when it isn’t the default branch.
- `false` when it is any other push (e.g. tag push).
- omitted when it is not a VCS-triggered pipeline.

This pipeline value is available to Cloud pipelines triggered after
31st July 2024 and Server 4.6+.
  • Loading branch information
liamclarkedev committed Aug 12, 2024
1 parent 6a9e4f7 commit 7de9720
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jekyll/_includes/snippets/pipeline-values.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
| icon:check[]
| icon:check[]

| `pipeline.git.branch.is_default`
| GitHub App, GitHub OAuth, Bitbucket, GitLab
| Boolean
| Whether the branch the pipeline was triggered on is the default branch.
| icon:check[]
| icon:check[] (>= v4.6)

| `pipeline.git.revision`
| GitHub App, GitHub OAuth, Bitbucket, GitLab
| String
Expand Down

0 comments on commit 7de9720

Please sign in to comment.