Change: Add check labels workflow to PRs, have renovate add labels to PRs, PR template (#76)

This commit is contained in:
Valentin Klopfenstein 2025-06-19 11:53:57 +02:00 committed by GitHub
parent 489cbb96de
commit 73543b05bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<!--
Thank you for your contribution to cert-manager-webhook-dnsimple!
Before submitting your PR, please ensure that you have filled out the checklist.
-->
# Summary
- ...
Checklist:
* [ ] My PR has a meaningful title
* [ ] I have labeled my PR with _one_ of the following labels:
- `major, minor, patch`
* [ ] I have written a brief and concise summary
* [ ] I have updated Go tests, if applicable

19
.github/workflows/check-labels.yaml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Check PR Labels
permissions:
contents: read
pull-requests: read
on:
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]
jobs:
check_labels:
name: Check labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: major,minor,patch
repo_token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -9,8 +9,15 @@
"schedule": "on friday and saturday",
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"matchUpdateTypes": [ "patch" ],
"matchCurrentVersion": "!/^0/",
"labels": [ "patch" ],
"automerge": true
},
{
"matchUpdateTypes": [ "minor" ],
"matchCurrentVersion": "!/^0/",
"labels": [ "minor" ],
"automerge": true
}
]