@vavt/github-action-test 0.7.3 → 0.7.4

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.
@@ -135,13 +135,23 @@ jobs:
135
135
  | tr '\r\n' ' ' \
136
136
  | sed -E 's/[[:space:]]+/ /g; s/^[[:space:]]+|[[:space:]]+$//g')"
137
137
 
138
- ISSUE_INFO="$(printf '%s\n%s\n' "${SUBJECT}" "${BODY}" \
139
- | perl -ne 'while(/(?:^|[^A-Za-z0-9_])#([0-9]+)\b/g){print "#$1\n"}' \
140
- | awk '!seen[$0]++' \
141
- | paste -sd ' ' -)"
138
+ ISSUE_IDS="$(printf '%s\n%s\n' "${SUBJECT}" "${BODY}" \
139
+ | perl -ne 'while(/(?:^|[^A-Za-z0-9_])#([0-9]+)\b/g){print "$1\n"}' \
140
+ | awk '!seen[$0]++')"
142
141
  ISSUE_SUFFIX=""
143
- if [ -n "${ISSUE_INFO}" ]; then
144
- ISSUE_SUFFIX=" ${ISSUE_INFO}"
142
+ if [ -n "${ISSUE_IDS}" ]; then
143
+ ISSUE_LINKS=""
144
+ while IFS= read -r ISSUE_ID; do
145
+ [ -z "${ISSUE_ID}" ] && continue
146
+ if [ -n "${ISSUE_LINKS}" ]; then
147
+ ISSUE_LINKS="${ISSUE_LINKS} "
148
+ fi
149
+ ISSUE_LINKS="${ISSUE_LINKS}[#${ISSUE_ID}](${REPO_URL}/issues/${ISSUE_ID})"
150
+ done <<< "${ISSUE_IDS}"
151
+
152
+ if [ -n "${ISSUE_LINKS}" ]; then
153
+ ISSUE_SUFFIX=" ${ISSUE_LINKS}"
154
+ fi
145
155
  fi
146
156
 
147
157
  SHORT_HASH="$(printf '%s' "${FULL_HASH}" | cut -c1-7)"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  <!-- next-release -->
2
2
 
3
+ ## 0.7.3 (2026-03-01)
4
+
5
+ ### Fixed Bugs
6
+
7
+ - 修复 changelog commit 解析错位 ([commit ebce7a6](https://github.com/imzbf/github-action-test/commit/ebce7a6b18833fae8cdd517004854c3b985d1365)) #4
8
+ - 测试包含正文和 BREAKING CHANGE 的提交在 CHANGELOG 中正确渲染
9
+ - **BREAKING CHANGE: 变更了 changelog commit 字段解析方式**
10
+
11
+
12
+ **Full Changelog**: [v0.7.2...v0.7.3](https://github.com/imzbf/github-action-test/compare/v0.7.2...v0.7.3)
13
+
14
+ ---
15
+
3
16
  ## 0.7.2 (2026-03-01)
4
17
 
5
18
  ### Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vavt/github-action-test",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",