diff --git a/.github/workflows/close-linked-issues.yml b/.github/workflows/close-linked-issues.yml new file mode 100644 index 0000000000..a9b6ac86d6 --- /dev/null +++ b/.github/workflows/close-linked-issues.yml @@ -0,0 +1,19 @@ +name: Close Linked Issues on PR Merge + +on: + pull_request: + types: [closed] + branches: + - 2.0 + - dev-2.0 + +jobs: + close_issues: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Close linked issues on non-default branches + uses: processing/branch-pr-close-issue@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} +