Auto Dev Agents #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Dev Agents | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| issue_number: | |
| description: GitHub Issue number to process | |
| required: true | |
| type: string | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| concurrency: | |
| group: auto-agent-team-${{ github.repository }}-${{ github.workflow }}-${{ inputs.issue_number }} | |
| cancel-in-progress: false | |
| jobs: | |
| auto-dev: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| AUTO_PIPELINE: auto-dev | |
| ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| ANTHROPIC_AUTH_TOKEN: ${{ secrets.ANTHROPIC_API_KEY }} | |
| ANTHROPIC_MODEL: ${{ secrets.ANTHROPIC_MODEL }} | |
| CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1" | |
| FEISHU_WEBHOOK: ${{ secrets.FEISHU_WEBHOOK }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install Claude Code | |
| run: npm i -g @anthropic-ai/claude-code | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Load issue context | |
| run: | | |
| issue_json="$(gh api "repos/${GITHUB_REPOSITORY}/issues/${{ inputs.issue_number }}")" | |
| title_delim="ISSUE_TITLE_$(date +%s%N)" | |
| body_delim="ISSUE_BODY_$(date +%s%N)" | |
| { | |
| echo "ISSUE_NUMBER=${{ inputs.issue_number }}" | |
| echo "ISSUE_TITLE<<${title_delim}" | |
| echo "$issue_json" | jq -r '.title' | |
| echo "${title_delim}" | |
| echo "ISSUE_BODY<<${body_delim}" | |
| echo "$issue_json" | jq -r '.body // ""' | |
| echo "${body_delim}" | |
| echo "ISSUE_URL=$(echo "$issue_json" | jq -r '.html_url')" | |
| } >> "$GITHUB_ENV" | |
| - name: Run auto-dev agent team | |
| run: bash scripts/start.sh |