ci: add automated agent workflows — review, fix, maintenance, batch-merge
CI / lint (push) Successful in 1m4s
CI / sanitizers (address) (push) Successful in 36s
CI / sanitizers (undefined) (push) Successful in 36s
CI / fuzz-build (push) Successful in 14s
CI / coverage (push) Successful in 31s
CI / build-and-test (push) Successful in 1m15s
CI / valgrind (push) Successful in 32s

This commit is contained in:
2026-07-30 18:24:29 +02:00
parent da20bb4d37
commit 3d2eb97205
5 changed files with 152 additions and 1 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Agent Batch Merge
on:
workflow_dispatch:
inputs:
branches:
description: "Comma-separated branches to merge (e.g., fix/a,fix/b)"
required: true
jobs:
batch-merge:
runs-on: ubuntu-latest
container: gitea.tap-tap.win/taptap/fastsync-ci:v9
steps:
- uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
- name: Merge all branches
run: |
IFS=',' read -ra BRANCHES <<< "${{ github.event.inputs.branches }}"
for branch in "${BRANCHES[@]}"; do
branch=$(echo "$branch" | xargs)
git fetch origin "$branch"
git merge "origin/$branch" --no-edit || true
done
- name: Build and test
run: |
cmake -B build -S . && cmake --build build -j$(nproc)
./build/tests
python3 -m pytest tests/ -v --tb=short
- name: Commit and push
run: |
git add -A
git commit -m "batch-merge: ${{ github.event.inputs.branches }}" || true
git push origin dev