Skip to content

Targets to match one tag out of multiple #85

@mlabbe

Description

@mlabbe

Is your feature request related to a problem? Please describe

I have a project with tag 'a' and a second project with tag 'b'. Is it possible to create a target with tags where if either 'a' OR 'b' is matched, then the task runs?

projects:
  proj_a:
    tags: [a]

  proj_b:
    tags: [b]

targets:
  a_or_b:
    tags: [a, b]

tasks:
  some_task:
    target:
      tags: [a, b]  

In this situation, mani run some_task says "no targets". This is because the projects only have one of the two tags.

Describe the solution you'd like

Possible solution would be to list multiple targets on a task, and if one is a match, then the task is ran.

Additional context

Thanks for your time and consideration!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions