{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/byxorna/collins-cli/pulls/7","id":37059400,"html_url":"https://github.com/byxorna/collins-cli/pull/7","diff_url":"https://github.com/byxorna/collins-cli/pull/7.diff","patch_url":"https://github.com/byxorna/collins-cli/pull/7.patch","issue_url":"https://api.github.com/repos/byxorna/collins-cli/issues/7","number":7,"state":"closed","locked":false,"title":"Gabe collins states","user":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"body":"List collins states and statuses. I didnt implement creating/updating/deleting states though... \r\n\r\ncc @alex-laties\r\n\r\n```\r\n-> $ bundle exec bin/collins state -l -H\r\nstatus_name     state_name              status_description                      description\r\nAny             NEW                     Any status                              A service in this state is inactive. It does minimal work and consumes minimal resources.\r\nAny             STARTING                Any status                              A service in this state is transitioning to Running.\r\nAny             RUNNING                 Any status                              A service in this state is operational.\r\nAny             STOPPING                Any status                              A service in this state is transitioning to Terminated.\r\nAny             TERMINATED              Any status                              A service in this state has completed execution normally. It does minimal work and consumes minimal resources.\r\nAny             FAILED                  Any status                              A service in this state has encountered a problem and may not be operational. It cannot be started nor stopped.\r\nUnallocated     RESERVED                Asset has gone through intake           Reserved for future use\r\nAllocated       RUNNING_UNMONITORED     Asset is in use or is ready for use     A service in this state is operational but not being monitored.\r\nAllocated       SPARE                   Asset is in use or is ready for use     A service in this state is operational but not in use, has not been claimed, and/or contains no data\r\nAllocated       CLAIMED                 Asset is in use or is ready for use     A service in this state is transitioning from Spare to Running\r\nAllocated       UNMONITORED             Asset is in use or is ready for use     UNMONITORED\r\nAllocated       PENDING_ALLOCATION      Asset is in use or is ready for use     An asset that needs to be manually allocated\r\nAllocated       DEALLOCATING            Asset is in use or is ready for use     An asset that is in the process of leaving production\r\nMaintenance     NETWORK_PROBLEM         Asset is scheduled for maintenance      An asset is experiencing a network problem that may or may not be hardware related. It needs investigation.\r\nMaintenance     HARDWARE_UPGRADE        Asset is scheduled for maintenance      An asset is in need or in process of having hardware upgraded.\r\nMaintenance     HW_TESTING              Asset is scheduled for maintenance      Performing some testing that requires putting the asset into a maintenance state.\r\nMaintenance     MAINT_NOOP              Asset is scheduled for maintenance      Doing nothing, bouncing this through maintenance for my own selfish reasons.\r\nMaintenance     AWAITING_REVIEW         Asset is scheduled for maintenance      An asset that has been verified by the datacenter team and is now awaiting review prior to going back into service\r\nMaintenance     PROVISIONING_PROBLEM    Asset is scheduled for maintenance      This asset has problems successfully provisioning\r\nMaintenance     NOOP                    Asset is scheduled for maintenance      NOOP\r\nMaintenance     RELOCATION              Asset is scheduled for maintenance      An asset is being physically relocated.\r\nMaintenance     IPMI_PROBLEM            Asset is scheduled for maintenance      An asset is experiencing IPMI issues and needs to be examined. It needs investigation.\r\nMaintenance     HARDWARE_PROBLEM        Asset is scheduled for maintenance      An asset is experiencing a non-IPMI issue and needs to be examined. It needs investigation.\r\n```","created_at":"2015-06-05T18:51:45Z","updated_at":"2015-06-08T17:22:57Z","closed_at":"2015-06-08T17:22:57Z","merged_at":"2015-06-08T17:22:57Z","merge_commit_sha":"d258c17ee03acc6d67d4f457ef1530dd634adf8b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/byxorna/collins-cli/pulls/7/commits","review_comments_url":"https://api.github.com/repos/byxorna/collins-cli/pulls/7/comments","review_comment_url":"https://api.github.com/repos/byxorna/collins-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/byxorna/collins-cli/issues/7/comments","statuses_url":"https://api.github.com/repos/byxorna/collins-cli/statuses/4a76e669c12bbee6db737f366b7f074974a9adf7","head":{"label":"byxorna:gabe-collins-states","ref":"gabe-collins-states","sha":"4a76e669c12bbee6db737f366b7f074974a9adf7","user":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"repo":{"id":27157550,"name":"collins-cli","full_name":"byxorna/collins-cli","owner":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/byxorna/collins-cli","description":"CLI scripts for interacting with Collins API","fork":false,"url":"https://api.github.com/repos/byxorna/collins-cli","forks_url":"https://api.github.com/repos/byxorna/collins-cli/forks","keys_url":"https://api.github.com/repos/byxorna/collins-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/byxorna/collins-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/byxorna/collins-cli/teams","hooks_url":"https://api.github.com/repos/byxorna/collins-cli/hooks","issue_events_url":"https://api.github.com/repos/byxorna/collins-cli/issues/events{/number}","events_url":"https://api.github.com/repos/byxorna/collins-cli/events","assignees_url":"https://api.github.com/repos/byxorna/collins-cli/assignees{/user}","branches_url":"https://api.github.com/repos/byxorna/collins-cli/branches{/branch}","tags_url":"https://api.github.com/repos/byxorna/collins-cli/tags","blobs_url":"https://api.github.com/repos/byxorna/collins-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/byxorna/collins-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/byxorna/collins-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/byxorna/collins-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/byxorna/collins-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/byxorna/collins-cli/languages","stargazers_url":"https://api.github.com/repos/byxorna/collins-cli/stargazers","contributors_url":"https://api.github.com/repos/byxorna/collins-cli/contributors","subscribers_url":"https://api.github.com/repos/byxorna/collins-cli/subscribers","subscription_url":"https://api.github.com/repos/byxorna/collins-cli/subscription","commits_url":"https://api.github.com/repos/byxorna/collins-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/byxorna/collins-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/byxorna/collins-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/byxorna/collins-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/byxorna/collins-cli/contents/{+path}","compare_url":"https://api.github.com/repos/byxorna/collins-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/byxorna/collins-cli/merges","archive_url":"https://api.github.com/repos/byxorna/collins-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/byxorna/collins-cli/downloads","issues_url":"https://api.github.com/repos/byxorna/collins-cli/issues{/number}","pulls_url":"https://api.github.com/repos/byxorna/collins-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/byxorna/collins-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/byxorna/collins-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/byxorna/collins-cli/labels{/name}","releases_url":"https://api.github.com/repos/byxorna/collins-cli/releases{/id}","created_at":"2014-11-26T03:16:14Z","updated_at":"2015-04-06T12:14:51Z","pushed_at":"2015-06-08T17:22:57Z","git_url":"git://github.com/byxorna/collins-cli.git","ssh_url":"git@github.com:byxorna/collins-cli.git","clone_url":"https://github.com/byxorna/collins-cli.git","svn_url":"https://github.com/byxorna/collins-cli","homepage":null,"size":326,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"byxorna:master","ref":"master","sha":"577d494ac9464715808f3791e7a69d729d2fbb92","user":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"repo":{"id":27157550,"name":"collins-cli","full_name":"byxorna/collins-cli","owner":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/byxorna/collins-cli","description":"CLI scripts for interacting with Collins API","fork":false,"url":"https://api.github.com/repos/byxorna/collins-cli","forks_url":"https://api.github.com/repos/byxorna/collins-cli/forks","keys_url":"https://api.github.com/repos/byxorna/collins-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/byxorna/collins-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/byxorna/collins-cli/teams","hooks_url":"https://api.github.com/repos/byxorna/collins-cli/hooks","issue_events_url":"https://api.github.com/repos/byxorna/collins-cli/issues/events{/number}","events_url":"https://api.github.com/repos/byxorna/collins-cli/events","assignees_url":"https://api.github.com/repos/byxorna/collins-cli/assignees{/user}","branches_url":"https://api.github.com/repos/byxorna/collins-cli/branches{/branch}","tags_url":"https://api.github.com/repos/byxorna/collins-cli/tags","blobs_url":"https://api.github.com/repos/byxorna/collins-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/byxorna/collins-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/byxorna/collins-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/byxorna/collins-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/byxorna/collins-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/byxorna/collins-cli/languages","stargazers_url":"https://api.github.com/repos/byxorna/collins-cli/stargazers","contributors_url":"https://api.github.com/repos/byxorna/collins-cli/contributors","subscribers_url":"https://api.github.com/repos/byxorna/collins-cli/subscribers","subscription_url":"https://api.github.com/repos/byxorna/collins-cli/subscription","commits_url":"https://api.github.com/repos/byxorna/collins-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/byxorna/collins-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/byxorna/collins-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/byxorna/collins-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/byxorna/collins-cli/contents/{+path}","compare_url":"https://api.github.com/repos/byxorna/collins-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/byxorna/collins-cli/merges","archive_url":"https://api.github.com/repos/byxorna/collins-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/byxorna/collins-cli/downloads","issues_url":"https://api.github.com/repos/byxorna/collins-cli/issues{/number}","pulls_url":"https://api.github.com/repos/byxorna/collins-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/byxorna/collins-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/byxorna/collins-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/byxorna/collins-cli/labels{/name}","releases_url":"https://api.github.com/repos/byxorna/collins-cli/releases{/id}","created_at":"2014-11-26T03:16:14Z","updated_at":"2015-04-06T12:14:51Z","pushed_at":"2015-06-08T17:22:57Z","git_url":"git://github.com/byxorna/collins-cli.git","ssh_url":"git@github.com:byxorna/collins-cli.git","clone_url":"https://github.com/byxorna/collins-cli.git","svn_url":"https://github.com/byxorna/collins-cli","homepage":null,"size":326,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/byxorna/collins-cli/pulls/7"},"html":{"href":"https://github.com/byxorna/collins-cli/pull/7"},"issue":{"href":"https://api.github.com/repos/byxorna/collins-cli/issues/7"},"comments":{"href":"https://api.github.com/repos/byxorna/collins-cli/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/byxorna/collins-cli/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/byxorna/collins-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/byxorna/collins-cli/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/byxorna/collins-cli/statuses/4a76e669c12bbee6db737f366b7f074974a9adf7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":4,"additions":129,"deletions":25,"changed_files":8}}