Add a more relevant example model #301
release-drafter.yml
on: pull_request
update_release_draft
7s
Annotations
2 errors and 1 warning
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '11053540239',
status: 422,
response: {
url: 'https://api.github.com/repos/transition-zero/tz-osemosys/releases/175846376',
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: 'Thu, 26 Sep 2024 13:43:24 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': '4BC6:4421F:2A9C385:519B0D1:66F564FC',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4990',
'x-ratelimit-reset': '1727361651',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '10',
'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/transition-zero/tz-osemosys/releases/175846376',
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":"## Changes\\n\\n* [ENG-1744] tz-solve build trigger (#149) @ollie-bell\\n* Fix non optimal termination objective value (#148) @ollie-bell\\n","draft":true,"prerelease":false,"make_latest":"true","tag_name":"untagged-8be0a29c92d54e1d93d9","target_commitish":"refs/pull/92/merge"}',
request: {}
},
event: {
id: '11053540239',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '21c31a95c2bc1b1ad6de10381e7d49cfe340c118',
before: 'a8923b2d31e3b0562e0ca2e9d0b128ae16e686ee',
number: 92,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/73114765?v=4',
description: '',
events_url: 'https://api.github.com/orgs/transition-zero/events',
hooks_url: 'https://api.github.com/orgs/transition-zero/hooks',
id: 73114765,
issues_url: 'https://api.github.com/orgs/transition-zero/issues',
login: 'transition-zero',
members_url: 'https://api.github.com/orgs/transition-zero/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjczMTE0NzY1',
public_members_url: 'https://api.github.com/orgs/transition-zero/public_members{/member}',
repos_url: 'https://api.github.com/orgs/transition-zero/repos',
url: 'https://api.github.com/orgs/transition-zero'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/issues/92/comments'
},
commits: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/pulls/92/commits'
},
html: {
href: 'https://github.com/transition-zero/tz-osemosys/pull/92'
},
issue: {
|
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v5/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/v5/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '11053540239',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '21c31a95c2bc1b1ad6de10381e7d49cfe340c118',
before: 'a8923b2d31e3b0562e0ca2e9d0b128ae16e686ee',
number: 92,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/73114765?v=4',
description: '',
events_url: 'https://api.github.com/orgs/transition-zero/events',
hooks_url: 'https://api.github.com/orgs/transition-zero/hooks',
id: 73114765,
issues_url: 'https://api.github.com/orgs/transition-zero/issues',
login: 'transition-zero',
members_url: 'https://api.github.com/orgs/transition-zero/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjczMTE0NzY1',
public_members_url: 'https://api.github.com/orgs/transition-zero/public_members{/member}',
repos_url: 'https://api.github.com/orgs/transition-zero/repos',
url: 'https://api.github.com/orgs/transition-zero'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/issues/92/comments'
},
commits: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/pulls/92/commits'
},
html: {
href: 'https://github.com/transition-zero/tz-osemosys/pull/92'
},
issue: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/issues/92'
},
review_comment: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/pulls/92/comments'
},
self: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/pulls/92'
},
statuses: {
href: 'https://api.github.com/repos/transition-zero/tz-osemosys/statuses/21c31a95c2bc1b1ad6de10381e7d49cfe340c118'
}
},
active_lock_reason: null,
additions: 1020,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/39566844?v=4',
events_url: 'https://api.github.com/users/amanmajid/events{/privacy}',
followers_url: 'https://api.github.com/users/amanmajid/followers',
following_url: 'https://api.github.com/users/amanmajid/following{/other_user}',
gists_url: 'https://api.github.com/users/amanmajid/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/amanmajid',
id: 39566844,
login: 'amanmajid',
node_id: 'MDQ6VXNlcjM5NTY2ODQ0',
organizations_url: 'https://api.github.com/users/amanmajid/orgs',
received_events_url: 'https://api.github.com/users/amanmajid/received_events',
repos_url: 'https://api.github.com/users/amanmajid/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/amanmajid/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/amanmajid/subscriptions',
type: 'User',
url: 'https://api.github.com/users/amanmajid'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/39566844?v=4',
events_url: 'https://api.github.com/users/amanmajid/events{/privacy}',
followers_url: 'https://api.github.com/users/amanmajid/followers',
following_url: 'https://api.github.com/users/amanmajid/following{/other_user}',
g
|
update_release_draft
The following actions use a deprecated Node.js version and will be forced to run on node20: release-drafter/release-drafter@v5. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|