From 5212de2df8350e0916d8d59081a77ea65df23faa Mon Sep 17 00:00:00 2001 From: Joshua Fish Date: Thu, 13 Jul 2023 16:33:53 +1000 Subject: [PATCH] added labels workflow --- .github/workflows/ci-require-labels.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci-require-labels.yml diff --git a/.github/workflows/ci-require-labels.yml b/.github/workflows/ci-require-labels.yml new file mode 100644 index 0000000..6883a87 --- /dev/null +++ b/.github/workflows/ci-require-labels.yml @@ -0,0 +1,19 @@ +# Require labels to be added to a PR before merging +# This is configured as a branch protection setting +name: CI Require Labels +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] + merge_group: +run-name: CI Require Labels ${{ github.sha }} by @${{ github.actor }} +jobs: + require-labels: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-latest + outputs: + status: ${{ steps.require-labels.outputs.status }} + steps: + - uses: actions/checkout@v3 + - name: Require Labels + id: require-labels + uses: nullify-platform/github-actions/actions/require-labels@main \ No newline at end of file