github icon indicating copy to clipboard operation
github copied to clipboard

release failure issue failing to be opened

Open travi opened this issue 6 months ago • 1 comments

While working through semantic-release/npm#958, i had several situations where my configuration was not yet working, so semantic-release attempted to open the issue in the repo to report the release failure. an example failure can be found in https://github.com/travi-test/npm-oidc-test/actions/runs/16186374845/job/45692725649#step:5:106

it appears that the way we are creating the issue is failing some sort of validation of labels on the github api side. unfortunately, the error gets collapsed to prevent the error from being obvious, so i havent dug deeper to understand the issue further: https://github.com/travi-test/npm-oidc-test/actions/runs/16186374845/job/45692725649#step:5:188

the issue gets created with octokit.request and i dont see anything obvious when comparing to the rest api doc: https://github.com/semantic-release/github/blob/ecde3a8a58a7cda1ddb8d405d049f56d223afe23/lib/fail.js#L100

travi avatar Jul 11 '25 21:07 travi

I'll have a look into this... but putting this here - a translation to the error code 422 as found on the doc https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#create-an-issue--status-codes

Validation failed, or the endpoint has been spammed.

babblebey avatar Jul 12 '25 19:07 babblebey