{"action":"closed","number":2740,"pull_request":{"url":"https://api.github.com/repos/gocd/gocd/pulls/2740","id":86907824,"html_url":"https://github.com/gocd/gocd/pull/2740","diff_url":"https://github.com/gocd/gocd/pull/2740.diff","patch_url":"https://github.com/gocd/gocd/pull/2740.patch","issue_url":"https://api.github.com/repos/gocd/gocd/issues/2740","number":2740,"state":"closed","locked":false,"title":"Added Agent-Update-Operation Validation for pending agents","user":{"login":"GaneshSPatil","id":15275847,"avatar_url":"https://avatars.githubusercontent.com/u/15275847?v=3","gravatar_id":"","url":"https://api.github.com/users/GaneshSPatil","html_url":"https://github.com/GaneshSPatil","followers_url":"https://api.github.com/users/GaneshSPatil/followers","following_url":"https://api.github.com/users/GaneshSPatil/following{/other_user}","gists_url":"https://api.github.com/users/GaneshSPatil/gists{/gist_id}","starred_url":"https://api.github.com/users/GaneshSPatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaneshSPatil/subscriptions","organizations_url":"https://api.github.com/users/GaneshSPatil/orgs","repos_url":"https://api.github.com/users/GaneshSPatil/repos","events_url":"https://api.github.com/users/GaneshSPatil/events{/privacy}","received_events_url":"https://api.github.com/users/GaneshSPatil/received_events","type":"User","site_admin":false},"body":"related https://github.com/gocd/gocd/issues/2735 and https://github.com/gocd/gocd/issues/2762\n\nOnly `enable` option is allowed for `pending agents`.\n\nOther operations apart from `enable`( such as `resources add`,  `resources remove`,  `environments add`, `environments remove`, `disable`) on pending agents are not allowed.\n\nhttps://docs.go.cd/current/navigation/agents_page.html#agents\n","created_at":"2016-09-27T11:05:20Z","updated_at":"2016-11-08T09:08:37Z","closed_at":"2016-11-08T09:08:37Z","merged_at":"2016-11-08T09:08:37Z","merge_commit_sha":"82c52a49d1564c976f64c8a96430e85965736e95","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gocd/gocd/pulls/2740/commits","review_comments_url":"https://api.github.com/repos/gocd/gocd/pulls/2740/comments","review_comment_url":"https://api.github.com/repos/gocd/gocd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/2740/comments","statuses_url":"https://api.github.com/repos/gocd/gocd/statuses/5065899406faab886f73e989f9e5e012e02924c7","head":{"label":"GaneshSPatil:pending-agent-validation","ref":"pending-agent-validation","sha":"5065899406faab886f73e989f9e5e012e02924c7","user":{"login":"GaneshSPatil","id":15275847,"avatar_url":"https://avatars.githubusercontent.com/u/15275847?v=3","gravatar_id":"","url":"https://api.github.com/users/GaneshSPatil","html_url":"https://github.com/GaneshSPatil","followers_url":"https://api.github.com/users/GaneshSPatil/followers","following_url":"https://api.github.com/users/GaneshSPatil/following{/other_user}","gists_url":"https://api.github.com/users/GaneshSPatil/gists{/gist_id}","starred_url":"https://api.github.com/users/GaneshSPatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaneshSPatil/subscriptions","organizations_url":"https://api.github.com/users/GaneshSPatil/orgs","repos_url":"https://api.github.com/users/GaneshSPatil/repos","events_url":"https://api.github.com/users/GaneshSPatil/events{/privacy}","received_events_url":"https://api.github.com/users/GaneshSPatil/received_events","type":"User","site_admin":false},"repo":{"id":55779858,"name":"gocd","full_name":"GaneshSPatil/gocd","owner":{"login":"GaneshSPatil","id":15275847,"avatar_url":"https://avatars.githubusercontent.com/u/15275847?v=3","gravatar_id":"","url":"https://api.github.com/users/GaneshSPatil","html_url":"https://github.com/GaneshSPatil","followers_url":"https://api.github.com/users/GaneshSPatil/followers","following_url":"https://api.github.com/users/GaneshSPatil/following{/other_user}","gists_url":"https://api.github.com/users/GaneshSPatil/gists{/gist_id}","starred_url":"https://api.github.com/users/GaneshSPatil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaneshSPatil/subscriptions","organizations_url":"https://api.github.com/users/GaneshSPatil/orgs","repos_url":"https://api.github.com/users/GaneshSPatil/repos","events_url":"https://api.github.com/users/GaneshSPatil/events{/privacy}","received_events_url":"https://api.github.com/users/GaneshSPatil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GaneshSPatil/gocd","description":"Main repository for Go Continuous Delivery","fork":true,"url":"https://api.github.com/repos/GaneshSPatil/gocd","forks_url":"https://api.github.com/repos/GaneshSPatil/gocd/forks","keys_url":"https://api.github.com/repos/GaneshSPatil/gocd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GaneshSPatil/gocd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GaneshSPatil/gocd/teams","hooks_url":"https://api.github.com/repos/GaneshSPatil/gocd/hooks","issue_events_url":"https://api.github.com/repos/GaneshSPatil/gocd/issues/events{/number}","events_url":"https://api.github.com/repos/GaneshSPatil/gocd/events","assignees_url":"https://api.github.com/repos/GaneshSPatil/gocd/assignees{/user}","branches_url":"https://api.github.com/repos/GaneshSPatil/gocd/branches{/branch}","tags_url":"https://api.github.com/repos/GaneshSPatil/gocd/tags","blobs_url":"https://api.github.com/repos/GaneshSPatil/gocd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GaneshSPatil/gocd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GaneshSPatil/gocd/git/refs{/sha}","trees_url":"https://api.github.com/repos/GaneshSPatil/gocd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GaneshSPatil/gocd/statuses/{sha}","languages_url":"https://api.github.com/repos/GaneshSPatil/gocd/languages","stargazers_url":"https://api.github.com/repos/GaneshSPatil/gocd/stargazers","contributors_url":"https://api.github.com/repos/GaneshSPatil/gocd/contributors","subscribers_url":"https://api.github.com/repos/GaneshSPatil/gocd/subscribers","subscription_url":"https://api.github.com/repos/GaneshSPatil/gocd/subscription","commits_url":"https://api.github.com/repos/GaneshSPatil/gocd/commits{/sha}","git_commits_url":"https://api.github.com/repos/GaneshSPatil/gocd/git/commits{/sha}","comments_url":"https://api.github.com/repos/GaneshSPatil/gocd/comments{/number}","issue_comment_url":"https://api.github.com/repos/GaneshSPatil/gocd/issues/comments{/number}","contents_url":"https://api.github.com/repos/GaneshSPatil/gocd/contents/{+path}","compare_url":"https://api.github.com/repos/GaneshSPatil/gocd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GaneshSPatil/gocd/merges","archive_url":"https://api.github.com/repos/GaneshSPatil/gocd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GaneshSPatil/gocd/downloads","issues_url":"https://api.github.com/repos/GaneshSPatil/gocd/issues{/number}","pulls_url":"https://api.github.com/repos/GaneshSPatil/gocd/pulls{/number}","milestones_url":"https://api.github.com/repos/GaneshSPatil/gocd/milestones{/number}","notifications_url":"https://api.github.com/repos/GaneshSPatil/gocd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GaneshSPatil/gocd/labels{/name}","releases_url":"https://api.github.com/repos/GaneshSPatil/gocd/releases{/id}","deployments_url":"https://api.github.com/repos/GaneshSPatil/gocd/deployments","created_at":"2016-04-08T13:09:45Z","updated_at":"2016-11-07T09:55:17Z","pushed_at":"2016-11-08T03:56:54Z","git_url":"git://github.com/GaneshSPatil/gocd.git","ssh_url":"git@github.com:GaneshSPatil/gocd.git","clone_url":"https://github.com/GaneshSPatil/gocd.git","svn_url":"https://github.com/GaneshSPatil/gocd","homepage":"https://go.cd","size":245008,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"gocd:master","ref":"master","sha":"f7dde65070f0964bc9ea8643aa0b5c3c66332bb6","user":{"login":"gocd","id":6099846,"avatar_url":"https://avatars.githubusercontent.com/u/6099846?v=3","gravatar_id":"","url":"https://api.github.com/users/gocd","html_url":"https://github.com/gocd","followers_url":"https://api.github.com/users/gocd/followers","following_url":"https://api.github.com/users/gocd/following{/other_user}","gists_url":"https://api.github.com/users/gocd/gists{/gist_id}","starred_url":"https://api.github.com/users/gocd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocd/subscriptions","organizations_url":"https://api.github.com/users/gocd/orgs","repos_url":"https://api.github.com/users/gocd/repos","events_url":"https://api.github.com/users/gocd/events{/privacy}","received_events_url":"https://api.github.com/users/gocd/received_events","type":"Organization","site_admin":false},"repo":{"id":15155534,"name":"gocd","full_name":"gocd/gocd","owner":{"login":"gocd","id":6099846,"avatar_url":"https://avatars.githubusercontent.com/u/6099846?v=3","gravatar_id":"","url":"https://api.github.com/users/gocd","html_url":"https://github.com/gocd","followers_url":"https://api.github.com/users/gocd/followers","following_url":"https://api.github.com/users/gocd/following{/other_user}","gists_url":"https://api.github.com/users/gocd/gists{/gist_id}","starred_url":"https://api.github.com/users/gocd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocd/subscriptions","organizations_url":"https://api.github.com/users/gocd/orgs","repos_url":"https://api.github.com/users/gocd/repos","events_url":"https://api.github.com/users/gocd/events{/privacy}","received_events_url":"https://api.github.com/users/gocd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocd/gocd","description":"Main repository for GoCD - Continuous Delivery server","fork":false,"url":"https://api.github.com/repos/gocd/gocd","forks_url":"https://api.github.com/repos/gocd/gocd/forks","keys_url":"https://api.github.com/repos/gocd/gocd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocd/gocd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocd/gocd/teams","hooks_url":"https://api.github.com/repos/gocd/gocd/hooks","issue_events_url":"https://api.github.com/repos/gocd/gocd/issues/events{/number}","events_url":"https://api.github.com/repos/gocd/gocd/events","assignees_url":"https://api.github.com/repos/gocd/gocd/assignees{/user}","branches_url":"https://api.github.com/repos/gocd/gocd/branches{/branch}","tags_url":"https://api.github.com/repos/gocd/gocd/tags","blobs_url":"https://api.github.com/repos/gocd/gocd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocd/gocd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocd/gocd/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocd/gocd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocd/gocd/statuses/{sha}","languages_url":"https://api.github.com/repos/gocd/gocd/languages","stargazers_url":"https://api.github.com/repos/gocd/gocd/stargazers","contributors_url":"https://api.github.com/repos/gocd/gocd/contributors","subscribers_url":"https://api.github.com/repos/gocd/gocd/subscribers","subscription_url":"https://api.github.com/repos/gocd/gocd/subscription","commits_url":"https://api.github.com/repos/gocd/gocd/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocd/gocd/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocd/gocd/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocd/gocd/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocd/gocd/contents/{+path}","compare_url":"https://api.github.com/repos/gocd/gocd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocd/gocd/merges","archive_url":"https://api.github.com/repos/gocd/gocd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocd/gocd/downloads","issues_url":"https://api.github.com/repos/gocd/gocd/issues{/number}","pulls_url":"https://api.github.com/repos/gocd/gocd/pulls{/number}","milestones_url":"https://api.github.com/repos/gocd/gocd/milestones{/number}","notifications_url":"https://api.github.com/repos/gocd/gocd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocd/gocd/labels{/name}","releases_url":"https://api.github.com/repos/gocd/gocd/releases{/id}","deployments_url":"https://api.github.com/repos/gocd/gocd/deployments","created_at":"2013-12-13T05:26:16Z","updated_at":"2016-11-07T23:01:56Z","pushed_at":"2016-11-08T09:08:38Z","git_url":"git://github.com/gocd/gocd.git","ssh_url":"git@github.com:gocd/gocd.git","clone_url":"https://github.com/gocd/gocd.git","svn_url":"https://github.com/gocd/gocd","homepage":"https://go.cd","size":315295,"stargazers_count":2700,"watchers_count":2700,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":495,"mirror_url":null,"open_issues_count":652,"forks":495,"open_issues":652,"watchers":2700,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gocd/gocd/pulls/2740"},"html":{"href":"https://github.com/gocd/gocd/pull/2740"},"issue":{"href":"https://api.github.com/repos/gocd/gocd/issues/2740"},"comments":{"href":"https://api.github.com/repos/gocd/gocd/issues/2740/comments"},"review_comments":{"href":"https://api.github.com/repos/gocd/gocd/pulls/2740/comments"},"review_comment":{"href":"https://api.github.com/repos/gocd/gocd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gocd/gocd/pulls/2740/commits"},"statuses":{"href":"https://api.github.com/repos/gocd/gocd/statuses/5065899406faab886f73e989f9e5e012e02924c7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"varshavaradarajan","id":4715748,"avatar_url":"https://avatars.githubusercontent.com/u/4715748?v=3","gravatar_id":"","url":"https://api.github.com/users/varshavaradarajan","html_url":"https://github.com/varshavaradarajan","followers_url":"https://api.github.com/users/varshavaradarajan/followers","following_url":"https://api.github.com/users/varshavaradarajan/following{/other_user}","gists_url":"https://api.github.com/users/varshavaradarajan/gists{/gist_id}","starred_url":"https://api.github.com/users/varshavaradarajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varshavaradarajan/subscriptions","organizations_url":"https://api.github.com/users/varshavaradarajan/orgs","repos_url":"https://api.github.com/users/varshavaradarajan/repos","events_url":"https://api.github.com/users/varshavaradarajan/events{/privacy}","received_events_url":"https://api.github.com/users/varshavaradarajan/received_events","type":"User","site_admin":false},"comments":0,"review_comments":16,"commits":7,"additions":646,"deletions":122,"changed_files":13}}
{"actor":{"display_login":"varshavaradarajan"}}