From 559c8307d7537319c9f2b3f3d386d8b9b147aba3 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Wed, 23 Jul 2025 12:09:45 -0700 Subject: Remove unnecessary processing in the release note script (#7884) The release note script was trying to retrieve additional label information from the "issue" but when parsing logic is not reliable. When the issue has a link to a repo other than Slang, it printed error message. An example is #7826 that has a link to an external repo, https://github.com/llvm/llvm-project/issues/79043 --- docs/scripts/release-note.sh | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'docs/scripts') diff --git a/docs/scripts/release-note.sh b/docs/scripts/release-note.sh index d63ee8736..9ee85d0fe 100644 --- a/docs/scripts/release-note.sh +++ b/docs/scripts/release-note.sh @@ -74,22 +74,6 @@ for i in $(seq $commitsCount); do if "$gh" issue view $pr --json labels | grep -q 'pr: breaking change'; then result="[BREAKING] $line" fi - - # Get the issue number for the PR - body="$("$gh" issue view $pr --json body)" - [ "x$body" = "x" ] && break - issue="$(echo "$body" | grep '#[1-9][0-9][0-9][0-9][0-9]*' | sed 's|.*\#\([1-9][0-9][0-9][0-9][0-9]*\).*|\1|')" - [ "x$issue" = "x" ] && break - - # Get the labels of the issue - label="$("$gh" issue view $issue --json labels)" - [ "x$label" = "x" ] && break - - # Get the goal type from the labels - goal="$(echo "$label" | grep '"goal:' | sed 's|.*"goal:\([^"]*\)".*|\1|')" - [ "x$goal" = "x" ] && break - - result+=" (#$issue:$goal)" done echo "$result" done -- cgit v1.2.3