From 9569780ab0390120505dcbfe7bc839733a7adb1b Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Fri, 21 Feb 2020 15:30:49 +0100 Subject: [PATCH 1/2] add mergeable --- .github/ISSUE_TEMPLATE/1_Bug_report.md | 2 ++ .github/ISSUE_TEMPLATE/2_Feature_request.md | 2 ++ .github/ISSUE_TEMPLATE/3_Support_question.md | 2 +- .github/mergeable.yaml | 20 ++++++++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/mergeable.yaml diff --git a/.github/ISSUE_TEMPLATE/1_Bug_report.md b/.github/ISSUE_TEMPLATE/1_Bug_report.md index 09852424b871..badb03e983dd 100644 --- a/.github/ISSUE_TEMPLATE/1_Bug_report.md +++ b/.github/ISSUE_TEMPLATE/1_Bug_report.md @@ -3,6 +3,8 @@ name: Bug Report about: Report errors and problems --- +# Bug Report + | Subject | Details | 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. From 1393af5619ed8984f0f0307377d0764f9d80f463 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Fri, 21 Feb 2020 15:37:48 +0100 Subject: [PATCH 2/2] symplify bug report template --- .github/ISSUE_TEMPLATE/1_Bug_report.md | 27 ++++++++------------------ 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/1_Bug_report.md b/.github/ISSUE_TEMPLATE/1_Bug_report.md index badb03e983dd..688a232ba123 100644 --- a/.github/ISSUE_TEMPLATE/1_Bug_report.md +++ b/.github/ISSUE_TEMPLATE/1_Bug_report.md @@ -7,28 +7,17 @@ about: Report errors and problems -| 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 | +| Subject | Details | +| :------------- | :---------------------------------------------------------------| +| Rector version | e.g. v0.7.0 (invoke `vendor/bin/rector --version`) | +| Installed as | composer dependency / prefixed Rector PHAR | -## Current Behaviour - - - + ## Minimal PHP Code Causing Issue - - - -```php - ## Expected Behaviour + +