fix: reduce logs for Github repo.build (#111117)
* fix: reduce logs for Github repo.build * ci: go workspace
This commit is contained in:
@@ -458,8 +458,11 @@ func (rc *RepositoryController) process(item *queueItem) error {
|
||||
}
|
||||
|
||||
// Apply all patch operations
|
||||
if err := rc.statusPatcher.Patch(ctx, obj, patchOperations...); err != nil {
|
||||
return err
|
||||
if len(patchOperations) > 0 {
|
||||
err := rc.statusPatcher.Patch(ctx, obj, patchOperations...)
|
||||
if err != nil {
|
||||
return fmt.Errorf("status patch operations failed: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Trigger sync job after we have applied all patch operations
|
||||
|
||||
Reference in New Issue
Block a user