File tree Expand file tree Collapse file tree
tooling/doc-suggestions/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8989 MEDIUM=$(grep -c "^### Medium Priority" "reports/doc-suggestions-${DATE}.md" || echo "0")
9090 LOW=$(grep -c "^### Low Priority" "reports/doc-suggestions-${DATE}.md" || echo "0")
9191
92- # Create PR and assign to DevRel team
92+ # Create PR and request review from DevRel team
9393 gh pr create \
9494 --title "docs: Documentation suggestions for ${DATE}" \
9595 --body "## Documentation Update Suggestions
@@ -105,4 +105,4 @@ jobs:
105105
106106 ---
107107 🤖 Generated by the doc-suggestions tool" \
108- --assignee "@ AztecProtocol/devrel"
108+ --reviewer " AztecProtocol/devrel"
Original file line number Diff line number Diff line change @@ -70,11 +70,29 @@ Please update the documentation file to reflect these changes.
7070 if ( suggestions . length === 0 ) {
7171 report += `## No Suggestions
7272
73- No documentation updates needed at this time. All referenced source files are either:
74- - Unchanged in the scan period
75- - Already have up-to-date documentation
73+ No documentation updates needed at this time.
7674
7775` ;
76+
77+ // Show what was analyzed even when no updates needed
78+ if ( analysisResult . staleReferences . length > 0 ) {
79+ report += `### Reviewed References
80+
81+ The following documentation files were flagged for review but determined to not need updates:
82+
83+ | Documentation | Referenced Source | Reason |
84+ |--------------|-------------------|--------|
85+ ` ;
86+ for ( const ref of analysisResult . staleReferences ) {
87+ const prLink = ref . recentSourceChanges . find ( ( c ) => c . pr_number ) ?. pr_number ;
88+ const prText = prLink ? `PR #${ prLink } ` : 'Recent commits' ;
89+ report += `| \`${ ref . docPath } \` | \`${ ref . sourceFile } \` | ${ prText } - no user-facing changes |
90+ ` ;
91+ }
92+ report += `
93+ ` ;
94+ }
95+
7896 return report ;
7997 }
8098
You can’t perform that action at this time.
0 commit comments