Skip to content

Commit 2b2b00d

Browse files
committed
Add issue-closing workflow to main branch
1 parent bde84ea commit 2b2b00d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Close Linked Issues on PR Merge
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- main
8+
- 2.0
9+
- dev-2.0
10+
11+
jobs:
12+
close_issues:
13+
if: github.event.pull_request.merged == true
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Close linked issues on non-default branches
17+
uses: processing/branch-pr-close-issue@v1
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
branch: ${{ github.base_ref }}
21+

0 commit comments

Comments
 (0)