-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebranding appstudion->konflux (#309)
* Rebranding appstudion->konflux * Rebranding rhtap->konflux * Author email update * Update controllers/component_build_controller_pac.go Co-authored-by: Ralph Bean <[email protected]> * Update controllers/component_build_controller_pac.go Co-authored-by: Ralph Bean <[email protected]> * Update pkg/git/github/github_helper_debug_test.go Co-authored-by: Ralph Bean <[email protected]> * Update pkg/git/github/github_helper_debug_test.go Co-authored-by: Ralph Bean <[email protected]> * Update pkg/git/gitlab/gitlab_helper_debug_test.go Co-authored-by: Ralph Bean <[email protected]> * Update pkg/git/gitlab/gitlab_helper_debug_test.go Co-authored-by: Ralph Bean <[email protected]> --------- Co-authored-by: Ralph Bean <[email protected]>
- Loading branch information
1 parent
2b6e85c
commit 02a0705
Showing
5 changed files
with
42 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,12 +31,6 @@ import ( | |
|
||
"github.com/go-logr/logr" | ||
"github.com/google/go-containerregistry/pkg/authn" | ||
"github.com/konflux-ci/build-service/pkg/boerrors" | ||
. "github.com/konflux-ci/build-service/pkg/common" | ||
"github.com/konflux-ci/build-service/pkg/git" | ||
gp "github.com/konflux-ci/build-service/pkg/git/gitprovider" | ||
"github.com/konflux-ci/build-service/pkg/git/gitproviderfactory" | ||
l "github.com/konflux-ci/build-service/pkg/logs" | ||
pacv1alpha1 "github.com/openshift-pipelines/pipelines-as-code/pkg/apis/pipelinesascode/v1alpha1" | ||
routev1 "github.com/openshift/api/route/v1" | ||
appstudiov1alpha1 "github.com/redhat-appstudio/application-api/api/v1alpha1" | ||
|
@@ -53,6 +47,13 @@ import ( | |
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" | ||
ctrllog "sigs.k8s.io/controller-runtime/pkg/log" | ||
"sigs.k8s.io/yaml" | ||
|
||
"github.com/konflux-ci/build-service/pkg/boerrors" | ||
. "github.com/konflux-ci/build-service/pkg/common" | ||
"github.com/konflux-ci/build-service/pkg/git" | ||
gp "github.com/konflux-ci/build-service/pkg/git/gitprovider" | ||
"github.com/konflux-ci/build-service/pkg/git/gitproviderfactory" | ||
l "github.com/konflux-ci/build-service/pkg/logs" | ||
) | ||
|
||
const ( | ||
|
@@ -984,13 +985,13 @@ func (r *ComponentBuildReconciler) ConfigureRepositoryForPaC(ctx context.Context | |
} | ||
|
||
mrData := &gp.MergeRequestData{ | ||
CommitMessage: "Appstudio update " + component.Name, | ||
CommitMessage: "Konflux update " + component.Name, | ||
BranchName: generateMergeRequestSourceBranch(component), | ||
BaseBranchName: baseBranch, | ||
Title: "Appstudio update " + component.Name, | ||
Title: "Konflux update " + component.Name, | ||
Text: mergeRequestDescription, | ||
AuthorName: "redhat-appstudio", | ||
AuthorEmail: "[email protected]", | ||
AuthorName: "konflux", | ||
AuthorEmail: "[email protected]", | ||
Files: []gp.RepositoryFile{ | ||
{FullPath: ".tekton/" + component.Name + "-" + pipelineRunOnPushFilename, Content: pipelineRunOnPushYaml}, | ||
{FullPath: ".tekton/" + component.Name + "-" + pipelineRunOnPRFilename, Content: pipelineRunOnPRYaml}, | ||
|
@@ -1072,7 +1073,7 @@ func (r *ComponentBuildReconciler) UnconfigureRepositoryForPaC(ctx context.Conte | |
mrData := &gp.MergeRequestData{ | ||
BranchName: sourceBranch, | ||
BaseBranchName: baseBranch, | ||
AuthorName: "redhat-appstudio", | ||
AuthorName: "konflux", | ||
} | ||
|
||
mergeRequest, err := gitClient.FindUnmergedPaCMergeRequest(repoUrl, mrData) | ||
|
@@ -1094,13 +1095,13 @@ func (r *ComponentBuildReconciler) UnconfigureRepositoryForPaC(ctx context.Conte | |
if mergeRequest == nil { | ||
// Create new PaC configuration clean up merge request | ||
mrData = &gp.MergeRequestData{ | ||
CommitMessage: "Appstudio purge " + component.Name, | ||
BranchName: "appstudio-purge-" + component.Name, | ||
CommitMessage: "Konflux purge " + component.Name, | ||
BranchName: "konflux-purge-" + component.Name, | ||
BaseBranchName: baseBranch, | ||
Title: "Appstudio purge " + component.Name, | ||
Title: "Konflux purge " + component.Name, | ||
Text: "Pipelines as Code configuration removal", | ||
AuthorName: "redhat-appstudio", | ||
AuthorEmail: "[email protected]", | ||
AuthorName: "konflux", | ||
AuthorEmail: "[email protected]", | ||
Files: []gp.RepositoryFile{ | ||
{FullPath: ".tekton/" + component.Name + "-" + pipelineRunOnPushFilename}, | ||
{FullPath: ".tekton/" + component.Name + "-" + pipelineRunOnPRFilename}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,13 +93,13 @@ func TestCreatePaCPullRequest(t *testing.T) { | |
|
||
componentName := "unittest-component-name" | ||
prData := &gp.MergeRequestData{ | ||
CommitMessage: "Appstudio update " + componentName, | ||
BranchName: "appstudio-" + componentName, | ||
CommitMessage: "Konflux update " + componentName, | ||
BranchName: "konflux-" + componentName, | ||
BaseBranchName: "", | ||
Title: "Appstudio update " + componentName, | ||
Title: "Konflux update " + componentName, | ||
Text: "Pipelines as Code configuration proposal", | ||
AuthorName: "redhat-appstudio", | ||
AuthorEmail: "[email protected]", | ||
AuthorName: "konflux", | ||
AuthorEmail: "[email protected]", | ||
Files: []gp.RepositoryFile{ | ||
{FullPath: ".tekton/" + componentName + "-push.yaml", Content: pipelineOnPush}, | ||
{FullPath: ".tekton/" + componentName + "-pull-request.yaml", Content: pipelineOnPR}, | ||
|
@@ -123,13 +123,13 @@ func TestUndoPaCPullRequest(t *testing.T) { | |
|
||
componentName := "unittest-component-name" | ||
prData := &gp.MergeRequestData{ | ||
CommitMessage: "Appstudio purge " + componentName, | ||
BranchName: "appstudio-purge-" + componentName, | ||
CommitMessage: "Konflux purge " + componentName, | ||
BranchName: "konflux-purge-" + componentName, | ||
BaseBranchName: "", | ||
Title: "Appstudio purge " + componentName, | ||
Title: "Konflux purge " + componentName, | ||
Text: "Pipelines as Code configuration removal", | ||
AuthorName: "redhat-appstudio", | ||
AuthorEmail: "[email protected]", | ||
AuthorName: "konflux", | ||
AuthorEmail: "[email protected]", | ||
Files: []gp.RepositoryFile{ | ||
{FullPath: ".tekton/" + componentName + "-push.yaml"}, | ||
{FullPath: ".tekton/" + componentName + "-pull-request.yaml"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,13 +53,13 @@ func TestEnsurePaCMergeRequest(t *testing.T) { | |
|
||
componentName := "unittest-component-name" | ||
mrData := &gp.MergeRequestData{ | ||
CommitMessage: "Appstudio update " + componentName, | ||
BranchName: "appstudio-" + componentName, | ||
CommitMessage: "Konflux update " + componentName, | ||
BranchName: "konflux-" + componentName, | ||
BaseBranchName: "", | ||
Title: "Appstudio update " + componentName, | ||
Title: "Konflux update " + componentName, | ||
Text: "Pipelines as Code configuration proposal", | ||
AuthorName: "redhat-appstudio", | ||
AuthorEmail: "[email protected]", | ||
AuthorName: "konflux", | ||
AuthorEmail: "[email protected]", | ||
Files: []gp.RepositoryFile{ | ||
{FullPath: ".tekton/" + componentName + "-push.yaml", Content: pipelineOnPush}, | ||
{FullPath: ".tekton/" + componentName + "-pull-request.yaml", Content: pipelineOnPR}, | ||
|
@@ -92,13 +92,13 @@ func TestUndoPaCMergeRequest(t *testing.T) { | |
|
||
componentName := "unittest-component-name" | ||
mrData := &gp.MergeRequestData{ | ||
CommitMessage: "Appstudio purge " + componentName, | ||
BranchName: "appstudio-purge-" + componentName, | ||
CommitMessage: "Konflux purge " + componentName, | ||
BranchName: "konflux-purge-" + componentName, | ||
BaseBranchName: "", | ||
Title: "Appstudio purge " + componentName, | ||
Title: "Konflux purge " + componentName, | ||
Text: "Pipelines as Code configuration removal", | ||
AuthorName: "redhat-appstudio", | ||
AuthorEmail: "[email protected]", | ||
AuthorName: "konflux", | ||
AuthorEmail: "[email protected]", | ||
Files: []gp.RepositoryFile{ | ||
{FullPath: ".tekton/" + componentName + "-push.yaml"}, | ||
{FullPath: ".tekton/" + componentName + "-pull-request.yaml"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters