keith / git-pile

Stacked diff support for GitHub workflows
MIT License
146 stars 11 forks source link

Automatically derive GitLab merge URL #57

Closed MontakOleg closed 11 months ago

MontakOleg commented 11 months ago

Derive GitLab merge URL from remote origin as discussed in https://github.com/keith/git-pile/pull/56#discussion_r1323261816.

Examples to check on regex101:

ssh_pattern = ^git@(git\.)?([^:]+):(.+)$

git@gitlab.com:companyname/ios
git@git.gitlab.companydomain.app:mobile/ios
git@gitlab.com:companyname/sre/protobuf
https_pattern = ^https:\/\/(.+)$

https://gitlab.com/companyname/ios
https://gitlab.companydomain.app/mobile/ios
https://gitlab.com/companyname/sre/protobuf
MontakOleg commented 11 months ago

Thanks for such quick responses!