Skip to content
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

Error while creating commit status via v4 #316

Closed
ViachaslauKabak opened this issue Sep 20, 2017 · 0 comments
Closed

Error while creating commit status via v4 #316

ViachaslauKabak opened this issue Sep 20, 2017 · 0 comments
Labels

Comments

@ViachaslauKabak
Copy link

gl3 = gitlab.Gitlab('http://srvName', email='Jenkins_git', password='Passwd', api_version='4')
gl3.auth()
pr3 = gl3.projects.get(1)
commit = pr3.commits.get('1209b52497e3c0e15b004b1b46c4d727f4cb379f')
commit.statuses.create({'state':'failed','name':'Tests','target_url':'http://jenkinsurl/'})

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/gitlab/v4/objects.py", line 761, in create
return CreateMixin.create(self, data, path=computed_path, **kwargs)
File "/usr/lib/python2.7/site-packages/gitlab/exceptions.py", line 231, in wrapped_f
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/gitlab/mixins.py", line 165, in create
self._check_missing_create_attrs(data)
File "/usr/lib/python2.7/site-packages/gitlab/mixins.py", line 137, in _check_missing_create_attrs
raise AttributeError("Missing attributes: %s" % ", ".join(missing))
AttributeError: Missing attributes: sha

@gpocentek gpocentek added the bug label Sep 21, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants