Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- `src/` houses the TypeScript action, with `index.ts` orchestrating file detection and test selection, and helper modules like `get-changed-files.ts` and `get-affected-tests.ts`. Co-located specs (e.g., `get-affected-tests.test.ts`) validate behaviour.
Sign in to like and favorite skills
src/ houses the TypeScript action, with index.ts orchestrating file detection and test selection, and helper modules like get-changed-files.ts and get-affected-tests.ts. Co-located specs (e.g., get-affected-tests.test.ts) validate behaviour.fixtures/ provides sample repositories and dependency graphs for deterministic tests. Add new fixtures sparingly and document intent in comments.dist/ is the compiled output from pnpm build; never edit it manually. action.yaml defines the GitHub Action metadata, while logo/ stores branding assets for documentation.pnpm install ensures dependencies match pnpm-lock.yaml. Use Node 20+ as declared in package.json.pnpm build runs ncc to bundle src/ into dist/ and generates licenses.txt.pnpm test executes the Vitest suite; combine with --watch or --runInBand as needed.pnpm typecheck runs tsc --noEmit under the strict compiler settings from tsconfig.json.pnpm lint (oxlint) and pnpm format:check (Prettier) should both be clean before opening a PR. Run pnpm format only when you intend to commit formatting changes..editorconfig. Avoid manual formatting.camelCase for variables/functions, PascalCase for classes/types, and suffix test doubles with Mock or Stub for clarity.index.ts; module-level helpers remain file-scoped unless reused.core.setFailed.*.test.ts. Mirror the module API in your describe blocks (describe('getAffectedTests', ...)).expect.hasAssertions() when iterating, and avoid network calls in tests.feat:, fix:, docs:, etc.); scope is optional but helpful (e.g., feat(diff): add file glob filtering).pnpm test, pnpm typecheck). Link issues or discussions where applicable.core.setSecret if logging is unavoidable. Validate required inputs before calling external services.action.yaml and regenerate dist/ together. Consumers rely on the bundled output—forgetting to rebuild is a common source of regressions.