Skip to content

Commit 385dc66

Browse files
authored
chore(pipelines): update Bitbucket default branch name (#2397)
Bitbucket has changed their default branch name from 'master' to 'main'; this updates our pipeline verbiage accordingly. Fixes #2396. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 165c075 commit 385dc66

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/pkg/cli/pipeline_init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const (
5959
fmtCCRepoURL = "https://%s.console.%s/codesuite/codecommit/repositories/%s/browse" // Ex: "https://region.console.aws.amazon.com/codesuite/codecommit/repositories/repoName/browse"
6060
// For a Bitbucket repository.
6161
bbURL = "bitbucket.org"
62-
defaultBBBranch = "master"
62+
defaultBBBranch = "main"
6363
fmtBBRepoURL = "https://%s@%s/%s/%s" // Ex: "https://repoOwner@bitbucket.org/repoOwner/repoName
6464
)
6565

internal/pkg/deploy/cloudformation/stack/bb_pipeline_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestBB_Pipeline_Template(t *testing.T) {
2626
Source: &deploy.BitbucketSource{
2727
ProviderName: manifest.BitbucketProviderName,
2828
RepositoryURL: "https://huanjani@bitbucket.org/huanjani/sample",
29-
Branch: "master",
29+
Branch: "main",
3030
},
3131
Build: deploy.PipelineBuildFromManifest(nil),
3232
Stages: []deploy.PipelineStage{

internal/pkg/deploy/cloudformation/stack/testdata/pipeline/bb_template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Resources:
271271
Configuration:
272272
ConnectionArn: !Ref SourceConnection
273273
FullRepositoryId: huanjani/sample
274-
BranchName: master
274+
BranchName: main
275275
OutputArtifacts:
276276
- Name: SCCheckoutArtifact
277277
RunOrder: 1

site/content/docs/manifest/pipeline.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The name of AWS Secrets Manager secret that holds the GitHub access token to tri
5353
As of AWS Copilot v1.4.0, the access token is no longer needed for GitHub repository sources. Instead, Copilot will trigger the pipeline [using AWS CodeStar connections](https://docs.aws.amazon.com/codepipeline/latest/userguide/update-github-action-connections.html).
5454

5555
<span class="parent-field">source.properties.</span><a id="source-properties-branch" href="#source-properties-branch" class="field">`branch`</a> <span class="type">String</span>
56-
The name of the branch in your repository that triggers the pipeline. The default for GitHub and CodeCommit is `main`; the default for Bitbucket is `master`.
56+
The name of the branch in your repository that triggers the pipeline. The default branch name is `main`.
5757

5858
<span class="parent-field">source.properties.</span><a id="source-properties-repository" href="#source-properties-repository" class="field">`repository`</a> <span class="type">String</span>
5959
The URL of your repository.

0 commit comments

Comments
 (0)