(ctx context.Context, releaseId, t CommitType, target string)
| 183 | } |
| 184 | |
| 185 | func (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) |
no outgoing calls
no test coverage detected