{"action":"created","issue":{"url":"https://api.github.com/repos/okonet/lint-staged/issues/304","repository_url":"https://api.github.com/repos/okonet/lint-staged","labels_url":"https://api.github.com/repos/okonet/lint-staged/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/okonet/lint-staged/issues/304/comments","events_url":"https://api.github.com/repos/okonet/lint-staged/issues/304/events","html_url":"https://github.com/okonet/lint-staged/pull/304","id":263620356,"number":304,"title":"Allow config to be provided via command-line","user":{"login":"cameronhunter","id":246534,"avatar_url":"https://avatars0.githubusercontent.com/u/246534?v=4","gravatar_id":"","url":"https://api.github.com/users/cameronhunter","html_url":"https://github.com/cameronhunter","followers_url":"https://api.github.com/users/cameronhunter/followers","following_url":"https://api.github.com/users/cameronhunter/following{/other_user}","gists_url":"https://api.github.com/users/cameronhunter/gists{/gist_id}","starred_url":"https://api.github.com/users/cameronhunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameronhunter/subscriptions","organizations_url":"https://api.github.com/users/cameronhunter/orgs","repos_url":"https://api.github.com/users/cameronhunter/repos","events_url":"https://api.github.com/users/cameronhunter/events{/privacy}","received_events_url":"https://api.github.com/users/cameronhunter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-07T06:18:48Z","updated_at":"2017-10-13T17:47:12Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/okonet/lint-staged/pulls/304","html_url":"https://github.com/okonet/lint-staged/pull/304","diff_url":"https://github.com/okonet/lint-staged/pull/304.diff","patch_url":"https://github.com/okonet/lint-staged/pull/304.patch"},"body":"### Summary\r\nI use `lint-staged` as a pre-commit hook and would like to explicitly provide the config file location. This PR uses [`commander`](npmjs.com/package/commander) to parse the command-line argument and passes it as `cosmiconfig`'s [`configPath`](https://github.com/davidtheclark/cosmiconfig#configpath) option. This allows the config file to be any format already supported.\r\n\r\n### Test plan\r\nI've added tests and updated the documentation."},"comment":{"url":"https://api.github.com/repos/okonet/lint-staged/issues/comments/336521831","html_url":"https://github.com/okonet/lint-staged/pull/304#issuecomment-336521831","issue_url":"https://api.github.com/repos/okonet/lint-staged/issues/304","id":336521831,"user":{"login":"codecov[bot]","id":22429695,"avatar_url":"https://avatars2.githubusercontent.com/in/254?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov%5Bbot%5D","html_url":"https://github.com/apps/codecov","followers_url":"https://api.github.com/users/codecov%5Bbot%5D/followers","following_url":"https://api.github.com/users/codecov%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codecov%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codecov%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codecov%5Bbot%5D/repos","events_url":"https://api.github.com/users/codecov%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codecov%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2017-10-13T17:47:12Z","updated_at":"2017-10-13T17:47:12Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=h1) Report\n> Merging [#304](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=desc) into [master](https://codecov.io/gh/okonet/lint-staged/commit/50416a94d6e4280b37e8a0d8cdf867910f042af1?src=pr&el=desc) will **increase** coverage by `0.58%`.\n> The diff coverage is `100%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/okonet/lint-staged/pull/304/graphs/tree.svg?token=LSoEgsjk4O&height=150&src=pr&width=650)](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff             @@\n##           master     #304      +/-   ##\n==========================================\n+ Coverage   91.86%   92.44%   +0.58%     \n==========================================\n  Files          10       10              \n  Lines         172      172              \n  Branches       26       26              \n==========================================\n+ Hits          158      159       +1     \n+ Misses         13       12       -1     \n  Partials        1        1\n```\n\n\n| [Impacted Files](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [src/index.js](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=tree#diff-c3JjL2luZGV4Lmpz) | `80.64% <100%> (+3.22%)` | :arrow_up: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=footer). Last update [50416a9...99d44b9](https://codecov.io/gh/okonet/lint-staged/pull/304?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov"}}