Skip to content

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.

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.

Two steps put EkLine on every pull request. For the full walkthrough, follow the GitHub Action quickstart.

  1. Add your EkLine token as a repository secret named EK_TOKEN. Get the token from Settings > Organization > Access in the EkLine Dashboard.

  2. Add this workflow at .github/workflows/ekline.yml:

    name: EkLine
    on: [pull_request]
    jobs:
    docs:
    runs-on: ubuntu-latest
    permissions:
    contents: read
    pull-requests: write
    steps:
    - uses: actions/checkout@v4
    - uses: ekline-io/ekline-github-action@v6
    with:
    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.

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:

ekline.config.json
{
"contentDirectory": ["docs"],
"styleGuide": "google",
"ignore": ["EK00001", "EK00004"]
}

For every configuration key, see the configuration file reference.

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:

  1. Add fail_on_error: true to the action so the job fails when EkLine finds an issue:

    - uses: ekline-io/ekline-github-action@v6
    with:
    content_dir: .
    ek_token: ${{ secrets.EK_TOKEN }}
    github_token: ${{ secrets.GITHUB_TOKEN }}
    reporter: github-pr-review
    fail_on_error: true
  2. In your repository, go to Settings > Branches and add a branch protection rule for main.

  3. 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.

CapabilityEkLineVale + reviewdog (DIY)
Style-guide rules60+ rules plus Google, Microsoft, and Marketing presets, built inYou install and maintain rule packages, or write your own
Inline PR commentsBuilt inYou configure reviewdog separately
Merge blockingGitHub check you mark requiredGitHub check you mark required
AI-powered suggestionsBuilt inNot available
Terminology and dictionaryBuilt inYou maintain vocabulary files
Link and email checkingBuilt inSeparate tooling
SetupOne token, one workflow fileMultiple tools to wire together and keep updated
MaintenanceManaged by EkLineYou 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.