Skip to content

Implement GiteaProvider as GitProvider to fetch repository releases #3

@aldy505

Description

@aldy505

The GitProvider interface provides a function to call the Gitea API for getting a specific repository's release data. With undici installed and since we're not using any Gitea API SDK (because we only need this single endpoint), implement the getReleases function to do that.

export class GiteaProvider implements BaseGitProvider {
getReleases(owner: string, repo: string): Promise<Release[]> {
// See https://docs.gitea.com/api/1.20/#tag/repository/operation/repoListReleases
throw new Error("Method not implemented.");
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions