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

CommentJiraIssueAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %
Metric Value
wmc 1
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 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