[Backport 2.x] Fix response codes returned by JSON formatting them #3584
draft-release-notes-workflow.yml
on: pull_request
Update draft release notes
8s
Annotations
2 errors
Update draft release notes
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '6398694112',
status: 422,
response: {
url: 'https://api.github.com/repos/opensearch-project/sql/releases/113868329',
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': '195',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Tue, 03 Oct 2023 21:38:22 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': 'E045:9035:240603D:25308F5:651C89CE',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14944',
'x-ratelimit-reset': '1696369156',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '56',
'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'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/opensearch-project/sql/releases/113868329',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"Compatible with OpenSearch and OpenSearch Dashboards Version 2.4.0\\n* [Backport 2.x] Fix core refactor: StreamIO from common to core.common (#296) ([#1891](https://github.com/opensearch-project/sql/pull/1891))\\n* [Backport 2.x] Change query range response structure ([#1890](https://github.com/opensearch-project/sql/pull/1890))\\n* [Backport 2.x] Prometheus Query Exemplars (#1782) ([#1905](https://github.com/opensearch-project/sql/pull/1905))\\n* [Backport 2.x] Added new datetime functions and aliases to PPL [Part 2] ([#1870](https://github.com/opensearch-project/sql/pull/1870))\\n* [Backport 2.x] Adding Spotless support framework #1888 ([#1898](https://github.com/opensearch-project/sql/pull/1898))\\n* [Backport 2.x] Fixed missing underscores in day_of_week doctest ([#1886](https://github.com/opensearch-project/sql/pull/1886))\\n* [Backport 2.x] Addressing comments on 2.9 release notes ([#1878](https://github.com/opensearch-project/sql/pull/1878))\\n* [Backport 2.x] Statically init `typeActionMap` in `OpenSearchExprValueFactory`. ([#1901](https://github.com/opensearch-project/sql/pull/1901))\\n* [Backport 2.x] Added support of timestamp/date/time using curly brackets ([#1908](https://github.com/opensearch-project/sql/pull/1908))\\n* [Backport 2.x] Backport breaking changes ([#1920](https://github.com/opensearch-project/sql/pull/1920))\\n* [Backport 2.x] [Spotless] Adds new line at end of java files ([#1925](https://github.com/opensearch-project/sql/pull/1925))\\n* [Manual Backport #1943] Fixing string format change #1943 ([#1946](https://github.com/opensearch-project/sql/pull/1946))\\n* [Backport 2.x] Fix CVE ([#1944](https://github.com/opensearch-project/sql/pull/1944))\\n* [Backport 2.x] (#1536) Refactor OpenSearchQueryRequest and move incl
|
Update draft release notes
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
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: '6398694112',
name: 'pull_request',
payload: {
action: 'opened',
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/1290?v=4',
created_at: '2019-11-13T18:05:41Z',
description: '',
html_url: 'https://github.com/enterprises/amazon',
id: 1290,
name: 'Amazon',
node_id: 'MDEwOkVudGVycHJpc2UxMjkw',
slug: 'amazon',
updated_at: '2023-01-27T14:56:10Z',
website_url: 'https://www.amazon.com/'
},
number: 2200,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/80134844?v=4',
description: 'OpenSearch is a community-driven, Apache 2.0-licensed open source search and analytics suite that makes it easy to ingest, search, visualize, and analyze data.',
events_url: 'https://api.github.com/orgs/opensearch-project/events',
hooks_url: 'https://api.github.com/orgs/opensearch-project/hooks',
id: 80134844,
issues_url: 'https://api.github.com/orgs/opensearch-project/issues',
login: 'opensearch-project',
members_url: 'https://api.github.com/orgs/opensearch-project/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjgwMTM0ODQ0',
public_members_url: 'https://api.github.com/orgs/opensearch-project/public_members{/member}',
repos_url: 'https://api.github.com/orgs/opensearch-project/repos',
url: 'https://api.github.com/orgs/opensearch-project'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/opensearch-project/sql/issues/2200/comments'
},
commits: {
href: 'https://api.github.com/repos/opensearch-project/sql/pulls/2200/commits'
},
html: {
href: 'https://github.com/opensearch-project/sql/pull/2200'
},
issue: {
href: 'https://api.github.com/repos/opensearch-project/sql/issues/2200'
},
review_comment: {
href: 'https://api.github.com/repos/opensearch-project/sql/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/opensearch-project/sql/pulls/2200/comments'
},
self: {
href: 'https://api.github.com/repos/opensearch-project/sql/pulls/2200'
},
statuses: {
href: 'https://api.github.com/repos/opensearch-project/sql/statuses/5f1984f4107c46ab8b2bc360263f6c8ec91ca6e7'
}
},
active_lock_reason: null,
additions: 32,
assignee: null,
assignees: [],
author_association: 'CONTRIBUTOR',
auto_merge: null,
base: {
label: 'opensearch-project:2.x',
ref: '2.x',
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/opensearch-project/sql/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/opensearch-project/sql/assignees{/user}',
blobs_url: 'https://api.github.com/repos/opensearch-project/sql/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/opensearch-project/sql/branches{/branch}',
clone_url: 'https://github.com/opensearch-project/sql.git',
collaborators_url: 'https://api.github.com/repos/opensearch-project/sql/collaborators{/collaborator}',
|