Skip to content

croesusfin/label-when-approved-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Label approved pull requests

This GitHub Action applies a label of your choice to pull requests that reach a specified number of approvals.

Usage

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

on: pull_request_review
name: Label approved pull requests
jobs:
  labelWhenApproved:
    name: Label when approved
    runs-on: ubuntu-latest
    steps:
    - name: Label when approved
      uses: croesusfin/label-when-approved-action@master
      env:
        APPROVALS: "2"
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        ADD_LABEL: "approved"
        REMOVE_LABEL: "awaiting-review"
        CHANGE_LABEL: "changes-requested"

License

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

About

GitHub Action that labels approved pull requests

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Shell 88.2%
  • Dockerfile 11.8%