Skip to content

Commit

Permalink
Renaming default branch to main (VirtusLab#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski authored and romanowski committed Mar 10, 2022
1 parent a68327a commit c73064a
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: CI
on:
push:
branches:
- master
- main
tags:
- "v*"
pull_request:
workflow_dispatch:

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

jobs:
bloop-memory-footprint:
Expand Down Expand Up @@ -320,7 +320,7 @@ jobs:
with:
type: now
message: 'Back port of documentation changes to stable'
from_branch: master
from_branch: main
target_branch: stable
github_token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
DEPLOYMENT_BRANCH: gh-pages
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
# after the release the PR should be empty
- name: Open PR with changes back to master
- name: Open PR with changes back to main
uses: repo-sync/pull-request@v2
with:
destination_branch: "master"
destination_branch: "main"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_title: "Back port of documentation changes to master"
pr_title: "Back port of documentation changes to main"
name: Update stable branch
branch: backport/stable
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ Just add it to your PATH to get the already-released-scala-cli experience.

## Releases

Instructions on how to release - [Release Procedure](https://github.com/VirtusLab/scala-cli/blob/master/.github/release/release-procedure.md)
Instructions on how to release - [Release Procedure](https://github.com/VirtusLab/scala-cli/blob/main/.github/release/release-procedure.md)
10 changes: 5 additions & 5 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ object ci extends Module {
if (os.exists(scalaCliDir)) os.remove.all(scalaCliDir)
if (!os.exists(targetDir)) os.makeDir.all(targetDir)

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

// Cloning
Expand Down Expand Up @@ -863,7 +863,7 @@ object ci extends Module {

os.makeDir.all(targetDir)

val branch = "master"
val branch = "main"
val repo = s"git@github.com:Virtuslab/scala-cli-packages.git"

// Cloning
Expand All @@ -890,7 +890,7 @@ object ci extends Module {

os.makeDir.all(targetDir)

val branch = "master"
val branch = "main"
val repo = s"git@github.com:Virtuslab/scala-cli-packages.git"

// Cloning
Expand Down Expand Up @@ -944,7 +944,7 @@ object ci extends Module {
)
.call(cwd = debianDir, stdin = pgpPassphrase, stdout = inReleasePath)

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

os.makeDir.all(targetDir)

val branch = "master"
val branch = "main"
val repo = s"git@github.com:Virtuslab/scala-cli-packages.git"

// Cloning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final case class ScalaOptions(
) {

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

def normalize: ScalaOptions = {
Expand Down
3 changes: 1 addition & 2 deletions modules/cli/src/main/scala/scala/cli/commands/Fmt.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ object Fmt extends ScalaCommand[FmtOptions] {
}

// Based on scalafmt comment:
// https://github.com/scalameta/scalafmt/blob/master/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala
// commit d0c11e98898334969f5f4dfc4bd511630cf00ab9
// https://github.com/scalameta/scalafmt/blob/d0c11e98898334969f5f4dfc4bd511630cf00ab9/scalafmt-cli/src/main/scala/org/scalafmt/cli/CliArgParser.scala
// First we look for the file in the cwd.
// If not found or could not read, we go to the git root and look there.
// If not found or could not read, we use the default version.
Expand Down
2 changes: 1 addition & 1 deletion scala-cli.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
rem This is the launcher script of Scala CLI (https://github.com/VirtusLab/scala-cli).
rem This script downloads and runs the Scala CLI version set by SCALA_CLI_VERSION below.
rem
rem Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/master/scala-cli.bat
rem Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/main/scala-cli.bat

setlocal enabledelayedexpansion

Expand Down
2 changes: 1 addition & 1 deletion scala-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This is the launcher script of Scala CLI (https://github.com/VirtusLab/scala-cli).
# This script downloads and runs the Scala CLI version set by SCALA_CLI_VERSION below.
#
# Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/master/scala-cli.sh
# Download the latest version of this script at https://github.com/VirtusLab/scala-cli/raw/main/scala-cli.sh

set -eu

Expand Down
4 changes: 2 additions & 2 deletions website/docs/_advanced_install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ Script to automatically download and cache standalone `scala-cli` launcher.
]}>
<TabItem value="macOS/Linux">

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

</TabItem>
<TabItem value="windows">

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

</TabItem>
</Tabs>
Expand Down
2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/Virtuslab/scala-cli/edit/master/website/',
'https://github.com/Virtuslab/scala-cli/edit/main/website/',
},
theme: {
// customCss: require.resolve('./src/css/custom.css'),
Expand Down

0 comments on commit c73064a

Please sign in to comment.