fix(integrations): strict milestone IDs and blank Linear PR URLs#3433
fix(integrations): strict milestone IDs and blank Linear PR URLs#3433jony376 wants to merge 1 commit into
Conversation
Use parsePositiveInt for milestone attach so whitespace-padded or scientific-notation strings cannot coerce to the wrong GitHub milestone number. findLinearNativeLink now skips Linear when prUrl is blank. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-05 08:09:42 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 4 non-blocking
Why this is blocked
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3433 +/- ##
==========================================
- Coverage 93.46% 93.46% -0.01%
==========================================
Files 291 291
Lines 30792 30791 -1
Branches 11223 11223
==========================================
- Hits 28781 28780 -1
Misses 1355 1355
Partials 656 656
🚀 New features to boost your workflow:
|
|
Gittensory is closing this pull request on the maintainer's behalf (No linked issue detected; Maintainer requires a linked issue; AI reviewers agree on a likely critical defect: PR description: you have not closed or clearly linked an eligible open issue; change the description to include the maintainer-authorized issue reference, for example `Closes #1234`, or explain the maintainer authorization for proceeding without one.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
GitHubMilestonesAdapter.attachToMilestonenow uses strict digit-onlyparsePositiveIntparsing instead ofNumber(), so whitespace-padded or scientific-notation milestone IDs (e.g." 14","1e2") cannot attach the wrong GitHub milestone.findLinearNativeLinkreturns early whenprUrlis empty or whitespace-only, avoiding a wasted Linear GraphQL round-trip.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlint— no workflow changesnpm 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:workers— no worker/runtime changesnpm run build:mcp— no MCP changesnpm run test:mcp-pack— no MCP changesnpm run ui:openapi:check— no UI/API changesnpm run ui:lint— no UI changesnpm run ui:typecheck— no UI changesnpm run ui:build— no UI changesnpm audit --audit-level=moderateIf any required check was skipped, explain why:
src/integrationsand unit tests.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 — no UI changes.
Notes
src/integrations/**only (not a guarded path).Made with Cursor