Skip to content

Commit

Permalink
Merge pull request #2908 from dimagi/lintOnlyChangedFiles
Browse files Browse the repository at this point in the history
Lint only changed files in the PR
  • Loading branch information
shubham1g5 authored Dec 4, 2024
2 parents 2d91ac3 + bca1a8c commit d4d32c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
with:
fetch-depth: 0

- name: Get changed files
id: files
uses: octokit/[email protected]
with:
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
Expand All @@ -29,3 +37,5 @@ jobs:
IGNORE_GITIGNORED_FILES: true
VALIDATE_JSCPD: false
JAVA_FILE_NAME: checkstyle.xml
with:
changed_files: ${{ steps.files.outputs.files }}

0 comments on commit d4d32c8

Please sign in to comment.