Skip to content

Commit aeff313

Browse files
authored
Merge branch 'Tencent:main' into main
2 parents c133ecf + f13ad27 commit aeff313

File tree

12 files changed

+3546
-3174
lines changed

12 files changed

+3546
-3174
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
uses: actions/checkout@v3
2626

2727
# 下载二进制文件
28-
- name: Download Binary Files
29-
run: |
30-
set -ex
31-
pwd
32-
bash ./scripts/base/install_bin.sh
28+
# - name: Download Binary Files
29+
# run: |
30+
# set -ex
31+
# pwd
32+
# bash ./scripts/base/install_bin.sh
3333

3434
- name: Setup Node 16
3535
uses: actions/setup-node@v3

.github/workflows/sync.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,33 @@ jobs:
1616
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git
1717
git fetch --all
1818
for branch in `git branch -a | grep remotes | grep -v HEAD`; do
19-
git branch --track ${branch##*/} $branch
19+
git branch --track ${branch#remotes/origin/} $branch
2020
done
2121
env:
2222
GITHUB_REPOSITORY: Tencent/CodeAnalysis
2323

2424
- name: Push to TGIT
2525
run: |
2626
remote_repo="https://${TGIT_USERNAME}:${TGIT_PASSWORD}@git.code.tencent.com/${TGIT_REPOSITORY}.git"
27-
git remote add tencent "${remote_repo}"
27+
git remote add tgit "${remote_repo}"
2828
git show-ref
2929
git branch --verbose
30-
git push --all --force tencent
31-
git push --tags --force tencent
30+
git push --all --force tgit
31+
git push --tags --force tgit
3232
env:
3333
TGIT_REPOSITORY: Tencent_Open_Source/CodeAnalysis
3434
TGIT_USERNAME: ${{ secrets.USERNAME }}
3535
TGIT_PASSWORD: ${{ secrets.PASSWORD }}
36+
continue-on-error: true
3637

37-
- name: Push to Gitee
38+
- name: Push to CNB
3839
run: |
39-
remote_repo="https://${GITEE_USERNAME}:${GITEE_PASSWORD}@gitee.com/${GITEE_REPOSITORY}.git"
40-
git remote add gitee "${remote_repo}"
41-
git show-ref
42-
git branch --verbose
43-
git push --all --force gitee
44-
git push --tags --force gitee
40+
remote_repo="https://${CNB_USERNAME}:${CNB_PASSWORD}@cnb.cool/${CNB_REPOSITORY}.git"
41+
git remote add cnb "${remote_repo}"
42+
git push --all --force cnb
43+
git push --tags --force cnb
4544
env:
46-
GITEE_REPOSITORY: zhang9w0v5/CodeAnalysis
47-
GITEE_USERNAME: ${{ secrets.GITEE_USERNAME }}
48-
GITEE_PASSWORD: ${{ secrets.GITEE_PASSWORD }}
45+
CNB_REPOSITORY: tca/code-analysis
46+
CNB_USERNAME: ${{ secrets.CNB_USERNAME }}
47+
CNB_PASSWORD: ${{ secrets.CNB_PASSWORD }}
4948

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Before submitting a pull request, please make sure the followings are done:
3838
6. Now, you can submit your pull request on `dev` branch.
3939

4040
## License
41-
[MIT LICENSE](LICENSE) is the open source license of TCA. Code contributed by anyone is protected by this license. Please make sure that you can accept the license before contributing your code.
41+
[MIT LICENSE](LICENSE.txt) is the open source license of TCA. Code contributed by anyone is protected by this license. Please make sure that you can accept the license before contributing your code.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<em>code-named: CodeDog</em>
77
</p>
88

9-
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
9+
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE.txt) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
1010

1111
English | [简体中文](README_ZH.md)
1212

@@ -77,7 +77,7 @@ Using TCA can help team find normative, structural, security vulnerabilities and
7777

7878
## License
7979

80-
TCA is [MIT licensed](LICENSE)
80+
TCA is [MIT licensed](LICENSE.txt)
8181

8282
### TCA Team Member
8383

README_ZH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<em>代号:CodeDog</em>
77
</p>
88

9-
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
9+
[![license](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat)](LICENSE.txt) [![docs](https://img.shields.io/badge/docs-read-brightgreen.svg?style=flat)](https://tencent.github.io/CodeAnalysis/)
1010

1111
## TCA-官方网址
1212

@@ -75,7 +75,7 @@
7575

7676
## 许可
7777

78-
TCA 使用 [MIT 许可证](LICENSE)
78+
TCA 使用 [MIT 许可证](LICENSE.txt)
7979

8080
### TCA 团队成员
8181

doc/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
node_modules
22
.temp
33
.cache
4-
dist
4+
dist
5+
tca_lib*
6+
images

doc/en/community/contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ TCA有两个主要分支:
4343
6. 现在,您可以向 `dev` 分支提交Pull Request。
4444

4545
## 许可
46-
[MIT LICENSE](https://github.com/Tencent/CodeAnalysis/blob/main/LICENSE) 是 TCA 的开源许可证。任何人贡献的代码都受此许可证保护。在贡献代码之前,请确保您可以接受许可。
46+
[MIT LICENSE](https://github.com/Tencent/CodeAnalysis/blob/main/LICENSE.txt) 是 TCA 的开源许可证。任何人贡献的代码都受此许可证保护。在贡献代码之前,请确保您可以接受许可。

doc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"type": "module",
1010
"license": "MIT",
1111
"scripts": {
12-
"dev": "vuepress dev",
12+
"dev": "bash ./sync_images.sh & vuepress dev",
1313
"build:comment": "echo '构建帮助文档,默认base前缀为document,可根据部署需要进行相应调整'",
14-
"build": "BASE=${BASE:-CodeAnalysis} vuepress build -d ./dist"
14+
"build": "bash ./sync_images.sh & BASE=${BASE:-CodeAnalysis} vuepress build -d ./dist"
1515
},
1616
"devDependencies": {
1717
"@vuepress/plugin-search": "2.0.0-beta.63",

doc/sync_images.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
# url=${LIB_GITHUB_URL}
4+
5+
# filename=$(basename "$url")
6+
# dirname=${filename%.*}
7+
8+
# lib_image_path="${dirname}/tca_lib/doc/images"
9+
# image_path="images"
10+
11+
# if [[ ! -d $image_path ]]; then
12+
# if [[ ! -d $lib_image_path ]]; then
13+
# if [[ ! -f $filename ]]; then
14+
# wget $url
15+
# fi
16+
# unzip $filename -d $dirname
17+
# fi
18+
# cp -r $lib_image_path $image_path
19+
# fi
20+
21+
# 当前
22+
CURRENT_PATH=$(
23+
cd "$(dirname "${BASH_SOURCE[0]}")"
24+
pwd
25+
)
26+
27+
# 根目录
28+
ROOT_PATH=$(dirname "${CURRENT_PATH}")
29+
30+
cd ${ROOT_PATH}
31+
32+
bash "${ROOT_PATH}"/scripts/base/install_bin.sh
33+
34+
cd ${CURRENT_PATH}

doc/zh/community/contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ TCA有两个主要分支:
4343
6. 现在,您可以向 `dev` 分支提交Pull Request。
4444

4545
## 许可
46-
[MIT LICENSE](https://github.com/Tencent/CodeAnalysis/blob/main/LICENSE) 是 TCA 的开源许可证。任何人贡献的代码都受此许可证保护。在贡献代码之前,请确保您可以接受许可。
46+
[MIT LICENSE](https://github.com/Tencent/CodeAnalysis/blob/main/LICENSE.txt) 是 TCA 的开源许可证。任何人贡献的代码都受此许可证保护。在贡献代码之前,请确保您可以接受许可。

0 commit comments

Comments
 (0)