Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .just/gh-process.just
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ pr_update: _on_a_pull_request
if [ ! -s "$other_sections" ]; then
# look for content after the Done section's commit list
awk 'BEGIN {in_done=0; after_done=0; empty_count=0}
/^## Done/ {in_done=1; next}
in_done && /^$/ {empty_count++; if (empty_count >= 2) after_done=1; next}
in_done && /^- / {next}
after_done {print}' "$bodyfile" > "$other_sections"
/^## Done/ {in_done=1; next}
in_done && /^$/ {empty_count++; if (empty_count >= 2) after_done=1; next}
in_done && /^- / {next}
after_done {print}' "$bodyfile" > "$other_sections"
fi

# combine new Done section with preserved sections
Expand Down
Loading