Skip to content
GitHub Action that labels approved pull requests
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/images
.dockerignore
.gitignore
Dockerfile
LICENSE update license Apr 10, 2019
README.md update readme title Feb 1, 2019
entrypoint.sh

README.md

Label approved pull requests

This GitHub Action applies a label of your choice to pull requests that reach a specified number of approvals. For teams using Pull Reminders, this action can be used to exclude approved pull requests from reminders.

Usage

This Action subscribes to Pull request review events which fire whenever pull requests are approved. The action requires two environment variables – a label name and the number of required approvals.

workflow "Label approved pull requests" {
  on = "pull_request_review"
  resolves = ["Label when approved"]
}

action "Label when approved" {
  uses = "pullreminders/label-when-approved-action@master"
  secrets = ["GITHUB_TOKEN"]
  env = {
    LABEL_NAME = "approved"
    APPROVALS  = "2"
  }
}

Demo

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

You can’t perform that action at this time.