This pull request includes a wide range of changes to improve the functionality, usability, and maintainability of the codebase. The most important changes include adding new variables and functions to the getAlerts function, updating the interface IResponse for improved error handling, and making various updates to configuration files and widget scripts.
Main interface changes:
dependencyReviewTask/index.ts: Added new variables, created a new WebApi instance, obtained system variables, and called the checkAlertsForType function based on the values of scanForDependencyAlerts and scanForCodeScanningAlerts. Updated the interface IResponse to include an additional parameter alertType. [1][2]
vss-extension.json: Made several changes to the vss-extension.json file, including adding a new widget configuration and task, updating URIs for existing widgets, and modifying properties to align with expected formats. [1][2][3][4][5][6]
vss-extension-dev.json: Made updates to the vss-extension-dev.json file, including reformatting properties, updating the version number, modifying the supportedScopes property, and adding additional paths for extension files. [1][2][3][4][5][6]
Testing improvements:
widgets/widgets/widget_1x1/widget_1x1.js: Made changes to load alerts for all repositories in the project if data.repo is not provided, update the function signature and call, and add logging statements. [1][2][3]
Documentation updates:
overview.md: Added information about a new pipeline task called "Advanced-Security-Review".
Build and script updates:
make.ps1: Updated the build script to accept the "publish" command, use the correct variable to create the extension, and add support for building both the dev and prod versions. [1][2][3]
This pull request includes a wide range of changes to improve the functionality, usability, and maintainability of the codebase. The most important changes include adding new variables and functions to the
getAlerts
function, updating theinterface IResponse
for improved error handling, and making various updates to configuration files and widget scripts.Main interface changes:
dependencyReviewTask/index.ts
: Added new variables, created a newWebApi
instance, obtained system variables, and called thecheckAlertsForType
function based on the values ofscanForDependencyAlerts
andscanForCodeScanningAlerts
. Updated theinterface IResponse
to include an additional parameteralertType
. [1] [2]widgets/library.js
: Made various changes to improve code readability, maintainability, and debugging. [1] [2] [3] [4] [5] [6] [7] [8] [9]Configuration improvements:
vss-extension.json
: Made several changes to thevss-extension.json
file, including adding a new widget configuration and task, updating URIs for existing widgets, and modifying properties to align with expected formats. [1] [2] [3] [4] [5] [6]dependencyReviewTask/task.json
: Updated the name, description, and help markdown to reflect a change in focus.vss-extension-dev.json
: Made updates to thevss-extension-dev.json
file, including reformatting properties, updating the version number, modifying thesupportedScopes
property, and adding additional paths for extension files. [1] [2] [3] [4] [5] [6]Testing improvements:
widgets/widgets/widget_1x1/widget_1x1.js
: Made changes to load alerts for all repositories in the project ifdata.repo
is not provided, update the function signature and call, and add logging statements. [1] [2] [3]Documentation updates:
overview.md
: Added information about a new pipeline task called "Advanced-Security-Review".Build and script updates:
make.ps1
: Updated the build script to accept the "publish" command, use the correct variable to create the extension, and add support for building both the dev and prod versions. [1] [2] [3]Other changes:
widgets/widgets/widget_2x1/widget_2x1.html
: Removed the unused import of "VSS/Authentication/Services".widgets/widgets/widget_1x1/configuration_1x1.html
: Made changes to handle undefined properties, use optional chaining, and improve code reuse. [1] [2] [3]widgets/widgets/widget_1x1/widget_1x1.html
: Made changes to add logging statements and update the function signature and calls. [1] [2]z-status.txt
: Added text to indicate changes made in branch..github/workflows/handle-versioning-accross-branches.yml
: Added a workflow file to handle versioning across branches.- PR-task: support multiple AlertTypes to checkAdd config and load option for "all repos in project" [Experimental]