Skip to content

Commit c139cff

Browse files
authored
chore: 重命名默认分支为 main (#170)
1 parent 463d230 commit c139cff

File tree

18 files changed

+24
-24
lines changed

18 files changed

+24
-24
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Docs Web Site Deploy
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths-ignore:
88
- 'examples/**'
99
pull_request:

.github/workflows/lint-other.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Lint Other Files
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths-ignore:
88
- '**.py'
99
pull_request:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Lint
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths:
88
- '**.py'
99
pull_request:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
title: 'docs: 更新 API 文档'
3636
body: 自动更新 API 文档
3737
branch: docs/update-api-docs
38-
base: master
38+
base: main
3939

4040
build:
4141
runs-on: ubuntu-latest

.github/workflows/spell-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Spell Check
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
workflow_dispatch:
99

@@ -12,4 +12,4 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: crate-ci/typos@master
15+
- uses: crate-ci/typos@v1

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
paths:
99
- '**.py'

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
<https://docs.alicebot.dev/develop/contributing>
44

5-
<https://github.com/AliceBotProject/alicebot/blob/master/docs/develop/contributing.md>
5+
<https://github.com/AliceBotProject/alicebot/blob/main/docs/develop/contributing.md>

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/docs/public/logo.png" width="200" height="200" alt="logo"></a>
2+
<a href="https://docs.alicebot.dev/"><img src="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/docs/public/logo.png" width="200" height="200" alt="logo"></a>
33

44
# AliceBot
55

@@ -8,11 +8,11 @@
88
</div>
99

1010
<div align="center">
11-
<a href="https://raw.githubusercontent.com/AliceBotProject/alicebot/master/LICENSE">
11+
<a href="https://raw.githubusercontent.com/AliceBotProject/alicebot/main/LICENSE">
1212
<img src="https://img.shields.io/github/license/AliceBotProject/alicebot" alt="license">
1313
</a>
1414
<a href="https://pypi.python.org/pypi/alicebot">
15-
<img src="https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FAliceBotProject%2Falicebot%2Fraw%2Fmaster%2Fpyproject.toml" alt="pypi">
15+
<img src="https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fgithub.com%2FAliceBotProject%2Falicebot%2Fraw%2Fmain%2Fpyproject.toml" alt="pypi">
1616
</a>
1717
<a href="https://pypi.python.org/pypi/alicebot">
1818
<img src="https://img.shields.io/pypi/v/alicebot" alt="pypi">
@@ -41,13 +41,13 @@
4141
<img src="https://codecov.io/gh/AliceBotProject/alicebot/graph/badge.svg?token=3H6ZU6NN0J" alt="codecov">
4242
</a>
4343
<a href="https://github.com/AliceBotProject/alicebot/actions/workflows/test.yml">
44-
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/test.yml/badge.svg?branch=master&event=push" alt="github">
44+
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/test.yml/badge.svg?branch=main&event=push" alt="github">
4545
</a>
4646
<a href="https://github.com/AliceBotProject/alicebot/actions/workflows/lint.yml">
47-
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/lint.yml/badge.svg?branch=master&event=push" alt="github">
47+
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/lint.yml/badge.svg?branch=main&event=push" alt="github">
4848
</a>
4949
<a href="https://github.com/AliceBotProject/alicebot/actions/workflows/docs.yml">
50-
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/docs.yml/badge.svg?branch=master&event=push" alt="github">
50+
<img src="https://github.com/AliceBotProject/alicebot/actions/workflows/docs.yml/badge.svg?branch=main&event=push" alt="github">
5151
</a>
5252
<br />
5353
<a href="https://jq.qq.com/?_wv=1027&k=ZbE3p6tq">

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default defineConfig({
5555

5656
editLink: {
5757
pattern:
58-
'https://github.com/AliceBotProject/alicebot/edit/master/docs/:path',
58+
'https://github.com/AliceBotProject/alicebot/edit/main/docs/:path',
5959
text: '在 GitHub 上编辑此页',
6060
},
6161

docs/develop/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ AliceBot 使用 [Ruff](https://docs.astral.sh/ruff/) 作为格式化工具,如
5858

5959
AliceBot 具有完全的类型注解。
6060

61-
[pyproject.toml](https://github.com/AliceBotProject/alicebot/blob/master/pyproject.toml) 文件中已经提供了针对 Pyright (Pylance 背后的类型检查器) 和 MyPy 的配置,请确保你的代码能够通过这种严格程度的类型检查。
61+
[pyproject.toml](https://github.com/AliceBotProject/alicebot/blob/main/pyproject.toml) 文件中已经提供了针对 Pyright (Pylance 背后的类型检查器) 和 MyPy 的配置,请确保你的代码能够通过这种严格程度的类型检查。
6262

6363
如果必要,你可以在代码中使用 `# type: ignore` 注释来抑制类型检查,但请注意,请将此作为最后手段,不要轻易使用。
6464

0 commit comments

Comments
 (0)