mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
06cd80d1bd
Prettier pads markdown table cells for column alignment, which turns any content change into a table-wide realignment diff. Markdown was only in prettierignore for packages/kilo-vscode/; the root formatter still repadded docs elsewhere (e.g. TESTING.md, kilo-docs, AGENTS.md). Adds *.md to the root .prettierignore, documents the convention in AGENTS.md, and adds script/check-md-table-padding.ts + a workflow to enforce it. Existing padded tables in Kilo-owned docs have been rewritten via the script's --fix mode.
25 lines
580 B
YAML
25 lines
580 B
YAML
name: Check markdown table padding
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**/*.md"
|
|
- "script/check-md-table-padding.ts"
|
|
- ".github/workflows/check-md-table-padding.yml"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check:
|
|
name: Check markdown table padding
|
|
if: github.repository == 'Kilo-Org/kilocode'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Run check
|
|
run: bun run script/check-md-table-padding.ts
|