Skip to content

Instantly share code, notes, and snippets.

@code-yeongyu
Last active July 6, 2022 04:20
Show Gist options
  • Save code-yeongyu/1112cfb0b9f59694755dcd409d024e72 to your computer and use it in GitHub Desktop.
Save code-yeongyu/1112cfb0b9f59694755dcd409d024e72 to your computer and use it in GitHub Desktop.
loops until pr got merged, local github pr automerge
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