Skip to content

Commit 3e13a51

Browse files
Clean up remaining refs to dev in our pipelines (#3526)
* clean up remaining refs to dev in our pipelines * add cla to required checks on main
1 parent 6f3b4d3 commit 3e13a51

File tree

4 files changed

+4
-38
lines changed

4 files changed

+4
-38
lines changed

.azure-pipelines/common-templates/create-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
parameters:
55
- name: BaseBranch
66
type: string
7-
default: dev
7+
default: main
88
- name: TargetBranch
99
type: string
1010
default: ""

.github/policies/msgraph-sdk-powershell-branch-protection.yml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,6 @@ resource: repository
99
configuration:
1010
branchProtectionRules:
1111

12-
- branchNamePattern: dev
13-
# This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25:
14-
# dev
15-
16-
# Specifies whether this branch can be deleted. boolean
17-
allowsDeletions: false
18-
# Specifies whether forced pushes are allowed on this branch. boolean
19-
allowsForcePushes: false
20-
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
21-
dismissStaleReviews: true
22-
# Specifies whether admins can overwrite branch protection. boolean
23-
isAdminEnforced: false
24-
# Indicates whether "Require a pull request before merging" is enabled. boolean
25-
requiresPullRequestBeforeMerging: true
26-
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
27-
requiredApprovingReviewsCount: 1
28-
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
29-
requireCodeOwnersReview: true
30-
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
31-
requiresCommitSignatures: false
32-
# Are conversations required to be resolved before merging? boolean
33-
requiresConversationResolution: true
34-
# Are merge commits prohibited from being pushed to this branch. boolean
35-
requiresLinearHistory: false
36-
# 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
37-
requiredStatusChecks:
38-
- license/cla
39-
- GitOps/AdvancedSecurity
40-
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
41-
requiresStrictStatusChecks: true
42-
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
43-
restrictsPushes: false
44-
# Restrict who can dismiss pull request reviews. boolean
45-
restrictsReviewDismissals: false
46-
4712
- branchNamePattern: features/[0-9]*
4813
# This branch pattern applies to the following branches as of approximately 08/25/2023 14:07:25:
4914
# features/2.0
@@ -104,6 +69,7 @@ configuration:
10469
requiresLinearHistory: false
10570
# 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
10671
requiredStatusChecks:
72+
- license/cla
10773
- GitOps/AdvancedSecurity
10874
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
10975
requiresStrictStatusChecks: true

.github/workflows/metadatachanges.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
pull_request:
99
branches:
10-
- dev
10+
- main
1111
paths:
1212
- openApiDocs/**
1313
- src/Authentication/Authentication/custom/common/MgCommandMetadata.json

.github/workflows/project-auto-add.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
types:
1010
- opened
1111
branches:
12-
- "dev"
12+
- "main"
1313

1414
jobs:
1515
track_issue:

0 commit comments

Comments
 (0)