Completed
Push — master ( b80751...9b4ac9 )
by Manas
02:08
created

CommentJiraIssueAction.run()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
1
from lib.base import BaseJiraAction
2
from lib.formatters import to_comment_dict
3
4
__all__ = [
5
    'CommentJiraIssueAction'
6
]
7
8
9
class CommentJiraIssueAction(BaseJiraAction):
10
11
    def run(self, issue_key, comment_text):
12
        comment = self._client.add_comment(issue_key, comment_text)
13
        result = to_comment_dict(comment)
14
        return result
15