Skip to content
faberopsPublic

About

Shared GitHub Actions for FaberOps repositories

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FaberOps actions

Reusable GitHub Actions for FaberOps repositories.

copylint

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/generated

Pin the full commit SHA of a release tag, as above.

Run locally

Node 22 or newer, no dependencies:

node copylint/copy-lint.mjs --root . --paths docs README.md --exclude docs/generated

Output is file:line:col:rule. The exit code is 1 when there are violations. Inside GitHub Actions each hit is also an error annotation.

License

Apache-2.0

About

Shared GitHub Actions for FaberOps repositories

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages