Skip to content

Commit

Permalink
Use the PR base branch as reference when linting
Browse files Browse the repository at this point in the history
To determine the changed files, the Markdown linter needs to know the
base branch; instead of using the default everywhere, use the base
branch set in the PR.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and mkolesnik committed Jan 17, 2021
1 parent 9be744d commit 8f8fd42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
with:
config-file: ".markdownlinkcheck.json"
check-modified-files-only: "yes"
base-branch: ${{ github.base_ref }}

markdownlint:
name: Markdown
Expand Down

0 comments on commit 8f8fd42

Please sign in to comment.