GitHub Action to automatically label approved pull requests
Comma-separated list of labels to add on the approved pull request, default to approved
List of labels to add on the approved pull request, default to 1
GitHub token to add labels to pull requests: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Label PRs
on:
pull_request_review:
types:
- submitted
- edited
- dismissed
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: Label approved PRs
uses: koj-co/label-approved-action@master
with:
labels: "approved"
approvals: 2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →