RepoZ
RepoZ copied to clipboard
Repository specific configuration, extending configuration
PR for #161
- Implement repository specific configuration.
- Add browser action support;
- Configurable submenu support;
- Redirecting to other configuration files;
Repository specific configuration
- first load default RepositoryActions.json;
- then, if exists, load {repo path}/.git/RepositoryActions.json
- when not exist, try to load {repo path}/RepositoryActions.json
The context menu per repo would be like:
- First, the
repository-actionsof the base are shown, - then, the
repository-actionsof the repository config; - then the
file-associationsactions of the base; - and finally, the
file-associationsactions of the repository config.
Add browser action support
This action will open the default browser with the provided url.
"repository-actions":
[
{
"name": "DevOps Repo Test Automation",
"command": "browser",
"arguments": "https://dev.azure.com/my/url/to/testautomation/",
"active": "true"
}
]
Configurable submenu support;
This action will create a submenu
"repository-actions":
[
{
"name": "DevOps",
"active": "true",
"subfolder":
[
{
"name": "DevOps Pipelines",
"command": "browser",
"arguments": "https://url/to/pipelines",
"active": "true"
},
{
"name": "DevOps Test Automation",
"command": "browser",
"arguments": "https://url/to/test/automation",
"active": "true"
}
]
}
]
Redirecting to other configuration files
This action will rediect to an other configuration file making it possible to link to actions in your OneDrive folder etc.
{
"redirect": "%SHARED_REPOZ_CONFIG_PATH%\\ProjectX\\RepositoryActions.json"
}