You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#37
Add functionality to sort plugins by the number of installations.
* Add a new command-line option `--sort-by-installations` in `plugin-modernizer-cli/src/main/java/io/jenkins/tools/pluginmodernizer/cli/Main.java` to enable sorting of plugins by the number of installations.
* Implement a method `sortPluginsByInstallations` in `Main.java` to sort the plugins by the number of installations.
* Update the `run` method in `Main.java` to call the `sortPluginsByInstallations` method if the `--sort-by-installations` option is provided.
* Add a test method `testSortPluginsByInstallations` in `plugin-modernizer-cli/src/test/java/io/jenkins/tools/pluginmodernizer/cli/MainTest.java` to verify the sorting functionality.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gounthar/plugin-modernizer-tool/issues/37?shareId=XXXX-XXXX-XXXX-XXXX).
Current Functionality
The tool currently accepts a list of plugins via command line input or through a file containing one plugin per line.
Enhanced Metadata Collection
We have been accumulating increasingly comprehensive metadata about plugins, including:
Proposed Feature
To leverage this rich metadata, we suggest implementing either:
This new functionality would:
Primary Sorting Criterion
The initial implementation would sort plugins by the number of installations, with the most installed plugins appearing first.
Benefits
Next Steps
We welcome feedback and suggestions on this proposal to enhance our plugin management capabilities.
The text was updated successfully, but these errors were encountered: