Ejemplo n.º 1
0
 def run(self, state):
     comment_text = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"])
     bug_id = state["patch"]["bug_id"]
     if bug_id:
         log("Updating bug %s" % bug_id)
         if self._options.close_bug:
             self._tool.bugs.close_bug_as_fixed(bug_id, comment_text)
         else:
             # FIXME: We should a smart way to figure out if the patch is attached
             # to the bug, and if so obsolete it.
             self._tool.bugs.post_comment_to_bug(bug_id, comment_text)
     else:
         log(comment_text)
         log("No bug id provided.")
Ejemplo n.º 2
0
 def run(self, state):
     comment_text = bug_comment_from_commit_text(self._tool.scm(),
                                                 state["commit_text"])
     bug_id = state["patch"]["bug_id"]
     if bug_id:
         log("Updating bug %s" % bug_id)
         if self._options.close_bug:
             self._tool.bugs.close_bug_as_fixed(bug_id, comment_text)
         else:
             # FIXME: We should a smart way to figure out if the patch is attached
             # to the bug, and if so obsolete it.
             self._tool.bugs.post_comment_to_bug(bug_id, comment_text)
     else:
         log(comment_text)
         log("No bug id provided.")
Ejemplo n.º 3
0
 def run(self, state):
     comment_text = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"])
     self._tool.bugs.clear_attachment_flags(state["patch"]["id"], comment_text)
Ejemplo n.º 4
0
 def run(self, state):
     comment_text = bug_comment_from_commit_text(self._tool.scm(),
                                                 state["commit_text"])
     self._tool.bugs.clear_attachment_flags(state["patch"]["id"],
                                            comment_text)