top-issues-action icon indicating copy to clipboard operation
top-issues-action copied to clipboard

Label already exists

Open pauby opened this issue 8 months ago • 1 comments

Describe the bug

When running the GHA, I get this error:

Error: Something went wrong while initializing the dashboard 'Top Issues Dashboard' label: Validation Failed: {"resource":"Label","code":"already_exists","field":"name"}

If I remove the Top Issues Dashboard label, the workflow runs as it should and then creates that label. When it runs again, as the label is present, it fails.

Here is the workflow code and here are the runs.

Reproduction steps

  1. Delete the 'Top Issues Dashboard' label.
  2. Add the workflow code linked to above.
  3. Run the workflow manually.
  4. See it succeeds.
  5. Run the workflow manually.
  6. See it fails.
  7. Delete the 'Top Issues Dashboard' label and runt eh workflow again.
  8. See it succeed.

Expected behaviour

The workflow should run whether the label exists or not.

Screenshots / Live demo link

No response

Additional context

I could very well be holding this wrong!

pauby avatar Jun 19 '25 13:06 pauby

@pauby thanks for the bug report. Would you be willing to create a pull request to fix this?

rickstaa avatar Oct 21 '25 08:10 rickstaa