mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot: send status on dependencies
This commit is contained in:
parent
6fe80265ba
commit
18f289501a
@ -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):
|
||||
|
@ -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")
|
||||
|
@ -70,6 +70,7 @@
|
||||
<field name="ci_context"/>
|
||||
<field name="ci_url"/>
|
||||
<field name="ci_description"/>
|
||||
<field name="ci_send_all"/>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Managing Team (nightly failure, manual start, ...)"></group>
|
||||
|
Loading…
Reference in New Issue
Block a user