This repository was archived by the owner on Apr 2, 2026. It is now read-only.
feat: add max-source-files and max-entities caps for large repo support #14
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-assign Claude on new issues | ||
| on: | ||
| issues: | ||
| types: [opened] | ||
| jobs: | ||
| tag-claude: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| issues: write | ||
| members: read | ||
| steps: | ||
| - name: Check org membership and tag Claude | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| script: | | ||
| const author = context.payload.issue.user.login; | ||
| const org = context.repo.owner; | ||
| const body = context.payload.issue.body || ''; | ||
| // Already has @claude — no need to add it | ||
| if (body.includes('@claude')) { | ||
| console.log('Issue body already contains @claude, skipping.'); | ||
| return; | ||
| } | ||
| // Always trigger for the Claude bot itself | ||
| const isClaudeBot = author === 'claude[bot]'; | ||
| let isMember = false; | ||
| if (!isClaudeBot) { | ||
| try { | ||
| await github.rest.orgs.checkMembershipForUser({ org, username: author }); | ||
| isMember = true; | ||
| } catch (e) { | ||
| isMember = false; | ||
| } | ||
| } | ||
| if (!isClaudeBot && !isMember) { | ||
| console.log(`Skipping: ${author} is not a member of ${org}`); | ||
| return; | ||
| } | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: context.issue.number, | ||
| body: '@claude please implement this issue' | ||
| }); | ||