chore: cleanup and optimize code readability #1
Annotations
2 errors and 2 warnings
release
Resource not accessible by integration
{
name: 'HttpError',
id: '8950110305',
status: 403,
response: {
url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/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: 'Sat, 04 May 2024 11:17:23 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': '501C:1F83DD:4338BDC:6998B2C:66361942',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4997',
'x-ratelimit-reset': '1714825041',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '3',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.8.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/heads/main","name":"v0.1.11","tag_name":"v0.1.11","body":"## Changes\\n\\n## 🧰 Maintenance\\n\\n- chore: cleanup and optimize code readability @zeroquinc (#10)\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: {}
},
event: {
id: '8950110305',
name: 'pull_request_target',
payload: {
action: 'closed',
number: 10,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/issues/10/comments'
},
commits: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/10/commits'
},
html: { href: 'https://github.com/zeroquinc/KodiDiscord/pull/10' },
issue: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/issues/10'
},
review_comment: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/10/comments'
},
self: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/10'
},
statuses: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/statuses/5a1f8b677eb8a7e43ae79bc27483a91f4c73a7ff'
}
},
active_lock_reason: null,
additions: 140,
assignee: null,
assignees: [],
author_association: 'OWNER',
auto_merge: null,
base: {
label: 'zeroquinc:main',
ref: 'main',
repo: {
allow_auto_merge: false,
allow_forking: true,
allow_merge_commit: true,
allow_rebase_merge: true,
allow_squash_merge: true,
allow_update_branch: false,
|
release
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/v6/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/v6/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '8950110305',
name: 'pull_request_target',
payload: {
action: 'closed',
number: 10,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/issues/10/comments'
},
commits: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/10/commits'
},
html: { href: 'https://github.com/zeroquinc/KodiDiscord/pull/10' },
issue: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/issues/10'
},
review_comment: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/10/comments'
},
self: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/pulls/10'
},
statuses: {
href: 'https://api.github.com/repos/zeroquinc/KodiDiscord/statuses/5a1f8b677eb8a7e43ae79bc27483a91f4c73a7ff'
}
},
active_lock_reason: null,
additions: 140,
assignee: null,
assignees: [],
author_association: 'OWNER',
auto_merge: null,
base: {
label: 'zeroquinc:main',
ref: 'main',
repo: {
allow_auto_merge: false,
allow_forking: true,
allow_merge_commit: true,
allow_rebase_merge: true,
allow_squash_merge: true,
allow_update_branch: false,
archive_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/assignees{/user}',
blobs_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/branches{/branch}',
clone_url: 'https://github.com/zeroquinc/KodiDiscord.git',
collaborators_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/comments{/number}',
commits_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/commits{/sha}',
compare_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/contents/{+path}',
contributors_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/contributors',
created_at: '2024-01-01T20:41:50Z',
default_branch: 'main',
delete_branch_on_merge: false,
deployments_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/deployments',
description: 'Discord Rich Presence for Kodi, support for Letterboxd, Trakt, TMDb and more!',
disabled: false,
downloads_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/downloads',
events_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/events',
fork: false,
forks: 0,
forks_count: 0,
forks_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/forks',
full_name: 'zeroquinc/KodiDiscord',
git_commits_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/zeroquinc/KodiDiscord/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/zeroqu
|
release
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
release
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|