From a84eb0e27d25706ca62ff0d7f5295af20bdc4eca Mon Sep 17 00:00:00 2001 From: Lan Date: Wed, 28 Jun 2023 14:29:11 +0800 Subject: [PATCH] Ignore PRs with label kind/cherry-pick when --all is used (#5163) These PRs start with "Automated cherry pick of" are already included by default with original PRs. They should be ignored when `--all` is passed. Signed-off-by: Lan Luo --- hack/release/prepare-changelog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/release/prepare-changelog.sh b/hack/release/prepare-changelog.sh index 929856c98c6..9a260227993 100755 --- a/hack/release/prepare-changelog.sh +++ b/hack/release/prepare-changelog.sh @@ -158,7 +158,7 @@ if [ "$all" == "yes" ]; then # There may be some changes not being labelled properly, release manager needs to move them to appropriate sections manually. echo "### Unlabelled (Remove this section eventually)" echo "" - gh pr list -s merged -B ${branch} --search "merged:>${release_start_time} sort:updated-desc -label:action/release-note $author_filter" -L $limit --json number,title,author,labels --template \ + gh pr list -s merged -B ${branch} --search "merged:>${release_start_time} sort:updated-desc -label:action/release-note -label:kind/cherry-pick $author_filter" -L $limit --json number,title,author,labels --template \ '{{range .}}{{tablerow (printf "- %s. ([#%v](https://github.com/antrea-io/antrea/pull/%v), [@%s])" .title .number .number .author.login)}}{{end}}' fi