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 Var.CI integration #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .varci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
ruleset:

welcome_me:

name: Introduce me to VarCI when I open a pull request
events: [ pull_request ]
when:
- action = "opened"
- user.login = "WyriHaximus"
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 = "WyriHaximus"
- 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 = "WyriHaximus"
- body matches "/^LGTM/"
merge: true