From 069266d6ec75a50bc9e1c53b89cc58edd721cfa7 Mon Sep 17 00:00:00 2001 From: Marc Greisen Date: Tue, 20 Sep 2022 14:56:40 -0700 Subject: [PATCH] Add an action to check that each PR has a referenced issue. --- .github/workflows/pr-issue-check.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pr-issue-check.yml diff --git a/.github/workflows/pr-issue-check.yml b/.github/workflows/pr-issue-check.yml new file mode 100644 index 0000000000..a560a713a7 --- /dev/null +++ b/.github/workflows/pr-issue-check.yml @@ -0,0 +1,16 @@ +on: + pull_request_target: + types: [opened, edited, reopened, synchronize] + +jobs: + check_pull_requests: + runs-on: ubuntu-latest + name: Check linked issues + steps: + - uses: nearform/github-action-check-linked-issues@v1 + id: check-linked-issues + with: + exclude-branches: "dependabot/**" + # OPTIONAL: Use the output from the `check-linked-issues` step + #- name: Get the output + # run: echo "How many linked issues? ${{ steps.check-linked-issues.outputs.linked_issues_count }}" \ No newline at end of file