fix: Handle comments above github size limit #47
chore.yml
on: pull_request
Check PR Title
7s
Assign Labels
5s
Annotations
2 errors
Assign Labels
Resource not accessible by integration
{
name: 'HttpError',
id: '10405966734',
status: 403,
response: {
url: 'https://api.github.com/repos/borchero/terraform-plan-comment/issues/18/labels',
status: 403,
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-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 15 Aug 2024 15:07:37 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'issues=write; pull_requests=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': '3C44:82952:16D3CA4:16FEA86:66BE19B9',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4988',
'x-ratelimit-reset': '1723738003',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '12',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/issues/labels#add-labels-to-an-issue',
status: '403'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/borchero/terraform-plan-comment/issues/18/labels',
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: '{"labels":["fix"]}',
request: {}
},
event: {
id: '10405966734',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
title: { from: 'fix: handle comments above github size limit' }
},
number: 18,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/issues/18/comments'
},
commits: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/18/commits'
},
html: {
href: 'https://github.com/borchero/terraform-plan-comment/pull/18'
},
issue: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/issues/18'
},
review_comment: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/18/comments'
},
self: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/18'
},
statuses: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/statuses/ee00e508f103954a7633710af0e69d2d605ddb9d'
}
},
active_lock_reason: null,
additions: 35,
assignee: null,
assignees: [],
author_association: 'NONE',
auto_merge: null,
base: {
label: 'borchero:main',
ref: 'main',
repo: {
allow_auto_merge: true,
allow_forking: true,
allow_merge_commit: false,
allow_rebase_merge: false,
allow_squash_merge: true,
allow_update_bra
|
Assign Labels
HttpError: Resource not accessible by integration
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: '10405966734',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
title: { from: 'fix: handle comments above github size limit' }
},
number: 18,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/issues/18/comments'
},
commits: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/18/commits'
},
html: {
href: 'https://github.com/borchero/terraform-plan-comment/pull/18'
},
issue: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/issues/18'
},
review_comment: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/18/comments'
},
self: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/pulls/18'
},
statuses: {
href: 'https://api.github.com/repos/borchero/terraform-plan-comment/statuses/ee00e508f103954a7633710af0e69d2d605ddb9d'
}
},
active_lock_reason: null,
additions: 35,
assignee: null,
assignees: [],
author_association: 'NONE',
auto_merge: null,
base: {
label: 'borchero:main',
ref: 'main',
repo: {
allow_auto_merge: true,
allow_forking: true,
allow_merge_commit: false,
allow_rebase_merge: false,
allow_squash_merge: true,
allow_update_branch: true,
archive_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/assignees{/user}',
blobs_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/branches{/branch}',
clone_url: 'https://github.com/borchero/terraform-plan-comment.git',
collaborators_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/comments{/number}',
commits_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/commits{/sha}',
compare_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/contents/{+path}',
contributors_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/contributors',
created_at: '2024-04-28T17:19:50Z',
default_branch: 'main',
delete_branch_on_merge: true,
deployments_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/deployments',
description: 'GitHub Action to post the output of "terraform plan" to a pull request comment.',
disabled: false,
downloads_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/downloads',
events_url: 'https://api.github.com/repos/borchero/terraform-plan-comment/events',
fork: false,
forks: 7,
forks_count: 7,
forks_url: 'https://api.github.com/repos/borc
|