Change master to main (#2044)

This commit is contained in:
Anbraten
2023-07-31 05:47:23 +02:00
committed by GitHub
parent 7efb15bf9c
commit e0ed1b3e49
48 changed files with 235 additions and 270 deletions

View File

@@ -149,7 +149,7 @@ func Test_GitLab(t *testing.T) {
assert.Equal(t, "woodpecker", hookRepo.Name)
assert.Equal(t, "http://example.com/uploads/project/avatar/555/Outh-20-Logo.jpg", hookRepo.Avatar)
assert.Equal(t, "develop", hookRepo.Branch)
assert.Equal(t, "refs/heads/master", pipeline.Ref)
assert.Equal(t, "refs/heads/main", pipeline.Ref)
assert.Equal(t, []string{"cmd/cli/main.go"}, pipeline.ChangedFiles)
}
})

View File

@@ -37,7 +37,7 @@ var ServiceHookPushBody = []byte(`{
"event_name": "push",
"before": "ffe8eb4f91d1fe6bc49f1e610e50e4b5767f0104",
"after": "16862e368d8ab812e48833b741dad720d6e2cb7f",
"ref": "refs/heads/master",
"ref": "refs/heads/main",
"checkout_sha": "16862e368d8ab812e48833b741dad720d6e2cb7f",
"message": null,
"user_id": 2,

View File

@@ -20,7 +20,7 @@ var allProjectsPayload = []byte(`
{
"id": 4,
"description": null,
"default_branch": "master",
"default_branch": "main",
"public": false,
"visibility_level": 0,
"ssh_url_to_repo": "git@example.com:diaspora/diaspora-client.git",
@@ -66,7 +66,7 @@ var allProjectsPayload = []byte(`
{
"id": 6,
"description": null,
"default_branch": "master",
"default_branch": "main",
"public": false,
"visibility_level": 0,
"ssh_url_to_repo": "git@example.com:brightbox/puppet.git",
@@ -117,7 +117,7 @@ var notArchivedProjectsPayload = []byte(`
{
"id": 4,
"description": null,
"default_branch": "master",
"default_branch": "main",
"public": false,
"visibility_level": 0,
"ssh_url_to_repo": "git@example.com:diaspora/diaspora-client.git",
@@ -167,7 +167,7 @@ var project4Payload = []byte(`
{
"id": 4,
"description": null,
"default_branch": "master",
"default_branch": "main",
"public": false,
"visibility_level": 0,
"ssh_url_to_repo": "git@example.com:diaspora/diaspora-client.git",
@@ -216,7 +216,7 @@ var project6Payload = []byte(`
{
"id": 6,
"description": null,
"default_branch": "master",
"default_branch": "main",
"public": false,
"visibility_level": 0,
"ssh_url_to_repo": "git@example.com:brightbox/puppet.git",