remove ProjectFile stuff

This commit is contained in:
2022-02-19 18:09:51 +05:30
parent 67f60bae11
commit 03c02caefb
7 changed files with 20 additions and 280 deletions

View File

@@ -12,7 +12,7 @@ import (
)
type InCommand struct {
gitea Gitea
gitea Gitea
writer io.Writer
}
@@ -23,7 +23,7 @@ type attachment struct {
func NewInCommand(gitea Gitea, writer io.Writer) *InCommand {
return &InCommand{
gitea: gitea,
gitea: gitea,
writer: writer,
}
}
@@ -108,7 +108,7 @@ func (c *InCommand) Run(destDir string, request InRequest) (InResponse, error) {
continue
}
err := c.gitea.DownloadProjectFile(attachment.URL, path)
err := gitea.GetReleaseAttachment(attachment.URL, path)
if err != nil {
return InResponse{}, err
}