Skip to content

Commit 3399d98

Browse files
authored
Merge pull request #34 from gitpod-io/nan/release-changelog
fix: exclude merge commits from release changelog and add docs link
2 parents 25fc9c7 + adadfe5 commit 3399d98

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ jobs:
6161
id: changelog
6262
run: |
6363
if [ -n "${{ steps.prev_tag.outputs.tag }}" ]; then
64-
# Get commits between tags, excluding automated image update commits
65-
CHANGELOG=$(git log --pretty=format:"- %s (%h)" \
64+
# Get non-merge commits between tags, excluding automated image update commits
65+
CHANGELOG=$(git log --no-merges --pretty=format:"- %s (%h)" \
6666
"${{ steps.prev_tag.outputs.tag }}..${RELEASE_TAG}" \
6767
--grep="Update GCP runner, proxy, prometheus, and node-exporter images" --invert-grep)
6868
else
69-
# First release - get all commits excluding automated ones
70-
CHANGELOG=$(git log --pretty=format:"- %s (%h)" \
69+
# First release - get all non-merge commits excluding automated ones
70+
CHANGELOG=$(git log --no-merges --pretty=format:"- %s (%h)" \
7171
--grep="Update GCP runner, proxy, prometheus, and node-exporter images" --invert-grep)
7272
fi
7373
@@ -91,8 +91,8 @@ jobs:
9191
if [ -n "$CHANGED_FILES" ]; then
9292
echo "has_changes=true" >> $GITHUB_OUTPUT
9393
94-
# Get commits that touched IAM files
95-
IAM_COMMITS=$(git log --pretty=format:"- %s (%h)" \
94+
# Get non-merge commits that touched IAM files
95+
IAM_COMMITS=$(git log --no-merges --pretty=format:"- %s (%h)" \
9696
"${{ steps.prev_tag.outputs.tag }}..${RELEASE_TAG}" \
9797
--grep="Update GCP runner, proxy, prometheus, and node-exporter images" --invert-grep \
9898
-- $IAM_FILES)
@@ -124,7 +124,12 @@ jobs:
124124
- name: Build release body
125125
id: body
126126
run: |
127-
cat << 'EOF' > release_body.md
127+
# Derive docs anchor from manifest version: 20260508.526 -> 20260508-526
128+
DOCS_ANCHOR=$(echo "${{ steps.manifest.outputs.version }}" | tr '.' '-')
129+
130+
cat << EOF > release_body.md
131+
For application changes in the GCP runner itself, see the [release notes](https://ona.com/docs/release-notes/gcp-runner#${DOCS_ANCHOR}).
132+
128133
## Container Images
129134
130135
| Component | Image |

0 commit comments

Comments
 (0)