Skip to content

Commit 0d5f925

Browse files
Pipelines: Adds main alongside master in CI trigger filters (#5812)
Adds `main` alongside `master` to the `trigger:`/`schedules:` branch filters in every actively-triggered Azure Pipelines YAML, ahead of the planned GitHub default-branch rename. See [Software Freedom Conservancy: Renaming the default git branch](https://sfconservancy.org/news/2020/jun/23/gitbranchname/). This is **PR B of 3**: - PR A (#5811) — docs / agents / scripts - **PR B (this PR)** — adds `main` to CI trigger filters, transitional, dual-branch - PR C — drops `master` from CI trigger filters once `main` is verified ⚠️ **Do NOT merge until Monday's coordinated cutover.** This PR must be merged immediately *before* the GitHub branch rename so CI continues firing on both `master` (until rename) and `main` (immediately after rename). Pipeline branch filters do **not** follow GitHub's branch-rename redirects, which is why this transitional dual-include is required. ### Files changed | File | Change | | --- | --- | | `azure-pipelines.yml` | `pr.branches.include` adds `- main` | | `azure-pipelines-functional.yml` | `pr.branches.include` adds `- main` | | `azure-pipelines-cron.yml` | `schedules[*].branches.include` adds `- main` | | `azure-pipelines-nightly.yml` | `schedules[*].branches.include` adds `- main` | | `azure-pipelines-rolling.yml` | Both `schedules[*].branches.include` blocks add `- main` | 5 files, +6 lines. ### Out of scope Pipelines using `trigger: none` (`azure-pipelines-official.yml`, `-encryption-official.yml`, `-encryption-custom-official.yml`, `-faultinjection.yml`, `-msdata-direct.yml`, `-msdata-aot.yml`, `-ctl-publishing.yml`) configure their branches in the Azure DevOps UI and will be updated as part of the cutover, not by a YAML change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0830090 commit 0d5f925

5 files changed

Lines changed: 6 additions & 0 deletions

azure-pipelines-cron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ schedules:
88
displayName: Cosmos Cron
99
branches:
1010
include:
11+
- main
1112
- master
1213
always: true # Run always irrespective of changes
1314

azure-pipelines-functional.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ trigger: none
44
pr:
55
branches:
66
include:
7+
- main
78
- master
89
- releases/*
910
paths:

azure-pipelines-nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ schedules:
88
displayName: Cosmos Nightly
99
branches:
1010
include:
11+
- main
1112
- master
1213
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
1314

azure-pipelines-rolling.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ schedules:
88
displayName: Cosmos Weekly Rolling
99
branches:
1010
include:
11+
- main
1112
- master
1213
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
1314
- cron: "0 0/2 * * 0,6" # cron syntax https://learn.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers?view=azure-devops&tabs=yaml#cron-syntax
1415
displayName: Cosmos Weekly Rolling
1516
branches:
1617
include:
18+
- main
1719
- master
1820
always: true # whether to always run the pipeline or only if there have been source code changes since the last run. The default is false
1921

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ trigger: none
44
pr:
55
branches:
66
include:
7+
- main
78
- master
89
- releases/*
910
paths:

0 commit comments

Comments
 (0)