diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000000..6694c27f25 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,22 @@ +# Once a PR has been approved by one member of the mlpack organization, a second +# approving review will automatically be added 24 hours later. This allows time +# for other maintainers to take a look. +name: Auto-approve pull requests +on: + schedule: + # Run roughly every four hours. + - cron: "15 0,4,8,12,16,20 * * *" + +jobs: + auto-approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - name: Auto-approve pull requests + uses: rcurtin/auto-approve + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + approval-message: + 'Second approval provided automatically after 24 hours. :+1:'