Implemented try-catch
block statements for catching and handling errors
#4236
Annotations
2 errors
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '11068562503',
status: 422,
response: {
url: 'https://api.github.com/repos/Kipper-Lang/Kipper/releases/177247747',
status: 422,
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-length': '210',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 27 Sep 2024 09:58:54 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'contents=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': '986F:3EDE03:19E0CF3:31D39A1:66F681DE',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4874',
'x-ratelimit-reset': '1727432923',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '126',
'x-xss-protection': '0'
},
data: {
message: 'Validation Failed',
errors: [
{
resource: 'Release',
code: 'invalid',
field: 'target_commitish'
}
],
documentation_url: 'https://docs.github.com/rest/releases/releases#update-a-release',
status: '422'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/Kipper-Lang/Kipper/releases/177247747',
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: '{"body":"# {INSERT_NAME} Update\\n## v0.12.1 - {YEAR-MONTH-DAY}\\n\\n* No changes\\n\\n## Full Details\\n\\n**View on NPM**: [`[email protected]`](https://www.npmjs.com/package/kipper/v/0.12.1)\\n**Detailed Changelog**: [`CHANGELOG.md`](https://github.com/Kipper-Lang/Kipper/blob/v0.12.1/CHANGELOG.md)\\n**Compare Changes**: https://github.com/Kipper-Lang/Kipper/compare/v0.12.0...v0.12.1\\n","draft":true,"prerelease":false,"make_latest":"true","name":"Kipper v0.12.1","tag_name":"v0.12.1","target_commitish":"refs/pull/694/merge"}',
request: {}
},
event: {
id: '11068562503',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '49b699d88ec494788c3cce8586a5a605bb0e599b',
before: '4982c8270796bd6ecff474196f6ec7c7599c29cf',
number: 694,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/123311855?v=4',
description: 'The public organisation for sharing the source code and managing the Kipper programming language.',
events_url: 'https://api.github.com/orgs/Kipper-Lang/events',
hooks_url: 'https://api.github.com/orgs/Kipper-Lang/hooks',
id: 123311855,
issues_url: 'https://api.github.com/orgs/Kipper-Lang/issues',
login: 'Kipper-Lang',
members_url: 'https://api.github.com/orgs/Kipper-Lang/members{/member}',
node_id: 'O_kgDOB1mW7w',
public_members_url: 'https://api.github.com/orgs/Kipper-Lang/public_members{/member}',
repos_url: 'https://api.github.com/orgs/Kipper-Lang/repos',
url: 'https://api.github.com/orgs/Kipper-Lang'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/issues/694/comments'
|
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
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: '11068562503',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '49b699d88ec494788c3cce8586a5a605bb0e599b',
before: '4982c8270796bd6ecff474196f6ec7c7599c29cf',
number: 694,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/123311855?v=4',
description: 'The public organisation for sharing the source code and managing the Kipper programming language.',
events_url: 'https://api.github.com/orgs/Kipper-Lang/events',
hooks_url: 'https://api.github.com/orgs/Kipper-Lang/hooks',
id: 123311855,
issues_url: 'https://api.github.com/orgs/Kipper-Lang/issues',
login: 'Kipper-Lang',
members_url: 'https://api.github.com/orgs/Kipper-Lang/members{/member}',
node_id: 'O_kgDOB1mW7w',
public_members_url: 'https://api.github.com/orgs/Kipper-Lang/public_members{/member}',
repos_url: 'https://api.github.com/orgs/Kipper-Lang/repos',
url: 'https://api.github.com/orgs/Kipper-Lang'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/issues/694/comments'
},
commits: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/pulls/694/commits'
},
html: { href: 'https://github.com/Kipper-Lang/Kipper/pull/694' },
issue: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/issues/694'
},
review_comment: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/pulls/694/comments'
},
self: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/pulls/694'
},
statuses: {
href: 'https://api.github.com/repos/Kipper-Lang/Kipper/statuses/49b699d88ec494788c3cce8586a5a605bb0e599b'
}
},
active_lock_reason: null,
additions: 2981,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/73286868?v=4',
events_url: 'https://api.github.com/users/lorenzholzbauer/events{/privacy}',
followers_url: 'https://api.github.com/users/lorenzholzbauer/followers',
following_url: 'https://api.github.com/users/lorenzholzbauer/following{/other_user}',
gists_url: 'https://api.github.com/users/lorenzholzbauer/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/lorenzholzbauer',
id: 73286868,
login: 'lorenzholzbauer',
node_id: 'MDQ6VXNlcjczMjg2ODY4',
organizations_url: 'https://api.github.com/users/lorenzholzbauer/orgs',
received_events_url: 'https://api.github.com/users/lorenzholzbauer/received_events',
repos_url: 'https://api.github.com/users/lorenzholzbauer/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/lorenzholzbauer/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/lorenzholzbauer/subscriptions',
type: 'User',
url: 'https://api.github.com/users/lorenzholzbauer'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/73286868?v=4',
events_url: 'https://api.github.com/users/lorenzholzbauer/events{/privacy}',
followers_url: 'https://api.github.com/users/lorenzholzbauer/followers',
following_url: 'https://api.github.com/users/lore
|
This job succeeded
Loading