From cceb1bc44abeb3b92daded5c1457030e05012aa1 Mon Sep 17 00:00:00 2001 From: Jonghakseo Date: Sat, 18 Nov 2023 16:14:57 +0900 Subject: [PATCH] fix: auto assign action --- .github/auto_assign.yml | 30 ++++++++++++++++++++++++++ .github/workflows/auto-assign.yml | 12 +++++++++++ .github/workflows/update-assignees.yml | 17 --------------- 3 files changed, 42 insertions(+), 17 deletions(-) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/auto-assign.yml delete mode 100644 .github/workflows/update-assignees.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 000000000..dffe542a4 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,30 @@ +# Set to true to add reviewers to pull requests +addReviewers: true + +# Set to true to add assignees to pull requests +addAssignees: author + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - Jonghakseo + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 + +# A list of assignees, overrides reviewers if set +# assignees: +# - assigneeA + +# A number of assignees to add to the pull request +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +# numberOfAssignees: 2 + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +# skipKeywords: +# - wip + +filterLabels: + exclude: + - dependencies diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 000000000..f4c725e21 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,12 @@ +name: 'Auto Assign' +on: + pull_request: + types: [opened, ready_for_review] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.5 + with: + configuration-path: '.github/auto_assign.yml' diff --git a/.github/workflows/update-assignees.yml b/.github/workflows/update-assignees.yml deleted file mode 100644 index 071478a15..000000000 --- a/.github/workflows/update-assignees.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Update Assignees - -on: - pull_request: - types: - - opened - - reopened - -jobs: - update-assignees: - runs-on: ubuntu-latest - if: ${{ github.actor != 'dependabot[bot]' }} - steps: - - uses: actions-ecosystem/action-add-assignees@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - assignees: ${{ github.actor }}