Skip to content

Commit

Permalink
Merge pull request #1319 from Shopify/update-master-to-main
Browse files Browse the repository at this point in the history
Update master to main
  • Loading branch information
kartiki975 authored Oct 6, 2023
2 parents 2181e07 + 0400cd0 commit 28907e8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ Your deploy scripts have access to the following environment variables:
* `GITHUB_REPO_OWNER`: The GitHub username of the repository owner for the current deploy/task.
* `EMAIL`: Email of the user that triggered the deploy/task (if available)
* `ENVIRONMENT`: The stack environment (e.g `production` / `staging`)
* `BRANCH`: The stack branch (e.g `master`)
* `BRANCH`: The stack branch (e.g `main`)
* `LAST_DEPLOYED_SHA`: The git SHA of the last deployed commit
* `DIFF_LINK`: URL to the diff on GitHub.
* `TASK_ID`: ID of the task that is running
Expand Down
2 changes: 1 addition & 1 deletion app/views/shipit/merge_status/failure.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</h4>
<span class="status-meta">
<%= link_to @stack.to_param, stack_url(@stack), target: '_blank', rel: 'noopener' %>
<strong>master branch is failing!</strong>
<strong>main branch is failing!</strong>
</span>
<%= render 'commit_count_warning' if display_commit_count_warning?(params[:commits].to_i) %>
</div>
2 changes: 1 addition & 1 deletion config/secrets.development.example.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
host: 'localhost:3000'
redis_url: 'redis://127.0.0.1:6379/0'

# For creating an app see: https://github.com/Shopify/shipit-engine/blob/master/docs/setup.md#creating-the-github-app
# For creating an app see: https://github.com/Shopify/shipit-engine/blob/main/docs/setup.md#creating-the-github-app
# Can be obtained there: https://github.com/settings/apps
# Set the "Authorization callback URL" as `<host>/github/auth/github/callback`

Expand Down
2 changes: 1 addition & 1 deletion config/secrets.development.shopify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
host: 'shipit-engine.myshopify.io'
redis_url: 'redis://shipit-engine.railgun:6379'

# For creating an app see: https://github.com/Shopify/shipit-engine/blob/master/docs/setup.md#creating-the-github-app
# For creating an app see: https://github.com/Shopify/shipit-engine/blob/main/docs/setup.md#creating-the-github-app

github:
somegithuborg:
Expand Down
4 changes: 2 additions & 2 deletions contrib/browser-extension/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Shipit Browser Extension

If you have ever pushed to a broken `master` because you forgot to check CI/Slack then we have the extension for you.
If you have ever pushed to a broken `main` because you forgot to check CI/Slack then we have the extension for you.

This extension will alert you on GitHub's pull request page if `master` is broken, so that you can avoid the embarassment of having merged on red master.
This extension will alert you on GitHub's pull request page if `main` is broken, so that you can avoid the embarassment of having merged on red master.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In the future we'd like to provide it fully packaged inside a Docker container,
Shipit provides you with a Rails template. To bootstrap your Shipit installation:

1. If you don't have Rails installed, run this command: `gem install rails -v 7.0`
2. Run this command: `rails _7.0_ new shipit --skip-action-cable --skip-turbolinks --skip-action-mailer --skip-active-storage --skip-webpack-install --skip-action-mailbox --skip-action-text -m https://raw.githubusercontent.com/Shopify/shipit-engine/master/template.rb`
2. Run this command: `rails _7.0_ new shipit --skip-action-cable --skip-turbolinks --skip-action-mailer --skip-active-storage --skip-webpack-install --skip-action-mailbox --skip-action-text -m https://raw.githubusercontent.com/Shopify/shipit-engine/main/template.rb`

## Creating the GitHub App

Expand Down
2 changes: 1 addition & 1 deletion lib/shipit/stack_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def git_cmd_succeeds?(path)
.success?
end

def git_clone(url, path, branch: 'master', **kwargs)
def git_clone(url, path, branch: 'main', **kwargs)
git('clone', '--quiet', *modern_git_args, '--recursive', '--branch', branch, url, path, **kwargs)
end

Expand Down
2 changes: 1 addition & 1 deletion template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@
)
end

say("Read https://github.com/Shopify/shipit-engine/blob/master/docs/setup.md for the details on how to create the App and update config/secrets.yml", Thor::Shell::Color::GREEN, true)
say("Read https://github.com/Shopify/shipit-engine/blob/main/docs/setup.md for the details on how to create the App and update config/secrets.yml", Thor::Shell::Color::GREEN, true)
end

0 comments on commit 28907e8

Please sign in to comment.