@vavt/github-action-test 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/latest.yml +11 -0
- package/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/src/main.jsx +1 -1
|
@@ -239,6 +239,8 @@ jobs:
|
|
|
239
239
|
continue
|
|
240
240
|
fi
|
|
241
241
|
|
|
242
|
+
ISSUE_STATE="$(printf '%s' "${ISSUE_PAYLOAD}" | jq -r '.state // ""')"
|
|
243
|
+
|
|
242
244
|
if gh api "repos/${GITHUB_REPOSITORY}/issues/${ISSUE_ID}/comments?per_page=100" \
|
|
243
245
|
--jq '.[] | select(.body | contains("'"${MARKER}"'")) | .id' \
|
|
244
246
|
| grep -q .; then
|
|
@@ -257,4 +259,13 @@ jobs:
|
|
|
257
259
|
-f "body=${COMMENT_BODY}" >/dev/null
|
|
258
260
|
|
|
259
261
|
echo "Notified issue #${ISSUE_ID}."
|
|
262
|
+
|
|
263
|
+
if [ "${ISSUE_STATE}" = "open" ]; then
|
|
264
|
+
gh api "repos/${GITHUB_REPOSITORY}/issues/${ISSUE_ID}" \
|
|
265
|
+
--method PATCH \
|
|
266
|
+
-f state=closed >/dev/null
|
|
267
|
+
echo "Closed issue #${ISSUE_ID}."
|
|
268
|
+
else
|
|
269
|
+
echo "Issue #${ISSUE_ID} already closed."
|
|
270
|
+
fi
|
|
260
271
|
done <<< "${ISSUE_IDS}"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
|
|
5
|
+
|
|
4
6
|
<!-- next-release -->
|
|
5
7
|
|
|
8
|
+
## 0.5.1 (2026-03-01)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
- None
|
|
13
|
+
|
|
14
|
+
### Refactors
|
|
15
|
+
|
|
16
|
+
- None
|
|
17
|
+
|
|
18
|
+
### Fixed Bugs
|
|
19
|
+
|
|
20
|
+
- 测试issue ([ab4da64](https://github.com/imzbf/github-action-test/commit/ab4da649f116e8e034fb2c2d04239f7c2b9636de))
|
|
21
|
+
|
|
22
|
+
### Others
|
|
23
|
+
|
|
24
|
+
- None
|
|
25
|
+
|
|
26
|
+
**Full Changelog**: [v0.5.0...v0.5.1](https://github.com/imzbf/github-action-test/compare/v0.5.0...v0.5.1)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
6
30
|
## 0.5.0 (2026-02-28)
|
|
7
31
|
|
|
8
32
|
### Features
|
package/package.json
CHANGED
package/src/main.jsx
CHANGED