| name | Project Context |
|---|---|
| description | Copilot – quick read, commands, and where to find more |
- What it is: GitHub Action + CLI that automates Git-Flow: creates branches from issue labels, links issues/PRs to projects, tracks commits; AI via OpenCode (progress, errors, PR descriptions).
- Entry points: GitHub Action →
src/actions/github_action.ts; CLI →src/cli.ts. Shared logic insrc/actions/common_action.ts(single actions vs issue/PR/push). - Do: Use Node 20, run from repo root; edit only
src/; useINPUT_KEYS/ACTIONSandlogInfo/logError/logDebugInfo. When adding inputs: updateaction.yml,constants.ts(INPUT_KEYS), andgithub_action.ts(and optionallylocal_action.ts). - Don’t: Edit or depend on
build/(generated byncc); run tests/lint onbuild/.
nvm use 20
npm install
npm run build
npm test
npm run test:watch
npm run test:coverage
npm run lint
npm run lint:fix- Build:
npm run build→ bundlesgithub_action.tsandcli.tsintobuild/. - Tests: Jest;
npm run test:watch/npm run test:coverageas needed. - Lint: ESLint + typescript-eslint on
src/;npm run lint:fixto auto-fix.
build/– Generated output; do not edit or run tests/lint against it..agent-sessions/– Session data; ignore unless debugging.
- Architecture & paths: see
architecture.md(entry points, use cases, single actions, key files). - Code conventions: see
code-conventions.md(logger, constants, adding inputs, ncc).