[action] Keep 'request for xxx branch' label when finished auto-cherry-pick. (#13107)

Why I did it
To keep 'Request for xxx branch' label when finished auto-cherry-pick.

How I did it
Change logic in post cherry pick action.

How to verify it
This commit is contained in:
Liu Shilong 2022-12-20 16:41:04 +08:00 committed by GitHub
parent 25d9ebbaf4
commit 6681cad1c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,4 +46,4 @@ jobs:
exit 1 exit 1
fi fi
gh pr edit $origin_pr_url --add-label "Included in ${base_ref} Branch" gh pr edit $origin_pr_url --add-label "Included in ${base_ref} Branch"
gh pr edit $origin_pr_url --remove-label "Created PR to ${base_ref} Branch,Request for ${base_ref} Branch,Approved for ${base_ref} Branch" gh pr edit $origin_pr_url --remove-label "Created PR to ${base_ref} Branch,Approved for ${base_ref} Branch"