Skip to content

Pipelines: Adds main alongside master in CI trigger filters#5812

Merged
NaluTripician merged 3 commits intomasterfrom
users/ntripician/rename-default-branch-ci-add-main
Apr 30, 2026
Merged

Pipelines: Adds main alongside master in CI trigger filters#5812
NaluTripician merged 3 commits intomasterfrom
users/ntripician/rename-default-branch-ci-add-main

Conversation

@NaluTripician
Copy link
Copy Markdown
Contributor

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.

This is PR B of 3:

⚠️ 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.

Adds 'main' to the trigger/schedule branch filters of every actively-
triggered Azure Pipelines YAML, alongside the existing 'master' entry.
Pipeline branch filters do not follow GitHub's branch-rename redirects,
so this transitional change ensures CI keeps firing on both names
across the cutover from master to main.

Files:
- azure-pipelines.yml (PR trigger)
- azure-pipelines-functional.yml (PR trigger)
- azure-pipelines-cron.yml (schedule)
- azure-pipelines-nightly.yml (schedule)
- azure-pipelines-rolling.yml (two schedules)

Pipelines using 'trigger: none' (official, encryption-official,
encryption-custom-official, faultinjection, msdata-direct, msdata-aot,
ctl-publishing) configure their branches in the Azure DevOps UI and are
updated separately as part of the cutover.

A follow-up PR drops 'master' from these filters once 'main' is verified.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines:
Successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @NaluTripician

Copy link
Copy Markdown
Member

@kundadebdatta kundadebdatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@NaluTripician NaluTripician merged commit 0d5f925 into master Apr 30, 2026
32 checks passed
@NaluTripician NaluTripician deleted the users/ntripician/rename-default-branch-ci-add-main branch April 30, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants