Skip to content

Commit fb5c92f

Browse files
authored
Merge pull request #40 from BinkyLabs/ci/additional-major-version
Ci/additional-major-version
2 parents fdb9548 + 50f7fc0 commit fb5c92f

File tree

5 files changed

+44
-1
lines changed

5 files changed

+44
-1
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ trigger:
77
include:
88
- main
99
- support/v1
10+
- support/v2
1011
tags:
1112
include:
1213
- 'v*'
@@ -15,6 +16,7 @@ pr:
1516
include:
1617
- main
1718
- support/v1
19+
- support/v2
1820

1921
variables:
2022
buildPlatform: 'Any CPU'
@@ -307,6 +309,7 @@ extends:
307309
publishFeedCredentials: 'OpenAPI Nuget Connection'
308310

309311
- deployment: create_github_release
312+
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
310313
templateContext:
311314
type: releaseJob
312315
isProduction: true

.github/policies/OpenAPI.NET-branch-protection.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,39 @@ configuration:
8181
# Restrict who can dismiss pull request reviews. boolean
8282
restrictsReviewDismissals: false
8383

84+
- branchNamePattern: support/v2
85+
# This branch pattern applies to the following branches as of approximately 02/27/2025 15:28:20:
86+
# support/v1
87+
88+
# Specifies whether this branch can be deleted. boolean
89+
allowsDeletions: false
90+
# Specifies whether forced pushes are allowed on this branch. boolean
91+
allowsForcePushes: false
92+
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
93+
dismissStaleReviews: true
94+
# Specifies whether admins can overwrite branch protection. boolean
95+
isAdminEnforced: true
96+
# Indicates whether "Require a pull request before merging" is enabled. boolean
97+
requiresPullRequestBeforeMerging: true
98+
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
99+
requiredApprovingReviewsCount: 1
100+
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
101+
requireCodeOwnersReview: true
102+
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
103+
requiresCommitSignatures: false
104+
# Are conversations required to be resolved before merging? boolean
105+
requiresConversationResolution: true
106+
# Are merge commits prohibited from being pushed to this branch. boolean
107+
requiresLinearHistory: false
108+
# 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
109+
requiredStatusChecks:
110+
- license/cla
111+
- CodeQL
112+
- Continuous Integration
113+
# Require branches to be up to date before merging. boolean
114+
requiresStrictStatusChecks: false
115+
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
116+
restrictsPushes: false
117+
# Restrict who can dismiss pull request reviews. boolean
118+
restrictsReviewDismissals: false
119+

.github/release-please.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ primaryBranch: main
33
handleGHRelease: true
44
branches:
55
- branch: support/v1
6+
manifest: true
7+
handleGHRelease: true
8+
- branch: support/v2
69
manifest: true
710
handleGHRelease: true

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CodeQL Analysis
22

33
on:
44
push:
5-
branches: [ main, support/v1 ]
5+
branches: [ main, support/v1, support/v2 ]
66
pull_request:
77
schedule:
88
- cron: '0 8 * * *'

.github/workflows/release-please-gha.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
branches:
1616
- main
1717
- support/v1
18+
- support/v2
1819

1920
jobs:
2021
release:

0 commit comments

Comments
 (0)