Skip to content

Extract PR number from event instead of using RefName #158

Extract PR number from event instead of using RefName

Extract PR number from event instead of using RefName #158

Triggered via pull request September 24, 2024 06:57
Status Success
Total duration 15s
Artifacts

release-drafter.yml

on: pull_request
update_release_draft
4s
update_release_draft
Fit to window
Zoom out
Zoom in

Annotations

2 errors
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"} { name: 'HttpError', id: '11008619083', status: 422, response: { url: 'https://api.github.com/repos/digitalocean/app_action/releases/172286254', 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: 'Tue, 24 Sep 2024 06:57:28 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': 'F746:ADF42:8F6059:1138D20:66F262D8', 'x-ratelimit-limit': '15000', 'x-ratelimit-remaining': '14993', 'x-ratelimit-reset': '1727164647', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '7', '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/digitalocean/app_action/releases/172286254', 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":"## 📦 Dependencies\\n\\n- Bump github.com/digitalocean/godo from 1.124.0 to 1.125.0 by @dependabot (#143)\\n- Bump github.com/digitalocean/godo from 1.123.0 to 1.124.0 by @dependabot (#142)\\n- Bump github.com/digitalocean/godo from 1.122.0 to 1.123.0 by @dependabot (#139)\\n- Bump golang from 1.23.0-alpine to 1.23.1-alpine by @dependabot (#138)\\n- Bump github.com/digitalocean/godo from 1.121.0 to 1.122.0 by @dependabot (#137)\\n- Bump github.com/digitalocean/godo from 1.120.0 to 1.121.0 by @dependabot (#136)\\n\\n## 📚 Documentation\\n\\n- Add an example on how to use a Github Secret in an app spec by @markusthoemmes (#141)\\n\\n## 👨🏼‍💻 Contributors\\n\\n@dependabot, @dependabot[bot] and @markusthoemmes\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v2.0.3","tag_name":"v2.0.3","target_commitish":"refs/pull/145/merge"}', request: {} }, event: { id: '11008619083', name: 'pull_request', payload: { action: 'opened', enterprise: { avatar_url: 'https://avatars.githubusercontent.com/b/1341?v=4', created_at: '2019-11-18T21:27:12Z', description: null, html_url: 'https://github.com/enterprises/digitalocean', id: 1341, name: 'DigitalOcean', node_id: 'MDEwOkVudGVycHJpc2UxMzQx', slug: 'digitalocean', updated_at: '2024-01-26T20:08:31Z', website_url: null }, number: 145, organization: { avatar_url: 'https://avatars.githubusercontent.com/u/4650108?v=4', description: '', events_url: 'https://api.github.com/orgs/digitalocean/events', hooks_url: 'https://api.github.com/orgs/digitalocean/hooks', id: 4650108, issues_url: 'https://api.github.com
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"} at /home/runner/work/_actions/release-drafter/release-drafter/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/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/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/dist/index.js:30793:18) { name: 'AggregateError', event: { id: '11008619083', name: 'pull_request', payload: { action: 'opened', enterprise: { avatar_url: 'https://avatars.githubusercontent.com/b/1341?v=4', created_at: '2019-11-18T21:27:12Z', description: null, html_url: 'https://github.com/enterprises/digitalocean', id: 1341, name: 'DigitalOcean', node_id: 'MDEwOkVudGVycHJpc2UxMzQx', slug: 'digitalocean', updated_at: '2024-01-26T20:08:31Z', website_url: null }, number: 145, organization: { avatar_url: 'https://avatars.githubusercontent.com/u/4650108?v=4', description: '', events_url: 'https://api.github.com/orgs/digitalocean/events', hooks_url: 'https://api.github.com/orgs/digitalocean/hooks', id: 4650108, issues_url: 'https://api.github.com/orgs/digitalocean/issues', login: 'digitalocean', members_url: 'https://api.github.com/orgs/digitalocean/members{/member}', node_id: 'MDEyOk9yZ2FuaXphdGlvbjQ2NTAxMDg=', public_members_url: 'https://api.github.com/orgs/digitalocean/public_members{/member}', repos_url: 'https://api.github.com/orgs/digitalocean/repos', url: 'https://api.github.com/orgs/digitalocean' }, pull_request: { _links: { comments: { href: 'https://api.github.com/repos/digitalocean/app_action/issues/145/comments' }, commits: { href: 'https://api.github.com/repos/digitalocean/app_action/pulls/145/commits' }, html: { href: 'https://github.com/digitalocean/app_action/pull/145' }, issue: { href: 'https://api.github.com/repos/digitalocean/app_action/issues/145' }, review_comment: { href: 'https://api.github.com/repos/digitalocean/app_action/pulls/comments{/number}' }, review_comments: { href: 'https://api.github.com/repos/digitalocean/app_action/pulls/145/comments' }, self: { href: 'https://api.github.com/repos/digitalocean/app_action/pulls/145' }, statuses: { href: 'https://api.github.com/repos/digitalocean/app_action/statuses/934164bab11f6fe5757d05cd4dc3ae4c3a00bc2a' } }, active_lock_reason: null, additions: 39, assignee: null, assignees: [], author_association: 'CONTRIBUTOR', auto_merge: null, base: { label: 'digitalocean:main', ref: 'main', repo: { allow_auto_merge: false, allow_forking: true, allow_merge_commit: true, allow_rebase_merge: true, allow_squash_merge: true, allow_update_branch: true, archive_url: 'https://api.github.com/repos/digitalocean/app_action/{archive_format}{/ref}', archived: false, assignees_url: 'https://api.github.com/repos/digitalocean/app_action/assignees{/user}', blobs_url: 'https://api.github.com/repos/digitalocean/app_action/git/blobs{/sha}', branches_url: 'https://api.github.com/repos/digitalocean/app_action/branches{/branch}', clone_url: 'https://github.com/digitalocean/app_action.git', collaborators_url: 'https://api.github.com/repos/digitalocean/app_action/collaborators{/collaborator}', comments_url: 'https://api.github.com/repos/digitalocean/app_action/comments{/number}', commits_url: