RepoZ icon indicating copy to clipboard operation
RepoZ copied to clipboard

Repository specific configuration, extending configuration

Open coenm opened this issue 3 years ago • 0 comments

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-actions of the base are shown,
  • then, the repository-actions of the repository config;
  • then the file-associations actions of the base;
  • and finally, the file-associations actions 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"
}

coenm avatar Mar 11 '22 16:03 coenm