Fix get commit function that was returning an array #107
Annotations
10 errors
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L71
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:71:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L129
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:129:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L157
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:157:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L179
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:179:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L212
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:212:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L245
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:245:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L280
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:280:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L315
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:315:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L350
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:350:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Run tests:
tests/handlers/deployment-protection-rule.test.ts#L380
AggregateError:
HttpError: Nock: No match for request {
"method": "GET",
"url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",
"headers": {
"accept": "application/vnd.github.v3+json",
"authorization": "token test",
"user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"
}
}
at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)
at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)
❯ node_modules/@octokit/request/dist-node/index.js:157:11
❯ sendRequestWithRetries node_modules/@octokit/auth-app/dist-node/index.js:411:12
❯ Job.doExecute node_modules/bottleneck/light.js:405:18
❯ node_modules/@octokit/webhooks/dist-node/index.js:431:19
❯ tests/handlers/deployment-protection-rule.test.ts:380:3
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { _errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at sendRequestWithRetries (/home/runner/work/deploynaut/deploynaut/node_modules/@octokit/auth-app/dist-node/index.js:411:12)\n at Job.doExecute (/home/runner/work/deploynaut/deploynaut/node_modules/bottleneck/light.js:405:18)', message: 'Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}', name: 'HttpError', status: 500, request: { method: 'GET', url: 'https://api.github.com/repos/test-org/test-repo/commits/test-sha', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)', authorization: 'token [REDACTED]' }, request: { hook: 'Function<bound bound register>' } }, code: 500, headers: {}, event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, constructor: 'Function<RequestError>', toString: 'Function<toString>' } ], event: { name: 'deployment_protection_rule', payload: { action: 'requested', environment: 'test', event: 'pull_request', deployment_callback_url: 'https://api.github.com/repos/test-org/test-repo/actions/runs/1234/deployment_protection_rule', deployment: { sha: 'test-sha' }, installation: { id: 12345678 }, repository: { owner: { login: 'test-org' }, name: 'test-repo' }, pull_requests: [ { number: 123 } ] } }, errors: [ { stack: 'HttpError: Nock: No match for request {\n "method": "GET",\n "url": "https://api.github.com/repos/test-org/test-repo/commits/test-sha",\n "headers": {\n "accept": "application/vnd.github.v3+json",\n "authorization": "token test",\n "user-agent": "probot/13.3.8 octokit-core.js/5.2.0 Node.js/20.18.1 (linux; x64)"\n }\n}\n at /home/runner/work/deploynaut/deploynaut/node_modules/@octokit/request/dist-node/index.js:157:11\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at
|
Loading