Skip to content

feat(enterprise): support governance_reports endpoints#258

Merged
BoxBoxJason merged 1 commit into
mainfrom
feat/enterprise-governance-reports-endpoints
Jul 9, 2026
Merged

feat(enterprise): support governance_reports endpoints#258
BoxBoxJason merged 1 commit into
mainfrom
feat/enterprise-governance-reports-endpoints

Conversation

@BoxBoxJason

Copy link
Copy Markdown
Owner

Description of your changes

This PR adds the new "GovernanceReports" Service to interact with the enterprise Governance reports endpoints.

Packaged with full mock api response unit tests

e2e tests are dummies for now.

Closes #211

I have:

  • Followed the git conventional commit message format.
  • Made sure all changes are covered by proper tests, reaching a coverage of at least 80% when applicable.

How has this code been tested

I have:

  • Made sure make lint passes to verify that the code style is correct.
  • Made sure make test passes to verify that the code is working as intended.
  • Made sure make e2e passes to verify that end-to-end tests pass against a real SonarQube instance.
  • Added unit tests to cover the code changes.
  • Added end-to-end tests if necessary.

@BoxBoxJason BoxBoxJason added this to the Enterprise Edition Support milestone Jun 1, 2026
@BoxBoxJason BoxBoxJason requested a review from Copilot June 1, 2026 22:12
@BoxBoxJason BoxBoxJason self-assigned this Jun 1, 2026
@BoxBoxJason BoxBoxJason added enhancement New feature or request unit-test Unit test related work e2e end to end tests related work sdk SonarQube golang SDK related work labels Jun 1, 2026
@BoxBoxJason BoxBoxJason added the ai This issue / PR was (over 50%) AI generated label Jun 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new GovernanceReportsService to the Go SDK to support SonarQube Enterprise governance report endpoints, wiring it into Client and providing unit + (placeholder) integration tests.

Changes:

  • Added sonar/governance_reports_service.go with methods for download/status/subscribe/unsubscribe/update_frequency/update_recipients.
  • Added mock-based unit tests for the new service.
  • Registered the new service on sonar.Client and added an integration test suite stub.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
sonar/governance_reports_service.go Implements the governance reports service methods and option/response types.
sonar/governance_reports_service_test.go Adds unit tests for the new governance reports service.
sonar/client.go Registers the new service on the client (and also adds an unexpected SecurityReports registration).
integration_testing/governance_reports_test.go Adds placeholder e2e coverage for the new service.

Comment thread sonar/client.go Outdated
Comment thread sonar/client.go
Comment thread sonar/governance_reports_service.go
Comment thread sonar/governance_reports_service_test.go
Comment thread integration_testing/governance_reports_test.go
Comment thread sonar/governance_reports_service.go
Signed-off-by: BoxBoxJason <contact@boxboxjason.dev>
@BoxBoxJason BoxBoxJason force-pushed the feat/enterprise-governance-reports-endpoints branch from 76f45d1 to a803145 Compare July 9, 2026 13:15
@BoxBoxJason BoxBoxJason marked this pull request as ready for review July 9, 2026 13:20
@BoxBoxJason BoxBoxJason merged commit 4e98d01 into main Jul 9, 2026
4 of 5 checks passed
@BoxBoxJason BoxBoxJason deleted the feat/enterprise-governance-reports-endpoints branch July 9, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai This issue / PR was (over 50%) AI generated e2e end to end tests related work enhancement New feature or request sdk SonarQube golang SDK related work unit-test Unit test related work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support governance reports endpoints

2 participants