We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac48c5d + 40fc939 commit 62f8b9eCopy full SHA for 62f8b9e
scripts/prow-vale-review.sh
@@ -99,6 +99,13 @@ do
99
FILENAME=$(echo "$object" | jq -r '.path')
100
LINE_NUMBER=$(echo "$object" | jq -r '.line')
101
102
+ # Line 1 errors are file-level issues. Always post these!
103
+ if [[ "$LINE_NUMBER" -eq 1 ]]; then
104
+ post_review_comment "$BODY" "$FILENAME" "$LINE_NUMBER"
105
+ sleep 1
106
+ continue
107
+ fi
108
+
109
# Check the unified file diff for the alert and file
110
file_diff=$(git diff --unified=0 --stat --diff-filter=AM HEAD~1 HEAD "${FILENAME}" ':(exclude)_unused_topics/*')
111
0 commit comments