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
This commit is contained in:
Vishwas Shashidhar 2020-10-09 18:18:31 +05:30 committed by GitHub
parent 983f489edc
commit 32d1b2bf69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 23 deletions

View File

@ -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'

View File

@ -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

27
.github/workflows/automerge.yml vendored Normal file
View File

@ -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 }}"