Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Repo owner detection breaks for repos containing . in their name #431

@benhiller

Description

@benhiller

I tried using spr with a repo, but git spr status failed with the error: unable to auto configure repository owner - must be set manually in .spr.yml.

I believe the issue is because the repo name contains ., and repoFormat only allows \w and -. This is sort of a similar issue to the one fixed in https://github.com/ejoffe/spr/pull/393/files.

Creating a repo on Github shows that it allows: "ASCII letters, digits, and the characters ., -, and _" in repo names. Would it be reasonable to modify the regex to match all of those? Maybe adding . would cause issues with matching the .git suffix though.

Screenshot 2024-12-05 at 4 35 26 PM

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