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

Allow using syntactic sugar in configuration file #9

Open
robertoaloi opened this issue Oct 14, 2020 · 0 comments
Open

Allow using syntactic sugar in configuration file #9

robertoaloi opened this issue Oct 14, 2020 · 0 comments

Comments

@robertoaloi
Copy link
Contributor

The tool aims to keep the configuration file structure in sync with the raw Bitbucket API structure. This may indeed simplify the tool, but also makes the configuration files complex and hard to read.

The proposal is to implement a mechanism that allows preprocessing the configuration file with a set of "parse transform-like" functions that could map a user-friendly structure to the raw format used internally in later stages.

The transforms shall also document the Yaml format they accept.

This would allow things like:

  • Using short names instead of long hook keys (e.g. http-get-post-receive-hook instead of de.aeffle.stash.plugin.stash-http-get-post-receive-hook:http-get-post-receive-hook).
  • Replace the admittedly terrible API of some plugin with something more user friendly.
  • Allow the same configuration file to transform to different raw representations based on Bitbucket version when there are API changes.
  • Group together settings logically instead of splitting them by plugin-boundary (I'm looking at you pr{{-restrictions}}, wz-branch-reviewers and wz-workflow elements).
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

No branches or pull requests

1 participant