Last active
July 6, 2022 04:20
-
-
Save code-yeongyu/1112cfb0b9f59694755dcd409d024e72 to your computer and use it in GitHub Desktop.
loops until pr got merged, local github pr automerge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import system | |
from time import sleep | |
from sys import argv | |
try: | |
pr_id = argv[1] | |
except: | |
pr_id = '' | |
while True: | |
result = system(f"gh pr merge -md {pr_id}") | |
if result == 0: | |
exit() | |
sleep(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment