GROW-260 Request Autoscan eligibility after sonar import provisioning#605
GROW-260 Request Autoscan eligibility after sonar import provisioning#605kevinmlsilva wants to merge 1 commit into
Conversation
✅ Deploy Preview for sonarqube-cli canceled.
|
4b5192e to
92b8b59
Compare
92b8b59 to
e470e62
Compare
Code Review ✅ Approved 2 resolved / 2 findingsImplements automatic Autoscan eligibility checks upon successful project provisioning. Resolved documentation mismatches regarding HTTP methods and corrected the progress line output for failed eligibility checks. ✅ 2 resolved✅ Quality: CLAUDE.md documents POST but code uses GET for autoscan
✅ Quality: Failed eligibility prints literal 'undefined' on progress line
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
vnaskos-sonar
left a comment
There was a problem hiding this comment.
The description mentions the project key and stringified eligibility response are surfaced on the per-repo progress line, but I don't see that happening — the line only shows the repo slug: ✓ vnaskos-sonar/bun-ts-sample
Is the description wrong, is this expected?
Yes, it was during the testing, didn't change the description, will remove it |
vnaskos-sonar
left a comment
There was a problem hiding this comment.
In general looks good, there is a minor conflict to be fixed before merging!
Something to consider is the autoscan could be a flag to enable/disable, or to mention on the command's --help that this enables autoscan for the imported repos.



Summary
sonar import, best-effort requests SonarQube Cloud Autoscan eligibility/auto-enable for the new project viaGET /api/autoscan/eligibility?autoEnable=true&ignoreCache=false&projectKey=<key>.SonarQubeClient.requestAutoscanEligibility()).Test plan
bun run typecheck/bun run lintcleanbun test tests/integration/specs/import/import.test.ts— 60/60 pass, including new coverage for: payload shape, unconditional firing regardless of ALM, and import success despite an eligibility-request failurebun run test:unit— 2100/2100 pass, no regressionsGETrequest/query params sent to the fake server🤖 Generated with Claude Code