test: add some basic testable examples #83
release-drafter.yml
on: pull_request
update_release_draft
5s
Annotations
2 errors and 1 warning
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '12734627738',
status: 422,
response: {
url: 'https://api.github.com/repos/panjf2000/ants/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: 'Sun, 12 Jan 2025 15:04:21 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': 'ABC7:22457B:1ACE075:35A6649:6783D9F5',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4994',
'x-ratelimit-reset': '1736697859',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '6',
'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/panjf2000/ants/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.18.0 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/pull/353/merge","name":"Ants v2.11.0","tag_name":"v2.11.0","body":"## Changelogs\\n\\n## 🚀 Features\\n\\n- feat: implement generic pool (#351)\\n- opt: streamline pool implementation to reduce duplicated code (#350)\\n- feat: export the internal package sync (#349)\\n\\n## 🛩 Enhancements\\n\\n- opt: streamline pool implementation to reduce duplicated code (#350)\\n- opt: bump up the minimum required Go version to 1.16 (#347)\\n\\n## 📚 Documentation\\n\\n- opt: streamline pool implementation to reduce duplicated code (#350)\\n- feat: export the internal package sync (#349)\\n\\n**Full Changelog**: https://github.com/panjf2000/ants/compare/v2.10.0...v2.11.0\\n\\nThanks to all these contributors: @panjf2000 for making this release possible.\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: {}
},
event: {
id: '12734627738',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '2a9444e21851b0039e17b3414ce6936c3d3d847f',
before: 'f6d6e3948718a4bdd081489d9eaf0f7889414a4b',
number: 353,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/panjf2000/ants/issues/353/comments'
},
commits: {
href: 'https://api.github.com/repos/panjf2000/ants/pulls/353/commits'
},
html: { href: 'https://github.com/panjf2000/ants/pull/353' },
issue: {
href: 'https://api.github.com/repos/panjf2000/ants/issues/353'
},
review_comment: {
href: 'https://api.github.com/repos/panjf2000/ants/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/panjf2000/
|
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: '12734627738',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '2a9444e21851b0039e17b3414ce6936c3d3d847f',
before: 'f6d6e3948718a4bdd081489d9eaf0f7889414a4b',
number: 353,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/panjf2000/ants/issues/353/comments'
},
commits: {
href: 'https://api.github.com/repos/panjf2000/ants/pulls/353/commits'
},
html: { href: 'https://github.com/panjf2000/ants/pull/353' },
issue: {
href: 'https://api.github.com/repos/panjf2000/ants/issues/353'
},
review_comment: {
href: 'https://api.github.com/repos/panjf2000/ants/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/panjf2000/ants/pulls/353/comments'
},
self: {
href: 'https://api.github.com/repos/panjf2000/ants/pulls/353'
},
statuses: {
href: 'https://api.github.com/repos/panjf2000/ants/statuses/2a9444e21851b0039e17b3414ce6936c3d3d847f'
}
},
active_lock_reason: null,
additions: 530,
assignee: null,
assignees: [],
author_association: 'OWNER',
auto_merge: null,
base: {
label: 'panjf2000: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/panjf2000/ants/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/panjf2000/ants/assignees{/user}',
blobs_url: 'https://api.github.com/repos/panjf2000/ants/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/panjf2000/ants/branches{/branch}',
clone_url: 'https://github.com/panjf2000/ants.git',
collaborators_url: 'https://api.github.com/repos/panjf2000/ants/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/panjf2000/ants/comments{/number}',
commits_url: 'https://api.github.com/repos/panjf2000/ants/commits{/sha}',
compare_url: 'https://api.github.com/repos/panjf2000/ants/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/panjf2000/ants/contents/{+path}',
contributors_url: 'https://api.github.com/repos/panjf2000/ants/contributors',
created_at: '2018-05-19T01:13:38Z',
default_branch: 'dev',
delete_branch_on_merge: false,
deployments_url: 'https://api.github.com/repos/panjf2000/ants/deployments',
description: '🐜🐜🐜 ants is the most powerful and reliable pooling solution for Go.',
disabled: false,
downloads_url: 'https://api.github.com/repos/panjf2000/ants/downloads',
events_url: 'https://api.github.com/repos/panjf2000/ants/events',
fork: false,
forks: 1372,
forks_count: 1372,
forks_url: 'https://api.github.com/repos/panjf2000/ants/forks',
full_name: 'panjf2000/ants',
git_commits_url: 'https://api.github.com/repos/panjf2000/ants/git/commits{/sha}',
git_refs_url: 'https://api.github.com/repos/panjf2000/ants/git/refs{/sha}',
git_tags_url: 'https://api.github.com/repos/panjf2000/ants/git/tags{
|
update_release_draft
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|