mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
ci: adjust handle_potential_conflicts.py such that if mergable_state is dirty (conflicting with base branch), don't check against it. (#4671)
This commit is contained in:
parent
8087038951
commit
ac1346278c
@ -32,8 +32,14 @@ def main():
|
||||
this_pr_num = conflict['number']
|
||||
print(this_pr_num)
|
||||
|
||||
r = requests.get(f'https://api.github.com/repos/dashpay/dash/pulls/{conflict["number"]}')
|
||||
r = requests.get(f'https://api.github.com/repos/dashpay/dash/pulls/{this_pr_num}')
|
||||
print(r.json()['head']['label'])
|
||||
|
||||
mergable_state = r.json()['mergeable_state']
|
||||
if mergable_state == "dirty":
|
||||
print(f'{this_pr_num} needs rebase. Skipping conflict check')
|
||||
continue
|
||||
|
||||
r = requests.get(f'https://github.com/dashpay/dash/branches/pre_mergeable/{our_pr_label}...{get_label(this_pr_num)}')
|
||||
if "These branches can be automatically merged." in r.text:
|
||||
good.append(this_pr_num)
|
||||
|
Loading…
Reference in New Issue
Block a user