feat: provide easy way to update snyk-ls in CLI [IDE-144] #5067
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.
Pull Request Submission
Please check the boxes once done.
The pull request must:
feat:
orfix:
, others might be used in rare occasions as well, if there is no need to document the changes in the release notes. The changes or fixes should be described in detail in the commit message for the changelog & release notes.What does this PR do?
This commit just refactors the existent script that covered only go-application-framework, to now support any dependency in the snyk github organization.
It does that by introducing a new optional
--name
parameter that should contain the github repository name.If not called with this parameter, it will update go-application-framework and snyk-ls.
It should be considered, whether this should be made part of the pipeline or not, e.g.
Where should the reviewer start?
At the changed file
How should this be manually tested?
Execute the python script (ensure to have python3)
Any background context you want to provide?
As we bundle Snyk-LS into the CLI, it is important to always bundle the latest version. This scripts facilitates the change. A followup will or may be that the LS pipeline automatically creates a PR for any merge to LS main branch.
What are the relevant tickets?
IDE-144
Screenshots
Additional questions