Skip to content

Commit

Permalink
[Chore](cherry-pick-tool)Maintain a consistent coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Oct 29, 2024
1 parent 5b46c84 commit a735679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
pip install PyGithub
- name: Check SHA
run: |
expected_sha="a20ac395f474dfb9289e782d08daabb30f0c8f8aa6dbd13ae28507f234a78c06b72bc13babcc43a2bc61c849d27a2d5b05ee5f5d6f6edb601ae15314bee4defc"
expected_sha="80b7c6087f2a3e4f4c7f035a52e8e7b05ce00f27aa5c1bd52179df685c912447f94a96145fd3204a3958d8ed9777de5a5183b120e99e0e95bbca0366d69b0ac0"
calculated_sha=$(sha512sum tools/auto-pick-script.py | awk '{ print $1 }')
if [ "$calculated_sha" != "$expected_sha" ]; then
echo "SHA mismatch! Expected: $expected_sha, but got: $calculated_sha"
Expand Down
2 changes: 1 addition & 1 deletion tools/auto-pick-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
# Create a new PR for the cherry-picked changes
new_pr = repo.create_pull(
title=f"{TARGET_BRANCH}: {pr.title}", # Prefix with branch name
body=pr.body+ "\n Cherry-picked from #"+pr.number, # Keep the original PR body
body=f"PR Body: {pr.body} \n Cherry-picked from #{pr.number}", # Keep the original PR body
head=new_branch_name,
base=TARGET_BRANCH
)
Expand Down

0 comments on commit a735679

Please sign in to comment.