0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

chore: rename default branch to main

This commit is contained in:
Mike Hardy 2022-03-06 14:22:18 -05:00
parent 7082f6ee93
commit 458dc53884
No known key found for this signature in database
GPG Key ID: 2FB9315A0E38FF42
10 changed files with 16 additions and 16 deletions

View File

@ -15,7 +15,7 @@ on:
- 'gradle/**'
push:
branches:
- master
- main
- i18n_sync
- dependency-updates
- 'release**'

View File

@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: 'master'
ref: 'main'
fetch-depth: 0
- name: Credential Prep
@ -29,7 +29,7 @@ jobs:
git config --global user.name 'AnkiDroid Translations'
git config --global user.email 'ankidroid@ankidroid.org'
git checkout -b i18n_sync
git reset --hard origin/master
git reset --hard origin/main
shell: bash
- name: Credential Prep

View File

@ -15,7 +15,7 @@ on:
- 'gradle/**'
push:
branches:
- master
- main
- i18n_sync
- dependency-updates
- 'release**'

View File

@ -15,7 +15,7 @@ on:
- 'gradle/**'
push:
branches:
- master
- main
- i18n_sync
- dependency-updates
- 'release**'

View File

@ -5,6 +5,6 @@
<body>
The changelog is not updated for development versions.<p>
The current stable changelog is <a href="https://docs.ankidroid.org/changelog.html">here</a>.
The list of commits to the development version is visible <a href="https://github.com/ankidroid/Anki-Android/commits/master">here</a>.
The list of commits to the development version is visible <a href="https://github.com/ankidroid/Anki-Android/commits/main">here</a>.
</body>
</html>

View File

@ -3,7 +3,7 @@
</p>
<a href="https://github.com/ankidroid/Anki-Android/releases"><img src="https://img.shields.io/github/v/release/ankidroid/Anki-Android" alt="release"/></a>
<a href="https://github.com/ankidroid/Anki-Android/actions"><img src="https://img.shields.io/github/checks-status/ankidroid/Anki-Android/master?label=build" alt="build"/></a>
<a href="https://github.com/ankidroid/Anki-Android/actions"><img src="https://img.shields.io/github/checks-status/ankidroid/Anki-Android/main?label=build" alt="build"/></a>
<a href="https://opencollective.com/ankidroid"><img src="https://img.shields.io/opencollective/all/ankidroid" alt="Open Collective backers and sponsors"/></a>
<a href="https://github.com/ankidroid/Anki-Android/issues"><img src="https://img.shields.io/github/commit-activity/m/ankidroid/Anki-Android" alt="commit-activity"/></a>
<a href="https://github.com/ankidroid/Anki-Android/network/members"><img src="https://img.shields.io/github/forks/ankidroid/Anki-Android" alt="forks"/></a>
@ -11,7 +11,7 @@
<a href="https://crowdin.com/project/ankidroid"><img src="https://badges.crowdin.net/ankidroid/localized.svg"></img></a>
<a href="https://github.com/ankidroid/Anki-Android/graphs/contributors"><img src="https://img.shields.io/github/contributors/ankidroid/Anki-Android" alt="contributors"/></a>
<a href="https://discord.gg/qjzcRTx"><img src="https://img.shields.io/discord/368267295601983490"></img></a>
<a href="https://github.com/ankidroid/Anki-Android/blob/master/COPYING"><img src="https://img.shields.io/github/license/ankidroid/Anki-Android" alt="license"/></a>
<a href="https://github.com/ankidroid/Anki-Android/blob/main/COPYING"><img src="https://img.shields.io/github/license/ankidroid/Anki-Android" alt="license"/></a>
</p>
# AnkiDroid
@ -134,5 +134,5 @@ Our Awesome Team of Contributors
License
-------
[GPL-3.0 License](https://github.com/ankidroid/Anki-Android/blob/master/COPYING)
[AGPL-3.0 Licence](https://github.com/ankitects/anki/blob/master/LICENSE) for some part of the back-end
[GPL-3.0 License](https://github.com/ankidroid/Anki-Android/blob/main/COPYING)
[AGPL-3.0 Licence](https://github.com/ankitects/anki/blob/main/LICENSE) for some part of the back-end

View File

@ -103,11 +103,11 @@ publishing {
pom {
name = 'AnkiDroid API'
description = 'A programmatic API exported by AnkiDroid'
url = 'https://github.com/ankidroid/Anki-Android/tree/master/api'
url = 'https://github.com/ankidroid/Anki-Android/tree/main/api'
licenses {
license {
name = 'GNU LESSER GENERAL PUBLIC LICENSE, v3'
url = 'https://github.com/ankidroid/Anki-Android/blob/master/api/COPYING.LESSER'
url = 'https://github.com/ankidroid/Anki-Android/blob/main/api/COPYING.LESSER'
}
}
scm {

View File

@ -16,7 +16,7 @@
DEFAULT_DEVELOPER="nobnago"
DEVELOPER=${1:-$DEFAULT_DEVELOPER}
# Branch selection
DEFAULT_BRANCH="master"
DEFAULT_BRANCH="main"
BRANCH=${2:-$DEFAULT_BRANCH}
# Change to the AnkiDroid project directory

View File

@ -5,8 +5,8 @@
# You need to install Docker first
# You need to install 'codacy-analysis-cli' second
#
# You should run this against master frequently to generate a base for comparison
# Then pre-checkin you run this against your branch and diff your branch vs master
# You should run this against main frequently to generate a base for comparison
# Then pre-checkin you run this against your branch and diff your branch vs main
SOURCE_BASE=/home/$USER/work/AnkiDroid
SOURCE=$SOURCE_BASE/Anki-Android

View File

@ -10,7 +10,7 @@
# Basic expectations
# - tools needed: sed, gawk, github-release, git
# - authority needed: ability to commit/tag/push directly to master in AnkiDroid, ability to create releases
# - authority needed: ability to commit/tag/push directly to main branch in AnkiDroid, ability to create releases
# - ankidroiddocs checked out in a sibling directory (that is, '../ankidroiddocs' should exist with 'upstream' remote set correctly)
# Suffix configuration