clowd / Clowd.Squirrel

Quick and easy installer and automatic updates for cross-platform dotnet applications
427 stars 39 forks source link

Refactor GitlabSource to support public GraphQL api #189

Closed caesay closed 6 months ago

caesay commented 10 months ago

We should use the public GraphQL api to retrieve releases from a public repository if the access token is not provided.

The constructors should be something like this

// use private / authenticated api
public GitlabSource(int projectId, string accessToken, bool upcomingRelease, IFileDownloader downloader = null)

// use public / unauthenticated graphql api
public GitlabSource(string repoUrl, bool upcomingRelease, IFileDownloader downloader = null)