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

Method GetCommits

service/release/iml.go:130–147  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

128}
129
130func (s *imlReleaseService) GetCommits(ctx context.Context, id string) ([]*ProjectCommits, error) {
131 list, err := s.commitStore.List(ctx, map[string]interface{}{
132 "release": id,
133 })
134 if err != nil {
135 return nil, err
136 }
137
138 return utils.SliceToSlice(list, func(o *release.Commit) *ProjectCommits {
139 return &ProjectCommits{
140 Release: o.Release,
141 Target: o.Target,
142 Key: o.Key,
143 Type: o.Type,
144 Commit: o.Commit,
145 }
146 }), nil
147}
148
149func (s *imlReleaseService) OnComplete() {
150 auto.RegisterService("release", s)

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected