Skip to content

Commit e12a389

Browse files
committed
chore: update branch references from master to main and fix URLs in config files
1 parent c12ca81 commit e12a389

6 files changed

Lines changed: 12 additions & 96 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: 讨论区
4-
url: https://github.com/${REPO_OWNER}/${REPO_NAME}/discussions
4+
url: https://github.com/SoulGateKey/nonebot-plugin-onebot2tg/discussions
55
about: 使用中若遇到问题,请先在这里求助。

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
paths:
99
- "src/**"
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v6
27-
- uses: crate-ci/typos@master
27+
- uses: crate-ci/typos@main
2828

2929
basedpyright:
3030
name: BasedPyright

.github/workflows/release-draft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Drafter
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
types: [opened, reopened, synchronize]
99

.github/workflows/rename.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_install_hook_types: [pre-commit]
22
ci:
33
autofix_prs: true
44
autofix_commit_msg: "chore: auto fix by pre-commit hooks"
5-
autoupdate_branch: master
5+
autoupdate_branch: main
66
autoupdate_schedule: monthly
77
autoupdate_commit_msg: "chore: auto update pre-commit hooks"
88
repos:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![uv](https://img.shields.io/badge/package%20manager-uv-black?style=flat-square&logo=uv)](https://github.com/astral-sh/uv)
1010
<br/>
1111
[![ruff](https://img.shields.io/badge/code%20style-ruff-black?style=flat-square&logo=ruff)](https://github.com/astral-sh/ruff)
12-
[![pre-commit](https://results.pre-commit.ci/badge/github/SoulGateKey/nonebot-plugin-onebot2tg/master.svg)](https://results.pre-commit.ci/latest/github/SoulGateKey/nonebot-plugin-onebot2tg/master)
12+
[![pre-commit](https://results.pre-commit.ci/badge/github/SoulGateKey/nonebot-plugin-onebot2tg/main.svg)](https://results.pre-commit.ci/latest/github/SoulGateKey/nonebot-plugin-onebot2tg/main)
1313
</div>
1414

1515
OneBot V11 与 Telegram 消息转发插件
@@ -54,26 +54,26 @@
5454
<summary>uv</summary>
5555

5656
uv add nonebot-plugin-onebot2tg
57-
安装仓库 master 分支
57+
安装仓库 main 分支
5858

59-
uv add git+https://github.com/SoulGateKey/nonebot-plugin-onebot2tg@master
59+
uv add git+https://github.com/SoulGateKey/nonebot-plugin-onebot2tg@main
6060
</details>
6161

6262
<details>
6363
<summary>pdm</summary>
6464

6565
pdm add nonebot-plugin-onebot2tg
66-
安装仓库 master 分支
66+
安装仓库 main 分支
6767

68-
pdm add git+https://github.com/SoulGateKey/nonebot-plugin-onebot2tg@master
68+
pdm add git+https://github.com/SoulGateKey/nonebot-plugin-onebot2tg@main
6969
</details>
7070
<details>
7171
<summary>poetry</summary>
7272

7373
poetry add nonebot-plugin-onebot2tg
74-
安装仓库 master 分支
74+
安装仓库 main 分支
7575

76-
poetry add git+https://github.com/SoulGateKey/nonebot-plugin-onebot2tg@master
76+
poetry add git+https://github.com/SoulGateKey/nonebot-plugin-onebot2tg@main
7777
</details>
7878

7979
打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

0 commit comments

Comments
 (0)