Skip to content

zendesk/check-risk-label

Repository files navigation

check-risk-label

Latest Release Tests

A custom Github Action for use on pull requests. The action:

  • ensures that the four labels "risk:none/low/medium/high" are correctly defined in the repository;
  • ensures that exactly one of those labels is applied to the PR;
  • ensures that some specific text (i.e. part of the PR template) is not in the PR description.

All three are optional. See 'Inputs'.

Inputs

See inputs in action.yml.

Output

This Action has no outputs.

Usage of the Github action

---
name: Check risk
on:
  pull_request:
    types: [opened, edited, labeled, unlabeled]

jobs:
  check-risk:
    name: Check risk
    steps:
      - name: Check risk
        uses: zendesk/check-risk-label@VERSION

where VERSION is the version you wish you use, e.g. v1 (or a branch, or a commit hash). Check the top of this readme to find the latest release.

About

A custom Github Action for use on pull requests, checking that they are labelled with a risk label

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages