Skip to content

fix(validate-pr): Address review feedback - #154

Merged
stephanie-anderson merged 1 commit into
mainfrom
fix/validate-pr-review-feedback
Mar 27, 2026
Merged

fix(validate-pr): Address review feedback#154
stephanie-anderson merged 1 commit into
mainfrom
fix/validate-pr-review-feedback

Conversation

@stephanie-anderson

@stephanie-andersonstephanie-anderson commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #153. Addresses review feedback from sentry[bot] and cursor[bot]:

  • Paginate comments in enforce-draft.jslistComments only returns the
    first 30 results by default. PRs with many comments could get duplicate bot
    comments on reopen. Now uses github.paginate() consistent with
    validate-pr.js.
  • Null-safe user check — guard against c.user being null for
    deleted/suspended GitHub accounts (c.user?.type instead of c.user.type).
  • Fix README — clarify that maintainers are only exempt from issue reference
    validation, not draft enforcement. Draft enforcement is intentionally applied
    to everyone.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

- Paginate comment listing in enforce-draft.js to handle PRs with 30+
comments
- Add null check on comment user property for deleted/suspended accounts
- Clarify in README that maintainers are only exempt from issue validation,
not draft enforcement
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️Could not load custom Dangerfile: .github/test-dangerfile-curl.js Error: ENOENT: no such file or directory, lstat '/github/workspace/.github/test-dangerfile-curl.js'

Generated by 🚫 dangerJS against d78110b

@stephanie-anderson
stephanie-anderson merged commit 4243265 into mainMar 27, 2026
25 checks passed
@vaind
vaind deleted the fix/validate-pr-review-feedback branch May 11, 2026 09:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@stephanie-anderson