From bf4d348720b51f86c4fe13be5863424dc572ab78 Mon Sep 17 00:00:00 2001 From: Joshua Cannon Date: Wed, 20 Jul 2022 14:58:36 -0500 Subject: [PATCH 1/3] label # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- build-support/bin/cherry_pick.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-support/bin/cherry_pick.sh b/build-support/bin/cherry_pick.sh index f7666322064..a9e3a3af9fc 100755 --- a/build-support/bin/cherry_pick.sh +++ b/build-support/bin/cherry_pick.sh @@ -36,8 +36,10 @@ fi COMMIT=$(gh pr view "$PR_NUM" --json mergeCommit --jq '.mergeCommit.oid') TITLE=$(gh pr view "$PR_NUM" --json title --jq '.title') +CATEGORY_LABEL=$(gh pr view 16239 --json labels --jq '.labels.[] | select(.name|test("category:.")).name') +exit 2 BODY_FILE=$(mktemp "/tmp/github.cherrypick.$PR_NUM.$MILESTONE.XXXXXX") -PR_CREATE_CMD=(gh pr create --base "$MILESTONE" --title "$TITLE (Cherry-pick of #$PR_NUM)" --body-file "$BODY_FILE") +PR_CREATE_CMD=(gh pr create --base "$MILESTONE" --title "$TITLE (Cherry-pick of #$PR_NUM)" --label "$CATEGORY_LABEL" --body-file "$BODY_FILE") BRANCH_NAME="cherry-pick-$PR_NUM-to-$MILESTONE" if [[ -z $COMMIT ]]; then From 1786486e90e8741d4b8f9b0b339e9811bbc359ff Mon Sep 17 00:00:00 2001 From: Joshua Cannon Date: Wed, 20 Jul 2022 15:05:53 -0500 Subject: [PATCH 2/3] labely # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- build-support/bin/cherry_pick.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-support/bin/cherry_pick.sh b/build-support/bin/cherry_pick.sh index a9e3a3af9fc..debd6844cb8 100755 --- a/build-support/bin/cherry_pick.sh +++ b/build-support/bin/cherry_pick.sh @@ -36,7 +36,7 @@ fi COMMIT=$(gh pr view "$PR_NUM" --json mergeCommit --jq '.mergeCommit.oid') TITLE=$(gh pr view "$PR_NUM" --json title --jq '.title') -CATEGORY_LABEL=$(gh pr view 16239 --json labels --jq '.labels.[] | select(.name|test("category:.")).name') +CATEGORY_LABEL=$(gh pr view "$PR_NUM" --json labels --jq '.labels.[] | select(.name|test("category:.")).name') exit 2 BODY_FILE=$(mktemp "/tmp/github.cherrypick.$PR_NUM.$MILESTONE.XXXXXX") PR_CREATE_CMD=(gh pr create --base "$MILESTONE" --title "$TITLE (Cherry-pick of #$PR_NUM)" --label "$CATEGORY_LABEL" --body-file "$BODY_FILE") From f29879bf2350589ac4a3da9a7a8bf20c483afd49 Mon Sep 17 00:00:00 2001 From: Joshua Cannon Date: Wed, 20 Jul 2022 15:06:58 -0500 Subject: [PATCH 3/3] noexit # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- build-support/bin/cherry_pick.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build-support/bin/cherry_pick.sh b/build-support/bin/cherry_pick.sh index debd6844cb8..9ecf3517e19 100755 --- a/build-support/bin/cherry_pick.sh +++ b/build-support/bin/cherry_pick.sh @@ -37,7 +37,6 @@ fi COMMIT=$(gh pr view "$PR_NUM" --json mergeCommit --jq '.mergeCommit.oid') TITLE=$(gh pr view "$PR_NUM" --json title --jq '.title') CATEGORY_LABEL=$(gh pr view "$PR_NUM" --json labels --jq '.labels.[] | select(.name|test("category:.")).name') -exit 2 BODY_FILE=$(mktemp "/tmp/github.cherrypick.$PR_NUM.$MILESTONE.XXXXXX") PR_CREATE_CMD=(gh pr create --base "$MILESTONE" --title "$TITLE (Cherry-pick of #$PR_NUM)" --label "$CATEGORY_LABEL" --body-file "$BODY_FILE") BRANCH_NAME="cherry-pick-$PR_NUM-to-$MILESTONE"