package release import ( "context" "io" "code.gitea.io/sdk/gitea" ) type contextSetter interface { SetContext(ctx context.Context) } type releaseCreator interface { contextSetter CreateRelease(owner, repo string, opt gitea.CreateReleaseOption) (*gitea.Release, *gitea.Response, error) } type releaseAttachmentCreator interface { contextSetter CreateReleaseAttachment(user, repo string, release int64, file io.Reader, filename string) (*gitea.Attachment, *gitea.Response, error) }