claude-gitea-agent/.gitea/workflows/claude.yml.placeholder
pangtiankai c29af91113 docs: project scaffolding — README + architecture + roadmap + porting plan + ADRs
Initial documentation for route A (port claude-code-action to Gitea Actions).
Research complete, no implementation code yet. See docs/02-roadmap.md for milestones.
2026-05-25 20:36:54 +08:00

36 lines
1.0 KiB
Plaintext

# 占位 / 模板 —— 实际 workflow 会在 Milestone A2 阶段填充并改名为 claude.yml
# 这里只展示目标形态,让任何来读仓库的人都能立刻理解最终调用方式
name: Claude Code Agent
on:
issues:
types: [opened, edited]
issue_comment:
types: [created]
pull_request:
types: [opened, synchronize]
permissions:
contents: write
issues: write
pull-requests: write
jobs:
claude:
# 仅在评论/正文含 @claude 时跑
if: contains(github.event.comment.body, '@claude') || contains(github.event.issue.body, '@claude') || contains(github.event.pull_request.body, '@claude')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run claude-gitea-agent
uses: pangtiankai/claude-gitea-agent@main
with:
gitea_token: ${{ secrets.GITEA_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
# 可选:限制 Claude 能用的工具
# allowed_tools: 'Read,Edit,Write,Bash'