Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ trigger:
include:
- main
- support/v1
- support/v2
tags:
include:
- 'v*'
Expand All @@ -15,6 +16,7 @@ pr:
include:
- main
- support/v1
- support/v2

variables:
buildPlatform: 'Any CPU'
Expand Down Expand Up @@ -307,6 +309,7 @@ extends:
publishFeedCredentials: 'OpenAPI Nuget Connection'

- deployment: create_github_release
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
templateContext:
type: releaseJob
isProduction: true
Expand Down
10 changes: 6 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ updates:
directory: "/"
open-pull-requests-limit: 10
schedule:
interval: "weekly"
interval: "daily"
- package-ecosystem: "nuget"
# location of package manifests
directory: "/"
open-pull-requests-limit: 10
schedule:
interval: "daily"
groups:
MicrosoftExtensions:
patterns:
- "Microsoft.Extensions.*"
- package-ecosystem: dotnet-sdk
directory: /
schedule:
interval: weekly
day: wednesday
interval: "daily"
ignore:
- dependency-name: '*'
update-types:
- version-update:semver-major
- version-update:semver-minor
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
36 changes: 36 additions & 0 deletions .github/policies/OpenAPI.NET-branch-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,39 @@ configuration:
# Restrict who can dismiss pull request reviews. boolean
restrictsReviewDismissals: false

- branchNamePattern: support/v2
# This branch pattern applies to the following branches as of approximately 02/27/2025 15:28:20:
# support/v1

# 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: true
# 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
- CodeQL
- Continuous Integration
# Require branches to be up to date before merging. boolean
requiresStrictStatusChecks: false
# 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

54 changes: 54 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Pull Request

<!--
Thank you for contributing to OpenAPI.NET!
Please fill out the template below to help us review your pull request.
-->

## Description
<!-- Provide a brief description of your changes -->

## Type of Change
<!-- Mark the relevant option with an "x" -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update
- [ ] Other (please describe):

## Related Issue(s)
<!-- Link to any related issues using "Fixes #123" or "Closes #123" -->

## Changes Made
<!-- List the main changes made in this PR -->
-
-
-

## Testing
<!-- Describe how you tested your changes -->
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed
- [ ] All existing tests pass

## Checklist
<!-- Mark completed items with an "x" -->
- [ ] My code follows the code style of this project
- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes

## Versions applicability

- [ ] My change applies to the version 1.X of the library, if so PR link:
- [ ] My change applies to the version 2.X of the library, if so PR link:
- [ ] My change applies to the version 3.X of the library, if so PR link:
- [ ] I have evaluated the applicability of my change against the other versions above.

See [the contributing guidelines](https://github.com/microsoft/OpenAPI.NET/blob/main/CONTRIBUTING.md) for more information about how patches are applied across multiple versions.

## Additional Notes
<!-- Add any additional information that reviewers should know -->
3 changes: 3 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ primaryBranch: main
handleGHRelease: true
branches:
- branch: support/v1
manifest: true
handleGHRelease: true
- branch: support/v2
manifest: true
handleGHRelease: true
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
working-directory: ./performance/benchmark

- name: Publish benchmark results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
if-no-files-found: error
name: benchmark-results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CodeQL Analysis

on:
push:
branches: [ main, support/v1 ]
branches: [ main, support/v1, support/v2 ]
pull_request:
schedule:
- cron: '0 8 * * *'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-please-gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ on:
branches:
- main
- support/v1
- support/v2
workflow_dispatch:

permissions:
contents: read
Expand Down
Loading