MCPcopy Create free account
hub / github.com/gogs/gogs / GetAttachmentsByReleaseID

Function GetAttachmentsByReleaseID

internal/database/attachment.go:155–157  ·  view source on GitHub ↗

GetAttachmentsByReleaseID returns all attachments of a release.

(releaseID int64)

Source from the content-addressed store, hash-verified

153
154// GetAttachmentsByReleaseID returns all attachments of a release.
155func GetAttachmentsByReleaseID(releaseID int64) ([]*Attachment, error) {
156 return getAttachmentsByReleaseID(x, releaseID)
157}
158
159// DeleteAttachment deletes the given attachment and optionally the associated file.
160func DeleteAttachment(a *Attachment, remove bool) error {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected