Skip to content

Check PR Labels on Push

Actions
This action check if given ALL labels have be applied to the PR when pushed
v1.0.12
Latest
Star (16)

Check PR Labels on Push Action

This action check if given ALL labels have be applied to the PR when pushed.

Inputs

github-token

Required The repository token, i.e. secrets.GITHUB_TOKEN

labels

Required The array of label name, e.g. '["label-1", "label-2"]'

Outputs

result

The result if given ALL labels have be applied to the PR

Example Usage

uses: shioyang/check-pr-labels-on-push-action@v1.0.10
with:
  github-token: ${{ secrets.GITHUB_TOKEN }}
  labels: '["label-1", "label-2"]'

Example Workflow

e.g. .github/workflows/main.yml

on:
  push:
    branches:
      - master

jobs:
  check_pr_labels_job:
    runs-on: ubuntu-latest
    name: A job to check the PR labels contain given labels
    steps:
    - name: Check PR labels action step
      id: check_pr_labels
      uses: shioyang/check-pr-labels-on-push-action@v1.0.12
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        labels: '["enhancement"]'
      timeout-minutes: 5
    - name: See result
      run: echo "${{ steps.check_pr_labels.outputs.result }}"

Check PR Labels on Push is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

This action check if given ALL labels have be applied to the PR when pushed
v1.0.12
Latest

Check PR Labels on Push is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.