Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 10 additions & 19 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,21 @@ name: Bug Report
about: Report errors and problems
---

<!-- First, thank you for reporting a bug. That takes time and we appreciate that! -->
# 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 |
<!-- First, thank you for reporting a bug. That takes time and we appreciate that! -->

## Current Behaviour
| Subject | Details |
| :------------- | :---------------------------------------------------------------|
| Rector version | e.g. v0.7.0 (invoke `vendor/bin/rector --version`) |
| Installed as | composer dependency / prefixed Rector PHAR |

<!-- report from command line with --debug -->
<!-- description/screenshot -->
<!-- Please describe your problem here. -->

## Minimal PHP Code Causing Issue

<!-- if possible, always run Rector on specfic file, that causes the error -->
<!-- e.g. vendor/bin/rector process /src/SpecificFile.php --set dead-code --debug -->

```php
<?php

// put file content here
```
<!-- Try to reproduce the issue using https://getrector.org/demo/ and post the URL here. -->

## Expected Behaviour

<!-- Was the change done incorrectly? Or should Rector skip it? -->
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE/2_Feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/3_Support_question.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: Support Question
about: Questions about using this library
---

## Question
# Question
20 changes: 20 additions & 0 deletions .github/mergeable.yaml
Original file line number Diff line number Diff line change
@@ -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.