import re
from ..command import Command
from ..jira import Jira
-from ..tools import parseBranch
+from ..tools import parseBranch, getText
class TrackerCommand(Command):
'metavar': 'labels',
'nargs': '+',
}
+ ),
+ (
+ ['--comment'],
+ {
+ 'action': 'store_true',
+ 'help': 'add a comment to the issue',
+ }
)
]
_description = 'Interact with Moodle tracker'
self.argumentError('The label \'triaging_in_progress\' cannot be removed using MDK')
self.Jira.removeLabels(self.mdl, args.removelabels)
+ if args.comment:
+ comment = getText()
+ self.Jira.addComment(self.mdl, comment)
+
self.info(args)
def info(self, args):