{"action":"created","comment":{"url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/comments/191041345","pull_request_review_id":123549112,"id":191041345,"diff_hunk":"@@ -1250,6 +1250,17 @@ def enable(self, key_id, **kwargs):\n         self.gitlab.http_post(path, **kwargs)\n \n \n+class ProjectBadge(SaveMixin, ObjectDeleteMixin, RESTObject):\n+    pass\n+\n+\n+class ProjectBadgeManager(CRUDMixin, RESTManager):\n+    _path = '/projects/%(project_id)s/badges'\n+    _obj_cls = ProjectBadge\n+    _from_parent_attrs = {'project_id': 'id'}\n+    _create_attrs = (('link_url', 'image_url'), tuple())","path":"gitlab/v4/objects.py","position":12,"original_position":12,"commit_id":"802b2d4d101af6012f0996d59caec1cabd2dc0ba","original_commit_id":"802b2d4d101af6012f0996d59caec1cabd2dc0ba","user":{"login":"gpocentek","id":1687888,"avatar_url":"https://avatars2.githubusercontent.com/u/1687888?v=4","gravatar_id":"","url":"https://api.github.com/users/gpocentek","html_url":"https://github.com/gpocentek","followers_url":"https://api.github.com/users/gpocentek/followers","following_url":"https://api.github.com/users/gpocentek/following{/other_user}","gists_url":"https://api.github.com/users/gpocentek/gists{/gist_id}","starred_url":"https://api.github.com/users/gpocentek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpocentek/subscriptions","organizations_url":"https://api.github.com/users/gpocentek/orgs","repos_url":"https://api.github.com/users/gpocentek/repos","events_url":"https://api.github.com/users/gpocentek/events{/privacy}","received_events_url":"https://api.github.com/users/gpocentek/received_events","type":"User","site_admin":false},"body":"It is also possible to update the badge objects, so could you define the `_update_attrs` variable as well?","created_at":"2018-05-26T06:24:17Z","updated_at":"2018-05-26T06:26:44Z","html_url":"https://github.com/python-gitlab/python-gitlab/pull/507#discussion_r191041345","pull_request_url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/comments/191041345"},"html":{"href":"https://github.com/python-gitlab/python-gitlab/pull/507#discussion_r191041345"},"pull_request":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507"}}},"pull_request":{"url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507","id":189961144,"html_url":"https://github.com/python-gitlab/python-gitlab/pull/507","diff_url":"https://github.com/python-gitlab/python-gitlab/pull/507.diff","patch_url":"https://github.com/python-gitlab/python-gitlab/pull/507.patch","issue_url":"https://api.github.com/repos/python-gitlab/python-gitlab/issues/507","number":507,"state":"open","locked":false,"title":"Add support for Project badges","user":{"login":"Miouge1","id":13647208,"avatar_url":"https://avatars0.githubusercontent.com/u/13647208?v=4","gravatar_id":"","url":"https://api.github.com/users/Miouge1","html_url":"https://github.com/Miouge1","followers_url":"https://api.github.com/users/Miouge1/followers","following_url":"https://api.github.com/users/Miouge1/following{/other_user}","gists_url":"https://api.github.com/users/Miouge1/gists{/gist_id}","starred_url":"https://api.github.com/users/Miouge1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miouge1/subscriptions","organizations_url":"https://api.github.com/users/Miouge1/orgs","repos_url":"https://api.github.com/users/Miouge1/repos","events_url":"https://api.github.com/users/Miouge1/events{/privacy}","received_events_url":"https://api.github.com/users/Miouge1/received_events","type":"User","site_admin":false},"body":"Add support for project badges https://docs.gitlab.com/ee/api/project_badges.html","created_at":"2018-05-23T12:41:26Z","updated_at":"2018-05-26T06:26:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47aa5a185a68faa6f776afc1a99aac70fe839c18","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507/commits","review_comments_url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507/comments","review_comment_url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-gitlab/python-gitlab/issues/507/comments","statuses_url":"https://api.github.com/repos/python-gitlab/python-gitlab/statuses/802b2d4d101af6012f0996d59caec1cabd2dc0ba","head":{"label":"Miouge1:badges","ref":"badges","sha":"802b2d4d101af6012f0996d59caec1cabd2dc0ba","user":{"login":"Miouge1","id":13647208,"avatar_url":"https://avatars0.githubusercontent.com/u/13647208?v=4","gravatar_id":"","url":"https://api.github.com/users/Miouge1","html_url":"https://github.com/Miouge1","followers_url":"https://api.github.com/users/Miouge1/followers","following_url":"https://api.github.com/users/Miouge1/following{/other_user}","gists_url":"https://api.github.com/users/Miouge1/gists{/gist_id}","starred_url":"https://api.github.com/users/Miouge1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miouge1/subscriptions","organizations_url":"https://api.github.com/users/Miouge1/orgs","repos_url":"https://api.github.com/users/Miouge1/repos","events_url":"https://api.github.com/users/Miouge1/events{/privacy}","received_events_url":"https://api.github.com/users/Miouge1/received_events","type":"User","site_admin":false},"repo":{"id":120871318,"name":"python-gitlab","full_name":"Miouge1/python-gitlab","owner":{"login":"Miouge1","id":13647208,"avatar_url":"https://avatars0.githubusercontent.com/u/13647208?v=4","gravatar_id":"","url":"https://api.github.com/users/Miouge1","html_url":"https://github.com/Miouge1","followers_url":"https://api.github.com/users/Miouge1/followers","following_url":"https://api.github.com/users/Miouge1/following{/other_user}","gists_url":"https://api.github.com/users/Miouge1/gists{/gist_id}","starred_url":"https://api.github.com/users/Miouge1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miouge1/subscriptions","organizations_url":"https://api.github.com/users/Miouge1/orgs","repos_url":"https://api.github.com/users/Miouge1/repos","events_url":"https://api.github.com/users/Miouge1/events{/privacy}","received_events_url":"https://api.github.com/users/Miouge1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Miouge1/python-gitlab","description":"Python wrapper for the GitLab API","fork":true,"url":"https://api.github.com/repos/Miouge1/python-gitlab","forks_url":"https://api.github.com/repos/Miouge1/python-gitlab/forks","keys_url":"https://api.github.com/repos/Miouge1/python-gitlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Miouge1/python-gitlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Miouge1/python-gitlab/teams","hooks_url":"https://api.github.com/repos/Miouge1/python-gitlab/hooks","issue_events_url":"https://api.github.com/repos/Miouge1/python-gitlab/issues/events{/number}","events_url":"https://api.github.com/repos/Miouge1/python-gitlab/events","assignees_url":"https://api.github.com/repos/Miouge1/python-gitlab/assignees{/user}","branches_url":"https://api.github.com/repos/Miouge1/python-gitlab/branches{/branch}","tags_url":"https://api.github.com/repos/Miouge1/python-gitlab/tags","blobs_url":"https://api.github.com/repos/Miouge1/python-gitlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Miouge1/python-gitlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Miouge1/python-gitlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Miouge1/python-gitlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Miouge1/python-gitlab/statuses/{sha}","languages_url":"https://api.github.com/repos/Miouge1/python-gitlab/languages","stargazers_url":"https://api.github.com/repos/Miouge1/python-gitlab/stargazers","contributors_url":"https://api.github.com/repos/Miouge1/python-gitlab/contributors","subscribers_url":"https://api.github.com/repos/Miouge1/python-gitlab/subscribers","subscription_url":"https://api.github.com/repos/Miouge1/python-gitlab/subscription","commits_url":"https://api.github.com/repos/Miouge1/python-gitlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Miouge1/python-gitlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Miouge1/python-gitlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Miouge1/python-gitlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Miouge1/python-gitlab/contents/{+path}","compare_url":"https://api.github.com/repos/Miouge1/python-gitlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Miouge1/python-gitlab/merges","archive_url":"https://api.github.com/repos/Miouge1/python-gitlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Miouge1/python-gitlab/downloads","issues_url":"https://api.github.com/repos/Miouge1/python-gitlab/issues{/number}","pulls_url":"https://api.github.com/repos/Miouge1/python-gitlab/pulls{/number}","milestones_url":"https://api.github.com/repos/Miouge1/python-gitlab/milestones{/number}","notifications_url":"https://api.github.com/repos/Miouge1/python-gitlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Miouge1/python-gitlab/labels{/name}","releases_url":"https://api.github.com/repos/Miouge1/python-gitlab/releases{/id}","deployments_url":"https://api.github.com/repos/Miouge1/python-gitlab/deployments","created_at":"2018-02-09T07:16:46Z","updated_at":"2018-02-09T07:16:48Z","pushed_at":"2018-05-23T13:06:14Z","git_url":"git://github.com/Miouge1/python-gitlab.git","ssh_url":"git@github.com:Miouge1/python-gitlab.git","clone_url":"https://github.com/Miouge1/python-gitlab.git","svn_url":"https://github.com/Miouge1/python-gitlab","homepage":null,"size":1367,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python-gitlab:master","ref":"master","sha":"97c8619c5b07abc714417d6e5be2f553270b54a6","user":{"login":"python-gitlab","id":28886265,"avatar_url":"https://avatars1.githubusercontent.com/u/28886265?v=4","gravatar_id":"","url":"https://api.github.com/users/python-gitlab","html_url":"https://github.com/python-gitlab","followers_url":"https://api.github.com/users/python-gitlab/followers","following_url":"https://api.github.com/users/python-gitlab/following{/other_user}","gists_url":"https://api.github.com/users/python-gitlab/gists{/gist_id}","starred_url":"https://api.github.com/users/python-gitlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-gitlab/subscriptions","organizations_url":"https://api.github.com/users/python-gitlab/orgs","repos_url":"https://api.github.com/users/python-gitlab/repos","events_url":"https://api.github.com/users/python-gitlab/events{/privacy}","received_events_url":"https://api.github.com/users/python-gitlab/received_events","type":"Organization","site_admin":false},"repo":{"id":8077625,"name":"python-gitlab","full_name":"python-gitlab/python-gitlab","owner":{"login":"python-gitlab","id":28886265,"avatar_url":"https://avatars1.githubusercontent.com/u/28886265?v=4","gravatar_id":"","url":"https://api.github.com/users/python-gitlab","html_url":"https://github.com/python-gitlab","followers_url":"https://api.github.com/users/python-gitlab/followers","following_url":"https://api.github.com/users/python-gitlab/following{/other_user}","gists_url":"https://api.github.com/users/python-gitlab/gists{/gist_id}","starred_url":"https://api.github.com/users/python-gitlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-gitlab/subscriptions","organizations_url":"https://api.github.com/users/python-gitlab/orgs","repos_url":"https://api.github.com/users/python-gitlab/repos","events_url":"https://api.github.com/users/python-gitlab/events{/privacy}","received_events_url":"https://api.github.com/users/python-gitlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-gitlab/python-gitlab","description":"Python wrapper for the GitLab API","fork":false,"url":"https://api.github.com/repos/python-gitlab/python-gitlab","forks_url":"https://api.github.com/repos/python-gitlab/python-gitlab/forks","keys_url":"https://api.github.com/repos/python-gitlab/python-gitlab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-gitlab/python-gitlab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-gitlab/python-gitlab/teams","hooks_url":"https://api.github.com/repos/python-gitlab/python-gitlab/hooks","issue_events_url":"https://api.github.com/repos/python-gitlab/python-gitlab/issues/events{/number}","events_url":"https://api.github.com/repos/python-gitlab/python-gitlab/events","assignees_url":"https://api.github.com/repos/python-gitlab/python-gitlab/assignees{/user}","branches_url":"https://api.github.com/repos/python-gitlab/python-gitlab/branches{/branch}","tags_url":"https://api.github.com/repos/python-gitlab/python-gitlab/tags","blobs_url":"https://api.github.com/repos/python-gitlab/python-gitlab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-gitlab/python-gitlab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-gitlab/python-gitlab/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-gitlab/python-gitlab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-gitlab/python-gitlab/statuses/{sha}","languages_url":"https://api.github.com/repos/python-gitlab/python-gitlab/languages","stargazers_url":"https://api.github.com/repos/python-gitlab/python-gitlab/stargazers","contributors_url":"https://api.github.com/repos/python-gitlab/python-gitlab/contributors","subscribers_url":"https://api.github.com/repos/python-gitlab/python-gitlab/subscribers","subscription_url":"https://api.github.com/repos/python-gitlab/python-gitlab/subscription","commits_url":"https://api.github.com/repos/python-gitlab/python-gitlab/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-gitlab/python-gitlab/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-gitlab/python-gitlab/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-gitlab/python-gitlab/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-gitlab/python-gitlab/contents/{+path}","compare_url":"https://api.github.com/repos/python-gitlab/python-gitlab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-gitlab/python-gitlab/merges","archive_url":"https://api.github.com/repos/python-gitlab/python-gitlab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-gitlab/python-gitlab/downloads","issues_url":"https://api.github.com/repos/python-gitlab/python-gitlab/issues{/number}","pulls_url":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls{/number}","milestones_url":"https://api.github.com/repos/python-gitlab/python-gitlab/milestones{/number}","notifications_url":"https://api.github.com/repos/python-gitlab/python-gitlab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-gitlab/python-gitlab/labels{/name}","releases_url":"https://api.github.com/repos/python-gitlab/python-gitlab/releases{/id}","deployments_url":"https://api.github.com/repos/python-gitlab/python-gitlab/deployments","created_at":"2013-02-07T17:23:16Z","updated_at":"2018-05-26T06:21:52Z","pushed_at":"2018-05-26T06:21:51Z","git_url":"git://github.com/python-gitlab/python-gitlab.git","ssh_url":"git@github.com:python-gitlab/python-gitlab.git","clone_url":"https://github.com/python-gitlab/python-gitlab.git","svn_url":"https://github.com/python-gitlab/python-gitlab","homepage":null,"size":1535,"stargazers_count":586,"watchers_count":586,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":205,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":205,"open_issues":13,"watchers":586,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507"},"html":{"href":"https://github.com/python-gitlab/python-gitlab/pull/507"},"issue":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/issues/507"},"comments":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/issues/507/comments"},"review_comments":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507/comments"},"review_comment":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/pulls/507/commits"},"statuses":{"href":"https://api.github.com/repos/python-gitlab/python-gitlab/statuses/802b2d4d101af6012f0996d59caec1cabd2dc0ba"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gpocentek"}}