make the right comparaison for the PR results #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request primarily focuses on refactoring and enhancing the functionality of the Sarif Viewer tool. The changes include updates to the SarifService and SarifViewerWindowFactory classes, the addition of a new data class, and a minor version update for the plugin.
Here are the key changes:
Plugin Version Update:
gradle.properties
: Updated thepluginUntilBuild
version from232.*
to233.*
.New Data Class Addition:
src/main/kotlin/com/github/adrienpessu/sarifviewer/models/BranchItemComboBox.kt
: Added a new data classBranchItemComboBox
to hold information about the pull request number, head, base, PR title, and commit.Updates to SarifService Class:
src/main/kotlin/com/github/adrienpessu/sarifviewer/services/SarifService.kt
: Several changes were made to this class, including importing new modules, refactoring theloadSarifFile
method togetSarifFromGitHub
which now returns a list ofSarifSchema210
objects, and adding a newanalyseResult
function to process a list ofResult
objects. [1] [2] [3] [4] [5]Updates to SarifViewerWindowFactory Class:
src/main/kotlin/com/github/adrienpessu/sarifviewer/toolWindow/SarifViewerWindowFactory.kt
: This class saw a series of changes including the addition of new imports, the replacement ofselectList
withcomboBranchPR
of typeBranchItemComboBox
, refactoring of theloadDataAndUI
method to include aselectedCombo
parameter, and significant updates to theextractSarif
andpopulateCombo
methods to accommodate these changes. [1] [2] [3] [4] [5] [6] [7] [8]