Skip to content

Commit 3409fcd

Browse files
committed
feat: close-release-issue
1 parent 3dd4ac6 commit 3409fcd

13 files changed

Lines changed: 18035 additions & 20 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test-close-release-issue
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
paths:
7+
- packages/close-release-issue/dist/*
8+
9+
jobs:
10+
test:
11+
name: Typos
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6.0.2
15+
16+
- name: test
17+
uses: ./actions/close-release-issue
Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Close Release Issues
32
description: Close issues with release label when merging release branch
43

@@ -8,22 +7,5 @@ inputs:
87
required: true
98

109
runs:
11-
using: composite
12-
steps:
13-
- name: Close issues with release label
14-
shell: bash
15-
env:
16-
GITHUB_TOKEN: ${{ github.token }}
17-
run: |
18-
BRANCH_NAME="${{ inputs.branch-name }}"
19-
if [[ "$BRANCH_NAME" =~ ^release\/([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
20-
VERSION="${BASH_REMATCH[1]}"
21-
echo "Release branch detected: $VERSION"
22-
issues=$(gh issue list --label "$VERSION" --state open --json number -q '.[].number')
23-
for issue in $issues; do
24-
echo "Closing issue #$issue with label $VERSION"
25-
gh issue close "$issue"
26-
done
27-
else
28-
echo "Not a release branch, skipping issue close."
29-
fi
10+
using: node24
11+
main: ../packages/close-release-issue/dist/index.mjs

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
},
1010
"devDependencies": {
1111
"@antfu/eslint-config": "^7.2.0",
12+
"@workflows/utils": "workspace:*",
1213
"eslint": "^9.39.2"
1314
}
1415
}
16+

0 commit comments

Comments
 (0)