Skip to content
ubisoftPublic

About

.NET client for the GitLab REST API

Topics

Resources

Contributing

Stars

173 stars

Watchers

8 watching

Forks

Repository files navigation

NuGet

What is NGitLab?

NGitLab is a .NET client implementation for the GitLab REST API.

Usage

Start by creating a GitLabClient instance:

var client = new GitLabClient("https://mygitlab.example.com", "your_private_token");

Then use its properties. You can obtain the private token in your account page. You may want to create a custom user for the API usage.

For further info about the GitLab API, refer to the official documentation

Where can I get it?

Get it from nuget.org. You can simply install it using the dotnet CLI:

dotnet add package NGitLab

Running Unit Tests locally

  • Install Docker on your machine
  • It's recommended to use WSL version 2 (see here)
  • Running the Docker-based integration tests (NGitLab.Tests) under Linux requires PowerShell (pwsh) to be installed, because they start a GitLab runner that uses the PowerShell shell (see here)

Contributing

See CONTRIBUTING.md. In particular, changes to the public API are checked by snapshot tests: the page explains how to check them and how to update the snapshots.

Thanks

Thanks to Scooletz for creating the original project.

About

.NET client for the GitLab REST API

Topics

Resources

Contributing

Stars

173 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages