Skip to content

Commit 8a6fcd6

Browse files
upgrade to latest dependencies (#6823)
bumping knative.dev/hack 4b87852...198a0ce: > 198a0ce Bump GitHub CLI to v2.105.0 (# 492) > 897ff8a [release-1.24] Generate point release notes with GitHub CLI (# 489) > 4a15c76 Update community files (# 481) Signed-off-by: Knative Automation <automation@knative.team>
1 parent e769c70 commit 8a6fcd6

5 files changed

Lines changed: 17 additions & 12 deletions

File tree

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.25.0
55
require (
66
github.com/google/go-github/v32 v32.1.0
77
gopkg.in/yaml.v2 v2.4.0
8-
knative.dev/hack v0.0.0-20261021112836-4b87852b7bf9
8+
knative.dev/hack v0.0.0-20261120143359-198a0ce7d4fb
99
)
1010

1111
require (

‎go.sum‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8X
2323
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2424
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
2525
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
26-
knative.dev/hack v0.0.0-20261021112836-4b87852b7bf9 h1:uaPRs09Sa6A48PBeBEx5YhL3EIYmvKh92r3iJLAgUrM=
27-
knative.dev/hack v0.0.0-20261021112836-4b87852b7bf9/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=
26+
knative.dev/hack v0.0.0-20261120143359-198a0ce7d4fb h1:oYmO27Z6fzzyqJdUZ0GDp9ZOHk0aI+H1fMuqYzXcttE=
27+
knative.dev/hack v0.0.0-20261120143359-198a0ce7d4fb/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=

‎vendor/knative.dev/hack/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ This is a helper script for Knative release scripts. To use it:
292292
branch.
293293
- `RELEASE_NOTES`: contains the filename with the release notes if
294294
`--release-notes` was passed. The release notes is a simple markdown file.
295+
For `--dot-release`, notes are generated when publishing with
296+
`gh release create --generate-notes --notes-start-tag <previous-release-tag>`
297+
unless `--release-notes` is passed.
295298
- `RELEASE_GCS_BUCKET`: contains the GCS bucket name to store the manifests
296299
if `--release-gcs` was passed, otherwise the default value
297300
`knative-nightly/<repo>` will be used. It is empty if `--publish` was not

‎vendor/knative.dev/hack/release.sh‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ BUILD_TIMESTAMP=""
7272
BUILD_TAG=""
7373
RELEASE_VERSION=""
7474
RELEASE_NOTES=""
75+
RELEASE_NOTES_START_TAG=""
7576
RELEASE_BRANCH=""
7677
RELEASE_GCS_BUCKET="knative-nightly/${REPO_NAME}"
7778
RELEASE_DIR=""
@@ -93,7 +94,7 @@ readonly IMAGES_REFS_FILE="${IMAGES_REFS_FILE:-$(mktemp -d)/images_refs.txt}"
9394
# Convenience function to run the GitHub CLI tool `gh`.
9495
# Parameters: $1..$n - arguments to gh.
9596
function gh_tool() {
96-
go_run github.com/cli/cli/v2/cmd/gh@v2.65.0 "$@"
97+
go_run github.com/cli/cli/v2/cmd/gh@v2.105.0 "$@"
9798
}
9899

99100
# Shortcut to "git push" that handles authentication.
@@ -239,12 +240,8 @@ function prepare_dot_release() {
239240
local last_build="$(patch_version "${last_version}")"
240241
RELEASE_VERSION="${major_minor_version}.$(( last_build + 1 ))"
241242
echo "Will create release ${RELEASE_VERSION} at commit ${release_branch_commit}"
242-
# If --release-notes not used, copy from the latest release
243-
if [[ -z "${RELEASE_NOTES}" ]]; then
244-
RELEASE_NOTES="$(mktemp)"
245-
gh_tool release view "${github_tag}" --json "body" --jq '.body' > "${RELEASE_NOTES}"
246-
echo "Release notes from ${last_version} copied to ${RELEASE_NOTES}"
247-
fi
243+
# Generate notes since the previous release when publishing, unless overridden.
244+
RELEASE_NOTES_START_TAG="${github_tag}"
248245
}
249246

250247
# Setup source nightly image for a release.
@@ -761,6 +758,11 @@ function publish_to_github() {
761758
cat "${RELEASE_NOTES}" >> "${description}"
762759
fi
763760

761+
local notes_args=(--notes-file "${description}")
762+
if [[ -z "${RELEASE_NOTES}" && -n "${RELEASE_NOTES_START_TAG}" ]]; then
763+
notes_args=(--generate-notes --notes-start-tag "${RELEASE_NOTES_START_TAG}")
764+
fi
765+
764766
# Include a tag for the go module version
765767
#
766768
# v1.0.0 = v0.27.0
@@ -787,7 +789,7 @@ function publish_to_github() {
787789
gh_tool release create \
788790
"${github_tag}" \
789791
--title "${title}" \
790-
--notes-file "${description}" \
792+
"${notes_args[@]}" \
791793
"${target_branch}" \
792794
${attachments[@]} && return 0
793795

‎vendor/modules.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ golang.org/x/crypto/openpgp/s2k
2222
# gopkg.in/yaml.v2 v2.4.0
2323
## explicit; go 1.15
2424
gopkg.in/yaml.v2
25-
# knative.dev/hack v0.0.0-20261021112836-4b87852b7bf9
25+
# knative.dev/hack v0.0.0-20261120143359-198a0ce7d4fb
2626
## explicit; go 1.24
2727
knative.dev/hack
2828
# go.opencensus.io => go.opencensus.io v0.20.2

0 commit comments

Comments
 (0)