Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update main to be default #267

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vela/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func TestAdmin_Deployment_Update_200(t *testing.T) {

req := library.Deployment{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Task: String("vela-deploy"),
Target: String("production"),
Description: String("Deployment request from Vela"),
Expand Down
6 changes: 3 additions & 3 deletions vela/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ func TestBuild_Add_201(t *testing.T) {
Author: String("OctoKitty"),
Email: String("[email protected]"),
Link: String("https://vela.example.company.com/github/octocat/1"),
Branch: String("master"),
Ref: String("refs/heads/master"),
Branch: String("main"),
Ref: String("refs/heads/main"),
BaseRef: String(""),
Host: String("example.company.com"),
Runtime: String("docker"),
Expand Down Expand Up @@ -609,7 +609,7 @@ func ExampleBuildService_Add() {
Author: String("someone"),
Email: String("[email protected]"),
Link: String("https://vela.example.company.com/go-vela/server/1"),
Branch: String("master"),
Branch: String("main"),
Ref: String(""),
BaseRef: String(""),
Host: String("example.company.com"),
Expand Down
4 changes: 2 additions & 2 deletions vela/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestDeployment_Add_201(t *testing.T) {

req := library.Deployment{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Task: String("vela-deploy"),
Target: String("production"),
Description: String("Deployment request from Vela"),
Expand Down Expand Up @@ -174,7 +174,7 @@ func ExampleDeploymentService_Add() {

req := library.Deployment{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Task: String("vela-deploy"),
Target: String("production"),
Description: String("Deployment request from Vela"),
Expand Down
4 changes: 2 additions & 2 deletions vela/hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestHook_Add_201(t *testing.T) {
Error: String(""),
Created: Int64(1563474076),
Link: String("https://github.com/github/octocat/settings/hooks/1"),
Branch: String("master"),
Branch: String("main"),
Host: String("github.com"),
}

Expand Down Expand Up @@ -287,7 +287,7 @@ func ExampleHookService_Add() {
Error: String(""),
Created: Int64(1563474076),
Link: String("https://github.com/github/octocat/settings/hooks/1"),
Branch: String("master"),
Branch: String("main"),
Host: String("github.com"),
}

Expand Down
4 changes: 2 additions & 2 deletions vela/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestPipeline_Add_201(t *testing.T) {

req := library.Pipeline{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Type: String("yaml"),
Version: String("1"),
Steps: Bool(true),
Expand Down Expand Up @@ -472,7 +472,7 @@ func ExamplePipelineService_Add() {

req := library.Pipeline{
Commit: String("48afb5bdc41ad69bf22588491333f7cf71135163"),
Ref: String("refs/heads/master"),
Ref: String("refs/heads/main"),
Type: String("yaml"),
Version: String("1"),
Steps: Bool(true),
Expand Down
4 changes: 2 additions & 2 deletions vela/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func TestRepo_Add_201(t *testing.T) {
FullName: String("github/octocat"),
Link: String("https://github.com/github/octocat"),
Clone: String("https://github.com/github/octocat.git"),
Branch: String("master"),
Branch: String("main"),
Timeout: Int64(60),
Visibility: String("public"),
Private: Bool(false),
Expand Down Expand Up @@ -375,7 +375,7 @@ func ExampleRepoService_Add() {
FullName: String("github/octocat"),
Link: String("https://github.com/github/octocat"),
Clone: String("https://github.com/github/octocat.git"),
Branch: String("master"),
Branch: String("main"),
Timeout: Int64(60),
Visibility: String("public"),
Private: Bool(false),
Expand Down
Loading