# EkLine GitHub Action on label

## Prerequisites

- A GitHub repository with EkLine set up.
- EkLine GitHub Action configured in your repository.

## Steps

1. Open the **`.github/workflows/ekline.yml`** file in your GitHub repository.
2. Change the **`on`** section of the GitHub Action to trigger on **`pull_request`** with **`types: [labeled]`**:
```yaml
on:
  pull_request:
    types: [labeled]
```
3. Add a new **`if`** condition to the **`jobs`** section to check if the label `ekline` is present:
```yaml
jobs:
  test-pr-review:
    if: contains(github.event.label.name, 'ekline')
```
4. Save the changes to **`ekline.yml`** file.
The updated **`ekline.yml`** appears like this:
```yaml
name: EkLine
on:
  pull_request:
    types: [labeled]

jobs:
  test-pr-review:
    if: contains(github.event.label.name, 'ekline')
    name: runner / EkLine Reviewer (github-pr-review)
    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: ./src/docs
          ek_token: ${{ secrets.ek_token }}
          github_token: ${{ secrets.github_token }}
          reporter: github-pr-review
          filter_mode: added
          # ignore_rule: "EK00001,EK00004" # Optional
```



With these changes, EkLine GitHub Action triggers when someone adds a label named `ekline` to a pull request.

## Usage

Add the `ekline` label to a specific pull request to run the EkLine GitHub Action. Upon adding the label, the action triggers and executes the configured checks.

## Next steps

- [GitHub Actions integration](/reviewer/integrations/github-integration/) — full configuration reference for the GitHub Action
- [Ignoring rules](/reviewer/configuration/ignoring-rules/) — handle false positives and suppress specific checks
- [Framework support](/reviewer/configuration/framework-support/) — configure EkLine for MDX, Astro, Docusaurus, and other frameworks
- [Docs Agent](/agent/) — generate and update documentation from your codebase with AI