Completed
Pull Request — master (#427)
by Edward
02:15
created

ListIssuesAction.run()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
dl 0
loc 8
rs 9.4285
1
from lib.action import BitBucketAction
2
3
4
class ListIssuesAction(BitBucketAction):
5
    def run(self, repo):
6
        """
7
        List Issues of Repository with title
8
        of the issue its status and reporter
9
        """
10
        bb = self._get_client(repo=repo)
11
        success, result = bb.issue.all()
12
        return result
13