From 32d1b2bf692ade62e8c4c9bbe95b3d3722a5b4fb Mon Sep 17 00:00:00 2001 From: Vishwas Shashidhar Date: Fri, 9 Oct 2020 18:18:31 +0530 Subject: [PATCH] chore: add new actions for PRs (#1085) * add new actions for PRs - remove minimum reviews - add auto assign PRs - add auto merge PRs - add reminders for PR reviews - add stats for PR workflow * fix stats workflow to include repositories & token * update stats period to 30 days * remove some bots --- .github/minimum-reviews.yml | 15 --------------- .github/workflows/action.yml | 8 -------- .github/workflows/automerge.yml | 27 +++++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 23 deletions(-) delete mode 100644 .github/minimum-reviews.yml delete mode 100644 .github/workflows/action.yml create mode 100644 .github/workflows/automerge.yml diff --git a/.github/minimum-reviews.yml b/.github/minimum-reviews.yml deleted file mode 100644 index ccb00730..00000000 --- a/.github/minimum-reviews.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Number of reviews required to mark the pull request as valid -reviewsUntilReady: 2 - -# Number of changes in the pull request to start enforcing the reviewsUntilReady rule -changesThreshold: 100 - -# Message to display when the commit status passes -readyMessage: 'No pending reviews' - -# Message to display when the commit status fails -notReadyMessage: 'Pending review approvals' - -# Status to set the commit to when waiting for reviews -# 'failure, error, and pending' are the suggested options -notReadyState: 'pending' \ No newline at end of file diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml deleted file mode 100644 index e1b1786b..00000000 --- a/.github/workflows/action.yml +++ /dev/null @@ -1,8 +0,0 @@ -name: 'Auto Assign' -on: pull_request - -jobs: - add-reviews: - runs-on: ubuntu-latest - steps: - - uses: kentaro-m/auto-assign-action@v1.1.1 \ No newline at end of file diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml new file mode 100644 index 00000000..93081ee6 --- /dev/null +++ b/.github/workflows/automerge.yml @@ -0,0 +1,27 @@ +name: automerge +on: + pull_request: + types: + - labeled + - unlabeled + - synchronize + - opened + - edited + - ready_for_review + - reopened + - unlocked + pull_request_review: + types: + - submitted + check_suite: + types: + - completed + status: {} +jobs: + automerge: + runs-on: ubuntu-latest + steps: + - name: automerge + uses: "pascalgn/automerge-action@v0.11.0" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"