From 1299f73f8e39230fc708b9c072de8fb38cc86834 Mon Sep 17 00:00:00 2001 From: Matthew Parker Date: Mon, 21 Oct 2024 17:45:32 +0100 Subject: [PATCH 1/3] added PR labelling action, and updated release drafter / PR template --- .github/pull_request_template.md | 16 +++++++++------- .github/release-drafter.yml | 3 +++ .github/workflows/pr-labels.yml | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/pr-labels.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f31a1c63..e7d52f0b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,10 +4,12 @@ ## Issue -## Checklist before requesting a review -> The PR will only be considered when all items within the checklist are marked as complete. Feel free to submit an incomplete draft PR, and add additional commits until you are able to satisfy each item within the checklist. -- [ ] I have performed a self-review of my code -- [ ] I have submitted at most one additional endpoint implementation -- [ ] I have either submitted no additional endpoint implementation, or my implementation covers both client and server SDK's, unless either are marked in the [README](https://github.com/PinguApps/AppwriteSdk/blob/dev/README.md) with a ❌ -- [ ] I have added applicable tests for my code -- [ ] I have updated the [README](https://github.com/PinguApps/AppwriteSdk/blob/dev/README.md) with updated status as a result of this PR +## Categorise the PR + +- [ ] `feature` +- [ ] `bug` +- [ ] `docs` + +- [ ] `patch` +- [ ] `minor` +- [ ] `major` diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 5604e78a..7a3b157a 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -16,6 +16,9 @@ categories: labels: - "docs" - "documentation" + - title: "🔗 Dependencies" + labels: + - "3Adependencies" version-resolver: major: labels: diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml new file mode 100644 index 00000000..9804c360 --- /dev/null +++ b/.github/workflows/pr-labels.yml @@ -0,0 +1,20 @@ +name: Auto Labeller + +on: + pull_request: + types: + - opened + - edited + +jobs: + labelling: + name: Labelling + runs-on: ubuntu-linux + steps: + - uses: actions/checkout@v2 + name: Checkout + + - uses: harupy/auto-labeling@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`' From 22a37722007298f528179cbeb06d7015cc227e54 Mon Sep 17 00:00:00 2001 From: Matthew Parker Date: Mon, 21 Oct 2024 17:56:42 +0100 Subject: [PATCH 2/3] added meta label and category --- .github/pull_request_template.md | 1 + .github/release-drafter.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e7d52f0b..234ef17c 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -9,6 +9,7 @@ - [ ] `feature` - [ ] `bug` - [ ] `docs` +- [ ] `meta` - [ ] `patch` - [ ] `minor` diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 7a3b157a..39566e76 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -18,7 +18,10 @@ categories: - "documentation" - title: "🔗 Dependencies" labels: - - "3Adependencies" + - "dependencies" + - title: "🌀 Meta" + labels: + - "meta" version-resolver: major: labels: From 10670e170452f9455bd8e839eabd06bd10847fd2 Mon Sep 17 00:00:00 2001 From: Matthew Parker Date: Mon, 21 Oct 2024 18:16:15 +0100 Subject: [PATCH 3/3] Swapped to a different format of labels, and changed running type of pr-labels --- .github/pull_request_template.md | 14 +++++++------- .github/workflows/pr-labels.yml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 234ef17c..6482df2c 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -6,11 +6,11 @@ ## Categorise the PR -- [ ] `feature` -- [ ] `bug` -- [ ] `docs` -- [ ] `meta` +- [ ] feature +- [ ] bug +- [ ] docs +- [ ] meta -- [ ] `patch` -- [ ] `minor` -- [ ] `major` +- [ ] patch +- [ ] minor +- [ ] major diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index 9804c360..9934683f 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -9,7 +9,7 @@ on: jobs: labelling: name: Labelling - runs-on: ubuntu-linux + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 name: Checkout @@ -17,4 +17,4 @@ jobs: - uses: harupy/auto-labeling@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`' + label-pattern: '- \[(.*?)\] ?(.+?)' # matches '- [x] `label`'