Add .gitea/workflows/codeant.yml
All checks were successful
CodeAnt AI Review - Stage 1 / codeant-review (push) Successful in 56s
All checks were successful
CodeAnt AI Review - Stage 1 / codeant-review (push) Successful in 56s
This commit is contained in:
45
.gitea/workflows/codeant.yml
Normal file
45
.gitea/workflows/codeant.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: CodeAnt AI Review - Stage 1
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
codeant-review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "22"
|
||||||
|
|
||||||
|
- name: Install CodeAnt CLI
|
||||||
|
run: npm install -g codeant-cli
|
||||||
|
|
||||||
|
- name: Configure CodeAnt Auth
|
||||||
|
env:
|
||||||
|
CODEANT_API_TOKEN: ${{ secrets.CODEANT_API_TOKEN }}
|
||||||
|
run: |
|
||||||
|
mkdir -p $HOME/.codeant
|
||||||
|
printf '{"apiKey":"%s"}\n' "$CODEANT_API_TOKEN" > $HOME/.codeant/config.json
|
||||||
|
|
||||||
|
# Debug (VERY IMPORTANT – helps verify commit)
|
||||||
|
- name: Debug Commit Info
|
||||||
|
run: |
|
||||||
|
echo "==== LAST 3 COMMITS ===="
|
||||||
|
git log --oneline -n 3
|
||||||
|
|
||||||
|
echo "==== FILES IN LAST COMMIT ===="
|
||||||
|
git show --name-only --pretty="" HEAD
|
||||||
|
|
||||||
|
- name: Run CodeAnt Review
|
||||||
|
run: |
|
||||||
|
codeant review > review.txt || true
|
||||||
|
cat review.txt
|
||||||
Reference in New Issue
Block a user