Skip to content

Commit 6efbefb

Browse files
authored
Renaming default branch to main (#630)
1 parent 956e0c1 commit 6efbefb

File tree

10 files changed

+19
-20
lines changed

10 files changed

+19
-20
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: CI
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
tags:
77
- "v*"
88
pull_request:
99
workflow_dispatch:
1010

1111
concurrency:
1212
group: ${{ github.ref }}
13-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1414

1515
jobs:
1616
bloop-memory-footprint:
@@ -320,7 +320,7 @@ jobs:
320320
with:
321321
type: now
322322
message: 'Back port of documentation changes to stable'
323-
from_branch: master
323+
from_branch: main
324324
target_branch: stable
325325
github_token: ${{ secrets.GITHUB_TOKEN }}
326326

.github/workflows/website.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
DEPLOYMENT_BRANCH: gh-pages
2222
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
2323
# after the release the PR should be empty
24-
- name: Open PR with changes back to master
24+
- name: Open PR with changes back to main
2525
uses: repo-sync/pull-request@v2
2626
with:
27-
destination_branch: "master"
27+
destination_branch: "main"
2828
github_token: ${{ secrets.GITHUB_TOKEN }}
29-
pr_title: "Back port of documentation changes to master"
29+
pr_title: "Back port of documentation changes to main"
3030
name: Update stable branch
3131
branch: backport/stable

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ Just add it to your PATH to get the already-released-scala-cli experience.
174174

175175
## Releases
176176

177-
Instructions on how to release - [Release Procedure](https://github.com/VirtusLab/scala-cli/blob/master/.github/release/release-procedure.md)
177+
Instructions on how to release - [Release Procedure](https://github.com/VirtusLab/scala-cli/blob/main/.github/release/release-procedure.md)

build.sc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ object ci extends Module {
780780
if (os.exists(scalaCliDir)) os.remove.all(scalaCliDir)
781781
if (!os.exists(targetDir)) os.makeDir.all(targetDir)
782782

783-
val branch = "master"
783+
val branch = "main"
784784
val repo = s"https://oauth2:${ghToken()}@github.com/VirtusLab/scala-cli.git"
785785

786786
// Cloning
@@ -863,7 +863,7 @@ object ci extends Module {
863863

864864
os.makeDir.all(targetDir)
865865

866-
val branch = "master"
866+
val branch = "main"
867867
val repo = s"[email protected]:Virtuslab/scala-cli-packages.git"
868868

869869
// Cloning
@@ -890,7 +890,7 @@ object ci extends Module {
890890

891891
os.makeDir.all(targetDir)
892892

893-
val branch = "master"
893+
val branch = "main"
894894
val repo = s"[email protected]:Virtuslab/scala-cli-packages.git"
895895

896896
// Cloning
@@ -944,7 +944,7 @@ object ci extends Module {
944944
)
945945
.call(cwd = debianDir, stdin = pgpPassphrase, stdout = inReleasePath)
946946

947-
commitChanges(s"Update Debian packages for $version", "master", packagesDir)
947+
commitChanges(s"Update Debian packages for $version", branch, packagesDir)
948948
}
949949
def updateCentOsPackages() = T.command {
950950
val version = cli.publishVersion()
@@ -958,7 +958,7 @@ object ci extends Module {
958958

959959
os.makeDir.all(targetDir)
960960

961-
val branch = "master"
961+
val branch = "main"
962962
val repo = s"[email protected]:Virtuslab/scala-cli-packages.git"
963963

964964
// Cloning

modules/build/src/main/scala/scala/build/options/ScalaOptions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final case class ScalaOptions(
1818
) {
1919

2020
lazy val scalaVersionsUrl = supportedScalaVersionsUrl.getOrElse(
21-
"https://github.com/VirtuslabRnD/scala-cli-scala-versions/raw/master/scala-versions-v1.json"
21+
"https://github.com/VirtusLab/scala-cli-scala-versions/raw/main/scala-versions-v1.json"
2222
)
2323

2424
def normalize: ScalaOptions = {

modules/cli/src/main/scala/scala/cli/commands/Fmt.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ object Fmt extends ScalaCommand[FmtOptions] {
3232
}
3333

3434
// Based on scalafmt comment:
35-
// https://github.com/scalameta/scalafmt/blob/master/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala
36-
// commit d0c11e98898334969f5f4dfc4bd511630cf00ab9
35+
// https://github.com/scalameta/scalafmt/blob/d0c11e98898334969f5f4dfc4bd511630cf00ab9/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala
3736
// First we look for the file in the cwd.
3837
// If not found or could not read, we go to the git root and look there.
3938
// If not found or could not read, we use the default version.

scala-cli.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
rem This is the launcher script of Scala CLI (https://github.com/VirtusLab/scala-cli).
44
rem This script downloads and runs the Scala CLI version set by SCALA_CLI_VERSION below.
55
rem
6-
rem Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/master/scala-cli.bat
6+
rem Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/main/scala-cli.bat
77

88
setlocal enabledelayedexpansion
99

scala-cli.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This is the launcher script of Scala CLI (https://github.com/VirtusLab/scala-cli).
44
# This script downloads and runs the Scala CLI version set by SCALA_CLI_VERSION below.
55
#
6-
# Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/master/scala-cli.sh
6+
# Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/main/scala-cli.sh
77

88
set -eu
99

website/docs/_advanced_install.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ Script to automatically download and cache standalone `scala-cli` launcher.
291291
]}>
292292
<TabItem value="macOS/Linux">
293293

294-
<DownloadButton desc= 'ScalaCLI launcher for macOs/Linux' href='https://github.com/VirtusLab/scala-cli/blob/master/scala-cli.sh' width = '250px' ></DownloadButton>
294+
<DownloadButton desc= 'ScalaCLI launcher for macOs/Linux' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.sh' width = '250px' ></DownloadButton>
295295

296296
</TabItem>
297297
<TabItem value="windows">
298298

299-
<DownloadButton desc= 'ScalaCLI launcher for Windows' href='https://github.com/VirtusLab/scala-cli/blob/master/scala-cli.bat' width = '250px' ></DownloadButton>
299+
<DownloadButton desc= 'ScalaCLI launcher for Windows' href='https://github.com/VirtusLab/scala-cli/blob/main/scala-cli.bat' width = '250px' ></DownloadButton>
300300

301301
</TabItem>
302302
</Tabs>

website/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module.exports = {
134134
sidebarPath: require.resolve('./sidebars.js'),
135135
// Please change this to your repo.
136136
editUrl:
137-
'https://github.com/Virtuslab/scala-cli/edit/master/website/',
137+
'https://github.com/Virtuslab/scala-cli/edit/main/website/',
138138
},
139139
theme: {
140140
// customCss: require.resolve('./src/css/custom.css'),

0 commit comments

Comments
 (0)