Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/plugins/scms/githubsearch/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ import (

// Spec represents the configuration input
type Spec struct {
// Depth defines the depth used when cloning the git repository.
//
// Default: disabled (full clone)
//
// Remark:
Comment thread
olblak marked this conversation as resolved.
// When using a shallow clone (depth greater than 0), Updatecli is not able to retrieve the full git history.
// This may cause some issues when Updatecli tries to push changes to the remote repository.
// In that case, you may need to set the force option to true to force push changes to the remote repository.
Depth *int `yaml:",omitempty"`
// Limit defines the maximum number of repositories to return from the search query.
//
// compatible:
Expand Down
1 change: 1 addition & 0 deletions pkg/plugins/scms/githubsearch/specGenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (g GitHubSearch) ScmsGenerator(ctx context.Context) (results []github.Spec,
CommitMessage: g.spec.CommitMessage,
CommitUsingAPI: g.spec.CommitUsingAPI,
Directory: g.spec.Directory,
Depth: g.spec.Depth,
Email: g.spec.Email,
Force: g.spec.Force,
GPG: g.spec.GPG,
Expand Down
Loading