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

Commit 7727ccc

Browse files
authored
chore: remove personal information (#139)
## Description Related to open-component-model/ocm-project#43 ## What type of PR is this? (check all applicable) - [ ] πŸ• Feature - [ ] πŸ› Bug Fix - [ ] πŸ“ Documentation Update - [ ] 🎨 Style - [ ] πŸ§‘β€πŸ’» Code Refactor - [ ] πŸ”₯ Performance Improvements - [ ] βœ… Test - [ ] πŸ€– Build - [ ] πŸ” CI - [ ] πŸ“¦ Chore (Release) - [ ] ⏩ Revert ## Related Tickets & Documents <!-- Please use this format link issue numbers: Fixes #123 https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> - Related Issue # (issue) - Closes # (issue) - Fixes # (issue) > Remove if not applicable ## Screenshots <!-- Visual changes require screenshots --> ## Added tests? - [ ] πŸ‘ yes - [ ] πŸ™… no, because they aren't needed - [ ] πŸ™‹ no, because I need help - [ ] Separate ticket for tests # (issue/pr) Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration ## Added to documentation? - [ ] πŸ“œ README.md - [ ] πŸ™… no documentation needed ## Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
1 parent c254731 commit 7727ccc

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)