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

Issue Labeler fail when list starts with url link 🐛 #350

Open
jamacku opened this issue Jul 24, 2024 · 0 comments
Open

Issue Labeler fail when list starts with url link 🐛 #350

jamacku opened this issue Jul 24, 2024 · 0 comments
Assignees
Labels

Comments

@jamacku
Copy link
Member

jamacku commented Jul 24, 2024

Type of issue

Bug Report

Description

Example issue: redhat-plumbers-in-action/differential-shellcheck#432

Problem:

- [link](url)

Describe the solution you'd like

Issue Labeler fails due to parsing error:

Error: Incorrect format of provided 'issue-form' input: [
  {
    "code": "invalid_union",
    "unionErrors": [
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "array",
            "path": [
              "solution"
            ],
            "message": "Expected string, received array"
          }
        ],
        "name": "ZodError"
      },
      {
        "issues": [
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "array",
            "path": [
              "solution",
              0
            ],
            "message": "Expected string, received array"
          },
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "array",
            "path": [
              "solution",
              1
            ],
            "message": "Expected string, received array"
          },
          {
            "code": "invalid_type",
            "expected": "string",
            "received": "array",
            "path": [
              "solution",
              2
            ],
            "message": "Expected string, received array"
          }
        ],
        "name": "ZodError"
      }
    ],
    "path": [
      "solution"
    ],
    "message": "Invalid input"
  }
]

But the problem is caused by parsing of issue:

{
    "type": "Feature Request",
    "description": "Our team uses [the merge queue](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue) to serialize and validate changes on the default branch. I want to run ShellCheck when a change is added to the merge queue so that I can detect problems (e.g., introduced by a bad merge) before getting them merged to the default branch.",
    "solution": [
      [
        "Things I don't understand are:"
      ],
      [
        "Things I don't understand are:"
      ],
      [
        "Things I don't understand are:"
      ]
    ]
  }

So ideally it should be fixed in: https://github.com/stefanbuck/github-issue-parser

@jamacku jamacku self-assigned this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant