Skip to content

Commit acb6931

Browse files
committed
fix: empty ListOptions to satisfy interface
1 parent 72eeb8b commit acb6931

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/keeper/keeper_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ func (f *fgc) GetFile(owner, repo, filepath, commit string) ([]byte, error) {
658658
func (f *fgc) ListFiles(owner, repo, filepath, commit string) ([]*scm.FileEntry, error) {
659659
ctx := context.Background()
660660
fullName := scm.Join(owner, repo)
661-
answer, _, err := f.fakeClient.Contents.List(ctx, fullName, filepath, commit)
661+
answer, _, err := f.fakeClient.Contents.List(ctx, fullName, filepath, commit, &scm.ListOptions{})
662662
return answer, err
663663
}
664664

pkg/plugins/trigger/periodic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (pa *PeriodicAgent) filterPeriodics(enabled map[string]*bool) map[string]*b
433433
enable := true
434434
hasPeriodics := make(map[string]*bool)
435435
for fullName := range enabled {
436-
list, _, err := pa.SCMClient.Contents.List(context.TODO(), fullName, ".lighthouse", "HEAD")
436+
list, _, err := pa.SCMClient.Contents.List(context.TODO(), fullName, ".lighthouse", "HEAD", &scm.ListOptions{})
437437
if err != nil {
438438
continue
439439
}

pkg/scmprovider/content.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ func (c *Client) GetFile(owner, repo, filepath, commit string) ([]byte, error) {
2626
func (c *Client) ListFiles(owner, repo, filepath, commit string) ([]*scm.FileEntry, error) {
2727
ctx := context.Background()
2828
fullName := c.repositoryName(owner, repo)
29-
answer, _, err := c.client.Contents.List(ctx, fullName, filepath, commit)
29+
answer, _, err := c.client.Contents.List(ctx, fullName, filepath, commit, &scm.ListOptions{})
3030
return answer, err
3131
}

0 commit comments

Comments
 (0)