Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

issue-closer Github Action closes valid issues #1

@j1elo

Description

@j1elo

Description

The roots/issue-closer@v1.1 Github Action fails regexp match against a correct issue body.

Steps to reproduce

  1. Created a new workflow using roots/issue-closer@v1.1
  2. Open issue with this body: [Test] GitHub Action to enforce issue template Kurento/bugtracker#480
  3. Action runs with these debug logs:
Run roots/issue-closer@v1.1
##[debug]Matching against pattern /^.*description.*reproduce.*$/
##[debug]Body did not match

I've also tested with a pattern just like the example one shown in the README, without the begin and end anchors, but it also fails matching:

Run roots/issue-closer@v1.1
##[debug]Matching against pattern /.*description.*reproduce.*/
##[debug]Body did not match

Expected behavior:

Given that the issue body contains both words description and reproduce, I expected the issue-closer action to not close the issue.

Actual behavior: [What actually happens]

issue-closer is not able to match the provided regex, and closes an otherwise valid issue.

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

roots/issue-closer@v1.1

Additional information

The required key words to consider an issue as valid are in different lines. Given that the issue.body payload comes from Github in form of a single string, I expected that this wouldn't matter. However, it's possible that some pre-processing and cleaning of the body string must be done before Regexp matching (I am no JS programmer so I don't know the ins and outs of the source code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions