{"action":"closed","number":41,"pull_request":{"url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/41","id":338199530,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM4MTk5NTMw","html_url":"https://github.com/andrewmcodes/rubocop-linter-action/pull/41","diff_url":"https://github.com/andrewmcodes/rubocop-linter-action/pull/41.diff","patch_url":"https://github.com/andrewmcodes/rubocop-linter-action/pull/41.patch","issue_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/41","number":41,"state":"closed","locked":false,"title":"only send GitHub offenses instead of entire json output","user":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"body":"# Bug Fix\r\n\r\n## Description\r\n\r\nWe were not actually sending GitHub our list of annotations, but rather the entire report generated from `rubocop --format json`. This caused there to be empty offenses in the annotations we were trying to create, which the API rejected due to missing keys.\r\n\r\nThis change ensures that we actually send our annotation list, instead of the entire report. This also negated the need for the changes in #29, which have also been removed.\r\n\r\nFixes #40\r\n\r\n## Checklist\r\n\r\n- [x] My code follows the style guidelines of this project\r\n- [x] Actions are passing\r\n","created_at":"2019-11-07T19:18:43Z","updated_at":"2019-11-07T19:56:58Z","closed_at":"2019-11-07T19:56:58Z","merged_at":"2019-11-07T19:56:57Z","merge_commit_sha":"4ef2f59b3d21e87d6a5702b9b49ca3a6c5831f2a","assignee":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/41/commits","review_comments_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/41/comments","review_comment_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/41/comments","statuses_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/statuses/eea14e9544fa4600875d9c8709fe36b45b41f417","head":{"label":"andrewmcodes:issue-40","ref":"issue-40","sha":"eea14e9544fa4600875d9c8709fe36b45b41f417","user":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"repo":{"id":205964243,"node_id":"MDEwOlJlcG9zaXRvcnkyMDU5NjQyNDM=","name":"rubocop-linter-action","full_name":"andrewmcodes/rubocop-linter-action","private":false,"owner":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andrewmcodes/rubocop-linter-action","description":"Rubocop Linter Action: A GitHub Action to run Rubocop against your code!","fork":false,"url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action","forks_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/forks","keys_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/teams","hooks_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/hooks","issue_events_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/events{/number}","events_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/events","assignees_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/assignees{/user}","branches_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/branches{/branch}","tags_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/tags","blobs_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/languages","stargazers_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/stargazers","contributors_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/contributors","subscribers_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/subscribers","subscription_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/subscription","commits_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/contents/{+path}","compare_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/merges","archive_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/downloads","issues_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues{/number}","pulls_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/labels{/name}","releases_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/releases{/id}","deployments_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/deployments","created_at":"2019-09-03T01:28:09Z","updated_at":"2019-11-07T04:50:24Z","pushed_at":"2019-11-07T19:56:57Z","git_url":"git://github.com/andrewmcodes/rubocop-linter-action.git","ssh_url":"git@github.com:andrewmcodes/rubocop-linter-action.git","clone_url":"https://github.com/andrewmcodes/rubocop-linter-action.git","svn_url":"https://github.com/andrewmcodes/rubocop-linter-action","homepage":"","size":290,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":1,"watchers":8,"default_branch":"master"}},"base":{"label":"andrewmcodes:master","ref":"master","sha":"e6e9b4f8cbcb12232ad8e9019f855dd9763c34db","user":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"repo":{"id":205964243,"node_id":"MDEwOlJlcG9zaXRvcnkyMDU5NjQyNDM=","name":"rubocop-linter-action","full_name":"andrewmcodes/rubocop-linter-action","private":false,"owner":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andrewmcodes/rubocop-linter-action","description":"Rubocop Linter Action: A GitHub Action to run Rubocop against your code!","fork":false,"url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action","forks_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/forks","keys_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/teams","hooks_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/hooks","issue_events_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/events{/number}","events_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/events","assignees_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/assignees{/user}","branches_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/branches{/branch}","tags_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/tags","blobs_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/languages","stargazers_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/stargazers","contributors_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/contributors","subscribers_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/subscribers","subscription_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/subscription","commits_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/contents/{+path}","compare_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/merges","archive_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/downloads","issues_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues{/number}","pulls_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/labels{/name}","releases_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/releases{/id}","deployments_url":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/deployments","created_at":"2019-09-03T01:28:09Z","updated_at":"2019-11-07T04:50:24Z","pushed_at":"2019-11-07T19:56:57Z","git_url":"git://github.com/andrewmcodes/rubocop-linter-action.git","ssh_url":"git@github.com:andrewmcodes/rubocop-linter-action.git","clone_url":"https://github.com/andrewmcodes/rubocop-linter-action.git","svn_url":"https://github.com/andrewmcodes/rubocop-linter-action","homepage":"","size":290,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":1,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/41"},"html":{"href":"https://github.com/andrewmcodes/rubocop-linter-action/pull/41"},"issue":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/41"},"comments":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/andrewmcodes/rubocop-linter-action/statuses/eea14e9544fa4600875d9c8709fe36b45b41f417"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"andrewmcodes","id":18423853,"node_id":"MDQ6VXNlcjE4NDIzODUz","avatar_url":"https://avatars1.githubusercontent.com/u/18423853?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmcodes","html_url":"https://github.com/andrewmcodes","followers_url":"https://api.github.com/users/andrewmcodes/followers","following_url":"https://api.github.com/users/andrewmcodes/following{/other_user}","gists_url":"https://api.github.com/users/andrewmcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmcodes/subscriptions","organizations_url":"https://api.github.com/users/andrewmcodes/orgs","repos_url":"https://api.github.com/users/andrewmcodes/repos","events_url":"https://api.github.com/users/andrewmcodes/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmcodes/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":7,"additions":3,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"andrewmcodes"}}