{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/brson/cargo-crusader/pulls/3","id":42183256,"html_url":"https://github.com/brson/cargo-crusader/pull/3","diff_url":"https://github.com/brson/cargo-crusader/pull/3.diff","patch_url":"https://github.com/brson/cargo-crusader/pull/3.patch","issue_url":"https://api.github.com/repos/brson/cargo-crusader/issues/3","number":3,"state":"closed","locked":false,"title":"Refactor association between term colors and results","user":{"login":"meqif","id":1706,"avatar_url":"https://avatars.githubusercontent.com/u/1706?v=3","gravatar_id":"","url":"https://api.github.com/users/meqif","html_url":"https://github.com/meqif","followers_url":"https://api.github.com/users/meqif/followers","following_url":"https://api.github.com/users/meqif/following{/other_user}","gists_url":"https://api.github.com/users/meqif/gists{/gist_id}","starred_url":"https://api.github.com/users/meqif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meqif/subscriptions","organizations_url":"https://api.github.com/users/meqif/orgs","repos_url":"https://api.github.com/users/meqif/repos","events_url":"https://api.github.com/users/meqif/events{/privacy}","received_events_url":"https://api.github.com/users/meqif/received_events","type":"User","site_admin":false},"body":"This pull request refactors the association between test results and the term colors used in the output. \r\n\r\nCurrently the term colors are defined in two places: `term_color` and `report_success`.\r\n\r\nThe first commit in this pull request introduces an enum, `ReportResult`, implements the conversion between it and the corresponding `term::color::Color`, thus centralizing their association.\r\n\r\nThe second commit replaces the `term_color` function with an implementation of the `Into` trait for `TestResult`s, which seems cleaner to me.","created_at":"2015-08-11T21:57:43Z","updated_at":"2015-08-12T01:04:01Z","closed_at":"2015-08-12T01:04:01Z","merged_at":"2015-08-12T01:04:01Z","merge_commit_sha":"b50a8297738fa7bc0d73179a178075aad8724ddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brson/cargo-crusader/pulls/3/commits","review_comments_url":"https://api.github.com/repos/brson/cargo-crusader/pulls/3/comments","review_comment_url":"https://api.github.com/repos/brson/cargo-crusader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brson/cargo-crusader/issues/3/comments","statuses_url":"https://api.github.com/repos/brson/cargo-crusader/statuses/7c8a157b1e269366cea7f856b1aff5286cd22281","head":{"label":"meqif:refactor-report-result-colors","ref":"refactor-report-result-colors","sha":"7c8a157b1e269366cea7f856b1aff5286cd22281","user":{"login":"meqif","id":1706,"avatar_url":"https://avatars.githubusercontent.com/u/1706?v=3","gravatar_id":"","url":"https://api.github.com/users/meqif","html_url":"https://github.com/meqif","followers_url":"https://api.github.com/users/meqif/followers","following_url":"https://api.github.com/users/meqif/following{/other_user}","gists_url":"https://api.github.com/users/meqif/gists{/gist_id}","starred_url":"https://api.github.com/users/meqif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meqif/subscriptions","organizations_url":"https://api.github.com/users/meqif/orgs","repos_url":"https://api.github.com/users/meqif/repos","events_url":"https://api.github.com/users/meqif/events{/privacy}","received_events_url":"https://api.github.com/users/meqif/received_events","type":"User","site_admin":false},"repo":{"id":40560769,"name":"cargo-crusader","full_name":"meqif/cargo-crusader","owner":{"login":"meqif","id":1706,"avatar_url":"https://avatars.githubusercontent.com/u/1706?v=3","gravatar_id":"","url":"https://api.github.com/users/meqif","html_url":"https://github.com/meqif","followers_url":"https://api.github.com/users/meqif/followers","following_url":"https://api.github.com/users/meqif/following{/other_user}","gists_url":"https://api.github.com/users/meqif/gists{/gist_id}","starred_url":"https://api.github.com/users/meqif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meqif/subscriptions","organizations_url":"https://api.github.com/users/meqif/orgs","repos_url":"https://api.github.com/users/meqif/repos","events_url":"https://api.github.com/users/meqif/events{/privacy}","received_events_url":"https://api.github.com/users/meqif/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meqif/cargo-crusader","description":"Test the downstream impact of Rust crate changes before publishing","fork":true,"url":"https://api.github.com/repos/meqif/cargo-crusader","forks_url":"https://api.github.com/repos/meqif/cargo-crusader/forks","keys_url":"https://api.github.com/repos/meqif/cargo-crusader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meqif/cargo-crusader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meqif/cargo-crusader/teams","hooks_url":"https://api.github.com/repos/meqif/cargo-crusader/hooks","issue_events_url":"https://api.github.com/repos/meqif/cargo-crusader/issues/events{/number}","events_url":"https://api.github.com/repos/meqif/cargo-crusader/events","assignees_url":"https://api.github.com/repos/meqif/cargo-crusader/assignees{/user}","branches_url":"https://api.github.com/repos/meqif/cargo-crusader/branches{/branch}","tags_url":"https://api.github.com/repos/meqif/cargo-crusader/tags","blobs_url":"https://api.github.com/repos/meqif/cargo-crusader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meqif/cargo-crusader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meqif/cargo-crusader/git/refs{/sha}","trees_url":"https://api.github.com/repos/meqif/cargo-crusader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meqif/cargo-crusader/statuses/{sha}","languages_url":"https://api.github.com/repos/meqif/cargo-crusader/languages","stargazers_url":"https://api.github.com/repos/meqif/cargo-crusader/stargazers","contributors_url":"https://api.github.com/repos/meqif/cargo-crusader/contributors","subscribers_url":"https://api.github.com/repos/meqif/cargo-crusader/subscribers","subscription_url":"https://api.github.com/repos/meqif/cargo-crusader/subscription","commits_url":"https://api.github.com/repos/meqif/cargo-crusader/commits{/sha}","git_commits_url":"https://api.github.com/repos/meqif/cargo-crusader/git/commits{/sha}","comments_url":"https://api.github.com/repos/meqif/cargo-crusader/comments{/number}","issue_comment_url":"https://api.github.com/repos/meqif/cargo-crusader/issues/comments{/number}","contents_url":"https://api.github.com/repos/meqif/cargo-crusader/contents/{+path}","compare_url":"https://api.github.com/repos/meqif/cargo-crusader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meqif/cargo-crusader/merges","archive_url":"https://api.github.com/repos/meqif/cargo-crusader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meqif/cargo-crusader/downloads","issues_url":"https://api.github.com/repos/meqif/cargo-crusader/issues{/number}","pulls_url":"https://api.github.com/repos/meqif/cargo-crusader/pulls{/number}","milestones_url":"https://api.github.com/repos/meqif/cargo-crusader/milestones{/number}","notifications_url":"https://api.github.com/repos/meqif/cargo-crusader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meqif/cargo-crusader/labels{/name}","releases_url":"https://api.github.com/repos/meqif/cargo-crusader/releases{/id}","created_at":"2015-08-11T19:23:24Z","updated_at":"2015-08-11T19:23:24Z","pushed_at":"2015-08-11T21:46:23Z","git_url":"git://github.com/meqif/cargo-crusader.git","ssh_url":"git@github.com:meqif/cargo-crusader.git","clone_url":"https://github.com/meqif/cargo-crusader.git","svn_url":"https://github.com/meqif/cargo-crusader","homepage":"","size":140,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"brson:master","ref":"master","sha":"168734b543ba1e812a43f8423afd78b409937602","user":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"repo":{"id":40093257,"name":"cargo-crusader","full_name":"brson/cargo-crusader","owner":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brson/cargo-crusader","description":"Test the downstream impact of Rust crate changes before publishing","fork":false,"url":"https://api.github.com/repos/brson/cargo-crusader","forks_url":"https://api.github.com/repos/brson/cargo-crusader/forks","keys_url":"https://api.github.com/repos/brson/cargo-crusader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brson/cargo-crusader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brson/cargo-crusader/teams","hooks_url":"https://api.github.com/repos/brson/cargo-crusader/hooks","issue_events_url":"https://api.github.com/repos/brson/cargo-crusader/issues/events{/number}","events_url":"https://api.github.com/repos/brson/cargo-crusader/events","assignees_url":"https://api.github.com/repos/brson/cargo-crusader/assignees{/user}","branches_url":"https://api.github.com/repos/brson/cargo-crusader/branches{/branch}","tags_url":"https://api.github.com/repos/brson/cargo-crusader/tags","blobs_url":"https://api.github.com/repos/brson/cargo-crusader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brson/cargo-crusader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brson/cargo-crusader/git/refs{/sha}","trees_url":"https://api.github.com/repos/brson/cargo-crusader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brson/cargo-crusader/statuses/{sha}","languages_url":"https://api.github.com/repos/brson/cargo-crusader/languages","stargazers_url":"https://api.github.com/repos/brson/cargo-crusader/stargazers","contributors_url":"https://api.github.com/repos/brson/cargo-crusader/contributors","subscribers_url":"https://api.github.com/repos/brson/cargo-crusader/subscribers","subscription_url":"https://api.github.com/repos/brson/cargo-crusader/subscription","commits_url":"https://api.github.com/repos/brson/cargo-crusader/commits{/sha}","git_commits_url":"https://api.github.com/repos/brson/cargo-crusader/git/commits{/sha}","comments_url":"https://api.github.com/repos/brson/cargo-crusader/comments{/number}","issue_comment_url":"https://api.github.com/repos/brson/cargo-crusader/issues/comments{/number}","contents_url":"https://api.github.com/repos/brson/cargo-crusader/contents/{+path}","compare_url":"https://api.github.com/repos/brson/cargo-crusader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brson/cargo-crusader/merges","archive_url":"https://api.github.com/repos/brson/cargo-crusader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brson/cargo-crusader/downloads","issues_url":"https://api.github.com/repos/brson/cargo-crusader/issues{/number}","pulls_url":"https://api.github.com/repos/brson/cargo-crusader/pulls{/number}","milestones_url":"https://api.github.com/repos/brson/cargo-crusader/milestones{/number}","notifications_url":"https://api.github.com/repos/brson/cargo-crusader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brson/cargo-crusader/labels{/name}","releases_url":"https://api.github.com/repos/brson/cargo-crusader/releases{/id}","created_at":"2015-08-02T21:23:42Z","updated_at":"2015-08-11T09:06:47Z","pushed_at":"2015-08-12T01:04:01Z","git_url":"git://github.com/brson/cargo-crusader.git","ssh_url":"git@github.com:brson/cargo-crusader.git","clone_url":"https://github.com/brson/cargo-crusader.git","svn_url":"https://github.com/brson/cargo-crusader","homepage":"","size":140,"stargazers_count":10,"watchers_count":10,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brson/cargo-crusader/pulls/3"},"html":{"href":"https://github.com/brson/cargo-crusader/pull/3"},"issue":{"href":"https://api.github.com/repos/brson/cargo-crusader/issues/3"},"comments":{"href":"https://api.github.com/repos/brson/cargo-crusader/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/brson/cargo-crusader/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/brson/cargo-crusader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brson/cargo-crusader/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/brson/cargo-crusader/statuses/7c8a157b1e269366cea7f856b1aff5286cd22281"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":29,"deletions":15,"changed_files":1}}