Commit e8a4efeb13

e8a4efeb130ccfe1db8bff91d042dc13f09497b9

parent: ad02f86dc4

Unregistered key

Subba Reddy Palagiri <167409324+subbareddypalagiri@users.noreply.github.com> · 2026-06-24 10:58 UTC
committer: <noreply@github.com>

Fix: Prevent repo linter from crashing on deletion-only PRs (#4283)

Layout: unified · split

.github/workflows/repo_linter.sh +2 −2
@@ -5,9 +5,9 @@ set -eo pipefail
5REPO_TO_LINT=$( 5REPO_TO_LINT=$(
6 git diff origin/main -- readme.md | 6 git diff origin/main -- readme.md |
7 # Look for changes (indicated by lines starting with +). 7 # Look for changes (indicated by lines starting with +).
8 grep ^+ | 8 (grep ^+ || true) |
9 # Get the line that includes the readme. 9 # Get the line that includes the readme.
10 grep -Eo 'https.*#readme' | 10 (grep -Eo 'https.*#readme' || true) |
11 # Get just the URL. 11 # Get just the URL.
12 sed 's/#readme//') 12 sed 's/#readme//')
13 13