Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit c081953

Browse files
committed
chore: remove personal information
1 parent c254731 commit c081953

File tree

5 files changed

+7
-35
lines changed

5 files changed

+7
-35
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ spec:
7878
secretRef:
7979
name: git-sync-secret
8080
interval: 10m
81-
owner: Skarlso
81+
owner: open-component-model
8282
provider: github
8383
existingRepositoryPolicy: adopt
8484
```

config/samples/delivery_v1alpha1_sync.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

config/samples/mpas_v1alpha1_repository.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

controllers/delivery/sync_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (r *SyncReconciler) reconcile(ctx context.Context, obj *v1alpha1.Sync) erro
185185
if targetBranch == "" && obj.Spec.AutomaticPullRequestCreation {
186186
targetBranch = fmt.Sprintf("branch-%d", time.Now().Unix())
187187
} else if targetBranch == "" && !obj.Spec.AutomaticPullRequestCreation {
188-
err := fmt.Errorf("branch cannot be empty if automatic pull request creation is not enabled")
188+
err := errors.New("branch cannot be empty if automatic pull request creation is not enabled")
189189
status.MarkNotReady(r.EventRecorder, obj, v1alpha1.GitRepositoryPushFailedReason, err.Error())
190190

191191
return err

controllers/delivery/sync_controller_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestSyncReconciler(t *testing.T) {
4747
},
4848
Spec: mpasv1alpha1.RepositorySpec{
4949
Provider: "github",
50-
Owner: "Skarlso",
50+
Owner: "open-component-model",
5151
Credentials: mpasv1alpha1.Credentials{
5252
SecretRef: v1.LocalObjectReference{
5353
Name: secret.Name,
@@ -72,7 +72,7 @@ func TestSyncReconciler(t *testing.T) {
7272
},
7373
CommitTemplate: v1alpha1.CommitTemplate{
7474
TargetBranch: "main",
75-
Name: "Skarlso",
75+
Name: "open-component-model",
7676
7777
Message: "This is my message",
7878
},
@@ -130,7 +130,7 @@ func TestSyncReconcilerIsSkippedIfDigestIsAlreadyPresent(t *testing.T) {
130130
},
131131
CommitTemplate: v1alpha1.CommitTemplate{
132132
TargetBranch: "main",
133-
Name: "Skarlso",
133+
Name: "open-component-model",
134134
135135
Message: "This is my message",
136136
},
@@ -192,7 +192,7 @@ func TestSyncReconcilerWithAutomaticPullRequest(t *testing.T) {
192192
},
193193
Spec: mpasv1alpha1.RepositorySpec{
194194
Provider: "github",
195-
Owner: "Skarlso",
195+
Owner: "open-component-model",
196196
Credentials: mpasv1alpha1.Credentials{
197197
SecretRef: v1.LocalObjectReference{
198198
Name: secret.Name,
@@ -222,7 +222,7 @@ func TestSyncReconcilerWithAutomaticPullRequest(t *testing.T) {
222222
},
223223
CommitTemplate: v1alpha1.CommitTemplate{
224224
TargetBranch: "main",
225-
Name: "Skarlso",
225+
Name: "open-component-model",
226226
227227
Message: "This is my message",
228228
},

0 commit comments

Comments
 (0)