Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow is now failing #27

Open
gvallangca317 opened this issue Jun 12, 2024 · 4 comments
Open

Workflow is now failing #27

gvallangca317 opened this issue Jun 12, 2024 · 4 comments

Comments

@gvallangca317
Copy link

Failure provides 1 error and 2 warnings

image
@rosswaycaster
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants