Skip to content

Commit bb6915c

Browse files
committed
Update quality-assurance.yaml to include ktlint check for pull requests
Signed-off-by: James Bradlee <[email protected]>
1 parent 6ff8d4a commit bb6915c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/quality-assurance.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
if [[ "${{ github.event_name }}" == "push" ]]; then
2929
git diff --name-only --relative --color never ${{ github.event.before }} ${{ github.sha }} -- '*.kt' '*.kts' | grep -E "\.kts?$" | ktlint --relative --patterns-from-stdin=''
3030
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
31-
gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' '
31+
gh pr diff --name-only --color never ${{ github.event.number }} | grep -E "\.kts?$" | xargs printf -- '%s\n' | tr '\n' ' ' | ktlint --relative
3232
fi
3333
env:
3434
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)