Skip to content

Commit

Permalink
Merge pull request #378 from oldgiova/5.x
Browse files Browse the repository at this point in the history
Backporting "Include only branch tags in the changelog"
  • Loading branch information
oldgiova authored Nov 13, 2024
2 parents d3808d2 + 233ad88 commit 34b02f8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ variables:
options:
- "true"
- "false"
DEFAULT_BRANCH: "master"
GITHUB_REPO_URL:
description: "The Github Repo URL for release-please, in the format of 'owner/repo'"
value: "mendersoftware/mender-helm"
Expand All @@ -43,12 +42,6 @@ variables:
GITHUB_USER_EMAIL:
description: "The Github user email for release-please"
value: "[email protected]"
RUN_RELEASE:
description: "Run a new release"
value: "false"
options:
- "true"
- "false"
GIT_CLIFF:
description: "Run git cliff to override the release-please changelog"
value: "true"
Expand Down Expand Up @@ -850,12 +843,12 @@ changelog:
- test -z "$RELEASE_PLEASE_PR" && echo "No release-please PR found" && exit 0
- gh pr checkout --force $RELEASE_PLEASE_PR
- wget --output-document cliff.toml https://raw.githubusercontent.com/mendersoftware/mendertesting/master/utils/cliff.toml
- git cliff --bump --output mender/CHANGELOG.md --github-repo ${GITHUB_REPO_URL}
- git cliff --bump --output mender/CHANGELOG.md --github-repo ${GITHUB_REPO_URL} --use-branch-tags
- git add mender/CHANGELOG.md
- git commit --amend -s --no-edit
- git push github-${CI_JOB_ID} --force
# Update the PR body
- git cliff --unreleased --bump -o tmp_pr_body.md --github-repo ${GITHUB_REPO_URL}
- git cliff --unreleased --bump -o tmp_pr_body.md --github-repo ${GITHUB_REPO_URL} --use-branch-tags
# note: using sed to prevent release-please to mess up with the Github Release body
- sed -i 's/## mender-\([0-9.]*\)/## \1/' tmp_pr_body.md
- gh pr edit $RELEASE_PLEASE_PR --body-file tmp_pr_body.md
Expand Down

0 comments on commit 34b02f8

Please sign in to comment.