MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / getCommitByType

Method getCommitByType

service/release/iml.go:185–190  ·  view source on GitHub ↗
(ctx context.Context, releaseId, t CommitType, target string)

Source from the content-addressed store, hash-verified

183}
184
185func (s *imlReleaseService) getCommitByType(ctx context.Context, releaseId, t CommitType, target string) ([]*release.Commit, error) {
186 where := "`release` = ? and `type` = ? and `target` = ?"
187 args := []interface{}{releaseId, t, target}
188 return s.commitStore.ListQuery(ctx, where, args, "")
189
190}
191
192//func (s *imlReleaseService) GetApiDocCommit(ctx context.Context, id string, apiUUID string) (string, error) {
193// commits, err := s.getCommitByType(ctx, id, CommitApiDocument, apiUUID, CommitApiDocument)

Callers 2

GetApiProxyCommitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected