Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

🏷️🎬 GitHub Action to label approved pull requests

License

Notifications You must be signed in to change notification settings

AnandChowdhary/label-approved-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

🏷️🎬 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:
          labels: "approved"
          approvals: 2
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

📄 License

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

Koj

An open source project by Koj.
Furnish your home in style, for as low as CHF175/month →