Add support for GetLatestRelease #630

Closed
opened 2023-09-19 18:08:37 +00:00 by ankit · 0 comments

The API supports a way to fetch the Latest (non-pre-release, non-draft) release. This is missing in the SDK. I propose a Client method with following signature.

func (c *Client) GetLatestRelease(owner, repo string) (*Release, *Response, error)
<!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> The API supports a way to fetch the Latest (non-pre-release, non-draft) release. This is missing in the SDK. I propose a Client method with following signature. ```go func (c *Client) GetLatestRelease(owner, repo string) (*Release, *Response, error) ```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/go-sdk#630
No description provided.