label-approved-action
v1.0.0
Published
GitHub Action to label approved pull requests
Downloads
1
Maintainers
Readme
🏷️🎬 Label Approved Action
GitHub Action to automatically label approved pull requests
⚙️ Usage
Inputs
labels
Comma-separated list of labels to add on the approved pull request, default to approved
approvals
List of labels to add on the approved pull request, default to 1
Environment variables
GITHUB_TOKEN
(required)
GitHub token to add labels to pull requests: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Example
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:
label: "approved"
approvals: 2
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"