Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@
All instructions for this repository are maintained in [`AGENTS.md`](../AGENTS.md) at the repository root.

Please read and follow the guidance in that file.

## Tech Stack

- **Runtime:** Google Apps Script (V8) for deployed code; Node.js for tooling and tests
- **Language:** JavaScript (`.gs` / `.js`), with TypeScript available for type checking (`npm run typecheck`)
- **Testing:** Jest (unit, `npm test`) · Playwright (e2e, `npm run test:e2e`)
- **Linting:** ESLint + Prettier (`npm run check`)
- **Coverage thresholds:** 99% lines, 95% statements/functions, 85% branches
- **Key libraries:** `@types/google-apps-script` (GAS type defs), `ts-jest`, `husky` + `lint-staged` (pre-commit), `@commitlint` (conventional commits)
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This file follows the AGENTS.md conventions (see https://agents.md/) and provide

## Tests & CI (repo conventions)

- **Coverage thresholds:** 100% lines, 95% statements/functions, 85% branches. Verify locally with `npm test -- --coverage` (or `npx jest --coverage`) and ensure CI coverage meets these requirements. PRs that reduce coverage below these thresholds will be rejected.
- **Coverage thresholds:** 99% lines, 95% statements/functions, 85% branches. Verify locally with `npm test -- --coverage` (or `npx jest --coverage`) and ensure CI coverage meets these requirements. PRs that reduce coverage below these thresholds will be rejected.
- Before requesting review or marking a PR as ready:
- Run `npm test` and ensure all tests pass locally
- Run `npm test -- --coverage` and ensure coverage meets thresholds
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This file provides Claude Code-specific instructions. For comprehensive agent gu
## Key Rules

1. **TDD is mandatory** — write tests before implementation, include tests in the same PR
2. **Coverage thresholds** — 100% lines, 95% statements/functions, 85% branches
2. **Coverage thresholds** — 99% lines, 95% statements/functions, 85% branches
3. **Avoid coverage-ignore comments and `.skip()`** — only use in rare, unavoidable cases (per AGENTS.md) with clear justification
4. **GAS testing pattern** — extract logic to `src/index.js` with `module.exports`, inject GAS services as parameters
5. **Always run** `npx prettier --write .` before committing — pre-commit hooks don't run in agent sessions
Expand Down
Loading