Completed
Pull Request — master (#543)
by
unknown
02:35
created

GetRepoDetails   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
1
from lib.action import TravisCI
2
3
4
class GetRepoDetails(TravisCI):
5
    def run(self, repo_id):
6
        """
7
        Returns Details of given Repository
8
        """
9
        path = '/repos/' + str(repo_id)
10
        response = self._perform_request(path, method="GET")
11
        data = response.json()
12
        return data
13