Skip to content

Commit

Permalink
fix: generate release notes test (#398)
Browse files Browse the repository at this point in the history
The output of the GitHub API changed. Updated the script to account for
the changes.
  • Loading branch information
cgrindel authored Mar 23, 2024
1 parent ed8d16c commit 9c0e676
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bzlrelease/tools/generate_release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ if [[ -n "${generate_module_snippet:-}" ]]; then
fi

release_notes_md="$(cat <<-EOF
## What Has Changed
${changelog_md}
EOF
)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ actual="$(
--generate_workspace_snippet "${generate_workspace_snippet_sh}" \
"${tag}"
)"
assert_match "## What's Changed" "${actual}"
assert_match "## What Has Changed" "${actual}"
assert_match "## Workspace Snippet" "${actual}"
assert_match "WORKSPACE SNIPPET CONTENT" "${actual}"
assert_no_match "## Bazel Module Snippet" "${actual}"
Expand All @@ -109,7 +109,7 @@ actual="$(
--generate_module_snippet "${generate_module_snippet_sh}" \
"${tag}"
)"
assert_match "## What's Changed" "${actual}"
assert_match "## What Has Changed" "${actual}"
assert_match "## Bazel Module Snippet" "${actual}"
assert_match "MODULE SNIPPET CONTENT" "${actual}"
assert_no_match "## Workspace Snippet" "${actual}"

0 comments on commit 9c0e676

Please sign in to comment.