Allow `Partial<Config>` for `createStatusReportBase` by mbg · Pull Request #3188 · github/codeql-action
This PR changes the type of createStatusReportBase to allow Partial<Config> | undefined rather than Config | undefined. The unit tests for createStatusReportBase are updated accordingly. I then made use of this to populate the languages field in the start-proxy telemetry.
Risk assessment
For internal use only. Please select the risk level of this change:
- Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.
Which use cases does this change impact?
- Default setup - Impacts users who use default setup.
- Code Scanning - Impacts Code Scanning (i.e.
analysis-kinds: code-scanning). - Code Quality - Impacts Code Quality (i.e.
analysis-kinds: code-quality). - GHES - Impacts GitHub Enterprise Server.
How did/will you validate this change?
- Unit tests - I am depending on unit test coverage (i.e. tests in
.test.tsfiles). - End-to-end tests - I am depending on PR checks (i.e. tests in
pr-checks).
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
- Rollback - Change can only be disabled by rolling back the release or releasing a new version with a fix.
How will you know if something goes wrong after this change is released?
- Telemetry - I rely on existing telemetry or have made changes to the telemetry.