From 5f6c7f48d10da0b3316f87c5db920c7f757dba97 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Fri, 6 Feb 2026 11:16:53 -0800 Subject: [PATCH 1/2] clean up remaining refs to dev in our pipelines --- .../common-templates/create-pr.yml | 2 +- ...graph-sdk-powershell-branch-protection.yml | 35 ------------------- .github/workflows/metadatachanges.yml | 2 +- .github/workflows/project-auto-add.yml | 2 +- 4 files changed, 3 insertions(+), 38 deletions(-) diff --git a/.azure-pipelines/common-templates/create-pr.yml b/.azure-pipelines/common-templates/create-pr.yml index 337a46b5b5e..7c572b93c23 100644 --- a/.azure-pipelines/common-templates/create-pr.yml +++ b/.azure-pipelines/common-templates/create-pr.yml @@ -4,7 +4,7 @@ parameters: - name: BaseBranch type: string - default: dev + default: main - name: TargetBranch type: string default: "" diff --git a/.github/policies/msgraph-sdk-powershell-branch-protection.yml b/.github/policies/msgraph-sdk-powershell-branch-protection.yml index 0c38b5eb273..420f9e2ec13 100644 --- a/.github/policies/msgraph-sdk-powershell-branch-protection.yml +++ b/.github/policies/msgraph-sdk-powershell-branch-protection.yml @@ -9,41 +9,6 @@ resource: repository configuration: branchProtectionRules: - - branchNamePattern: dev - # This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25: - # dev - - # Specifies whether this branch can be deleted. boolean - allowsDeletions: false - # Specifies whether forced pushes are allowed on this branch. boolean - allowsForcePushes: false - # Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean - dismissStaleReviews: true - # Specifies whether admins can overwrite branch protection. boolean - isAdminEnforced: false - # Indicates whether "Require a pull request before merging" is enabled. boolean - requiresPullRequestBeforeMerging: true - # Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required - requiredApprovingReviewsCount: 1 - # Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean - requireCodeOwnersReview: true - # Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines. - requiresCommitSignatures: false - # Are conversations required to be resolved before merging? boolean - requiresConversationResolution: true - # Are merge commits prohibited from being pushed to this branch. boolean - requiresLinearHistory: false - # Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status - requiredStatusChecks: - - license/cla - - GitOps/AdvancedSecurity - # Require branches to be up to date before merging. Requires requiredStatusChecks. boolean - requiresStrictStatusChecks: true - # Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush. - restrictsPushes: false - # Restrict who can dismiss pull request reviews. boolean - restrictsReviewDismissals: false - - branchNamePattern: features/[0-9]* # This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25: # features/2.0 diff --git a/.github/workflows/metadatachanges.yml b/.github/workflows/metadatachanges.yml index d91394e2ecf..687f9db9bf6 100644 --- a/.github/workflows/metadatachanges.yml +++ b/.github/workflows/metadatachanges.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: pull_request: branches: - - dev + - main paths: - openApiDocs/** - src/Authentication/Authentication/custom/common/MgCommandMetadata.json diff --git a/.github/workflows/project-auto-add.yml b/.github/workflows/project-auto-add.yml index 5440a81e906..50bed073237 100644 --- a/.github/workflows/project-auto-add.yml +++ b/.github/workflows/project-auto-add.yml @@ -9,7 +9,7 @@ on: types: - opened branches: - - "dev" + - "main" jobs: track_issue: From 7825ee313b18426d4739d7013b071677ba3d18a0 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Fri, 6 Feb 2026 11:42:01 -0800 Subject: [PATCH 2/2] add cla to required checks on main --- .github/policies/msgraph-sdk-powershell-branch-protection.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/policies/msgraph-sdk-powershell-branch-protection.yml b/.github/policies/msgraph-sdk-powershell-branch-protection.yml index 420f9e2ec13..f640f3571ab 100644 --- a/.github/policies/msgraph-sdk-powershell-branch-protection.yml +++ b/.github/policies/msgraph-sdk-powershell-branch-protection.yml @@ -69,6 +69,7 @@ configuration: requiresLinearHistory: false # Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status requiredStatusChecks: + - license/cla - GitOps/AdvancedSecurity # Require branches to be up to date before merging. Requires requiredStatusChecks. boolean requiresStrictStatusChecks: true