@vavt/github-action-test 0.7.2 → 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.
- package/.github/workflows/latest.yml +19 -7
- package/CHANGELOG.md +26 -0
- package/package.json +1 -1
|
@@ -135,13 +135,23 @@ jobs:
|
|
|
135
135
|
| tr '\r\n' ' ' \
|
|
136
136
|
| sed -E 's/[[:space:]]+/ /g; s/^[[:space:]]+|[[:space:]]+$//g')"
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
| perl -ne 'while(/(?:^|[^A-Za-z0-9_])#([0-9]+)\b/g){print "
|
|
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 "${
|
|
144
|
-
|
|
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)"
|
|
@@ -179,7 +189,9 @@ jobs:
|
|
|
179
189
|
fi
|
|
180
190
|
|
|
181
191
|
printf '\n' >> "${TARGET_FILE}"
|
|
182
|
-
|
|
192
|
+
# Do not use `-z` here. The format already uses NUL separators,
|
|
193
|
+
# and combining both introduces extra empty fields that can shift parsing.
|
|
194
|
+
done < <(git log "${RANGE}" --no-merges --format='%H%x00%s%x00%b%x00' || true)
|
|
183
195
|
|
|
184
196
|
write_section() {
|
|
185
197
|
local title="$1"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
<!-- next-release -->
|
|
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
|
+
|
|
16
|
+
## 0.7.2 (2026-03-01)
|
|
17
|
+
|
|
18
|
+
### Others
|
|
19
|
+
|
|
20
|
+
- 长的描述 BREAKING CHANGE: 破坏的提交 re #4 ([commit ci(acti](https://github.com/imzbf/github-action-test/commit/ci(action):简短的介绍)) #4
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
**Full Changelog**: [v0.7.1...v0.7.2](https://github.com/imzbf/github-action-test/compare/v0.7.1...v0.7.2)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
## 0.7.1 (2026-03-01)
|
|
2
28
|
|
|
3
29
|
### Features
|