Skip to content

Added proxy support #898

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

Merged
merged 2 commits into from
May 2, 2025
Merged

Added proxy support #898

merged 2 commits into from
May 2, 2025

Conversation

maikebing
Copy link
Contributor

@maikebing maikebing commented May 1, 2025

    [Test]
    public async Task ShouldWorkWithoutToken()
    {
        // https://gitlab.com/gitlab-org/gitlab
        const long GitLabProjectId = 278964;

        var client = new GitLabClient("https://gitlab.com");
        client.Options.Proxy = new System.Net.WebProxy("http://127.0.0.1:7890");
        var project = await client.Projects.GetByIdAsync(GitLabProjectId, new Models.SingleProjectQuery { Statistics = false});

        Assert.That(project, Is.Not.Null);
        Assert.That(project.Id, Is.EqualTo(GitLabProjectId));
        Assert.That(project.Name, Is.EqualTo("GitLab"));
    }

@maikebing maikebing requested a review from a team as a code owner May 1, 2025 16:30
@maikebing maikebing requested review from Toa741 and removed request for a team May 1, 2025 16:30
@Toa741
Copy link
Contributor

Toa741 commented May 2, 2025

Hello @maikebing,
Thanks for you're contribution :).
Please check the comments above so I could execute the workflow to validate it.

@maikebing
Copy link
Contributor Author

Hi, @Toa741 ,I'm done. please validate it.

@Toa741 Toa741 merged commit 2a6f364 into ubisoft:main May 2, 2025
5 checks passed
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.

2 participants