This is a GitHub action that adds +1 and +2 labels to a Pull Request based on review approval.
Sample config, place in .github/workflows/plusone.yml
name: Plus one
on:
pull_request:
types: [review_request_removed, review_requested]
pull_request_review:
types: [dismissed, submitted]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: planningcenter/plus-one-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copyright (c) Planning Center, licensed MIT. See LICENSE file in this repo.