1.0.0 • Published 4 years ago

label-approved-action v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

🏷️🎬 Label Approved Action

GitHub Action to automatically label approved pull requests

Build CI Test CI Release CI Node CI

⚙️ 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 }}"

📄 License

  • Code: MIT © Koj
  • "GitHub" is a trademark of GitHub, Inc.