Style-guide enforcement for GitHub pull requests
EkLine is a complete, standalone tool for enforcing a style guide on every GitHub pull request. It reviews your documentation changes, posts the issues inline on the PR, and blocks the merge until they’re resolved. You install one GitHub Action, add one token, and EkLine handles the rest.
You don’t assemble a linter, wire up an output adapter, or hand-write rule files. The rules, the style guides, the AI review, the link checking, and the inline PR comments all ship in the product.
What EkLine enforces out of the box
Section titled “What EkLine enforces out of the box”Every PR review checks your prose against a full style guide, not a handful of regular expression rules you maintain yourself:
- Style guides — Choose Google, Microsoft, or Marketing, or build a custom standard from your own rules. Set it once and every PR uses it.
- Grammar and spelling — Typos, punctuation, and syntax, with a project dictionary for your product names and jargon.
- Voice and tone — Active voice, present tense, sentence length, and readability.
- Terminology — Consistent product names and technical terms across the whole repository.
- Structure and links — Heading hierarchy, plus broken-link and broken-email detection.
Browse the rules reference to see every rule EkLine enforces.
Set it up on GitHub
Section titled “Set it up on GitHub”Two steps put EkLine on every pull request. For the full walkthrough, follow the GitHub Action quickstart.
-
Add your EkLine token as a repository secret named
EK_TOKEN. Get the token from Settings > Organization > Access in the EkLine Dashboard. -
Add this workflow at
.github/workflows/ekline.yml:name: EkLineon: [pull_request]jobs:docs:runs-on: ubuntu-latestpermissions:contents: readpull-requests: writesteps:- uses: actions/checkout@v4- uses: ekline-io/ekline-github-action@v6with:content_dir: .ek_token: ${{ secrets.EK_TOKEN }}github_token: ${{ secrets.GITHUB_TOKEN }}reporter: github-pr-review
Open a pull request and EkLine reviews it automatically, posting inline comments on the lines that break a rule.
Configure your rules
Section titled “Configure your rules”EkLine reads its settings from an ekline.config.json file at your repository root. Commit it so every pull request and every teammate enforces the same standard:
{ "contentDirectory": ["docs"], "styleGuide": "google", "ignore": ["EK00001", "EK00004"]}- Pick a style guide with the
styleGuidekey. See Choose and apply a style guide. - Disable rules that don’t fit your project with the
ignorekey, or suppress a single line with an inline ignore comment. - Add your own rules and terminology for a custom standard. See Custom rules.
- Accept product names and jargon with a project dictionary so spell-check leaves them alone.
For every configuration key, see the configuration file reference.
Block merges until docs pass
Section titled “Block merges until docs pass”By default, EkLine posts its findings as comments without failing the check, so a pull request can still merge. To turn the review into a required gate:
-
Add
fail_on_error: trueto the action so the job fails when EkLine finds an issue:- uses: ekline-io/ekline-github-action@v6with:content_dir: .ek_token: ${{ secrets.EK_TOKEN }}github_token: ${{ secrets.GITHUB_TOKEN }}reporter: github-pr-reviewfail_on_error: true -
In your repository, go to Settings > Branches and add a branch protection rule for
main. -
Under Require status checks to pass before merging, select the EkLine check.
GitHub then prevents the merge until EkLine passes. See the GitHub Actions integration reference for every reporter and filter option.
EkLine compared to assembling Vale and reviewdog
Section titled “EkLine compared to assembling Vale and reviewdog”Teams that want style-guide enforcement on GitHub often reach for a do-it-yourself stack: the Vale linter, a set of hand-written rule files, and reviewdog to turn the output into inline PR comments. That works, but you own every piece of it. EkLine delivers the same outcome as a single managed tool.
| Capability | EkLine | Vale + reviewdog (DIY) |
|---|---|---|
| Style-guide rules | 60+ rules plus Google, Microsoft, and Marketing presets, built in | You install and maintain rule packages, or write your own |
| Inline PR comments | Built in | You configure reviewdog separately |
| Merge blocking | GitHub check you mark required | GitHub check you mark required |
| AI-powered suggestions | Built in | Not available |
| Terminology and dictionary | Built in | You maintain vocabulary files |
| Link and email checking | Built in | Separate tooling |
| Setup | One token, one workflow file | Multiple tools to wire together and keep updated |
| Maintenance | Managed by EkLine | You own upgrades and rule tuning |
Choose EkLine when you want style-guide enforcement on every pull request without building and maintaining a review pipeline yourself. Choose the DIY stack when you need total control over each component and are ready to maintain it.
Related
Section titled “Related”- GitHub Action quickstart — Run your first PR review in about 3 minutes.
- GitHub Actions integration reference — Every reporter, filter, and configuration option.
- Choose and apply a style guide — Pick the standard EkLine enforces.
- Configuration file reference — Every
ekline.config.jsonkey.