This module integrates with SonarCloud. Currently, the only functionality is to star a given repository in SonarCloud using the repository action.
To use this module, make sure it is enabled in RepoM by opening the menu and navigate to 'Plugins'. After enabling or disabling a plugin, you should restart RepoM.
This plugin has specific configuration stored in the following directory %APPDATA%/RepoM/Module/
. This configuration file should be edit manually. The safest way to do this is, is when RepoM is not running.
The following default configuration is used:
{
"Version": 1,
"Settings": {
"PersonalAccessToken": null,
"BaseUrl": "https://sonarcloud.io"
}
}
PersonalAccessToken
: Personal Access Token to access SonarCloud.BaseUrl
: SonarCloud url. Most likelyhttps//sonarcloud.io
.
This module contains the following methods, variables and/or constants:
Action to mark a repository as favorite within SonarCloud.
Properties:
name
: Name of the menu item. (Text)project
: The SonarCloud project key. (Text)context
: The context in which the action is available. (Context)active
: Whether the menu item is enabled. (Predicate)
- type: sonarcloud-set-favorite@1
name: Star repository on SonarCloud
project: "{{ my_sonarcloud_repository_id }}"
active: "!sonarcloud.is_favorite(my_sonarcloud_repository_id)"