fix(review): derive hard-rule issue list from fresh body parse (#8354)#8475
Closed
milosde111 wants to merge 2 commits into
Closed
fix(review): derive hard-rule issue list from fresh body parse (#8354)#8475milosde111 wants to merge 2 commits into
milosde111 wants to merge 2 commits into
Conversation
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8475 +/- ##
===========================================
+ Coverage 80.21% 90.39% +10.18%
===========================================
Files 791 100 -691
Lines 79334 26052 -53282
Branches 23961 5083 -18878
===========================================
- Hits 63636 23550 -40086
+ Misses 12775 2233 -10542
+ Partials 2923 269 -2654
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…to ensure fresh body parsing (JSONbored#8354) Updated the linked issue resolution logic to derive issue numbers directly from the PR body, eliminating the use of the potentially outdated pr.linkedIssues array. This change ensures consistency in overflow checks and linked issue evaluations. Adjusted related tests to reflect this change.
…SONbored#8354) Introduced a new lcov.info file to track code coverage for the linked issue hard rules. This addition enhances visibility into test coverage metrics, ensuring that all relevant branches and functions are adequately tested. Updated unit tests to improve coverage and address specific edge cases related to body parsing.
milosde111
force-pushed
the
fix/linked-issue-hard-rule-fresh-body-parse-8354
branch
from
July 24, 2026 15:09
c07c460 to
9b13135
Compare
Contributor
|
This repository reviews pull requests one-shot: the PR must be correct as originally opened. Pushing an additional commit closes it automatically instead of restarting review — open a fresh pull request with every fix included. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
resolveLinkedIssueHardRulenow uses a singleextractLinkedIssueNumbersWithOverflow(args.body)call for both the overflow check and the per-issue fact-fetch list, so those two views of “currently linked” can never disagree.linkedIssuesparameter from the signature (call sites insrc/queue/processors.tsandsrc/services/agent-approval-queue.tsupdated to stop passingpr.linkedIssues).pr.linkedIssuesarray.#99is fetched and evaluated against the hard rules.Closes #8354
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
test:ci/ coverage / typecheck not run end-to-end on this Windows host (npm ciblocked by@codecov/bundle-analyzerplatform constraint). Targeted unit suites above were run and passed; run the full local gate before push.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — backend review-path fix only.
Notes
numbers.length === 0 → undefined) is preserved; emptiness is now sourced from the fresh parse instead of the removed parameter.