pratikmallya / autolabeler-codeowners

✨🏷️ Github Action to add labels to PRs based on CODEOWNERS
MIT License
8 stars 8 forks source link

Workflow is now failing #27

Open gvallangca317 opened 1 month ago

gvallangca317 commented 1 month ago

Failure provides 1 error and 2 warnings

image
rosswaycaster commented 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.

gvallangca317 commented 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.

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

rosswaycaster commented 1 month ago

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
}
gvallangca317 commented 3 weeks ago

Do you know if GH had any documentation on the error messaging change?