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

Add support for . in project paths #89

Merged

Conversation

CaseyMacPherson
Copy link
Contributor

Fixes #88

The unit tests were created to vet the regex updates as they can be very fiddly.

Fixed issue with getting 404 when using any GitlabCli commands that interrogate the current folder for git information. Projects can have a . in their path and this wasn't accomodated for in the current regex Got mired in not capturing .git when it's there. There are two formats for git repo urls that aren't http based. These can have either .git or not on the end when running git config --get remote.origin.url

For some reason I wasn't able to figure that part out. Ended up with a best effort just removing .git from the end.

To invoke the tests run Invoke-Pester -Output Detailed in the root of the repo, it should find them automatically.

TestRun

The unit tests were created to vet the regex updates as they can be very fiddly.

Fixed issue with getting 404 when using any GitlabCli commands that interrogate the current folder for git information. Projects can have a `.` in their path and this wasn't accomodated for in the current regex
Got mired in not capturing `.git` when it's there. There are two formats for git repo urls that aren't http based. These can have either .git or not on the end when running `git config --get remote.origin.url`

For some reason I wasn't able to figure that part out. Ended up with a best effort just removing .git from the end.

To invoke the tests run `Invoke-Pester` in the root of the repo, it should find them automatically.
@chris-peterson
Copy link
Owner

Awesome -- I'd been looking into Pester, but never had the chance to contextualize it

This will be a handy tool moving forward -- thanks for the heavy lifting!

@chris-peterson chris-peterson merged commit c8e5474 into chris-peterson:main Mar 22, 2024
@CaseyMacPherson CaseyMacPherson deleted the AdditionalPathCharacter branch March 24, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Projects with periods in the path result in 404 errors when using git@ format URLS
2 participants