Open gvallangca317 opened 1 month ago
My assumption is that this error originates from the block where the label is being created: https://github.com/pratikmallya/autolabeler-codeowners/blob/master/src/applyLabels.ts#L15-L33.
I suspect it is attempting to recreate labels that already exist, leading to an error being thrown.
My assumption is that this error originates from the block where the label is being created: https://github.com/pratikmallya/autolabeler-codeowners/blob/master/src/applyLabels.ts#L15-L33.
I suspect it is attempting to recreate labels that already exist, leading to an error being thrown.
Is that an issue that can be fixed on the PR or something should be done on the codeblock? I'm assuming GH did something new that is causing to break on that codeblock
Yeah it looks like GitHub changed their error message - I think the catch block might need to be updated:
// if label already exists
if (error.code !== 'already_exists') {
throw error
}
Do you know if GH had any documentation on the error messaging change?
Failure provides 1 error and 2 warnings