From 0e7a50edafb8cac98d8e90e2280a37e23cf7294e Mon Sep 17 00:00:00 2001 From: Miguel Piedrafita Date: Tue, 6 Dec 2016 21:34:36 +0100 Subject: [PATCH] Add Var.CI bot config --- .varci.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .varci.yml diff --git a/.varci.yml b/.varci.yml new file mode 100644 index 0000000..aa0b045 --- /dev/null +++ b/.varci.yml @@ -0,0 +1,46 @@ +ruleset: + + welcome_me: + + name: Introduce me to VarCI when I open a pull request + events: [ pull_request ] + when: + - action = "opened" + - user.login = "m1guelpf" + comment: | + Welcome to VarCI @{{ user.login }}! + + Continue pushing changes to the config in this branch and I'll validate the changes. + + You can also test out new rules in your pull requests before merging them. + + For example, try triggering the second rule by mentioning me (@VarCI-bot) right now! + + respond_to_me: + + name: Respond to me when I comment mentioning @VarCI-bot + events: [ issue_comment ] + when: + - action = "created" + - user.login = "m1guelpf" + - body contains "@VarCI-bot" + comment: | + Perfect @{{ user.login }} - now replace the first two rules with your own! + + If you wish to keep the third rule, you can merge by starting a comment with "LGTM". + + Please see the following resources if you get stuck - best of luck! + + - [Documentation](https://var.ci/docs) + - [Support](https://var.ci/support) + + merge_for_me: + + name: Merge pull requests for me when I start a comment with "LGTM" + events: [ issue_comment ] + when: + - action = "created" + - user.login = "m1guelpf" + - body matches "/^LGTM/" + merge: true +