Skip to content

Fix JIRA service - add api_url to mandatory attributes #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/gl_objects/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
fork = gl.project_forks.create({}, project_id=1)
# or
fork = project.forks.create({})

# fork to a specific namespace
fork = gl.project_forks.create({'namespace': 'myteam'}, project_id=1)
# end fork

# forkrelation
Expand Down
3 changes: 2 additions & 1 deletion gitlab/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,7 @@ class ProjectFork(GitlabObject):
canList = False
canGet = False
requiredUrlAttrs = ['project_id']
optionalCreateAttrs = ['namespace']


class ProjectForkManager(BaseManager):
Expand Down Expand Up @@ -1787,7 +1788,7 @@ class ProjectService(GitlabObject):
'irker': (('recipients', ), ('default_irc_uri', 'server_port',
'server_host', 'colorize_messages')),
'jira': (('new_issue_url', 'project_url', 'issues_url'),
('description', 'username', 'password')),
('api_url', 'description', 'username', 'password')),
'pivotaltracker': (('token', ), tuple()),
'pushover': (('api_key', 'user_key', 'priority'), ('device', 'sound')),
'redmine': (('new_issue_url', 'project_url', 'issues_url'),
Expand Down