Lines Matching refs:bug
494 def _anchor_summary(self, bug): argument
505 if bug.search_marker() is None:
506 return bug.summary()
508 return '%s\n\n%s%s\n' % (bug.summary(), self._SEARCH_MARKER,
509 bug.search_marker())
512 def _create_bug_report(self, bug, bug_template={}, sheriffs=[]): argument
527 anchored_summary = self._anchor_summary(bug)
529 issue = self._format_issue_options(bug_template, title=bug.title(),
530 description=anchored_summary, labels=bug.labels,
531 status='Untriaged', owner=bug.owner, cc=bug.cc,
541 'bug tracker', bug.title(), anchored_summary,
802 def report(self, bug, bug_template={}, ignore_duplicate=False): argument
825 logging.error("Can't file %s", bug.title())
828 project_label = self._get_project_label_from_title(bug.title())
832 issue = self._dedupe_issue(bug.search_marker())
845 bug.search_marker())
850 comment = '%s\n\n%s' % (bug.title(), self._anchor_summary(bug))
862 if bug.lab_error and bug.suite == 'bvt':
867 elif bug.suite == 'bvt':
874 bug_id = self._create_bug_report(bug, bug_template, sheriffs)
891 bug = Bug(*args, **kwargs)
893 return reporter.report(bug)[0]
896 def send_email(bug, bug_template): argument
904 to_set = set(bug.cc) if bug.cc else set()
905 if bug.owner:
906 to_set.add(bug.owner)
914 recipients, bug.title(), bug.summary(), retry=False,