[SOT] Update release note automation (#35494)

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #35494

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35494 from yijiem:fix-release-note-script ed04b18ee8
PiperOrigin-RevId: 597327879
pull/35504/head
Yijie Ma 11 months ago committed by Copybara-Service
parent aa326c947c
commit 5e8215d2b4
  1. 8
      tools/release/release_notes.py

@ -95,7 +95,6 @@ def get_commit_log(prevRelLabel, relBranch):
"git",
"log",
"--pretty=oneline",
"--committer=GitHub",
"%s..%s" % (prevRelLabel, relBranch),
]
print(("Running ", " ".join(glg_command)))
@ -161,15 +160,11 @@ def get_pr_titles(gitLogs):
body = pr["title"]
if not body.endswith("."):
body = body + "."
if not pr["merged_by"]:
print(("\n***ERROR***: No merge_by found for PR " + pr_num + "\n"))
error_count += 1
continue
prline = (
"- " + body + " ([#" + pr_num + "](" + HTML_URL + pr_num + "))"
)
detail = "- " + pr["merged_by"]["login"] + "@ " + prline
detail = "- " + pr["user"]["login"] + "@ " + prline
print(detail)
# if no RL label
if not rl_no_found and not rl_yes_found:
@ -192,6 +187,7 @@ def get_pr_titles(gitLogs):
)
langs_pr["inrel"].append(detail)
langs_pr[lang].append(prline)
print(("State: " + pr["state"]))
return langs_pr, error_count

Loading…
Cancel
Save