Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

add support for the GitLab SourceLinkServerType #271

Merged
merged 1 commit into from
Oct 16, 2017

Conversation

rgl
Copy link
Contributor

@rgl rgl commented Oct 6, 2017

This is basically a copy of the GitHub code, but changed to work with GitLab hosted repositories.

I've opted for not restricting the repository url to a specific domain name like gitlab.com, it just accepts any, because in my/most cases it just references some internal domain name.

Fell free to ask for any change / rebase.

Copy link
Contributor

@chris5287 chris5287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update missing on the README

[InlineData("https://gitlab.com/ctaggart/sourcelink-test.git")]
[InlineData("https://gitlab.com/ctaggart/sourcelink-test")]
[InlineData("https://gitlab.com/ctaggart/sourcelink-test/")]
public void Should_return_url_in_canonical_form_for_GitLab(string provided)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding local GitLab urls as well to the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like also test against a gitlab.example.com domain?

@rgl
Copy link
Contributor Author

rgl commented Oct 15, 2017

@chris5287 I've updated the README.md in my last commit.

@ctaggart ctaggart added this to the 2.5.0 milestone Oct 16, 2017
@ctaggart ctaggart merged commit 5b8dac5 into ctaggart:master Oct 16, 2017
@ctaggart
Copy link
Owner

Thanks @rgl for your contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants