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

Split conditions and actions #23

Merged
merged 12 commits into from Aug 19, 2018
Merged

Split conditions and actions #23

merged 12 commits into from Aug 19, 2018

Conversation

bobvanderlinden
Copy link
Owner

To be able to more cleanly allow multiple rules to be configured, condition evaluation needed to be split up from action determination.

This PR split the pull request status into multiple conditions (each as their own file in src/conditions). From the conditions, the actions to be executed are determined. The actions are defined as merge, update_branch, delete_branch and reschedule. Executing the actions is also separate. This was not strictly needed to allow multiple rules, but it did allow for cleaner tests with less mocking.

@probot-auto-merge probot-auto-merge bot merged commit 4217ce7 into master Aug 19, 2018
@probot-auto-merge probot-auto-merge bot deleted the pr-split-conditions branch August 19, 2018 17:29
@bobvanderlinden
Copy link
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

1 participant