Skip to content

Create Pull Request does not work when repository name ends in Xgit #1256

@campersau

Description

@campersau

Subject of the issue

We have a reprository named "ungit" https://github.com/FredrikNoren/ungit and after updating the create-pull-request action to v4 it does not work anymore and reports "Error: Not Found". See https://github.com/campersau/ungit/actions/runs/3103556378/jobs/5027017692#step:7:111

I think the issue is that in #1153 the .git suffix is ignored, but the regex is wrong as it does not escape the ..

Steps to reproduce

Use the create-pull-request action with a repository which name ends in Xgit


I added some more logging in my own fork and you can see that the "ngit" suffix is missing:

Attempting creation of pull request {
    "owner": "campersau",
    "repo": "u", // <---------------- missing "ngit"
    "title": "Bump Dependencies",
    "head": "campersau:bumpdependencies",
    "base": "master",
    "body": "...",
    "draft": false
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions