fix: reduce logs for Github repo.build (#111117)

* fix: reduce logs for Github repo.build

* ci: go workspace
This commit is contained in:
Costa Alexoglou
2025-09-16 09:57:08 +00:00
committed by GitHub
parent 38e5298807
commit 8a352cc352
@@ -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