From 82e175cec07cf24e5aa5edae4b2278733dc75e69 Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:31:34 -0800 Subject: [PATCH] Remove refs to Dev branch --- ...h-SDK-Code-Generator-branch-protection.yml | 35 ------------------- .github/workflows/codeql.yml | 5 ++- .github/workflows/dotnet.yml | 4 +-- 3 files changed, 4 insertions(+), 40 deletions(-) diff --git a/.github/policies/MSGraph-SDK-Code-Generator-branch-protection.yml b/.github/policies/MSGraph-SDK-Code-Generator-branch-protection.yml index d08b55ee3..769a1bf56 100644 --- a/.github/policies/MSGraph-SDK-Code-Generator-branch-protection.yml +++ b/.github/policies/MSGraph-SDK-Code-Generator-branch-protection.yml @@ -9,41 +9,6 @@ resource: repository configuration: branchProtectionRules: - - branchNamePattern: dev - # This branch pattern applies to the following branches: - # 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: - - build - - CodeQL - # 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: main # This branch pattern applies to the following branches: # main diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f1882995e..2b47d2251 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,9 @@ name: "CodeQL" on: push: - branches: [ "dev", "main" ] + branches: [ "main" ] pull_request: - # The branches below must be a subset of the branches above - branches: [ "dev" ] + branches: [ "main" ] schedule: - cron: '1 * * * 1' # At minute 0 on Monday diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1f0e31332..a8d4fc815 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -2,9 +2,9 @@ name: .NET on: push: - branches: [ main, dev ] + branches: [ main ] pull_request: - branches: [ main, dev ] + branches: [ main ] jobs: build: