Skip to content

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

@jamacku

Description

@jamacku

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions