Skip to content

Commit ab098bb

Browse files
committed
[CCP] Automatically commit for clean cherry picks
There's no additional work to do when a cherry-pick is clean. Automatically commit the cherry-pick when that happens.
1 parent 12bb077 commit ab098bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ciq-cherry-pick.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@
6363

6464
with open(MERGE_MSG, "w") as file:
6565
file.writelines(new_msg)
66+
67+
if git_res.returncode == 0:
68+
subprocess.run(['git', 'commit', '-F', MERGE_MSG])

0 commit comments

Comments
 (0)