{"action":"opened","number":45,"pull_request":{"url":"https://api.github.com/repos/parroty/excoveralls/pulls/45","id":64569111,"html_url":"https://github.com/parroty/excoveralls/pull/45","diff_url":"https://github.com/parroty/excoveralls/pull/45.diff","patch_url":"https://github.com/parroty/excoveralls/pull/45.patch","issue_url":"https://api.github.com/repos/parroty/excoveralls/issues/45","number":45,"state":"open","locked":false,"title":"Add support for minimum coverage","user":{"login":"campezzi","id":1184847,"avatar_url":"https://avatars.githubusercontent.com/u/1184847?v=3","gravatar_id":"","url":"https://api.github.com/users/campezzi","html_url":"https://github.com/campezzi","followers_url":"https://api.github.com/users/campezzi/followers","following_url":"https://api.github.com/users/campezzi/following{/other_user}","gists_url":"https://api.github.com/users/campezzi/gists{/gist_id}","starred_url":"https://api.github.com/users/campezzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campezzi/subscriptions","organizations_url":"https://api.github.com/users/campezzi/orgs","repos_url":"https://api.github.com/users/campezzi/repos","events_url":"https://api.github.com/users/campezzi/events{/privacy}","received_events_url":"https://api.github.com/users/campezzi/received_events","type":"User","site_admin":false},"body":"This pull request adds support for a new option in the `coverage.json` file inside the `coverage_options` key: `minimum_coverage` (defaults to zero). When the user adds a value in this option running `mix coveralls` or `mix coveralls.html` with exit with a status code of 1 if total coverage falls below that threshold. This is useful for stopping CI pipelines with tight coverage requirements.\r\n\r\nI noticed the `Html` module had some totalization of stats in it, so those were moved into `Stats`. That has significantly cleaned up `Html`. There are many calculations for individual files still going on in the `Local` module, but I chose not to refactor those for now. We could tackle that on a later PR.\r\n\r\nLet me know what you think! Cheers.","created_at":"2016-03-30T04:06:10Z","updated_at":"2016-03-30T04:06:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4eb3513707be3f25e8263fbb7e2e335f691728c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/parroty/excoveralls/pulls/45/commits","review_comments_url":"https://api.github.com/repos/parroty/excoveralls/pulls/45/comments","review_comment_url":"https://api.github.com/repos/parroty/excoveralls/pulls/comments{/number}","comments_url":"https://api.github.com/repos/parroty/excoveralls/issues/45/comments","statuses_url":"https://api.github.com/repos/parroty/excoveralls/statuses/c2467b9d2f7fbf63c8e3c6e8e40ffd3943d299b4","head":{"label":"campezzi:master","ref":"master","sha":"c2467b9d2f7fbf63c8e3c6e8e40ffd3943d299b4","user":{"login":"campezzi","id":1184847,"avatar_url":"https://avatars.githubusercontent.com/u/1184847?v=3","gravatar_id":"","url":"https://api.github.com/users/campezzi","html_url":"https://github.com/campezzi","followers_url":"https://api.github.com/users/campezzi/followers","following_url":"https://api.github.com/users/campezzi/following{/other_user}","gists_url":"https://api.github.com/users/campezzi/gists{/gist_id}","starred_url":"https://api.github.com/users/campezzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campezzi/subscriptions","organizations_url":"https://api.github.com/users/campezzi/orgs","repos_url":"https://api.github.com/users/campezzi/repos","events_url":"https://api.github.com/users/campezzi/events{/privacy}","received_events_url":"https://api.github.com/users/campezzi/received_events","type":"User","site_admin":false},"repo":{"id":54245494,"name":"excoveralls","full_name":"campezzi/excoveralls","owner":{"login":"campezzi","id":1184847,"avatar_url":"https://avatars.githubusercontent.com/u/1184847?v=3","gravatar_id":"","url":"https://api.github.com/users/campezzi","html_url":"https://github.com/campezzi","followers_url":"https://api.github.com/users/campezzi/followers","following_url":"https://api.github.com/users/campezzi/following{/other_user}","gists_url":"https://api.github.com/users/campezzi/gists{/gist_id}","starred_url":"https://api.github.com/users/campezzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campezzi/subscriptions","organizations_url":"https://api.github.com/users/campezzi/orgs","repos_url":"https://api.github.com/users/campezzi/repos","events_url":"https://api.github.com/users/campezzi/events{/privacy}","received_events_url":"https://api.github.com/users/campezzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/campezzi/excoveralls","description":"Coverage report tool for Elixir with coveralls.io integration.","fork":true,"url":"https://api.github.com/repos/campezzi/excoveralls","forks_url":"https://api.github.com/repos/campezzi/excoveralls/forks","keys_url":"https://api.github.com/repos/campezzi/excoveralls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/campezzi/excoveralls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/campezzi/excoveralls/teams","hooks_url":"https://api.github.com/repos/campezzi/excoveralls/hooks","issue_events_url":"https://api.github.com/repos/campezzi/excoveralls/issues/events{/number}","events_url":"https://api.github.com/repos/campezzi/excoveralls/events","assignees_url":"https://api.github.com/repos/campezzi/excoveralls/assignees{/user}","branches_url":"https://api.github.com/repos/campezzi/excoveralls/branches{/branch}","tags_url":"https://api.github.com/repos/campezzi/excoveralls/tags","blobs_url":"https://api.github.com/repos/campezzi/excoveralls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/campezzi/excoveralls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/campezzi/excoveralls/git/refs{/sha}","trees_url":"https://api.github.com/repos/campezzi/excoveralls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/campezzi/excoveralls/statuses/{sha}","languages_url":"https://api.github.com/repos/campezzi/excoveralls/languages","stargazers_url":"https://api.github.com/repos/campezzi/excoveralls/stargazers","contributors_url":"https://api.github.com/repos/campezzi/excoveralls/contributors","subscribers_url":"https://api.github.com/repos/campezzi/excoveralls/subscribers","subscription_url":"https://api.github.com/repos/campezzi/excoveralls/subscription","commits_url":"https://api.github.com/repos/campezzi/excoveralls/commits{/sha}","git_commits_url":"https://api.github.com/repos/campezzi/excoveralls/git/commits{/sha}","comments_url":"https://api.github.com/repos/campezzi/excoveralls/comments{/number}","issue_comment_url":"https://api.github.com/repos/campezzi/excoveralls/issues/comments{/number}","contents_url":"https://api.github.com/repos/campezzi/excoveralls/contents/{+path}","compare_url":"https://api.github.com/repos/campezzi/excoveralls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/campezzi/excoveralls/merges","archive_url":"https://api.github.com/repos/campezzi/excoveralls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/campezzi/excoveralls/downloads","issues_url":"https://api.github.com/repos/campezzi/excoveralls/issues{/number}","pulls_url":"https://api.github.com/repos/campezzi/excoveralls/pulls{/number}","milestones_url":"https://api.github.com/repos/campezzi/excoveralls/milestones{/number}","notifications_url":"https://api.github.com/repos/campezzi/excoveralls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/campezzi/excoveralls/labels{/name}","releases_url":"https://api.github.com/repos/campezzi/excoveralls/releases{/id}","deployments_url":"https://api.github.com/repos/campezzi/excoveralls/deployments","created_at":"2016-03-19T03:30:56Z","updated_at":"2016-03-19T03:30:56Z","pushed_at":"2016-03-30T03:57:50Z","git_url":"git://github.com/campezzi/excoveralls.git","ssh_url":"git@github.com:campezzi/excoveralls.git","clone_url":"https://github.com/campezzi/excoveralls.git","svn_url":"https://github.com/campezzi/excoveralls","homepage":"","size":377,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"parroty:master","ref":"master","sha":"05b4c1a78e5f3a7526c5e91211e56cf36ec26bcf","user":{"login":"parroty","id":1172471,"avatar_url":"https://avatars.githubusercontent.com/u/1172471?v=3","gravatar_id":"","url":"https://api.github.com/users/parroty","html_url":"https://github.com/parroty","followers_url":"https://api.github.com/users/parroty/followers","following_url":"https://api.github.com/users/parroty/following{/other_user}","gists_url":"https://api.github.com/users/parroty/gists{/gist_id}","starred_url":"https://api.github.com/users/parroty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parroty/subscriptions","organizations_url":"https://api.github.com/users/parroty/orgs","repos_url":"https://api.github.com/users/parroty/repos","events_url":"https://api.github.com/users/parroty/events{/privacy}","received_events_url":"https://api.github.com/users/parroty/received_events","type":"User","site_admin":false},"repo":{"id":12595601,"name":"excoveralls","full_name":"parroty/excoveralls","owner":{"login":"parroty","id":1172471,"avatar_url":"https://avatars.githubusercontent.com/u/1172471?v=3","gravatar_id":"","url":"https://api.github.com/users/parroty","html_url":"https://github.com/parroty","followers_url":"https://api.github.com/users/parroty/followers","following_url":"https://api.github.com/users/parroty/following{/other_user}","gists_url":"https://api.github.com/users/parroty/gists{/gist_id}","starred_url":"https://api.github.com/users/parroty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parroty/subscriptions","organizations_url":"https://api.github.com/users/parroty/orgs","repos_url":"https://api.github.com/users/parroty/repos","events_url":"https://api.github.com/users/parroty/events{/privacy}","received_events_url":"https://api.github.com/users/parroty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parroty/excoveralls","description":"Coverage report tool for Elixir with coveralls.io integration.","fork":false,"url":"https://api.github.com/repos/parroty/excoveralls","forks_url":"https://api.github.com/repos/parroty/excoveralls/forks","keys_url":"https://api.github.com/repos/parroty/excoveralls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parroty/excoveralls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parroty/excoveralls/teams","hooks_url":"https://api.github.com/repos/parroty/excoveralls/hooks","issue_events_url":"https://api.github.com/repos/parroty/excoveralls/issues/events{/number}","events_url":"https://api.github.com/repos/parroty/excoveralls/events","assignees_url":"https://api.github.com/repos/parroty/excoveralls/assignees{/user}","branches_url":"https://api.github.com/repos/parroty/excoveralls/branches{/branch}","tags_url":"https://api.github.com/repos/parroty/excoveralls/tags","blobs_url":"https://api.github.com/repos/parroty/excoveralls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parroty/excoveralls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parroty/excoveralls/git/refs{/sha}","trees_url":"https://api.github.com/repos/parroty/excoveralls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parroty/excoveralls/statuses/{sha}","languages_url":"https://api.github.com/repos/parroty/excoveralls/languages","stargazers_url":"https://api.github.com/repos/parroty/excoveralls/stargazers","contributors_url":"https://api.github.com/repos/parroty/excoveralls/contributors","subscribers_url":"https://api.github.com/repos/parroty/excoveralls/subscribers","subscription_url":"https://api.github.com/repos/parroty/excoveralls/subscription","commits_url":"https://api.github.com/repos/parroty/excoveralls/commits{/sha}","git_commits_url":"https://api.github.com/repos/parroty/excoveralls/git/commits{/sha}","comments_url":"https://api.github.com/repos/parroty/excoveralls/comments{/number}","issue_comment_url":"https://api.github.com/repos/parroty/excoveralls/issues/comments{/number}","contents_url":"https://api.github.com/repos/parroty/excoveralls/contents/{+path}","compare_url":"https://api.github.com/repos/parroty/excoveralls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parroty/excoveralls/merges","archive_url":"https://api.github.com/repos/parroty/excoveralls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parroty/excoveralls/downloads","issues_url":"https://api.github.com/repos/parroty/excoveralls/issues{/number}","pulls_url":"https://api.github.com/repos/parroty/excoveralls/pulls{/number}","milestones_url":"https://api.github.com/repos/parroty/excoveralls/milestones{/number}","notifications_url":"https://api.github.com/repos/parroty/excoveralls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parroty/excoveralls/labels{/name}","releases_url":"https://api.github.com/repos/parroty/excoveralls/releases{/id}","deployments_url":"https://api.github.com/repos/parroty/excoveralls/deployments","created_at":"2013-09-04T16:09:36Z","updated_at":"2016-03-29T04:32:32Z","pushed_at":"2016-03-30T04:06:10Z","git_url":"git://github.com/parroty/excoveralls.git","ssh_url":"git@github.com:parroty/excoveralls.git","clone_url":"https://github.com/parroty/excoveralls.git","svn_url":"https://github.com/parroty/excoveralls","homepage":"","size":373,"stargazers_count":95,"watchers_count":95,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":6,"forks":24,"open_issues":6,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/parroty/excoveralls/pulls/45"},"html":{"href":"https://github.com/parroty/excoveralls/pull/45"},"issue":{"href":"https://api.github.com/repos/parroty/excoveralls/issues/45"},"comments":{"href":"https://api.github.com/repos/parroty/excoveralls/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/parroty/excoveralls/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/parroty/excoveralls/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/parroty/excoveralls/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/parroty/excoveralls/statuses/c2467b9d2f7fbf63c8e3c6e8e40ffd3943d299b4"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":280,"deletions":139,"changed_files":12}}