Skip to content

Commit 61aff50

Browse files
authored
use --force to bypass
1 parent 2e83292 commit 61aff50

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

easybuild/tools/github.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,8 +1125,13 @@ def _easyconfigs_pr_common(paths, ecs, start_branch=None, pr_branch=None, start_
11251125
# figure out commit message to use
11261126
if commit_msg:
11271127
if pr_target_repo == GITHUB_EASYCONFIGS_REPO and all(file_info['new']) and not paths['files_to_delete']:
1128-
raise EasyBuildError("A PR commit msg (--pr-commit-msg) should not be used for the easyconfigs repo when "
1129-
"adding new files. The PR title will be automatically generated.")
1128+
msg = "When only adding new easyconfigs usually a PR commit msg (--pr-commit-msg) should not be used, as "
1129+
msg += "the PR title will be automatically generated."
1130+
if build_option('force'):
1131+
print_msg(msg)
1132+
print_msg("Using the specified --pr-commit-msg As the force build option was specified.")
1133+
else:
1134+
raise EasyBuildError(msg)
11301135
cnt = len(file_info['paths_in_repo'])
11311136
_log.debug("Using specified commit message for all %d new/modified files at once: %s", cnt, commit_msg)
11321137
elif pr_target_repo == GITHUB_EASYCONFIGS_REPO and all(file_info['new']) and not paths['files_to_delete']:

0 commit comments

Comments
 (0)