@@ -131,10 +131,13 @@ jobs:
131131 # bodies list the modules under "## Modules in this batch" as
132132 # "- " followed by the short wrapped in backticks). Once a PR
133133 # merges, those shorts also exist in processed.txt so they won't
134- # be re-picked.
134+ # be re-picked. Only scan the "Modules in this batch" section
135+ # (terminated by `---`) so an unrelated backticked line elsewhere
136+ # in the body cannot poison the processed-set.
135137 inflight=$(gh pr list --repo "$GITHUB_REPOSITORY" \
136138 --label "module cleanup" --state open \
137139 --json body --jq '.[].body' \
140+ | awk '/^## Modules in this batch/{f=1; next} /^---/{f=0} f' \
138141 | sed -n 's/^- `\([^`]*\)`$/\1/p' || true)
139142 export REVIEW_PROGRESS="$(printf '%s\n%s\n' "$processed" "$inflight" \
140143 | grep -v '^$' | sort -u)"
@@ -157,7 +160,11 @@ jobs:
157160 private-key : ${{ secrets.OTELBOT_JAVA_INSTRUMENTATION_PRIVATE_KEY }}
158161 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
159162 with :
160- fetch-depth : 1
163+ # Full history is required: finalize computes
164+ # `origin/main..origin/module-cleanup-wip` to build the PR body and
165+ # decide whether to flush. With a shallow `origin/main`, main's own
166+ # ancestors leak into that range and corrupt both outputs.
167+ fetch-depth : 0
161168 persist-credentials : true
162169 token : ${{ steps.otelbot-token.outputs.token }}
163170 - name : Configure git author
0 commit comments