add mergeable

This commit is contained in:
TomasVotruba 2020-02-21 15:30:49 +01:00
parent 33b7956c42
commit 9569780ab0
4 changed files with 25 additions and 1 deletions

View File

@ -3,6 +3,8 @@ name: Bug Report
about: Report errors and problems
---
# Bug Report
<!-- First, thank you for reporting a bug. That takes time and we appreciate that! -->
| Subject | Details |

View File

@ -3,6 +3,8 @@ name: Feature Request
about: RFC and ideas for new features and improvements
---
# Feature Request
<!-- First, thank you for making a request. That takes time and we appreciate that! -->
## Diff

View File

@ -3,4 +3,4 @@ name: Support Question
about: Questions about using this library
---
## Question
# Question

20
.github/mergeable.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
version: 2
mergeable:
- when: issues.opened
validate:
- do: description
or:
- and:
- must_include:
regex: '^# Bug Report'
- must_include:
regex: 'https:\/\/getrector\.org\/demo\/'
- must_exclude:
regex: '^# Bug Report'
fail:
- do: comment
payload:
body: >
This bug report is missing a link to reproduction on [getrector.org/demo](https://getrector.org/demo).
It will most likely be closed after manual review.