diff --git a/.github/ISSUE_TEMPLATE/1_Bug_report.md b/.github/ISSUE_TEMPLATE/1_Bug_report.md index 09852424b871..688a232ba123 100644 --- a/.github/ISSUE_TEMPLATE/1_Bug_report.md +++ b/.github/ISSUE_TEMPLATE/1_Bug_report.md @@ -3,30 +3,21 @@ name: Bug Report about: Report errors and problems --- - +# Bug Report -| Subject | Details | -| :------------- | :-------------------------------------------------------------------- | -| Rector version | e.g. v0.6.13 (invoke `vendor/bin/rector --version`) | -| PHP version | e.g. PHP 7.3 (invoke `php -v`) | -| Full Command | e.g. vendor/bin/rector process /src --set dead-code --debug | -| Demo link | e.g. https://getrector.org/demo/32c939ca-6441-47e4-8bfd-704ce37167e7 | -| rector.yaml | If you used own `rector.yaml` please provide its content | + -## Current Behaviour +| Subject | Details | +| :------------- | :---------------------------------------------------------------| +| Rector version | e.g. v0.7.0 (invoke `vendor/bin/rector --version`) | +| Installed as | composer dependency / prefixed Rector PHAR | - - + ## Minimal PHP Code Causing Issue - - - -```php - ## Expected Behaviour + + diff --git a/.github/ISSUE_TEMPLATE/2_Feature_request.md b/.github/ISSUE_TEMPLATE/2_Feature_request.md index 00c7ccdd5029..f2b756f9a0f9 100644 --- a/.github/ISSUE_TEMPLATE/2_Feature_request.md +++ b/.github/ISSUE_TEMPLATE/2_Feature_request.md @@ -3,6 +3,8 @@ name: Feature Request about: RFC and ideas for new features and improvements --- +# Feature Request + ## Diff diff --git a/.github/ISSUE_TEMPLATE/3_Support_question.md b/.github/ISSUE_TEMPLATE/3_Support_question.md index 429456415f7c..7e20b3eebcad 100644 --- a/.github/ISSUE_TEMPLATE/3_Support_question.md +++ b/.github/ISSUE_TEMPLATE/3_Support_question.md @@ -3,4 +3,4 @@ name: Support Question about: Questions about using this library --- -## Question +# Question diff --git a/.github/mergeable.yaml b/.github/mergeable.yaml new file mode 100644 index 000000000000..b2efbfbb72b7 --- /dev/null +++ b/.github/mergeable.yaml @@ -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.