diff options
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/__init__.py | 2 | ||||
-rw-r--r-- | gitlab/objects.py | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 30aad85..f819186 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -68,6 +68,7 @@ class Gitlab(object): user_emails (UserEmailManager): Manager for GitLab users' emails. user_keys (UserKeyManager): Manager for GitLab users' SSH keys. users (UserManager): Manager for GitLab users + group_issues (GroupIssueManager): Manager for GitLab group issues group_projects (GroupProjectManager): Manager for GitLab group projects group_members (GroupMemberManager): Manager for GitLab group members groups (GroupManager): Manager for GitLab members @@ -148,6 +149,7 @@ class Gitlab(object): self.user_emails = UserEmailManager(self) self.user_keys = UserKeyManager(self) self.users = UserManager(self) + self.group_issues = GroupIssueManager(self) self.group_projects = GroupProjectManager(self) self.group_members = GroupMemberManager(self) self.groups = GroupManager(self) diff --git a/gitlab/objects.py b/gitlab/objects.py index ea9f9ab..315abde 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -679,6 +679,20 @@ class ApplicationSettingsManager(BaseManager): obj_cls = ApplicationSettings +class GroupIssue(GitlabObject): + _url = '/groups/%(group_id)s/issues' + canGet = 'from_list' + canCreate = False + canUpdate = False + canDelete = False + requiredUrlAttrs = ['group_id'] + optionalListAttrs = ['state', 'labels', 'milestone', 'order_by', 'sort'] + + +class GroupIssueManager(BaseManager): + obj_cls = GroupIssue + + class GroupMember(GitlabObject): _url = '/groups/%(group_id)s/members' canGet = 'from_list' @@ -718,7 +732,8 @@ class Group(GitlabObject): optionalUpdateAttrs = ['name', 'path', 'description', 'visibility_level'] shortPrintAttr = 'name' managers = [('members', GroupMemberManager, [('group_id', 'id')]), - ('projects', GroupProjectManager, [('group_id', 'id')])] + ('projects', GroupProjectManager, [('group_id', 'id')]), + ('issues', GroupIssueManager, [('group_id', 'id')])] GUEST_ACCESS = 10 REPORTER_ACCESS = 20 |