0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-11-28 08:20:34 +00:00
This commit is contained in:
6543 2020-05-22 11:42:46 +02:00
parent d03c8d5b36
commit aa19f3b5cd
No known key found for this signature in database
GPG Key ID: A1CA74D27FD13271

View File

@ -42,7 +42,7 @@ func (rc *releaseClient) buildRelease() (*gitea.Release, error) {
}
func (rc *releaseClient) getRelease() (*gitea.Release, error) {
releases, err := rc.Client.ListReleases(rc.Owner, rc.Repo)
releases, err := rc.Client.ListReleases(rc.Owner, rc.Repo, gitea.ListReleasesOptions{})
if err != nil {
return nil, err
}
@ -75,7 +75,7 @@ func (rc *releaseClient) newRelease() (*gitea.Release, error) {
}
func (rc *releaseClient) uploadFiles(releaseID int64, files []string) error {
attachments, err := rc.Client.ListReleaseAttachments(rc.Owner, rc.Repo, releaseID)
attachments, err := rc.Client.ListReleaseAttachments(rc.Owner, rc.Repo, releaseID, gitea.ListReleaseAttachmentsOptions{})
if err != nil {
return fmt.Errorf("Failed to fetch existing assets: %s", err)