mirror of
https://github.com/doocs/advanced-java.git
synced 2025-03-14 10:00:05 +08:00
feat: rename master branch
This commit is contained in:
parent
aaa12b715c
commit
affac4b0e7
2
.github/workflows/branch-merge.yml
vendored
2
.github/workflows/branch-merge.yml
vendored
@ -14,5 +14,5 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
source_ref: ${{ github.ref }}
|
||||
target_branch: 'master'
|
||||
target_branch: 'main'
|
||||
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}'
|
||||
|
2
.github/workflows/prettier.yml
vendored
2
.github/workflows/prettier.yml
vendored
@ -4,7 +4,7 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
jobs:
|
||||
prettier:
|
||||
|
3
.github/workflows/sync.yml
vendored
3
.github/workflows/sync.yml
vendored
@ -2,7 +2,7 @@ name: Sync
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -23,3 +23,4 @@ jobs:
|
||||
gitee-username: yanglbme
|
||||
gitee-password: ${{ secrets.GITEE_PASSWORD }}
|
||||
gitee-repo: doocs/advanced-java
|
||||
branch: main
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
[](https://github.com/doocs/advanced-java/actions?query=workflow%3ASync)
|
||||
[](https://github.com/doocs/advanced-java/actions?query=workflow%3APrettier)
|
||||
[](https://github.com/doocs/advanced-java/blob/master/LICENSE)
|
||||
[](./LICENSE)
|
||||
[](http://makeapullrequest.com)
|
||||
[](https://doocs.github.io/#/?id=how-to-join)
|
||||
[](https://github.com/doocs/advanced-java)
|
||||
[](https://gitee.com/doocs/advanced-java)
|
||||
[](https://github.com/doocs/advanced-java/stargazers)
|
||||
[](https://github.com/doocs/advanced-java/network/members)
|
||||
[](https://github.com/doocs/advanced-java/tree/master/docs/from-readers#contributors)
|
||||
[](./docs/from-readers#contributors)
|
||||
[](https://github.com/doocs/advanced-java/issues)
|
||||
[](https://github.com/doocs/advanced-java)
|
||||
[](./docs/extra-page/rights-defending-action.md)
|
||||
|
@ -105,10 +105,10 @@
|
||||
if (/githubusercontent\.com/.test(vm.route.file)) {
|
||||
url = vm.route.file
|
||||
.replace("raw.githubusercontent.com", "github.com")
|
||||
.replace(/\/master/, "/blob/master");
|
||||
.replace(/\/main/, "/blob/main");
|
||||
} else {
|
||||
url =
|
||||
"https://github.com/doocs/advanced-java/blob/master/" +
|
||||
"https://github.com/doocs/advanced-java/blob/main/" +
|
||||
vm.route.file;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user