From 1e9f3859889ae7e230facf6dde54f047e62d23e4 Mon Sep 17 00:00:00 2001 From: japananh Date: Fri, 19 Jan 2024 00:07:34 +0700 Subject: [PATCH] feat: add auto-assign --- .github/auto_assign.yml | 4 ++-- .github/workflows/action.yml | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml index d5afb4b..ef71467 100644 --- a/.github/auto_assign.yml +++ b/.github/auto_assign.yml @@ -5,7 +5,7 @@ addReviewers: true # Set to author to set pr creator as assignee addAssignees: author -# A list of reviewers to be added to pull requests (GitHub user name) +# A list of reviewers to be added to pull requests (GitHub username) reviewers: - japananh @@ -18,7 +18,7 @@ numberOfReviewers: 0 # - assigneeA # A number of assignees to add to the pull request -# Set to 0 to add all of the assignees. +# Set to 0 to add all the assignees. # Uses numberOfReviewers if unset. # numberOfAssignees: 2 diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 5be1e08..c996925 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,10 +1,8 @@ -name: 'Auto Assign' -on: - pull_request: - types: [opened, ready_for_review] - +name: Auto Assign +on: [push, pull_request] jobs: - add-reviews: + add-reviewers-assignees: + name: Auto Add Reviewer and Assignees runs-on: ubuntu-latest steps: - uses: kentaro-m/auto-assign-action@v1.2.6