Skip to content

Commit 0ce722c

Browse files
authored
Merge branch 'ds_decompose-pr-test' into dshevtsov-patch-1
2 parents e5b409c + 1425824 commit 0ce722c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/lint-pr_job.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,33 @@ jobs:
1919
fetch-depth: 0
2020
ref: ${{ inputs.ref }}
2121

22+
- name: Fetch base branch
23+
run: |
24+
git remote add base https://github.com/commerce-docs/commerce-php.git
25+
git fetch base ${{ github.event.pull_request.base.ref }}
26+
git checkout ${{ inputs.ref }}
27+
2228
- name: Setup reviewdog
2329
uses: reviewdog/action-setup@v1.3.0
2430
with:
2531
reviewdog_version: v0.20.3
2632

33+
- name: Load super-linter configuration
34+
shell: bash
35+
run: cat .github/super-linter.env >> "$GITHUB_ENV"
36+
2737
- name: Lint Code Base with super-linter and reviewdog
2838
uses: super-linter/super-linter/slim@v7.3.0
2939
env:
3040
GITHUB_TOKEN: ${{ github.token }}
31-
VALIDATE_MARKDOWN: true
32-
FIX_MARKDOWN: true
33-
MARKDOWN_CONFIG_FILE: .markdownlint.yml
34-
VALIDATE_ALL_CODEBASE: false
35-
IGNORE_GITIGNORED_FILES: true
3641
LOG_LEVEL: DEBUG
3742
ACTIONS_RUNNER_DEBUG: true
3843

3944
- name: Report linting results with reviewdog
4045
shell: bash
4146
run: |
4247
TMPFILE=$(mktemp)
43-
git diff > "${TMPFILE}"
48+
git diff base/${{ github.event.pull_request.base.ref }} > "${TMPFILE}"
4449
if [ ! -s "${TMPFILE}" ]; then
4550
echo "No changes detected, skipping reviewdog."
4651
exit 0

0 commit comments

Comments
 (0)