feat: add tap-hold-keys action with named key list options #44
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: Claude Code Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| claude-review: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Detect workflow changes in PR | |
| id: workflow-changes | |
| run: | | |
| set -euo pipefail | |
| git fetch origin "${{ github.base_ref }}" --depth=1 | |
| if git diff --quiet "origin/${{ github.base_ref }}" -- .github/workflows/claude-code-review.yml; then | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Run Claude Code Review | |
| id: claude-review | |
| if: steps.workflow-changes.outputs.changed != 'true' | |
| uses: anthropics/claude-code-action@v1 | |
| with: | |
| anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| claude_args: | | |
| --allowed-tools Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh search:*),Read,Glob,Grep | |
| prompt: | | |
| REPO: ${{ github.repository }} | |
| PR NUMBER: ${{ github.event.pull_request.number }} | |
| Please review this pull request and provide feedback on: | |
| - Code quality and Rust best practices | |
| - Potential bugs or issues | |
| - Performance considerations (this is a hot-path keyboard remapping engine) | |
| - API design and backward compatibility | |
| - Test coverage | |
| Be constructive and helpful in your feedback. | |
| Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR. | |
| - name: Skip Claude review for workflow-file changes | |
| if: steps.workflow-changes.outputs.changed == 'true' | |
| run: | | |
| echo "Skipping Claude review because .github/workflows/claude-code-review.yml changed in this PR." |