{"action":"created","comment":{"url":"https://api.github.com/repos/alup/puppet-rbenv/pulls/comments/26607150","id":26607150,"diff_hunk":"@@ -46,6 +46,7 @@\n     timeout => $timeout,\n     cwd     => $destination,\n     require => Exec[\"rbenv::plugin::checkout ${user} ${plugin_name}\"],\n+    onlyif  => 'git remote update; if [ \"$(git rev-parse @{0})\" = \"$(git rev-parse @{u})\" ]; then return 0; else return 1; fi ]',","path":"manifests/plugin.pp","position":4,"original_position":4,"commit_id":"9a827169e2c566ce744c2c160640e119d5f85e6d","original_commit_id":"9a827169e2c566ce744c2c160640e119d5f85e6d","user":{"login":"jwhitcraft","id":26738,"avatar_url":"https://avatars.githubusercontent.com/u/26738?v=3","gravatar_id":"","url":"https://api.github.com/users/jwhitcraft","html_url":"https://github.com/jwhitcraft","followers_url":"https://api.github.com/users/jwhitcraft/followers","following_url":"https://api.github.com/users/jwhitcraft/following{/other_user}","gists_url":"https://api.github.com/users/jwhitcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/jwhitcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwhitcraft/subscriptions","organizations_url":"https://api.github.com/users/jwhitcraft/orgs","repos_url":"https://api.github.com/users/jwhitcraft/repos","events_url":"https://api.github.com/users/jwhitcraft/events{/privacy}","received_events_url":"https://api.github.com/users/jwhitcraft/received_events","type":"User","site_admin":false},"body":"This test doesn't work.","created_at":"2015-03-17T19:27:32Z","updated_at":"2015-03-17T19:27:32Z","html_url":"https://github.com/alup/puppet-rbenv/pull/108#discussion_r26607150","pull_request_url":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/alup/puppet-rbenv/pulls/comments/26607150"},"html":{"href":"https://github.com/alup/puppet-rbenv/pull/108#discussion_r26607150"},"pull_request":{"href":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108","id":27612138,"html_url":"https://github.com/alup/puppet-rbenv/pull/108","diff_url":"https://github.com/alup/puppet-rbenv/pull/108.diff","patch_url":"https://github.com/alup/puppet-rbenv/pull/108.patch","issue_url":"https://api.github.com/repos/alup/puppet-rbenv/issues/108","number":108,"state":"closed","locked":false,"title":"Update plugins only if there is a newer version","user":{"login":"rudolfs","id":158411,"avatar_url":"https://avatars.githubusercontent.com/u/158411?v=3","gravatar_id":"","url":"https://api.github.com/users/rudolfs","html_url":"https://github.com/rudolfs","followers_url":"https://api.github.com/users/rudolfs/followers","following_url":"https://api.github.com/users/rudolfs/following{/other_user}","gists_url":"https://api.github.com/users/rudolfs/gists{/gist_id}","starred_url":"https://api.github.com/users/rudolfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudolfs/subscriptions","organizations_url":"https://api.github.com/users/rudolfs/orgs","repos_url":"https://api.github.com/users/rudolfs/repos","events_url":"https://api.github.com/users/rudolfs/events{/privacy}","received_events_url":"https://api.github.com/users/rudolfs/received_events","type":"User","site_admin":false},"body":"A 'git pull' always generates a change event in Puppet even if there are\r\nno changes in the upstream repository. This is bad for monitoring, for\r\nexample the puppet dashboard always shows all the plugins installed by\r\nrbenv-puppet as changes for every run on every node.\r\n\r\nThis change makes sure that 'git pull' is only run when there is a new\r\nversion of the plugin upstream.","created_at":"2015-01-19T14:58:19Z","updated_at":"2015-03-17T19:27:32Z","closed_at":"2015-01-20T09:01:43Z","merged_at":"2015-01-20T09:01:43Z","merge_commit_sha":"137dcf46a5645ff1fc176cdb7c18fc03b71fdba7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108/commits","review_comments_url":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108/comments","review_comment_url":"https://api.github.com/repos/alup/puppet-rbenv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alup/puppet-rbenv/issues/108/comments","statuses_url":"https://api.github.com/repos/alup/puppet-rbenv/statuses/9a827169e2c566ce744c2c160640e119d5f85e6d","head":{"label":"rudolfs:master","ref":"master","sha":"9a827169e2c566ce744c2c160640e119d5f85e6d","user":{"login":"rudolfs","id":158411,"avatar_url":"https://avatars.githubusercontent.com/u/158411?v=3","gravatar_id":"","url":"https://api.github.com/users/rudolfs","html_url":"https://github.com/rudolfs","followers_url":"https://api.github.com/users/rudolfs/followers","following_url":"https://api.github.com/users/rudolfs/following{/other_user}","gists_url":"https://api.github.com/users/rudolfs/gists{/gist_id}","starred_url":"https://api.github.com/users/rudolfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudolfs/subscriptions","organizations_url":"https://api.github.com/users/rudolfs/orgs","repos_url":"https://api.github.com/users/rudolfs/repos","events_url":"https://api.github.com/users/rudolfs/events{/privacy}","received_events_url":"https://api.github.com/users/rudolfs/received_events","type":"User","site_admin":false},"repo":{"id":29472940,"name":"puppet-rbenv","full_name":"rudolfs/puppet-rbenv","owner":{"login":"rudolfs","id":158411,"avatar_url":"https://avatars.githubusercontent.com/u/158411?v=3","gravatar_id":"","url":"https://api.github.com/users/rudolfs","html_url":"https://github.com/rudolfs","followers_url":"https://api.github.com/users/rudolfs/followers","following_url":"https://api.github.com/users/rudolfs/following{/other_user}","gists_url":"https://api.github.com/users/rudolfs/gists{/gist_id}","starred_url":"https://api.github.com/users/rudolfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudolfs/subscriptions","organizations_url":"https://api.github.com/users/rudolfs/orgs","repos_url":"https://api.github.com/users/rudolfs/repos","events_url":"https://api.github.com/users/rudolfs/events{/privacy}","received_events_url":"https://api.github.com/users/rudolfs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rudolfs/puppet-rbenv","description":"Puppet manifest for rbenv installation","fork":true,"url":"https://api.github.com/repos/rudolfs/puppet-rbenv","forks_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/forks","keys_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/teams","hooks_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/hooks","issue_events_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/issues/events{/number}","events_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/events","assignees_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/assignees{/user}","branches_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/branches{/branch}","tags_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/tags","blobs_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/git/refs{/sha}","trees_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/statuses/{sha}","languages_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/languages","stargazers_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/stargazers","contributors_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/contributors","subscribers_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/subscribers","subscription_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/subscription","commits_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/commits{/sha}","git_commits_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/git/commits{/sha}","comments_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/comments{/number}","issue_comment_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/issues/comments{/number}","contents_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/contents/{+path}","compare_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/merges","archive_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/downloads","issues_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/issues{/number}","pulls_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/pulls{/number}","milestones_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/milestones{/number}","notifications_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/labels{/name}","releases_url":"https://api.github.com/repos/rudolfs/puppet-rbenv/releases{/id}","created_at":"2015-01-19T13:49:10Z","updated_at":"2015-01-19T14:34:38Z","pushed_at":"2015-01-19T14:34:38Z","git_url":"git://github.com/rudolfs/puppet-rbenv.git","ssh_url":"git@github.com:rudolfs/puppet-rbenv.git","clone_url":"https://github.com/rudolfs/puppet-rbenv.git","svn_url":"https://github.com/rudolfs/puppet-rbenv","homepage":"","size":277,"stargazers_count":0,"watchers_count":0,"language":"Puppet","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alup:master","ref":"master","sha":"4e801f1d22de78d7bf742c9ff5a6fab4e21a45ed","user":{"login":"alup","id":150174,"avatar_url":"https://avatars.githubusercontent.com/u/150174?v=3","gravatar_id":"","url":"https://api.github.com/users/alup","html_url":"https://github.com/alup","followers_url":"https://api.github.com/users/alup/followers","following_url":"https://api.github.com/users/alup/following{/other_user}","gists_url":"https://api.github.com/users/alup/gists{/gist_id}","starred_url":"https://api.github.com/users/alup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alup/subscriptions","organizations_url":"https://api.github.com/users/alup/orgs","repos_url":"https://api.github.com/users/alup/repos","events_url":"https://api.github.com/users/alup/events{/privacy}","received_events_url":"https://api.github.com/users/alup/received_events","type":"User","site_admin":false},"repo":{"id":2923262,"name":"puppet-rbenv","full_name":"alup/puppet-rbenv","owner":{"login":"alup","id":150174,"avatar_url":"https://avatars.githubusercontent.com/u/150174?v=3","gravatar_id":"","url":"https://api.github.com/users/alup","html_url":"https://github.com/alup","followers_url":"https://api.github.com/users/alup/followers","following_url":"https://api.github.com/users/alup/following{/other_user}","gists_url":"https://api.github.com/users/alup/gists{/gist_id}","starred_url":"https://api.github.com/users/alup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alup/subscriptions","organizations_url":"https://api.github.com/users/alup/orgs","repos_url":"https://api.github.com/users/alup/repos","events_url":"https://api.github.com/users/alup/events{/privacy}","received_events_url":"https://api.github.com/users/alup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alup/puppet-rbenv","description":"Puppet manifest for rbenv installation","fork":false,"url":"https://api.github.com/repos/alup/puppet-rbenv","forks_url":"https://api.github.com/repos/alup/puppet-rbenv/forks","keys_url":"https://api.github.com/repos/alup/puppet-rbenv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alup/puppet-rbenv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alup/puppet-rbenv/teams","hooks_url":"https://api.github.com/repos/alup/puppet-rbenv/hooks","issue_events_url":"https://api.github.com/repos/alup/puppet-rbenv/issues/events{/number}","events_url":"https://api.github.com/repos/alup/puppet-rbenv/events","assignees_url":"https://api.github.com/repos/alup/puppet-rbenv/assignees{/user}","branches_url":"https://api.github.com/repos/alup/puppet-rbenv/branches{/branch}","tags_url":"https://api.github.com/repos/alup/puppet-rbenv/tags","blobs_url":"https://api.github.com/repos/alup/puppet-rbenv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alup/puppet-rbenv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alup/puppet-rbenv/git/refs{/sha}","trees_url":"https://api.github.com/repos/alup/puppet-rbenv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alup/puppet-rbenv/statuses/{sha}","languages_url":"https://api.github.com/repos/alup/puppet-rbenv/languages","stargazers_url":"https://api.github.com/repos/alup/puppet-rbenv/stargazers","contributors_url":"https://api.github.com/repos/alup/puppet-rbenv/contributors","subscribers_url":"https://api.github.com/repos/alup/puppet-rbenv/subscribers","subscription_url":"https://api.github.com/repos/alup/puppet-rbenv/subscription","commits_url":"https://api.github.com/repos/alup/puppet-rbenv/commits{/sha}","git_commits_url":"https://api.github.com/repos/alup/puppet-rbenv/git/commits{/sha}","comments_url":"https://api.github.com/repos/alup/puppet-rbenv/comments{/number}","issue_comment_url":"https://api.github.com/repos/alup/puppet-rbenv/issues/comments{/number}","contents_url":"https://api.github.com/repos/alup/puppet-rbenv/contents/{+path}","compare_url":"https://api.github.com/repos/alup/puppet-rbenv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alup/puppet-rbenv/merges","archive_url":"https://api.github.com/repos/alup/puppet-rbenv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alup/puppet-rbenv/downloads","issues_url":"https://api.github.com/repos/alup/puppet-rbenv/issues{/number}","pulls_url":"https://api.github.com/repos/alup/puppet-rbenv/pulls{/number}","milestones_url":"https://api.github.com/repos/alup/puppet-rbenv/milestones{/number}","notifications_url":"https://api.github.com/repos/alup/puppet-rbenv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alup/puppet-rbenv/labels{/name}","releases_url":"https://api.github.com/repos/alup/puppet-rbenv/releases{/id}","created_at":"2011-12-06T08:08:45Z","updated_at":"2015-03-05T18:21:53Z","pushed_at":"2015-02-13T18:14:27Z","git_url":"git://github.com/alup/puppet-rbenv.git","ssh_url":"git@github.com:alup/puppet-rbenv.git","clone_url":"https://github.com/alup/puppet-rbenv.git","svn_url":"https://github.com/alup/puppet-rbenv","homepage":"","size":747,"stargazers_count":137,"watchers_count":137,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":34,"forks":103,"open_issues":34,"watchers":137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108"},"html":{"href":"https://github.com/alup/puppet-rbenv/pull/108"},"issue":{"href":"https://api.github.com/repos/alup/puppet-rbenv/issues/108"},"comments":{"href":"https://api.github.com/repos/alup/puppet-rbenv/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/alup/puppet-rbenv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alup/puppet-rbenv/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/alup/puppet-rbenv/statuses/9a827169e2c566ce744c2c160640e119d5f85e6d"}}}}