feat: delete closed pull request cache #41
Annotations
2 errors
draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '11338816771',
status: 422,
response: {
url: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/releases',
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: 'Tue, 15 Oct 2024 03:34:57 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; 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': '8347:6A6E3:2BB9CB0:530D301:670DE2E1',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4958',
'x-ratelimit-reset': '1728966481',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '42',
'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#create-a-release',
status: '422'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/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/20/merge","name":"v0.1.2 🌈","tag_name":"v0.1.2","body":"## Changes\\n\\n* No changes\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: {}
},
event: {
id: '11338816771',
name: 'pull_request',
payload: {
action: 'opened',
number: 20,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/119935934?v=4',
description: '',
events_url: 'https://api.github.com/orgs/mokmok-dev/events',
hooks_url: 'https://api.github.com/orgs/mokmok-dev/hooks',
id: 119935934,
issues_url: 'https://api.github.com/orgs/mokmok-dev/issues',
login: 'mokmok-dev',
members_url: 'https://api.github.com/orgs/mokmok-dev/members{/member}',
node_id: 'O_kgDOByYTvg',
public_members_url: 'https://api.github.com/orgs/mokmok-dev/public_members{/member}',
repos_url: 'https://api.github.com/orgs/mokmok-dev/repos',
url: 'https://api.github.com/orgs/mokmok-dev'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/issues/20/comments'
},
commits: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/pulls/20/commits'
},
html: {
href: 'https://github.com/mokmok-dev/delete-actions-cache/pull/20'
},
issue: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/issues/20'
},
review_comment: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/pulls/comments{/number}'
},
rev
|
draft
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: '11338816771',
name: 'pull_request',
payload: {
action: 'opened',
number: 20,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/119935934?v=4',
description: '',
events_url: 'https://api.github.com/orgs/mokmok-dev/events',
hooks_url: 'https://api.github.com/orgs/mokmok-dev/hooks',
id: 119935934,
issues_url: 'https://api.github.com/orgs/mokmok-dev/issues',
login: 'mokmok-dev',
members_url: 'https://api.github.com/orgs/mokmok-dev/members{/member}',
node_id: 'O_kgDOByYTvg',
public_members_url: 'https://api.github.com/orgs/mokmok-dev/public_members{/member}',
repos_url: 'https://api.github.com/orgs/mokmok-dev/repos',
url: 'https://api.github.com/orgs/mokmok-dev'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/issues/20/comments'
},
commits: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/pulls/20/commits'
},
html: {
href: 'https://github.com/mokmok-dev/delete-actions-cache/pull/20'
},
issue: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/issues/20'
},
review_comment: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/pulls/20/comments'
},
self: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/pulls/20'
},
statuses: {
href: 'https://api.github.com/repos/mokmok-dev/delete-actions-cache/statuses/895ab1c7820b94fbff8ddd0b1f86ba95498b589c'
}
},
active_lock_reason: null,
additions: 6,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/23367170?v=4',
events_url: 'https://api.github.com/users/pranc1ngpegasus/events{/privacy}',
followers_url: 'https://api.github.com/users/pranc1ngpegasus/followers',
following_url: 'https://api.github.com/users/pranc1ngpegasus/following{/other_user}',
gists_url: 'https://api.github.com/users/pranc1ngpegasus/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/pranc1ngpegasus',
id: 23367170,
login: 'pranc1ngpegasus',
node_id: 'MDQ6VXNlcjIzMzY3MTcw',
organizations_url: 'https://api.github.com/users/pranc1ngpegasus/orgs',
received_events_url: 'https://api.github.com/users/pranc1ngpegasus/received_events',
repos_url: 'https://api.github.com/users/pranc1ngpegasus/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/pranc1ngpegasus/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/pranc1ngpegasus/subscriptions',
type: 'User',
url: 'https://api.github.com/users/pranc1ngpegasus'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/23367170?v=4',
events_url: 'https://api.github.com/users/pranc1ngpegasus/events{/privacy}',
followers_url: 'https://api.github.com/users/pranc1ngpegasus/followers',
following_url: 'https://api.github.com/users/pranc1ngpegasus/following{/other_user}',
gists_url: 'https://api.github.com/users/pranc1ngpegasus/gis
|