Fix to always use json when sending a PUT/POST #256
release-drafter.yml
on: pull_request
update_release_draft
5s
Annotations
2 errors
update_release_draft
Resource not accessible by integration
{
name: 'HttpError',
id: '7199009007',
status: 403,
response: {
url: 'https://api.github.com/repos/benleb/surepy/releases',
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, 14 Dec 2023 18:00:39 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': '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': '1886:3277:16BC147:2F18614:657B42C7',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '995',
'x-ratelimit-reset': '1702580437',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '5',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/benleb/surepy/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.2 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: `{"target_commitish":"refs/pull/201/merge","name":"","tag_name":"","body":"## 📋 Changelog\\n\\n* Add set_curfew (#150) @therefromhere\\n* Add the 'feederassign' command to add/remove pets from feeders (#164) @badnetmask\\n* Fixed issue with non-working unlock (#155) @czandee\\n* Update client.py (#166) @tsyganov-ivan\\n","draft":true,"prerelease":false,"make_latest":"true"}`,
request: {}
},
event: {
id: '7199009007',
name: 'pull_request',
payload: {
action: 'opened',
number: 201,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/benleb/surepy/issues/201/comments'
},
commits: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/201/commits'
},
html: { href: 'https://github.com/benleb/surepy/pull/201' },
issue: {
href: 'https://api.github.com/repos/benleb/surepy/issues/201'
},
review_comment: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/201/comments'
},
self: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/201'
},
statuses: {
href: 'https://api.github.com/repos/benleb/surepy/statuses/0d2b22a0bc39da1ec207721a451b24eb356bf307'
}
},
active_lock_reason: null,
additions: 5,
assignee: null,
assignees: [],
author_association: 'NONE',
auto_merge: null,
base: {
label: 'benleb:dev',
ref: 'dev',
repo: {
allow_auto_merge: false,
allow_forking: true,
allow_merge_commit: true,
allow_rebase_merge: true,
allow_squash_merge: true,
|
update_release_draft
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:8462:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '7199009007',
name: 'pull_request',
payload: {
action: 'opened',
number: 201,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/benleb/surepy/issues/201/comments'
},
commits: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/201/commits'
},
html: { href: 'https://github.com/benleb/surepy/pull/201' },
issue: {
href: 'https://api.github.com/repos/benleb/surepy/issues/201'
},
review_comment: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/201/comments'
},
self: {
href: 'https://api.github.com/repos/benleb/surepy/pulls/201'
},
statuses: {
href: 'https://api.github.com/repos/benleb/surepy/statuses/0d2b22a0bc39da1ec207721a451b24eb356bf307'
}
},
active_lock_reason: null,
additions: 5,
assignee: null,
assignees: [],
author_association: 'NONE',
auto_merge: null,
base: {
label: 'benleb:dev',
ref: 'dev',
repo: {
allow_auto_merge: false,
allow_forking: true,
allow_merge_commit: true,
allow_rebase_merge: true,
allow_squash_merge: true,
allow_update_branch: false,
archive_url: 'https://api.github.com/repos/benleb/surepy/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/benleb/surepy/assignees{/user}',
blobs_url: 'https://api.github.com/repos/benleb/surepy/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/benleb/surepy/branches{/branch}',
clone_url: 'https://github.com/benleb/surepy.git',
collaborators_url: 'https://api.github.com/repos/benleb/surepy/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/benleb/surepy/comments{/number}',
commits_url: 'https://api.github.com/repos/benleb/surepy/commits{/sha}',
compare_url: 'https://api.github.com/repos/benleb/surepy/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/benleb/surepy/contents/{+path}',
contributors_url: 'https://api.github.com/repos/benleb/surepy/contributors',
created_at: '2019-03-16T19:07:09Z',
default_branch: 'dev',
delete_branch_on_merge: false,
deployments_url: 'https://api.github.com/repos/benleb/surepy/deployments',
description: '🐾 Library & CLI to monitor and control the Pet Door & Cat Flap Connect 🚪 the Pet Feeder Connect 🍽 and the Felaqua 💦 sold by Sure Petcare',
disabled: false,
downloads_url: 'https://api.github.com/repos/benleb/surepy/downloads',
events_url: 'https://api.github.com/repos/benleb/surepy/events',
fork: false,
forks: 31,
forks_count: 31,
forks_url: 'https://api.github.com/repos/benleb/surepy/forks',
full_name: 'benleb/surepy',
git_commits_url: 'https://api.github.com/repos/benleb/surepy/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/benleb/surepy/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/benleb/surepy/git/tags{/sha}',
git_url: 'git://github.com/benleb/surepy.git',
has_discussions: true,
has_downloads: true,
|