Skip to content

Commit 247bd78

Browse files
[action] Fix PR pre-cherry-pick action wrong author issue. (#12339)
1 parent fc99265 commit 247bd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr_cherrypick_prestep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
pr_url=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request._links.html.href")
3434
repository=$(echo $GITHUB_CONTEXT | jq -r ".repository")
3535
labels=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request.labels[].name")
36-
author=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request.base.user.login")
36+
author=$(echo $GITHUB_CONTEXT | jq -r ".event.pull_request.user.login")
3737
branches=$(git branch -a --list 'origin/20????' | awk -F/ '{print$3}' | grep -E "202[0-9]{3}")
3838
if [[ $(echo $GITHUB_CONTEXT | jq -r ".event.action") == "labeled" ]];then
3939
labels=$(echo $GITHUB_CONTEXT | jq -r ".event.label.name")

0 commit comments

Comments
 (0)