{"action":"closed","issue":{"url":"https://api.github.com/repos/renovateapp/renovate/issues/1934","repository_url":"https://api.github.com/repos/renovateapp/renovate","labels_url":"https://api.github.com/repos/renovateapp/renovate/issues/1934/labels{/name}","comments_url":"https://api.github.com/repos/renovateapp/renovate/issues/1934/comments","events_url":"https://api.github.com/repos/renovateapp/renovate/issues/1934/events","html_url":"https://github.com/renovateapp/renovate/issues/1934","id":320860347,"node_id":"MDU6SXNzdWUzMjA4NjAzNDc=","number":1934,"title":"Add comment to PR when branch automerge fails","user":{"login":"rarkins","id":6311784,"node_id":"MDQ6VXNlcjYzMTE3ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/6311784?v=4","gravatar_id":"","url":"https://api.github.com/users/rarkins","html_url":"https://github.com/rarkins","followers_url":"https://api.github.com/users/rarkins/followers","following_url":"https://api.github.com/users/rarkins/following{/other_user}","gists_url":"https://api.github.com/users/rarkins/gists{/gist_id}","starred_url":"https://api.github.com/users/rarkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rarkins/subscriptions","organizations_url":"https://api.github.com/users/rarkins/orgs","repos_url":"https://api.github.com/users/rarkins/repos","events_url":"https://api.github.com/users/rarkins/events{/privacy}","received_events_url":"https://api.github.com/users/rarkins/received_events","type":"User","site_admin":false},"labels":[{"id":502599336,"node_id":"MDU6TGFiZWw1MDI1OTkzMzY=","url":"https://api.github.com/repos/renovateapp/renovate/labels/feat","name":"feat","color":"006b75","default":false},{"id":619253225,"node_id":"MDU6TGFiZWw2MTkyNTMyMjU=","url":"https://api.github.com/repos/renovateapp/renovate/labels/pri3-normal","name":"pri3-normal","color":"c2e0c6","default":false},{"id":523660637,"node_id":"MDU6TGFiZWw1MjM2NjA2Mzc=","url":"https://api.github.com/repos/renovateapp/renovate/labels/ready","name":"ready","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":{"login":"dragomirt","id":22262264,"node_id":"MDQ6VXNlcjIyMjYyMjY0","avatar_url":"https://avatars0.githubusercontent.com/u/22262264?v=4","gravatar_id":"","url":"https://api.github.com/users/dragomirt","html_url":"https://github.com/dragomirt","followers_url":"https://api.github.com/users/dragomirt/followers","following_url":"https://api.github.com/users/dragomirt/following{/other_user}","gists_url":"https://api.github.com/users/dragomirt/gists{/gist_id}","starred_url":"https://api.github.com/users/dragomirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragomirt/subscriptions","organizations_url":"https://api.github.com/users/dragomirt/orgs","repos_url":"https://api.github.com/users/dragomirt/repos","events_url":"https://api.github.com/users/dragomirt/events{/privacy}","received_events_url":"https://api.github.com/users/dragomirt/received_events","type":"User","site_admin":false},"assignees":[{"login":"dragomirt","id":22262264,"node_id":"MDQ6VXNlcjIyMjYyMjY0","avatar_url":"https://avatars0.githubusercontent.com/u/22262264?v=4","gravatar_id":"","url":"https://api.github.com/users/dragomirt","html_url":"https://github.com/dragomirt","followers_url":"https://api.github.com/users/dragomirt/followers","following_url":"https://api.github.com/users/dragomirt/following{/other_user}","gists_url":"https://api.github.com/users/dragomirt/gists{/gist_id}","starred_url":"https://api.github.com/users/dragomirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragomirt/subscriptions","organizations_url":"https://api.github.com/users/dragomirt/orgs","repos_url":"https://api.github.com/users/dragomirt/repos","events_url":"https://api.github.com/users/dragomirt/events{/privacy}","received_events_url":"https://api.github.com/users/dragomirt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-07T16:00:38Z","updated_at":"2018-06-07T12:42:52Z","closed_at":"2018-06-07T12:42:52Z","author_association":"MEMBER","body":"It would be useful to tell users why the PR was raised. Can’t be in PR body itself as it would get overridden the next run, so we should use the ensure issue comment capability to add it after the PR is created, like we do with assignees, reviewers and labels.\r\n\r\nIt should have the heading \"Branch automerge failure\" and then the content can say \"This PR was configured for branch automerge, however this is not possible so it has been raised as a PR instead.\" Ideally we could pass an explanation through to add to it, e.g. if it's because it timed out from pending then the explanation is \"Status checks remained in pending state for too long\". If there are status check failures then the explanation is \"Branch has one or more failed status checks\" and ideally a stringified copy of the status check response."}}
{"actor":{"display_login":"rarkins"}}