Skip to content

Commit

Permalink
Rename master branch to main (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw authored Sep 9, 2022
1 parent 9434a2c commit a8953b1
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main
tags-ignore: [ v.* ]

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-cassandra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main
tags-ignore: [ v.* ]

jobs:
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-jdbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main
tags-ignore: [ v.* ]

jobs:
Expand Down Expand Up @@ -48,4 +48,4 @@ jobs:

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main
tags-ignore: [ v.* ]

jobs:
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-slick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main
tags-ignore: [ v.* ]

jobs:
Expand Down Expand Up @@ -48,4 +48,4 @@ jobs:

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main

jobs:
update_release_draft:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- master
- main
tags: ["*"]

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- master
- main
tags-ignore: [ v.* ]

jobs:
Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:

- name: Print logs on failure
if: ${{ failure() }}
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \;
2 changes: 1 addition & 1 deletion docs/src/main/paradox/getting-started/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This example requires a Cassandra database to run.
If you do not have a Cassandra database then you can run one locally as a Docker container.
To run a Cassandra database locally you can use [`docker-compose`](https://docs.docker.com/compose/) to run the [`docker-compose.yaml`](https://raw.githubusercontent.com/akka/akka-projection/master/docker-compose.yml) found in the Projections project root.
To run a Cassandra database locally you can use [`docker-compose`](https://docs.docker.com/compose/) to run the [`docker-compose.yaml`](https://raw.githubusercontent.com/akka/akka-projection/main/docker-compose.yml) found in the Projections project root.
The `docker-compose.yml` file references the latest [Cassandra Docker Image](https://hub.docker.com/_/cassandra).

Change directory to the directory of the `docker-compose.yml` file and manage a Cassandra container with the following commands.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ Actor API.

## Contributing

Please feel free to contribute to Akka and Akka Projections by reporting issues you identify, or by suggesting changes to the code. Please refer to our [contributing instructions](https://github.com/akka/akka/blob/master/CONTRIBUTING.md) to learn how it can be done.
Please feel free to contribute to Akka and Akka Projections by reporting issues you identify, or by suggesting changes to the code. Please refer to our [contributing instructions](https://github.com/akka/akka/blob/main/CONTRIBUTING.md) to learn how it can be done.

We want Akka to strive in a welcoming and open atmosphere and expect all contributors to respect our [code of conduct](https://www.lightbend.com/conduct).
2 changes: 1 addition & 1 deletion docs/src/main/paradox/snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project.description: Snapshot builds of Akka Projection are provided via the Son
[snapshots-badge]: https://img.shields.io/nexus/s/com.lightbend.akka/akka-projection-core_2.13?server=https%3A%2F%2Foss.sonatype.org
[snapshots]: https://oss.sonatype.org/content/repositories/snapshots/com/lightbend/akka/akka-projection-core_2.13/

Snapshots are published to the Sonatype Snapshot repository after every successful build on master.
Snapshots are published to the Sonatype Snapshot repository after every successful build on main.
Add the following to your project build definition to resolve Akka Projection's snapshots:

## Configure repository
Expand Down
6 changes: 3 additions & 3 deletions project/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ object Common extends AutoPlugin {
"https://gitter.im/akka/dev",
url("https://github.com/akka/akka-projection/graphs/contributors")),
licenses := Seq(
("BUSL-1.1", url("https://raw.githubusercontent.com/akka/akka-projection/master/LICENSE"))
), // FIXME change s/master/v1.3.0/ when released
("BUSL-1.1", url("https://raw.githubusercontent.com/akka/akka-projection/main/LICENSE"))
), // FIXME change s/main/v1.3.0/ when released
description := "Akka Projection.")

override lazy val projectSettings = Seq(
Expand All @@ -49,7 +49,7 @@ object Common extends AutoPlugin {
"-sourcepath",
(baseDirectory in ThisBuild).value.toString,
"-doc-source-url", {
val branch = if (isSnapshot.value) "master" else s"v${version.value}"
val branch = if (isSnapshot.value) "main" else s"v${version.value}"
s"https://github.com/akka/akka-projection/tree/${branch}€{FILE_PATH_EXT}#L€{FILE_LINE}"
},
"-skip-packages",
Expand Down

0 comments on commit a8953b1

Please sign in to comment.