Skip to content

Commit d872f62

Browse files
committed
Handle null PR body when extracting inflight module markers
1 parent 20f26d9 commit d872f62

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/module-cleanup.lock.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/module-cleanup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
# won't be re-picked.
134134
inflight=$(gh pr list --repo "$GITHUB_REPOSITORY" \
135135
--label "module cleanup" --state open \
136-
--json body --jq '.[].body | split("\n")[]' \
136+
--json body --jq '.[] | (.body // "") | split("\n")[]' \
137137
| sed -n 's/^<!-- module-cleanup-module: \(.*\) -->$/\1/p' || true)
138138
export REVIEW_PROGRESS="$(printf '%s\n%s\n' "$processed" "$inflight" \
139139
| grep -v '^$' | sort -u)"

0 commit comments

Comments
 (0)