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

Function getAttachmentsByIssueID

internal/database/attachment.go:129–132  ·  view source on GitHub ↗
(e Engine, issueID int64)

Source from the content-addressed store, hash-verified

127}
128
129func getAttachmentsByIssueID(e Engine, issueID int64) ([]*Attachment, error) {
130 attachments := make([]*Attachment, 0, 5)
131 return attachments, e.Where("issue_id = ? AND comment_id = 0", issueID).Find(&attachments)
132}
133
134// GetAttachmentsByIssueID returns all attachments of an issue.
135func GetAttachmentsByIssueID(issueID int64) ([]*Attachment, error) {

Callers 2

GetAttachmentsByIssueIDFunction · 0.85
loadAttributesMethod · 0.85

Calls 2

WhereMethod · 0.80
FindMethod · 0.65

Tested by

no test coverage detected