@notriddle Had a crash with PR yesterday.
{{:badmatch,
{:error, :merge_branch,
%Tesla.Env{
__client__: %Tesla.Client{
adapter: {Tesla.Adapter.Httpc, :call,
[
[
ssl: [
verify: :verify_peer,
verify_fun: {&:ssl_verify_hostname.verify_fun/3,
[check_hostname: 'api.github.com']},
cacertfile: '/app/_build/prod/lib/certifi/priv/cacerts.pem'
]
]
]},
fun: nil,
post: [],
pre: [
{Tesla.Middleware.BaseUrl, :call,
["https://api.github.com"]},
{Tesla.Middleware.Headers, :call,
[
[
{"authorization",
"token v1.f7527151d67fdae656bf60ca7bd3136a497ac63c"},
{"accept", "application/vnd.github.v3+json"},
{"user-agent", "bors-ng https://bors.tech"}
]
]},
{Tesla.Middleware.Retry, :call,
[[delay: 100, max_retries: 5]]}
]
},
__module__: Tesla,
body: "{\"message\":\"Resource not accessible by integration\",\"documentation_url\":\"https://developer.github.com/v3/repos/merging/#perform-a-merge\"}",
headers: [
{"date", "Mon, 20 Apr 2020 22:17:18 GMT"},
{"server", "GitHub.com"},
{"vary", "Accept-Encoding, Accept, X-Requested-With"},
{"content-length", "137"},
{"content-type", "application/json; charset=utf-8"},
{"status", "403 Forbidden"},
{"x-ratelimit-limit", "5000"},
{"x-ratelimit-remaining", "4985"},
{"x-ratelimit-reset", "1587424624"},
{"x-github-media-type", "github.v3; format=json"},
{"access-control-expose-headers",
"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"},
{"access-control-allow-origin", "*"},
{"strict-transport-security",
"max-age=31536000; includeSubdomains; preload"},
{"x-frame-options", "deny"},
{"x-content-type-options", "nosniff"},
{"x-xss-protection", "1; mode=block"},
{"referrer-policy",
"origin-when-cross-origin, strict-origin-when-cross-origin"},
{"content-security-policy", "default-src 'none'"},
{"x-github-request-id",
"B8B2:7B95:791AC7:13D1FD0:5E9E1F6E"}
],
method: :post,
opts: [],
query: [],
status: 403,
url: "https://api.github.com/repositories/31315121/merges"
}}},
[
{BorsNG.GitHub, :merge_branch!, 2,
[file: 'lib/github/github.ex', line: 157]},
{Enum, :"-reduce/3-lists^foldl/2-0-", 3,
[file: 'lib/enum.ex', line: 1940]},
{BorsNG.Worker.Batcher, :start_waiting_batch, 1,
[file: 'lib/worker/batcher.ex', line: 429]},
{BorsNG.Worker.Batcher, :poll_, 1,
[file: 'lib/worker/batcher.ex', line: 292]},
{BorsNG.Worker.Batcher, :handle_info, 2,
[file: 'lib/worker/batcher.ex', line: 236]},
{:gen_server, :try_dispatch, 4,
[file: 'gen_server.erl', line: 637]},
{:gen_server, :handle_msg, 6,
[file: 'gen_server.erl', line: 711]},
{:proc_lib, :init_p_do_apply, 3,
[file: 'proc_lib.erl', line: 249]}
]}