diff --git a/pkg/keeper/keeper_test.go b/pkg/keeper/keeper_test.go index e916da92c..9930fc385 100644 --- a/pkg/keeper/keeper_test.go +++ b/pkg/keeper/keeper_test.go @@ -658,7 +658,7 @@ func (f *fgc) GetFile(owner, repo, filepath, commit string) ([]byte, error) { func (f *fgc) ListFiles(owner, repo, filepath, commit string) ([]*scm.FileEntry, error) { ctx := context.Background() fullName := scm.Join(owner, repo) - answer, _, err := f.fakeClient.Contents.List(ctx, fullName, filepath, commit) + answer, _, err := f.fakeClient.Contents.List(ctx, fullName, filepath, commit, &scm.ListOptions{}) return answer, err } diff --git a/pkg/plugins/trigger/periodic.go b/pkg/plugins/trigger/periodic.go index 0c0236654..dc3f93faf 100644 --- a/pkg/plugins/trigger/periodic.go +++ b/pkg/plugins/trigger/periodic.go @@ -433,7 +433,7 @@ func (pa *PeriodicAgent) filterPeriodics(enabled map[string]*bool) map[string]*b enable := true hasPeriodics := make(map[string]*bool) for fullName := range enabled { - list, _, err := pa.SCMClient.Contents.List(context.TODO(), fullName, ".lighthouse", "HEAD") + list, _, err := pa.SCMClient.Contents.List(context.TODO(), fullName, ".lighthouse", "HEAD", &scm.ListOptions{}) if err != nil { continue } diff --git a/pkg/scmprovider/content.go b/pkg/scmprovider/content.go index 853c94de6..a06c1c55b 100644 --- a/pkg/scmprovider/content.go +++ b/pkg/scmprovider/content.go @@ -26,6 +26,6 @@ func (c *Client) GetFile(owner, repo, filepath, commit string) ([]byte, error) { func (c *Client) ListFiles(owner, repo, filepath, commit string) ([]*scm.FileEntry, error) { ctx := context.Background() fullName := c.repositoryName(owner, repo) - answer, _, err := c.client.Contents.List(ctx, fullName, filepath, commit) + answer, _, err := c.client.Contents.List(ctx, fullName, filepath, commit, &scm.ListOptions{}) return answer, err }