name: 铸渊 · Issue 自动回复 on: issues: types: [opened] issue_comment: types: [created] jobs: auto-reply: name: 🤖 铸渊回答问题 runs-on: ubuntu-latest # 仅在 Issue 新建或评论中包含 @铸渊 / 铸渊 时触发 if: > github.event_name == 'issues' || (github.event_name == 'issue_comment' && contains(github.event.comment.body, '铸渊')) permissions: issues: write contents: read steps: - uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' - name: 铸渊处理Issue env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} YUNWU_API_KEY: ${{ secrets.YUNWU_API_KEY }} ISSUE_NUMBER: ${{ github.event.issue.number }} ISSUE_TITLE: ${{ github.event.issue.title }} ISSUE_BODY: ${{ github.event.issue.body }} ISSUE_LABELS: ${{ join(github.event.issue.labels.*.name, ',') }} COMMENT_BODY: ${{ github.event.comment.body }} COMMENT_AUTHOR: ${{ github.event.comment.user.login }} COMMENT_ID: ${{ github.event.comment.id }} EVENT_NAME: ${{ github.event_name }} run: node scripts/zhuyuan-issue-reply.js