Can we add complex logic in the pipeline trigger?

If a pipeline needs complex trigger logic like:

"refs/pull/**" && "refs/heads/release*"

Can we do this in the drone configuration? See more context at CI: duplicate CI run with only chat notification · Issue #4460 · owncloud/ocis · GitHub?

Note: The starlark language is used to generate the yaml config file.

Thanks in advance.

Hey @kiran the logic you are looking for should be here - Triggers | Drone

I think a commit can only have one ref so I’m not sure your logic would work - instead you could make use of refs and actions

Or maybe use branch or target