diff --git a/.github/PULL_REQUEST_TEMPLATE/template.md b/.github/PULL_REQUEST_TEMPLATE/template.md new file mode 100644 index 0000000..541c361 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/template.md @@ -0,0 +1,14 @@ + + +# 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 diff --git a/.github/workflows/check-labels.yaml b/.github/workflows/check-labels.yaml new file mode 100644 index 0000000..a4efef8 --- /dev/null +++ b/.github/workflows/check-labels.yaml @@ -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 }} \ No newline at end of file diff --git a/renovate.json b/renovate.json index ec4ab37..f27d824 100644 --- a/renovate.json +++ b/renovate.json @@ -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 } ]