Skip to content

Support for logical OR in plugins, i.e. one of these must succeed #76

@boudekerk

Description

@boudekerk

Within our company there are two Jira instances (merger/acquisition), and originally different teams used different instances, so we copied and renamed the CheckJira plugin for the second instance.

Now we're in the situation that for some projects multiple keys, from different instances should be allowed. We can probably solve that by using the CheckLog plugin, but the log messages become very unclear to users.

githooks.checkjira1.matchkey=\b[A-Z][A-Z]+\d?-\d+\b
githooks.checkjira1.require=false
githooks.checkjira2.matchkey=\b[A-Z][A-Z]+\d?-\d+\b
githooks.checkjira2.require=false
githooks.checklog.title-match=(\b[A-Z][A-Z]+\d?-\d+\b)|<CUSTOM COMMIT MESSAGE>

It would be nice if somehow multiple Jira instances could be supported with an option of requiring a valid jira key from one of the two.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions