benr77 / obsidian-gitlab-issues

Obsidian plugin to create/update/remove notes based on GitLab issues
MIT License
28 stars 15 forks source link

[API][RULES] A user should set several rules to select the issues #19

Open leroycharles opened 1 year ago

leroycharles commented 1 year ago

Is your feature request related to a problem? Please describe. Current behavior allow wanted issues to be selected, formatted in a template and stored in a given directory. All issues uses the same templates and are sent to the same directory.

Describe the solution you'd like This behavior should be refined in rules giving the user the ability to select a given type of issue, apply the template and store them in a given directory. Each rule would be executed individually. Example:

  1. Rule 1 'issue opened' is using template A and stores the corresponding notes in dir_alpha
  2. Rule 2 'issue closed' is using template B and stores the corresponding notes in dir_alpha
  3. Rule 3 'label is lbl' is using template C and stores the corresponding notes in dir_bravo
  4. Rule 4 'is opened, label is lbl, author is Human' is using template C and stores the corresponding notes in dir_alpha

Describe alternatives you've considered Endlessly changing the config and the token when needed (extremely time consuming)

Additional context The instance and the personal token should remain the same.

benr77 commented 1 year ago

This is something I'm considering, so thanks for the detailed description.

Basically a duplicate of #9.