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

Add number in the list of properties supported for rules #1091

Merged
merged 5 commits into from
May 3, 2023
Merged

Add number in the list of properties supported for rules #1091

merged 5 commits into from
May 3, 2023

Conversation

chicco785
Copy link
Contributor

fixes #1079

Copy link
Owner

@mikepenz mikepenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contribution!

@mikepenz mikepenz changed the title add number in the list of properties supported for rules Add number in the list of properties supported for rules May 3, 2023
})


it('Use Rules to get current open PR and merged categorised.', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikepenz thanks for your support!

I have the feeling I am doing something wrong.... to check if the rules works correctly, i added a test. it seems that rules are combined with and logic and due to that, no output is generated in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ps: sorry that my linter messed up :(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikepenz to solve the issue, I introduced an additional configuration that allows to define whether rules are exclusive or not: category.exclusive_rules. When this value is not set, to guarantee backward compatibility, it is set to the same value as category.exhaustive.

I locally run tests, and all passes, including the one i defined.

@mikepenz mikepenz merged commit d594c56 into mikepenz:develop May 3, 2023
@mikepenz
Copy link
Owner

mikepenz commented May 3, 2023

Thank you very much for the contribution. Decided to rename exclusive again to exhaustive to keep it in line with the current naming scheme

@chicco785
Copy link
Contributor Author

Thank you very much for the contribution. Decided to rename exclusive again to exhaustive to keep it in line with the current naming scheme

Thank you for accepting my contribute!

@chicco785 chicco785 deleted the add-pr-number-#1079 branch May 3, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

include current PR but not other open PRs
2 participants