refactor: simplify wehbook configuration controller handlers #4440
release-drafter.yml
on: pull_request
update_release_draft
5s
Annotations
2 errors
update_release_draft
Resource not accessible by integration
{
name: 'HttpError',
id: '11160981195',
status: 403,
response: {
url: 'https://api.github.com/repos/kubewarden/kubewarden-controller/releases',
status: 403,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 03 Oct 2024 11:19:53 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'contents=write; contents=write,workflows=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '2C86:141458:1F88196:1FCB1BD:66FE7DD9',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14959',
'x-ratelimit-reset': '1727956917',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '41',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release',
status: '403'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/kubewarden/kubewarden-controller/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.13.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/pull/894/merge","name":"v1.18.0","tag_name":"","body":"## 🚀 Features\\n\\n- feat: shortName for the CRDs. (#896)\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: {}
},
event: {
id: '11160981195',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '## Description\r\n' +
'\r\n' +
'<!-- Please provide the link to the GitHub issue you are addressing -->\r\n' +
'Fix #XXX\r\n' +
'\r\n' +
'<!-- Please provide the link to the documentation related to your change, if applicable -->\r\n' +
'<!-- [Documentation](https://<insert your url>) -->\r\n' +
'\r\n' +
'## Test\r\n' +
'\r\n' +
'<!-- Please provides a short description about how to test your pullrequest -->\r\n' +
'To test this pull request, you can run the following commands:\r\n' +
'\r\n' +
'<!--\r\n' +
'```shell\r\n' +
'cp <to_package_directory>\r\n' +
'go test\r\n' +
'```\r\n' +
'-->\r\n' +
'\r\n' +
'## Additional Information\r\n' +
'\r\n' +
'### Tradeoff\r\n' +
'\r\n' +
'<!-- Please describe, if any, the tradeoffs that you found acceptable in this pull request -->\r\n' +
'\r\n' +
'### Potential improvement\r\n' +
'\r\n' +
'<!-- Please describe, if any, potential improvement that you are envisioning -->\r\n'
}
},
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/9995?v=4',
created_at: '2021-11-03T14:57:36Z',
description: '',
html_url: 'https://github.com/
|
update_release_draft
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/dist/index.js:8462:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '11160981195',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '## Description\r\n' +
'\r\n' +
'<!-- Please provide the link to the GitHub issue you are addressing -->\r\n' +
'Fix #XXX\r\n' +
'\r\n' +
'<!-- Please provide the link to the documentation related to your change, if applicable -->\r\n' +
'<!-- [Documentation](https://<insert your url>) -->\r\n' +
'\r\n' +
'## Test\r\n' +
'\r\n' +
'<!-- Please provides a short description about how to test your pullrequest -->\r\n' +
'To test this pull request, you can run the following commands:\r\n' +
'\r\n' +
'<!--\r\n' +
'```shell\r\n' +
'cp <to_package_directory>\r\n' +
'go test\r\n' +
'```\r\n' +
'-->\r\n' +
'\r\n' +
'## Additional Information\r\n' +
'\r\n' +
'### Tradeoff\r\n' +
'\r\n' +
'<!-- Please describe, if any, the tradeoffs that you found acceptable in this pull request -->\r\n' +
'\r\n' +
'### Potential improvement\r\n' +
'\r\n' +
'<!-- Please describe, if any, potential improvement that you are envisioning -->\r\n'
}
},
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/9995?v=4',
created_at: '2021-11-03T14:57:36Z',
description: '',
html_url: 'https://github.com/enterprises/cncf',
id: 9995,
name: 'Cloud Native Computing Foundation',
node_id: 'E_kgDNJws',
slug: 'cncf',
updated_at: '2024-09-08T11:47:57Z',
website_url: 'https://cncf.io'
},
number: 894,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/80915497?v=4',
description: '',
events_url: 'https://api.github.com/orgs/kubewarden/events',
hooks_url: 'https://api.github.com/orgs/kubewarden/hooks',
id: 80915497,
issues_url: 'https://api.github.com/orgs/kubewarden/issues',
login: 'kubewarden',
members_url: 'https://api.github.com/orgs/kubewarden/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjgwOTE1NDk3',
public_members_url: 'https://api.github.com/orgs/kubewarden/public_members{/member}',
repos_url: 'https://api.github.com/orgs/kubewarden/repos',
url: 'https://api.github.com/orgs/kubewarden'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/kubewarden/kubewarden-controller/issues/894/comments'
},
commits: {
href: 'https://api.github.com/repos/kubewarden/kubewarden-controller/pulls/894/commits'
},
html: {
href: 'https://github.com/kubewarden/kubewarden-controller/pull/894'
},
issue: {
href: 'https://api.github.com/repos/kubewarden/kubewarden-controller/issues/894'
},
review_comment: {
href: 'https://api.github.com/repos/kubewarden/kubewarden-controller/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/kubewarden/kubewarden-controller/pulls/894/comments'
},
self: {
href: 'https://api.github.com/repos/kubewarden/kubewarden-controller/pulls/894'
},
statuses: {
href: 'https://api.github.com/r
|