From da6b08356e47488bd53b494e54c0419e5914c660 Mon Sep 17 00:00:00 2001 From: Dmytro Nazarenko Date: Mon, 21 Nov 2022 23:03:32 +0200 Subject: [PATCH] Create issue_check.yml --- .github/workflows/issue_check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/issue_check.yml diff --git a/.github/workflows/issue_check.yml b/.github/workflows/issue_check.yml new file mode 100644 index 000000000..ee5ec6b24 --- /dev/null +++ b/.github/workflows/issue_check.yml @@ -0,0 +1,19 @@ +name: Get linked issues +on: + pull_request: + types: [ edited, synchronize, opened, reopened ] + +jobs: + check-linked-issues: + name: Check if pull request has linked issues + runs-on: ubuntu-latest + steps: + - name: Get issues + id: get-issues + uses: mondeja/pr-linked-issues-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + - name: PR has not linked issues + if: join(steps.get-issues.outputs.issues) == '' + run: + exit 1