Skip to content

Commit

Permalink
fix: empty ListOptions to satisfy interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Skisocks committed Jan 7, 2025
1 parent 72eeb8b commit acb6931
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/trigger/periodic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/scmprovider/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit acb6931

Please sign in to comment.