Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository specific configuration, extending configuration #162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

coenm
Copy link
Contributor

@coenm coenm commented Mar 11, 2022

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

add browser action support;
Redirecting to other configuration files;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant