EkLine GitHub Action on Label
This guide helps configure the EkLine GitHub Action to run when a specific label gets added to a pull request.
Prerequisites
Section titled “Prerequisites”- A GitHub repository with EkLine set up.
- EkLine GitHub Action configured in your repository.
- Open the
.github/workflows/ekline.ymlfile in your GitHub repository. - Change the
onsection of the GitHub action to trigger onpull_requestwithtypes: [labeled]:
on: pull_request: types: [labeled]- Add a new
ifcondition to thejobssection to check if the labeleklineis present:
jobs: test-pr-review: if: contains(github.event.label.name, 'ekline')- Save the changes to
ekline.ymlfile. The updatedekline.ymlappears like this:
name: EkLineon: 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 steps: - uses: actions/checkout@v3 - 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" # OptionalWith these changes, EkLine GitHub Action triggers when someone adds a label named ekline to a pull request.
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.