예제 #1
0
 def _ensure_bug_url(self, state):
     if not state.get("bug_id"):
         return
     bug_id = state.get("bug_id")
     changelogs = self.cached_lookup(state, "changelogs")
     for changelog_path in changelogs:
         changelog = ChangeLog(changelog_path)
         if not changelog.latest_entry().bug_id():
             changelog.set_short_description_and_bug_url(
                 self.cached_lookup(state, "bug_title"),
                 self._tool.bugs.bug_url_for_bug_id(bug_id))
예제 #2
0
 def _ensure_bug_url(self, state):
     if not state.get("bug_id"):
         return
     bug_id = state.get("bug_id")
     changelogs = self.cached_lookup(state, "changelogs")
     for changelog_path in changelogs:
         changelog = ChangeLog(changelog_path)
         if not changelog.latest_entry().bug_id():
             changelog.set_short_description_and_bug_url(
                 self.cached_lookup(state, "bug_title"),
                 self._tool.bugs.bug_url_for_bug_id(bug_id))
예제 #3
0
 def _ensure_bug_url(self, state):
     if not state.get("bug_id"):
         return
     bug_id = state.get("bug_id")
     changelogs = self.cached_lookup(state, "changelogs")
     for changelog_path in changelogs:
         changelog = ChangeLog(changelog_path, self._tool.filesystem)
         if not changelog.latest_entry():
             _log.error('Invalid ChangeLog at: {}'.format(changelog_path))
             sys.exit(1)
         if not changelog.latest_entry().bug_id():
             changelog.set_short_description_and_bug_url(
                 self.cached_lookup(state, "bug_title"),
                 self._tool.bugs.bug_url_for_bug_id(bug_id))