diff --git a/runbot/models/build.py b/runbot/models/build.py index 726933cb..6815e8ca 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -1263,7 +1263,7 @@ class BuildResult(models.Model): target_url = trigger.ci_url or "%s/runbot/build/%s" % (self.get_base_url(), build.id) for build_commit in self.params_id.commit_link_ids: commit = build_commit.commit_id - if 'base_' not in build_commit.match_type and commit.repo_id in trigger.repo_ids: + if 'base_' not in build_commit.match_type and (trigger.ci_send_all or (commit.repo_id in trigger.repo_ids)): commit._github_status(build, trigger.ci_context, state, target_url, desc) def _parse_config(self): diff --git a/runbot/models/repo.py b/runbot/models/repo.py index d85a8e98..2f68d7eb 100644 --- a/runbot/models/repo.py +++ b/runbot/models/repo.py @@ -85,6 +85,7 @@ class Trigger(models.Model): upgrade_step_id = fields.Many2one('runbot.build.config.step', compute="_compute_upgrade_step_id", store=True) ci_url = fields.Char("CI url") ci_description = fields.Char("CI description") + ci_send_all = fields.Boolean('Send ci on dependencies', default=False) has_stats = fields.Boolean('Has a make_stats config step', compute="_compute_has_stats", store=True) team_ids = fields.Many2many('runbot.team', string="Runbot Teams", help="Teams responsible of this trigger, mainly usefull for nightly") diff --git a/runbot/views/repo_views.xml b/runbot/views/repo_views.xml index fefd042e..7807a0cc 100644 --- a/runbot/views/repo_views.xml +++ b/runbot/views/repo_views.xml @@ -70,6 +70,7 @@ +