Skip to content

Commit

Permalink
fix(apps/prod/tekton/configs/tasks/release): avoid label be removed b…
Browse files Browse the repository at this point in the history
…y prow plugins

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Oct 15, 2024
1 parent a49ef79 commit 1ac05f0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ spec:
fi
gh pr create -B "$base_branch" -H "$head_branch" -t "$commit_msg" -F pr_body.txt $label_options
# solve the problem that the prow plugin will remove the approved label.
sleep 10
pr_url=$(gh pr list --repo $(params.git-url) --base "$base_branch" --head "$head_branch" --json url --jq .[].url | head -1)
gh pr edit --add-label lgtm --add-label approved --add-label cherry-pick-approved ${pr_url}
workspaces:
- name: github
description: Must includes a key `token`
Expand Down

0 comments on commit 1ac05f0

Please sign in to comment.