{"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/13","id":220116070,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMTE2MDcw","html_url":"https://github.com/okfn-brasil/perfil-politico-frontend/pull/13","diff_url":"https://github.com/okfn-brasil/perfil-politico-frontend/pull/13.diff","patch_url":"https://github.com/okfn-brasil/perfil-politico-frontend/pull/13.patch","issue_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues/13","number":13,"state":"open","locked":false,"title":"Adding ESLint, Prettier and CircleCI Support","user":{"login":"gvarandas","id":5504958,"node_id":"MDQ6VXNlcjU1MDQ5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5504958?v=4","gravatar_id":"","url":"https://api.github.com/users/gvarandas","html_url":"https://github.com/gvarandas","followers_url":"https://api.github.com/users/gvarandas/followers","following_url":"https://api.github.com/users/gvarandas/following{/other_user}","gists_url":"https://api.github.com/users/gvarandas/gists{/gist_id}","starred_url":"https://api.github.com/users/gvarandas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvarandas/subscriptions","organizations_url":"https://api.github.com/users/gvarandas/orgs","repos_url":"https://api.github.com/users/gvarandas/repos","events_url":"https://api.github.com/users/gvarandas/events{/privacy}","received_events_url":"https://api.github.com/users/gvarandas/received_events","type":"User","site_admin":false},"body":"# Problem\r\nThe project currently did not have any way to guarantee the coding standard and best practices.\r\nThis is being discussed in issue #3.\r\n\r\n# Solution\r\nThe integration of some tooling to help the developers to keep their attention where its needed: solving problems.\r\n\r\n# Steps\r\n- [x] Added [**ESLint**](https://eslint.org);\r\n- [x] Added a NPM script to run the lint task;\r\n- [x] Added [**Prettier**](https://prettier.io);\r\n- [x] Integrated ESLint and Prettier to work altogether via plugins;\r\n- [x] Added a **pre-commit** hook that validates JavaScript files to ensure only code without problem is being pushed;\r\n- [x] Added a [**CircleCI**](https://circleci.com/) configuration to trigger builds that run the `lint` task.\r\n\r\n# Continuous Integration\r\nEven though there is a CircleCI configuration file, the integration to the external tool must be done by the owner of the project.\r\n\r\nThe config steps are detailed [here](https://circleci.com/docs/2.0/first-steps/#section=getting-started).\r\n\r\nAlso, CircleCI supports open source projects by allowing multiple containers to run the build jobs and it is also possible to configure which branches should trigger the CI (or even if PRs should also do it).\r\n\r\nThe Open Source configurations are [here](https://circleci.com/docs/2.0/oss/) and I can also help with that if needed.","created_at":"2018-10-03T17:20:13Z","updated_at":"2018-10-03T17:20:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/13/commits","review_comments_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/13/comments","review_comment_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues/13/comments","statuses_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/statuses/a098d2304b60f87fc1c5a1aad03af40a4a07c5d6","head":{"label":"gvarandas:master","ref":"master","sha":"a098d2304b60f87fc1c5a1aad03af40a4a07c5d6","user":{"login":"gvarandas","id":5504958,"node_id":"MDQ6VXNlcjU1MDQ5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5504958?v=4","gravatar_id":"","url":"https://api.github.com/users/gvarandas","html_url":"https://github.com/gvarandas","followers_url":"https://api.github.com/users/gvarandas/followers","following_url":"https://api.github.com/users/gvarandas/following{/other_user}","gists_url":"https://api.github.com/users/gvarandas/gists{/gist_id}","starred_url":"https://api.github.com/users/gvarandas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvarandas/subscriptions","organizations_url":"https://api.github.com/users/gvarandas/orgs","repos_url":"https://api.github.com/users/gvarandas/repos","events_url":"https://api.github.com/users/gvarandas/events{/privacy}","received_events_url":"https://api.github.com/users/gvarandas/received_events","type":"User","site_admin":false},"repo":{"id":151418578,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE0MTg1Nzg=","name":"perfil-politico-frontend","full_name":"gvarandas/perfil-politico-frontend","private":false,"owner":{"login":"gvarandas","id":5504958,"node_id":"MDQ6VXNlcjU1MDQ5NTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5504958?v=4","gravatar_id":"","url":"https://api.github.com/users/gvarandas","html_url":"https://github.com/gvarandas","followers_url":"https://api.github.com/users/gvarandas/followers","following_url":"https://api.github.com/users/gvarandas/following{/other_user}","gists_url":"https://api.github.com/users/gvarandas/gists{/gist_id}","starred_url":"https://api.github.com/users/gvarandas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvarandas/subscriptions","organizations_url":"https://api.github.com/users/gvarandas/orgs","repos_url":"https://api.github.com/users/gvarandas/repos","events_url":"https://api.github.com/users/gvarandas/events{/privacy}","received_events_url":"https://api.github.com/users/gvarandas/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gvarandas/perfil-politico-frontend","description":"Front-end that consumes Perfil Político's API","fork":true,"url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend","forks_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/forks","keys_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/teams","hooks_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/hooks","issue_events_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/events","assignees_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/tags","blobs_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/languages","stargazers_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/stargazers","contributors_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/contributors","subscribers_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/subscribers","subscription_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/subscription","commits_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/merges","archive_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/downloads","issues_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/labels{/name}","releases_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/gvarandas/perfil-politico-frontend/deployments","created_at":"2018-10-03T13:38:36Z","updated_at":"2018-10-03T17:01:15Z","pushed_at":"2018-10-03T17:01:14Z","git_url":"git://github.com/gvarandas/perfil-politico-frontend.git","ssh_url":"git@github.com:gvarandas/perfil-politico-frontend.git","clone_url":"https://github.com/gvarandas/perfil-politico-frontend.git","svn_url":"https://github.com/gvarandas/perfil-politico-frontend","homepage":"https://perfilpolitico.serenata.ai","size":33528,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"okfn-brasil:master","ref":"master","sha":"2adfba365339e97aafb620236c1f36f8b531fd90","user":{"login":"okfn-brasil","id":1666382,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjYzODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1666382?v=4","gravatar_id":"","url":"https://api.github.com/users/okfn-brasil","html_url":"https://github.com/okfn-brasil","followers_url":"https://api.github.com/users/okfn-brasil/followers","following_url":"https://api.github.com/users/okfn-brasil/following{/other_user}","gists_url":"https://api.github.com/users/okfn-brasil/gists{/gist_id}","starred_url":"https://api.github.com/users/okfn-brasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfn-brasil/subscriptions","organizations_url":"https://api.github.com/users/okfn-brasil/orgs","repos_url":"https://api.github.com/users/okfn-brasil/repos","events_url":"https://api.github.com/users/okfn-brasil/events{/privacy}","received_events_url":"https://api.github.com/users/okfn-brasil/received_events","type":"Organization","site_admin":false},"repo":{"id":149590809,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1OTA4MDk=","name":"perfil-politico-frontend","full_name":"okfn-brasil/perfil-politico-frontend","private":false,"owner":{"login":"okfn-brasil","id":1666382,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjYzODI=","avatar_url":"https://avatars1.githubusercontent.com/u/1666382?v=4","gravatar_id":"","url":"https://api.github.com/users/okfn-brasil","html_url":"https://github.com/okfn-brasil","followers_url":"https://api.github.com/users/okfn-brasil/followers","following_url":"https://api.github.com/users/okfn-brasil/following{/other_user}","gists_url":"https://api.github.com/users/okfn-brasil/gists{/gist_id}","starred_url":"https://api.github.com/users/okfn-brasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfn-brasil/subscriptions","organizations_url":"https://api.github.com/users/okfn-brasil/orgs","repos_url":"https://api.github.com/users/okfn-brasil/repos","events_url":"https://api.github.com/users/okfn-brasil/events{/privacy}","received_events_url":"https://api.github.com/users/okfn-brasil/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/okfn-brasil/perfil-politico-frontend","description":"Front-end that consumes Perfil Político's API","fork":false,"url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend","forks_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/forks","keys_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/teams","hooks_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/hooks","issue_events_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/events","assignees_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/tags","blobs_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/languages","stargazers_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/stargazers","contributors_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/contributors","subscribers_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/subscribers","subscription_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/subscription","commits_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/merges","archive_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/downloads","issues_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/labels{/name}","releases_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/deployments","created_at":"2018-09-20T10:14:55Z","updated_at":"2018-10-03T15:14:14Z","pushed_at":"2018-10-03T13:18:28Z","git_url":"git://github.com/okfn-brasil/perfil-politico-frontend.git","ssh_url":"git@github.com:okfn-brasil/perfil-politico-frontend.git","clone_url":"https://github.com/okfn-brasil/perfil-politico-frontend.git","svn_url":"https://github.com/okfn-brasil/perfil-politico-frontend","homepage":"https://perfilpolitico.serenata.ai","size":33346,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":3,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/13"},"html":{"href":"https://github.com/okfn-brasil/perfil-politico-frontend/pull/13"},"issue":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues/13"},"comments":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/okfn-brasil/perfil-politico-frontend/statuses/a098d2304b60f87fc1c5a1aad03af40a4a07c5d6"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":6,"additions":4730,"deletions":2793,"changed_files":14}}
{"actor":{"display_login":"gvarandas"}}