Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAT-15030 #4409

Merged
merged 9 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,20 @@ A clear and concise description of the change being made.
- Ensure private information is redacted.
-->

## Mandatory Labels to add to a PR

<!-- At least one of the labels must be added to the PR before it's merged. If no label is provided the workflow will fail and you will not be able to merge the PR. After the label is added it re-runs the `Pull Request Labels / label (pull_request)` and gives a green check. -->

`skipReleaseNotes` - Don't show up on the Draft Release Notes page
`notableChanges` - Any notable changes
`TypeEnhancement` - New features
`TypeTest` - New Test features
`TypeBug` - bug fixes
`breakingChanges` - any breaking changes
`APIBreakingChanges` - any API breaking changes
`sdou` - Security, Driver and Other Updates -dependabot PR's
`newContributors` - New Contributors
abrackx marked this conversation as resolved.
Show resolved Hide resolved

## Things to be aware of

<!--
Expand Down
4 changes: 2 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ categories:
- title: '💥 API Breaking Changes'
labels:
- 'APIBreakingChanges'
- title: '🤖 Security Driver and Other Updates'
- title: '🤖 Security, Driver and Other Updates'
collapse-after: 5
labels:
- 'sdou'
- 'dependencies'
- title: '👏 New Contributors'
labels:
- 'newcontributors'
- 'newContributors'


change-template: '- (#$NUMBER) $TITLE @$AUTHOR '
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pull Request Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize, reopened]
jobs:
label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- name: Label PR
abrackx marked this conversation as resolved.
Show resolved Hide resolved
uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: "APIBreakingChanges, breakingChanges, newContributors, notableChanges, sdou, skipReleaseNotes, TypeBug, TypeEnhancement, TypeTest"
add_comment: true
message: "Label error: This PR is being prevented from merging because you have not added one of the labels: {{ provided }}. You'll need to add it before this PR can be merged."
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
# Drafts your next Release notes as Pull Requests are merged into the default branch
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}