From d50f27507cbfad811108480f4a2abc6aea242d39 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Tue, 18 Jun 2024 21:39:25 +1000 Subject: [PATCH] add PR labeler app config and remove PR assignee bot --- .github/pr-labeler.yml | 23 +++++++++++++++++++++++ .github/workflows/pr_assignee.yml | 17 ----------------- 2 files changed, 23 insertions(+), 17 deletions(-) create mode 100644 .github/pr-labeler.yml delete mode 100644 .github/workflows/pr_assignee.yml diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml new file mode 100644 index 000000000..4d4b682b9 --- /dev/null +++ b/.github/pr-labeler.yml @@ -0,0 +1,23 @@ +# The bot always updates the labels, add/remove as necessary [default: false] +alwaysReplace: false +# Treats the text and labels as case sensitive [default: true] +caseSensitive: false +# Array of labels to be applied to the PR [default: []] +customLabels: + # Finds the `text` within the PR title and body and applies the `label` + - text: 'new plugin' + label: 'Plugin Submission' + - text: 'add' + label: 'Plugin Submission' + - text: 'bug' + label: 'bug' + - text: 'fix' + label: 'bug' + - text: 'feature' + label: 'enhancement' +# Search the body of the PR for the `text` [default: true] +searchBody: true +# Search the title of the PR for the `text` [default: true] +searchTitle: true +# Search for whole words only [default: false] +wholeWords: false diff --git a/.github/workflows/pr_assignee.yml b/.github/workflows/pr_assignee.yml deleted file mode 100644 index 0abe81fdf..000000000 --- a/.github/workflows/pr_assignee.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Assign PR to creator - -# Due to GitHub token limitation, only able to assign org members not authors from forks. -# https://github.com/thomaseizinger/assign-pr-creator-action/issues/3 - -on: - pull_request: - types: [opened] - -jobs: - automation: - runs-on: ubuntu-latest - steps: - - name: Assign PR to creator - uses: thomaseizinger/assign-pr-creator-action@v1.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }}