mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-08-22 12:12:53 +02:00
Change: Add check labels workflow to PRs, have renovate add labels to PRs, PR template (#76)
This commit is contained in:
parent
489cbb96de
commit
73543b05bc
3 changed files with 41 additions and 1 deletions
14
.github/PULL_REQUEST_TEMPLATE/template.md
vendored
Normal file
14
.github/PULL_REQUEST_TEMPLATE/template.md
vendored
Normal 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
19
.github/workflows/check-labels.yaml
vendored
Normal 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 }}
|
|
@ -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
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue