diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-07-24 11:03:57 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-07-24 11:03:57 +0200 |
commit | f0fbefe9f8eef4dd04afd8e98d7eed454ce75590 (patch) | |
tree | 787838fe918b3c423ac26d63206c3e2c11cf1d2c /gitlab/objects.py | |
parent | 741896d5af682de01101ed4e7713b1daecaf7843 (diff) | |
download | gitlab-f0fbefe9f8eef4dd04afd8e98d7eed454ce75590.tar.gz |
Improve commit statuses and comments
Fixes #92
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 9bfb6ec..ea9f9ab 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -943,7 +943,8 @@ class ProjectBuildManager(BaseManager): class ProjectCommitStatus(GitlabObject): - _url = '/projects/%(project_id)s/statuses/%(commit_id)s' + _url = '/projects/%(project_id)s/repository/commits/%(commit_id)s/statuses' + _create_url = '/projects/%(project_id)s/statuses/%(commit_id)s' canUpdate = False canDelete = False requiredUrlAttrs = ['project_id', 'commit_id'] @@ -979,6 +980,8 @@ class ProjectCommit(GitlabObject): requiredUrlAttrs = ['project_id'] shortPrintAttr = 'title' managers = [('comments', ProjectCommitCommentManager, + [('project_id', 'project_id'), ('commit_id', 'id')]), + ('statuses', ProjectCommitStatusManager, [('project_id', 'project_id'), ('commit_id', 'id')])] def diff(self, **kwargs): @@ -1623,7 +1626,10 @@ class Project(GitlabObject): ('branches', ProjectBranchManager, [('project_id', 'id')]), ('builds', ProjectBuildManager, [('project_id', 'id')]), ('commits', ProjectCommitManager, [('project_id', 'id')]), - ('commitstatuses', ProjectCommitStatusManager, [('project_id', 'id')]), + ('commit_comments', ProjectCommitCommentManager, + [('project_id', 'id')]), + ('commit_statuses', ProjectCommitStatusManager, + [('project_id', 'id')]), ('events', ProjectEventManager, [('project_id', 'id')]), ('files', ProjectFileManager, [('project_id', 'id')]), ('forks', ProjectForkManager, [('project_id', 'id')]), |