Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ChangesetLabelCheck Rule #4

Open
pmaluf opened this issue May 2, 2023 · 0 comments
Open

New ChangesetLabelCheck Rule #4

pmaluf opened this issue May 2, 2023 · 0 comments

Comments

@pmaluf
Copy link

pmaluf commented May 2, 2023

It would be great to have a quality check of ChangesetLabelCheck with a ‘SEARCH_STRING’ and MESSAGE option. To enforce a certain string in the label like an ITSM ticket or change.

Ex.

Enforce every changeset to have a Jira ticket number on the label:

--changeset john.armless:1 labels:jira-1234 context:dev
create table person (
    id int primary key auto_increment not null,
    name varchar(50) not null,
    address1 varchar(50),
    address2 varchar(50),
    city varchar(30)
) 

SEARCH_STRING: (?i:jira-)[0-9]{3,6},?(.*)
MESSAGE: "Error: It is mandatory to associate the JIRA ticket number with the changeset. Ex. jira-1234"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant