Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: Fix silent missing metadata for release notes #6089

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ci: Fix silent missing metadata for release notes
  • Loading branch information
mafredri committed Feb 8, 2023
commit a105c9adf39bd412c22869fc52f1f0312d593304
5 changes: 3 additions & 2 deletions scripts/release/check_commit_metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,16 @@ main() {
# d9f2aaf3b430d8b6f3d5f24032ed6357adaab1f1 author:world
# fd54512858c906e66f04b0744d8715c2e0de97e6 author:bye labels:label:stale label:enhancement
from_commit_date=2023-01-18
mapfile -t pr_labels_raw < <(
pr_list="$(
gh pr list \
--base main \
--state merged \
--limit 10000 \
--search "merged:>=$from_commit_date" \
--json mergeCommit,labels,author \
--jq '.[] | "\( .mergeCommit.oid ) author:\( .author.login ) labels:\(["label:\( .labels[].name )"] | join(" "))"'
)
)"
mapfile -t pr_labels_raw <<<"$pr_list"
declare -A authors labels
for entry in "${pr_labels_raw[@]}"; do
commit_sha_long=${entry%% *}
Expand Down
4 changes: 1 addition & 3 deletions scripts/release/generate_release_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,5 @@ Compare: [\`$old_version...$new_version\`](https://github.com/coder/coder/compar

## Install/upgrade

Refer to our docs to [install](https://coder.com/docs/v2/latest/install)
or [upgrade](https://coder.com/docs/v2/latest/admin/upgrade) Coder, or use
a release asset below.
Refer to our docs to [install](https://coder.com/docs/v2/latest/install) or [upgrade](https://coder.com/docs/v2/latest/admin/upgrade) Coder, or use a release asset below.
"