awaescher / RepoZ

👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements
MIT License
1.01k stars 91 forks source link

Repository specific configuration, extending configuration #162

Open coenm opened 2 years ago

coenm commented 2 years ago

PR for #161

Repository specific configuration

The context menu per repo would be like:

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"
}