Skip to content

Commit f170f70

Browse files
committed
add more controls on label checks
1 parent 4f2b72a commit f170f70

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

github-ci/src/biocontainersci/ci.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ def check_labels(self, f:dict, labels:dict):
387387

388388
send_status(self.config, software, status, label_errors)
389389

390+
if not status and label_errors:
391+
send_github_pr_comment(self.config, ', '.join(label_errors))
392+
390393
# Warnings only
391394
try:
392395
if 'about.summary' in labels and len(labels['about.summary']) > 200:

github-ci/src/biocontainersci/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def github(config):
101101

102102
def bioworkflow(config, f):
103103
ci = CI(config)
104-
ci.workflow(f)
104+
return ci.workflow(f)
105105

106106
@click.command()
107107
@click.option('--file', help='Dockerfile')
@@ -154,7 +154,9 @@ def run(file, commit, dry):
154154
sys.exit(1)
155155

156156
for f in files:
157-
bioworkflow(config, f)
157+
status = bioworkflow(config, f)
158+
if not status:
159+
sys.exit(1)
158160

159161
if __name__ == '__main__':
160162
run()

0 commit comments

Comments
 (0)