Skip to content

Commit 87f7d57

Browse files
authored
Improve DDUw Step 1c with direct content verification before Step 2 fallback (#28101)
1 parent b0ba3fc commit 87f7d57

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/daily-doc-updater.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ For each closed issue:
111111
2. Search for merged PRs in a tight window around issue closure (prefer ±60 minutes) that modify `pkg/<package>/README.md`.
112112
3. Example query: `repo:${{ github.repository }} is:pr is:merged merged:>=<issue_closed_at-60m> merged:<=<issue_closed_at+60m> path:pkg/<package>/README.md`.
113113
4. If such a PR exists and the README change fully resolves the issue gap, treat the issue as already addressed and skip it.
114+
- If the fallback heuristic still finds no PR, run a direct content check before Step 2:
115+
1. Parse the issue body for referenced file paths and the specific missing symbols/constants/phrases.
116+
2. Read only those referenced files directly.
117+
3. Verify whether each listed gap is still present.
118+
4. If all listed items are already documented, treat the issue as already addressed and skip it (do not continue to Step 2 for this issue).
114119
- Otherwise, treat it as an unaddressed gap and follow the normal Step 2 flow.
115120
- **closed as not_planned**: Do not create documentation based solely on this issue. Instead, cross-reference the issue's subject matter against commits from the same 7-day window (Step 2). If a related code change is found, treat it as a new documentation gap (independent of the original issue decision) and follow the normal Step 2 flow for that code change.
116121

0 commit comments

Comments
 (0)