From 73543b05bc56ac8d76a1f5e937cd6f584de7befb Mon Sep 17 00:00:00 2001 From: Valentin Klopfenstein <134367834+klopfenstein-puzzle@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:53:57 +0200 Subject: [PATCH] Change: Add check labels workflow to PRs, have renovate add labels to PRs, PR template (#76) --- .github/PULL_REQUEST_TEMPLATE/template.md | 14 ++++++++++++++ .github/workflows/check-labels.yaml | 19 +++++++++++++++++++ renovate.json | 9 ++++++++- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/PULL_REQUEST_TEMPLATE/template.md create mode 100644 .github/workflows/check-labels.yaml 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 } ]