Fix go releaser #1172
release-drafter.yml
on: pull_request
update_release_draft
9s
Annotations
2 errors
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '10416977273',
status: 422,
response: {
url: 'https://api.github.com/repos/lunarway/release-manager/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: 'Fri, 16 Aug 2024 08:23:48 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': 'E44A:19361F:151B15:299DEA:66BF0C94',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14877',
'x-ratelimit-reset': '1723799052',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '123',
'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/lunarway/release-manager/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/545/merge","name":"v0.30.1","tag_name":"v0.30.1","body":"## Changes\\n\\n* No changes\\n\\n**Full Changelog**: https://github.com/lunarway/release-manager/compare/v0.30.0...v0.30.1\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: { retryCount: 1 }
},
event: {
id: '10416977273',
name: 'pull_request',
payload: {
action: 'synchronize',
after: 'b0fcdf062272f80dc964c8d9a1b8eed7f66e16d8',
before: 'dc0508be289f50b4bc712d0d940a28e928639fd8',
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/66042?v=4',
created_at: '2023-08-15T07:41:55Z',
description: 'Make the most of your money',
html_url: 'https://github.com/enterprises/lunar',
id: 66042,
name: 'Lunar',
node_id: 'E_kgDOAAEB-g',
slug: 'lunar',
updated_at: '2023-08-25T15:51:52Z',
website_url: 'https://lunar.app'
},
number: 545,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/29371397?v=4',
description: 'The smarter way to bank',
events_url: 'https://api.github.com/orgs/lunarway/events',
hooks_url: 'https://api.github.com/orgs/lunarway/hooks',
id: 29371397,
issues_url: 'https://api.github.com/orgs/lunarway/issues',
login: 'lunarway',
members_url: 'https://api.github.com/orgs/lunarway/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjI5MzcxMzk3',
public_members_url: 'https://api.github.com/orgs/lunarway/public_members{/member}',
repos_url: 'https://api.github.com/orgs/lunarway/repos',
url: 'https://api.github.com/orgs/lunarway'
},
pull_reque
|
update_release_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: '10416977273',
name: 'pull_request',
payload: {
action: 'synchronize',
after: 'b0fcdf062272f80dc964c8d9a1b8eed7f66e16d8',
before: 'dc0508be289f50b4bc712d0d940a28e928639fd8',
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/66042?v=4',
created_at: '2023-08-15T07:41:55Z',
description: 'Make the most of your money',
html_url: 'https://github.com/enterprises/lunar',
id: 66042,
name: 'Lunar',
node_id: 'E_kgDOAAEB-g',
slug: 'lunar',
updated_at: '2023-08-25T15:51:52Z',
website_url: 'https://lunar.app'
},
number: 545,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/29371397?v=4',
description: 'The smarter way to bank',
events_url: 'https://api.github.com/orgs/lunarway/events',
hooks_url: 'https://api.github.com/orgs/lunarway/hooks',
id: 29371397,
issues_url: 'https://api.github.com/orgs/lunarway/issues',
login: 'lunarway',
members_url: 'https://api.github.com/orgs/lunarway/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjI5MzcxMzk3',
public_members_url: 'https://api.github.com/orgs/lunarway/public_members{/member}',
repos_url: 'https://api.github.com/orgs/lunarway/repos',
url: 'https://api.github.com/orgs/lunarway'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/lunarway/release-manager/issues/545/comments'
},
commits: {
href: 'https://api.github.com/repos/lunarway/release-manager/pulls/545/commits'
},
html: {
href: 'https://github.com/lunarway/release-manager/pull/545'
},
issue: {
href: 'https://api.github.com/repos/lunarway/release-manager/issues/545'
},
review_comment: {
href: 'https://api.github.com/repos/lunarway/release-manager/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/lunarway/release-manager/pulls/545/comments'
},
self: {
href: 'https://api.github.com/repos/lunarway/release-manager/pulls/545'
},
statuses: {
href: 'https://api.github.com/repos/lunarway/release-manager/statuses/b0fcdf062272f80dc964c8d9a1b8eed7f66e16d8'
}
},
active_lock_reason: null,
additions: 29,
assignee: null,
assignees: [],
author_association: 'MEMBER',
auto_merge: null,
base: {
label: 'lunarway:master',
ref: 'master',
repo: {
allow_auto_merge: true,
allow_forking: true,
allow_merge_commit: false,
allow_rebase_merge: false,
allow_squash_merge: true,
allow_update_branch: false,
archive_url: 'https://api.github.com/repos/lunarway/release-manager/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/lunarway/release-manager/assignees{/user}',
blobs_url: 'https://api.github.com/repos/lunarway/release-manager/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/lunarway/release-manager/branches{/branch}',
clone_url: 'https://github.com/lunarway/release-manager.git',
collaborators_url: 'https://api.github.com/repos/lunarway/release-manager/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/lunarway/re
|