This is a special .github repository. It serves as the centralized home for default community health files and shared configurations that apply across all repositories under this account.
GitHub treats a repository named .github differently from regular repositories:
- Default community health files — Files like
CODE_OF_CONDUCT.md,CONTRIBUTING.md,SUPPORT.md,SECURITY.md, andFUNDING.ymlplaced here automatically apply to all other repositories that don't define their own versions. - Default issue & PR templates — Issue templates and pull request templates in
.github/ISSUE_TEMPLATE/and.github/PULL_REQUEST_TEMPLATE/serve as fallback templates for all repositories. - Organization/user profile README — A
profile/README.mdin this repo is displayed on the organization or user profile page.
Note
Default files are not physically present in other repositories — they don't appear in file browsers, git history, clones, or downloads. GitHub displays them as links to this repo when a repository lacks its own version.
Note
LICENSE files cannot be shared as defaults. Each repository must include its own license.
Unlike community health files, GitHub Actions workflows in the .github repo are not automatically inherited. Other repositories must explicitly call them as reusable workflows.
Automated PR review powered by claude-code-action with GitHub Copilot co-review. To use it in another repository, create .github/workflows/code-review.yml:
name: Code Review
on:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]
permissions:
actions: read
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
review:
uses: xdanger/.github/.github/workflows/code-review.yml@main
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}Prerequisites:
- Install the Claude GitHub App
- Add
ANTHROPIC_API_KEYto repository secrets (or organization secrets for all repos) - (Optional) Set
ANTHROPIC_BASE_URLas a repository variable (not secret) if routing through a proxy like LiteLLM
The workflow requests a Copilot co-review alongside Claude, skips draft PRs and fork PRs, has a 15-minute timeout, and follows the review guidelines defined in REVIEW.md.
- Formatting:
pnpm run format— Prettier for JS/TS, AutoCorrect for CJK text spacing - Linting:
pnpm run lint— ESLint for JS/TS - Git hooks: Husky + lint-staged for pre-commit checks