File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,14 +154,32 @@ jobs:
154154 # `git tag --sort=-v:refname` puts the newest first; filter out the just-released tag.
155155 PREV=$(git tag --list 'v*' --sort=-v:refname | grep -v "^${TAG}$" | head -1 || true)
156156
157+ # Compact subject: `chore(release): OIL <tag>, <date>`.
158+ #
159+ # Change list excludes prior release-marker commits so a release
160+ # doesn't list its predecessors. --extended-regexp matches both the
161+ # current shorter format ("OIL v...") and the legacy longer one
162+ # ("Open Install Library Release v...") so older markers on main
163+ # stay filtered too.
164+ #
165+ # `[skip ci]` at the end tells GitHub Actions not to run
166+ # push-triggered workflows on the marker commit itself — the
167+ # release just built the artifacts, there's nothing to re-verify.
157168 {
158- printf 'chore(release): Open Install Library Release %s, %s\n\n' "$TAG" "$RELEASE_DATE"
169+ printf 'chore(release): OIL %s, %s\n\n' "$TAG" "$RELEASE_DATE"
159170 if [ -n "$PREV" ]; then
160171 printf 'Changes since %s:\n\n' "$PREV"
161- git log --no-merges --pretty=format:'- %s (%h)' "${PREV}..${TAG}"
172+ git log \
173+ --no-merges \
174+ --invert-grep \
175+ --extended-regexp \
176+ --grep='^chore\(release\): (OIL|Open Install Library Release) v[0-9]' \
177+ --pretty=format:'- %s (%h)' \
178+ "${PREV}..${TAG}"
162179 printf '\n\n'
163180 fi
164- printf 'Release: %s\n' "${RELEASE_URL}"
181+ printf 'Release: %s\n\n' "${RELEASE_URL}"
182+ printf '[skip ci]\n'
165183 } > /tmp/commit-msg.txt
166184
167185 echo "----- Commit message preview -----"
You can’t perform that action at this time.
0 commit comments