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

Function GetAttachmentsByIssueID

internal/database/attachment.go:135–137  ·  view source on GitHub ↗

GetAttachmentsByIssueID returns all attachments of an issue.

(issueID int64)

Source from the content-addressed store, hash-verified

133
134// GetAttachmentsByIssueID returns all attachments of an issue.
135func GetAttachmentsByIssueID(issueID int64) ([]*Attachment, error) {
136 return getAttachmentsByIssueID(x, issueID)
137}
138
139func getAttachmentsByCommentID(e Engine, commentID int64) ([]*Attachment, error) {
140 attachments := make([]*Attachment, 0, 5)

Callers 1

DeleteAttachmentsByIssueFunction · 0.85

Calls 1

getAttachmentsByIssueIDFunction · 0.85

Tested by

no test coverage detected