Repository navigation
docs(pm-stack): add epic template and conformance audit (#1285) - #4010
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 938aee96f8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const project = (item as { project?: { number?: unknown } }).project; | ||
| return project?.number === 4 || project?.number === "4"; |
There was a problem hiding this comment.
Check membership against the actual GitHub CLI output
When project access is available, this predicate incorrectly reports even attached epics as missing Project #4. Verified with installed gh 2.96.0: gh issue view --json projectItems requests project{id,title} and exports flattened items such as {"status":{"optionId":"abc","name":"Todo"},"title":"Main"}, not nested project.number objects. The current test fixture therefore masks the live failure. Query the project's number and owner explicitly through GraphQL, or resolve membership using its project ID.
Useful? React with 👍 / 👎.
| } | ||
|
|
||
| function hasNamedOwner(body: string): boolean { | ||
| return /^\s*owner\s*:\s*\S/im.test(body); |
There was a problem hiding this comment.
Keep owner matching on the same line as the field
If an epic leaves Owner: blank and has another section afterward, the \s* after the colon consumes the intervening newlines and \S matches the next heading. For example, Owner:\n\n## Definition of done\n\nShip it produces no owner finding despite naming nobody. Restrict the whitespace after the colon to horizontal whitespace and require a nonempty value on that line so the audit catches this intake gap.
Useful? React with 👍 / 👎.
Summary
The audit reports gaps only; it does not repair existing epics.
Evidence
read:project, so the audit explicitly skips Project Bump build/buck/preludes/buck2-prelude from3a02ea3to9530656#4 membership instead of treating the unreadable project list as empty.bun test test/epic-conformance.test.ts— 3 pass, 0 fail.bun run scripts/check-epic-conformance.ts— live audit ran and flagged epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047 (exit 1 is expected while findings remain).git diff --check— pass.Merge Danger
Door: Two-way; the template, checklist, and read-only script can be reverted independently.
Blast Radius: Low — new filing guidance and a local audit script; no existing issues are changed.
Need help on this PR? Tag
@codesmith-botwith what you need.