Skip to content

Conditional recipes #320

@jonesbusy

Description

@jonesbusy

What feature do you want to see added?

The recipes.yml is a quite flat structure of recipes that OpenRewrite can understand.

But we cannot just apply recipes blindly on all plugins because they depend on the context and the nature of the plugin

The idea is to build some simple rules based on PluginMetadata flag

One very simple example (We need to see about the format. File ? Directly on the code ?)

rules:
    - recipe: AddGitHubSecurityWorlfow
      conditions:
         - "not IS_API_PLUGIN"
         - "HAS_SOURCE_FILE"

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Target date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions