更新 .gitea/workflows/test.yml
All checks were successful
Run Unit Tests / test (pull_request) Successful in 16s
All checks were successful
Run Unit Tests / test (pull_request) Successful in 16s
This commit is contained in:
parent
834810a69c
commit
653dbc0dc9
@ -9,7 +9,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: phpunit_test
|
runs-on: phpunit_test
|
||||||
container: mirror.ccs.tencentyun.com/xeden3/ai-code-reviewer-gitea-runner:v1.4
|
container: mirror.ccs.tencentyun.com/xeden3/ai-code-reviewer-gitea-runner:v1.4.1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: http://119.91.43.128:3003/james/checkout@v4
|
uses: http://119.91.43.128:3003/james/checkout@v4
|
||||||
@ -70,20 +70,5 @@ jobs:
|
|||||||
- 🔍 表示需要仔细检查
|
- 🔍 表示需要仔细检查
|
||||||
|
|
||||||
run: |
|
run: |
|
||||||
PR_NUMBER=$PULLS_ID
|
|
||||||
OWNER="hui"
|
|
||||||
REPO="SCTMES_V5"
|
|
||||||
SERVER_URL="http://119.91.43.128:3003"
|
|
||||||
|
|
||||||
COMMENT="🧪 单元测试已完成。\n- 状态: 成YYYYY功 ✅\n- Commit ID: $(git rev-parse HEAD)\n- 查看日志: [Actions](https://your-ci-link-here)"
|
|
||||||
|
|
||||||
API_URL="$SERVER_URL/api/v1/repos/$OWNER/$REPO/issues/$PR_NUMBER/comments"
|
|
||||||
|
|
||||||
curl -X POST \
|
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
|
||||||
-H "Content-Type: application/json" \
|
|
||||||
-d "{\"body\": \"$COMMENT\"}" \
|
|
||||||
"$API_URL"
|
|
||||||
|
|
||||||
cd /workspace
|
cd /workspace
|
||||||
./audit_code.sh
|
./audit_code.sh
|
Loading…
x
Reference in New Issue
Block a user