Skip to content
play

GitHub Action

LabelingWhenApproved

0.0.1 Latest version

LabelingWhenApproved

play

LabelingWhenApproved

If the PR is approximated by a certain number, attach the APPROVEL label

Installation

Copy and paste the following snippet into your .yml file.

              

- name: LabelingWhenApproved

uses: Dev-MJ/LabelingWhenApproved@0.0.1

Learn more about this action in Dev-MJ/LabelingWhenApproved

Choose a version

LabelingWhenApproved

name: Labeling when approved PR

on:
  pull_request_review:
    types: [submitted]

jobs:
  add-approve-label:
    runs-on: [ self-hosted ]
    steps:
      - uses: actions/checkout@v2
      - name: Add APPROVE label
        uses: Dev-MJ/LabelingWhenApproved@main
        with:
          github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
          approves-number: 1 # set the required number of reviewers for your PR
          label-name: "APPROVED"