fix: enable alpha release channel #720
release-drafter.yml
on: pull_request
update_release_draft
5s
Annotations
2 errors
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '11022338044',
status: 422,
response: {
url: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/releases/173602946',
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 21:38:49 GMT',
'github-authentication-token-expiration': '2025-02-13 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': '308F:1F0EF7:EEABC7:1C960FC:66F33169',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4953',
'x-ratelimit-reset': '1727215369',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '47',
'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/terraform-provider-nobl9/releases/173602946',
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## 🚀 Features\\n\\n- feat: PC-13723 Add SHR report support (#304) @natalialanga\\n\\n## 🧰 Maintenance\\n\\n<details>\\n<summary>10 changes</summary>\\n\\n- chore: Bump version number for release (#314) @ditrytus\\n- chore: fix Splunk Observability acceptance test [PC-14221] (#313) @mkaras-nobl9\\n- chore: Ignore nobl9-go in Renovate config (#311) @nieomylnieja\\n- chore: Update dependency securego/gosec to v2.21.3 (#310) @renovate\\n- chore: Update dependency cspell to v8.14.4 (#309) @renovate\\n- chore: Update dependency cspell to v8.14.3 (#308) @renovate\\n- chore: Update module golang.org/x/tools/cmd/goimports to v0.25.0 (#307) @renovate\\n- chore: Update dependency golangci/golangci-lint to v1.61.0 (#306) @renovate\\n- chore: Update dependency securego/gosec to v2.21.2 (#305) @renovate\\n- chore: Update crazy-max/ghaction-import-gpg to v6 (#302) @marcinlawnik\\n</details>\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v0.30.0","tag_name":"v0.30.0","target_commitish":"refs/pull/316/merge"}`,
request: {}
},
event: {
id: '11022338044',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '## Motivation\r\n' +
'\r\n' +
'Allow to set `alpha` as a release channel for Splunk Observability\r\n' +
'\r\n' +
'## Summary\r\n' +
'\r\n' +
'- add `alpha` release channel to validation\r\n' +
'- bump nobl9-go\r\n' +
'\r\n' +
'## Testing\r\n' +
'\r\n' +
'- example resource definition\r\n' +
|
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: '11022338044',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '## Motivation\r\n' +
'\r\n' +
'Allow to set `alpha` as a release channel for Splunk Observability\r\n' +
'\r\n' +
'## Summary\r\n' +
'\r\n' +
'- add `alpha` release channel to validation\r\n' +
'- bump nobl9-go\r\n' +
'\r\n' +
'## Testing\r\n' +
'\r\n' +
'- example resource definition\r\n' +
'```\r\n' +
'resource "nobl9_direct_splunk_observability" "test-splunkobservability" {\r\n' +
' name = "test-splunkobservability"\r\n' +
' project = "terraform"\r\n' +
' description = "desc"\r\n' +
' realm = "eu"\r\n' +
' access_token = "secret"\r\n' +
' release_channel = "alpha"\r\n' +
' query_delay {\r\n' +
' unit = "Minute"\r\n' +
' value = 6\r\n' +
' }\r\n' +
'}\r\n' +
'```\r\n' +
'\r\n' +
'## Release Notes\r\n' +
'\r\n'
}
},
number: 316,
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/terraform-provider-nobl9/issues/316/comments'
},
commits: {
href: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/pulls/316/commits'
},
html: {
href: 'https://github.com/nobl9/terraform-provider-nobl9/pull/316'
},
issue: {
href: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/issues/316'
},
review_comment: {
href: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/pulls/316/comments'
},
self: {
href: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/pulls/316'
},
statuses: {
href: 'https://api.github.com/repos/nobl9/terraform-provider-nobl9/statuses/43f42667cfb8a3f5deca220128642da20e066391'
}
},
active_lock_reason: null,
additions: 15,
assignee: null,
assignees: [],
author_association: 'CONTRIBUTOR',
auto_merge: null,
base: {
label: 'nobl9: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/nobl9/terraform-provider-nobl9/{archive_format}{/ref}',
|