Reusable GitHub Actions for FaberOps repositories.
Fails the job when public prose breaks the FaberOps copy rules: banned place names, wrong brand spellings, the v2 labels (release versions such as v2.4.7 are fine), the old domain, and the forbidden dash and ellipsis characters. Markdown code blocks, inline code spans and URLs are not scanned. Add copylint-disable-line in a comment on a line to allow a legitimate quote of a banned term.
| Input | Default | Meaning |
|---|---|---|
paths |
. |
Newline separated files or directories |
extensions |
.md,.mdx |
Extensions scanned inside directories |
exclude |
empty | Newline separated path prefixes to skip |
prose-only-extensions |
.md,.mdx |
Extensions where the three dots rule applies |
permissions:
contents: read
jobs:
copylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: faberops/actions/copylint@cabf20ee56f520b2ee5f1a2c6b134d4f111fe48e # v1.0.1
with:
paths: |
docs
README.md
exclude: |
docs/generatedPin the full commit SHA of a release tag, as above.
Node 22 or newer, no dependencies:
node copylint/copy-lint.mjs --root . --paths docs README.md --exclude docs/generatedOutput is file:line:col:rule. The exit code is 1 when there are violations. Inside GitHub Actions each hit is also an error annotation.
Apache-2.0