fix: use GitHub App token when authed with GitHub App #28
Annotations
2 errors
Run release-drafter/release-drafter@v6
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '8851852770',
status: 422,
response: {
url: 'https://api.github.com/repos/github/evergreen/releases/153026900',
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': '195',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Fri, 26 Apr 2024 17:13:22 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': '3407:64576:684ED:A60C8:662BE0B2',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14895',
'x-ratelimit-reset': '1714154125',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '105',
'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'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/github/evergreen/releases/153026900',
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: '{"body":"# Changelog\\n* No changes\\n\\nSee details of [all code changes](https://github.com/github/evergreen/compare/v1.10.3...v1.10.4) since previous release\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v1.10.4","tag_name":"v1.10.4","target_commitish":"refs/pull/103/merge"}',
request: {}
},
event: {
id: '8851852770',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '888d0064f7abf804e9286292ccf8ada8c83bcb07',
before: '86956ba6d8583dc55a0595aeb1f1956dd8655820',
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/11468?v=4',
created_at: null,
description: 'Where the world builds software',
html_url: 'https://github.com/enterprises/github',
id: 11468,
name: 'GitHub',
node_id: 'E_kgDNLMw',
slug: 'github',
updated_at: null,
website_url: 'https://github.com/about'
},
number: 103,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/9919?v=4',
description: 'How people build software.',
events_url: 'https://api.github.com/orgs/github/events',
hooks_url: 'https://api.github.com/orgs/github/hooks',
id: 9919,
issues_url: 'https://api.github.com/orgs/github/issues',
login: 'github',
members_url: 'https://api.github.com/orgs/github/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjk5MTk=',
public_members_url: 'https://api.github.com/orgs/github/public_members{/member}',
repos_url: 'https://api.github.com/orgs/github/repos',
url: 'https://api.github.com/orgs/github'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/rep
|
Run release-drafter/release-drafter@v6
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: '8851852770',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '888d0064f7abf804e9286292ccf8ada8c83bcb07',
before: '86956ba6d8583dc55a0595aeb1f1956dd8655820',
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/11468?v=4',
created_at: null,
description: 'Where the world builds software',
html_url: 'https://github.com/enterprises/github',
id: 11468,
name: 'GitHub',
node_id: 'E_kgDNLMw',
slug: 'github',
updated_at: null,
website_url: 'https://github.com/about'
},
number: 103,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/9919?v=4',
description: 'How people build software.',
events_url: 'https://api.github.com/orgs/github/events',
hooks_url: 'https://api.github.com/orgs/github/hooks',
id: 9919,
issues_url: 'https://api.github.com/orgs/github/issues',
login: 'github',
members_url: 'https://api.github.com/orgs/github/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjk5MTk=',
public_members_url: 'https://api.github.com/orgs/github/public_members{/member}',
repos_url: 'https://api.github.com/orgs/github/repos',
url: 'https://api.github.com/orgs/github'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/github/evergreen/issues/103/comments'
},
commits: {
href: 'https://api.github.com/repos/github/evergreen/pulls/103/commits'
},
html: { href: 'https://github.com/github/evergreen/pull/103' },
issue: {
href: 'https://api.github.com/repos/github/evergreen/issues/103'
},
review_comment: {
href: 'https://api.github.com/repos/github/evergreen/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/github/evergreen/pulls/103/comments'
},
self: {
href: 'https://api.github.com/repos/github/evergreen/pulls/103'
},
statuses: {
href: 'https://api.github.com/repos/github/evergreen/statuses/888d0064f7abf804e9286292ccf8ada8c83bcb07'
}
},
active_lock_reason: null,
additions: 72,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/35014?v=4',
events_url: 'https://api.github.com/users/jmeridth/events{/privacy}',
followers_url: 'https://api.github.com/users/jmeridth/followers',
following_url: 'https://api.github.com/users/jmeridth/following{/other_user}',
gists_url: 'https://api.github.com/users/jmeridth/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/jmeridth',
id: 35014,
login: 'jmeridth',
node_id: 'MDQ6VXNlcjM1MDE0',
organizations_url: 'https://api.github.com/users/jmeridth/orgs',
received_events_url: 'https://api.github.com/users/jmeridth/received_events',
repos_url: 'https://api.github.com/users/jmeridth/repos',
site_admin: true,
starred_url: 'https://api.github.com/users/jmeridth/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/jmeridth/subscriptions',
type: 'User',
url: 'https://api.github.com/users/jmeridth'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/35014?v=4',
events_url: 'https://api.github
|
Loading