コード例 #1
0
ファイル: commands.py プロジェクト: phaethon/Idli
 def run(self):
     message = self.args.message
     if (message is None):
         message, exit_status = util.get_string_from_editor("Please resolve this issue.", prefix='idli-assign-')
         if (exit_status != 0):
             raise idli.IdliException("Operation cancelled.")
     issue = self.backend.assign_issue(self.args.id, user=self.args.user, message = message)
     issue, comments = self.backend.get_issue(self.args.id)
     print("Issue " + self.args.id + " assigned to " + str(self.args.user))
     print()
     util.print_issue(issue, comments)
コード例 #2
0
ファイル: commands.py プロジェクト: phaethon/Idli
 def run(self):
     message = self.args.message
     message = self.args.message
     if (message is None):
         message, exit_status = util.get_string_from_editor("Issue resolved.\n# More details go here.", prefix='idli-resolve-')
         if (exit_status != 0):
             raise idli.IdliException("Operation cancelled.")
     issue = self.backend.resolve_issue(self.args.id, status = self.args.state, message = message)
     issue, comments = self.backend.get_issue(self.args.id)
     print("Issue state changed to " + str(self.args.state))
     print()
     util.print_issue(issue, comments)
コード例 #3
0
ファイル: commands.py プロジェクト: phaethon/Idli
 def run(self):
     issue = self.backend.get_issue(self.args.id) # Will raise error message if issue cannot be found
     message = self.args.body
     if (message is None):
         message, exit_status = util.get_string_from_editor("# Type your comment here.", prefix='idli-comment-')
         if (exit_status != 0):
             raise idli.IdliException("Operation cancelled.")
     self.backend.add_comment(self.args.id, message)
     print("Comment added!")
     print()
     issue, comments = self.backend.get_issue(self.args.id)
     util.print_issue(issue, comments)