From 7d6f3d0cd5890c8a71704419e78178ca887357fe Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Thu, 21 Sep 2017 21:45:29 +0200 Subject: [PATCH] CommitStatus: `sha` is parent attribute Fixes #316 --- gitlab/v4/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 349fe162a..0387815c7 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -735,7 +735,7 @@ class ProjectCommitStatusManager(GetFromListMixin, CreateMixin, RESTManager): '/statuses') _obj_cls = ProjectCommitStatus _from_parent_attrs = {'project_id': 'project_id', 'commit_id': 'id'} - _create_attrs = (('state', 'sha'), + _create_attrs = (('state', ), ('description', 'name', 'context', 'ref', 'target_url', 'coverage'))