Skip to content

Commit 78ecc14

Browse files
warn about potentially missing patches in --new-pr
1 parent 0cefc00 commit 78ecc14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

easybuild/tools/github.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,11 @@ def new_pr(paths, ecs, title=None, descr=None, commit_msg=None):
17511751
res = new_branch_github(paths, ecs, commit_msg=commit_msg)
17521752
file_info, deleted_paths, _, branch_name, diff_stat, pr_target_repo = res
17531753

1754+
for ec in file_info['ecs']:
1755+
for patch in ec.asdict()['patches']:
1756+
if patch not in paths['patch_files']:
1757+
print_warning("%s, referenced by %s, is not included in this PR" % (patch, ec.filename()))
1758+
17541759
new_pr_from_branch(branch_name, title=title, descr=descr, pr_target_repo=pr_target_repo,
17551760
pr_metadata=(file_info, deleted_paths, diff_stat), commit_msg=commit_msg)
17561761

0 commit comments

Comments
 (0)