payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5916","repository_url":"https://api.github.com/repos/rubocop-hq/rubocop","labels_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5916/labels{/name}","comments_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5916/comments","events_url":"https://api.github.com/repos/rubocop-hq/rubocop/issues/5916/events","html_url":"https://github.com/rubocop-hq/rubocop/issues/5916","id":326503887,"node_id":"MDU6SXNzdWUzMjY1MDM4ODc=","number":5916,"title":"Comma at end of URI causes Rubocop to alert on LineLength","user":{"login":"rpbaptist","id":7916262,"node_id":"MDQ6VXNlcjc5MTYyNjI=","avatar_url":"https://avatars2.githubusercontent.com/u/7916262?v=4","gravatar_id":"","url":"https://api.github.com/users/rpbaptist","html_url":"https://github.com/rpbaptist","followers_url":"https://api.github.com/users/rpbaptist/followers","following_url":"https://api.github.com/users/rpbaptist/following{/other_user}","gists_url":"https://api.github.com/users/rpbaptist/gists{/gist_id}","starred_url":"https://api.github.com/users/rpbaptist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpbaptist/subscriptions","organizations_url":"https://api.github.com/users/rpbaptist/orgs","repos_url":"https://api.github.com/users/rpbaptist/repos","events_url":"https://api.github.com/users/rpbaptist/events{/privacy}","received_events_url":"https://api.github.com/users/rpbaptist/received_events","type":"User","site_admin":false},"labels":[{"id":3608332,"node_id":"MDU6TGFiZWwzNjA4MzMy","url":"https://api.github.com/repos/rubocop-hq/rubocop/labels/bug","name":"bug","color":"fc2929","default":true},{"id":1353058505,"node_id":"MDU6TGFiZWwxMzUzMDU4NTA1","url":"https://api.github.com/repos/rubocop-hq/rubocop/labels/stale","name":"stale","color":"e83cc5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-25T12:27:54Z","updated_at":"2019-06-08T00:32:55Z","closed_at":"2019-06-08T00:32:55Z","author_association":"NONE","body":"## Expected behavior\r\n\r\nHaving the following configuration:\r\n\r\n```yaml\r\nMetrics/LineLength:\r\n  Max: 80\r\n  AllowHeredoc: true\r\n  AllowURI: true\r\n```\r\n\r\nI expect this to be allowed:\r\n\r\n```ruby\r\n{\r\n  confirmation_url: \"https://subodomain.example.com/with_a_length_path/?and=some&more=params\",\r\n  foo: :bar\r\n}\r\n```\r\n\r\n## Actual behavior\r\n\r\nRubocop warns that line is too long and it's because of the comma. When I reverse the keys Rubocop does recognize the URI.\r\n\r\n```ruby\r\n\r\n{\r\n  foo: :bar,\r\n  confirmation_url: \"https://subodomain.example.com/with_a_length_path/?and=some&more=params\"\r\n}\r\n```\r\n\r\n## Steps to reproduce the problem\r\n\r\nSee above\r\n\r\n## RuboCop version\r\n\r\n```\r\n> rubocop -v\r\n0.55.0\r\n```\r\n"}}
other: {"actor":{"display_login":"stale"}}