Skip to content

fix: validate Splunk Observability release channel #1291

fix: validate Splunk Observability release channel

fix: validate Splunk Observability release channel #1291

Triggered via pull request September 24, 2024 09:33
Status Success
Total duration 18s
Artifacts

release-drafter.yml

on: pull_request
update_release_draft
7s
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: '11011037969', status: 422, response: { url: 'https://api.github.com/repos/nobl9/nobl9-go/releases/176509520', 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 09:33:20 GMT', 'github-authentication-token-expiration': '2025-01-16 00:00:00 +0100', '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': '5F80:1AC08F:107013C:1FF9993:66F28760', 'x-ratelimit-limit': '5000', 'x-ratelimit-remaining': '4939', 'x-ratelimit-reset': '1727171609', 'x-ratelimit-resource': 'core', 'x-ratelimit-used': '61', '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/nobl9/nobl9-go/releases/176509520', 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":"# What's Changed\\n\\n## 🧰 Maintenance\\n\\n- chore: Update module github.com/nobl9/nobl9-go to v0.85.0 (#553) @renovate\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v0.85.1","tag_name":"v0.85.1","target_commitish":"refs/pull/552/merge"}`, request: {} }, event: { id: '11011037969', name: 'pull_request', payload: { action: 'synchronize', after: 'f5eb51fdd21abd2efd2859349d8882d54884ff9d', before: '322968bc9e230ec4d91b8323dc5af44cc4ed3297', number: 552, organization: { avatar_url: 'https://avatars.githubusercontent.com/u/58781264?v=4', description: '', events_url: 'https://api.github.com/orgs/nobl9/events', hooks_url: 'https://api.github.com/orgs/nobl9/hooks', id: 58781264, issues_url: 'https://api.github.com/orgs/nobl9/issues', login: 'nobl9', members_url: 'https://api.github.com/orgs/nobl9/members{/member}', node_id: 'MDEyOk9yZ2FuaXphdGlvbjU4NzgxMjY0', public_members_url: 'https://api.github.com/orgs/nobl9/public_members{/member}', repos_url: 'https://api.github.com/orgs/nobl9/repos', url: 'https://api.github.com/orgs/nobl9' }, pull_request: { _links: { comments: { href: 'https://api.github.com/repos/nobl9/nobl9-go/issues/552/comments' }, commits: { href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/552/commits' }, html: { href: 'https://github.com/nobl9/nobl9-go/pull/552' }, issue: { href: 'https://api.github.com/repos/nobl9/nobl9-go/issues/552' }, review_com
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: '11011037969', name: 'pull_request', payload: { action: 'synchronize', after: 'f5eb51fdd21abd2efd2859349d8882d54884ff9d', before: '322968bc9e230ec4d91b8323dc5af44cc4ed3297', number: 552, organization: { avatar_url: 'https://avatars.githubusercontent.com/u/58781264?v=4', description: '', events_url: 'https://api.github.com/orgs/nobl9/events', hooks_url: 'https://api.github.com/orgs/nobl9/hooks', id: 58781264, issues_url: 'https://api.github.com/orgs/nobl9/issues', login: 'nobl9', members_url: 'https://api.github.com/orgs/nobl9/members{/member}', node_id: 'MDEyOk9yZ2FuaXphdGlvbjU4NzgxMjY0', public_members_url: 'https://api.github.com/orgs/nobl9/public_members{/member}', repos_url: 'https://api.github.com/orgs/nobl9/repos', url: 'https://api.github.com/orgs/nobl9' }, pull_request: { _links: { comments: { href: 'https://api.github.com/repos/nobl9/nobl9-go/issues/552/comments' }, commits: { href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/552/commits' }, html: { href: 'https://github.com/nobl9/nobl9-go/pull/552' }, issue: { href: 'https://api.github.com/repos/nobl9/nobl9-go/issues/552' }, review_comment: { href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/comments{/number}' }, review_comments: { href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/552/comments' }, self: { href: 'https://api.github.com/repos/nobl9/nobl9-go/pulls/552' }, statuses: { href: 'https://api.github.com/repos/nobl9/nobl9-go/statuses/f5eb51fdd21abd2efd2859349d8882d54884ff9d' } }, active_lock_reason: null, additions: 59, assignee: null, assignees: [], author_association: 'CONTRIBUTOR', auto_merge: { commit_message: '## Motivation\r\n' + '\r\n' + 'Allow to create Splunk Observability Directs in release channel alpha.\r\n' + '\r\n' + '## Summary\r\n' + '\r\n' + 'Adds custom validation for the Direct `releaseChannel` property when\r\n' + 'using Splunk Observability.\r\n' + '\r\n' + '## Testing\r\n' + '\r\n' + '- The validation should allow you to create Splunk Observability Direct\r\n' + 'with the `alpha` value in the release channel prop. Any other value\r\n' + 'should fail.\r\n' + '- Only Splunk Observability Directs can use the `alpha` release channel.\r\n' + '\r\n' + '## Release Notes', commit_title: 'fix: validate Splunk Observability release channel (#552)', enabled_by: { avatar_url: 'https://avatars.githubusercontent.com/u/100848248?v=4', events_url: 'https://api.github.com/users/mkaras-nobl9/events{/privacy}', followers_url: 'https://api.github.com/users/mkaras-nobl9/followers', following_url: 'https://api.github.com/users/mkaras-nobl9/following{/other_user}', gists_url: 'https://api.github.com/users/mkaras-nobl9/gists{/gist_id}', gravatar_id: '', html_url: 'https://github.com/mkaras-nobl9', id: 100848248, login: 'mkaras-nobl9', node_id: 'U_kgDOBgLSeA', organizations_url: 'https://api.github.com/users/mkaras-nobl9