Add issue templates

Add issue templates for 

- Bug reports
- Feature requests
- Unknown telegram errors
- Parse errors
This commit is contained in:
Waffle Lapkin 2020-10-20 14:38:36 +03:00 committed by GitHub
parent da13aedeb1
commit 5508911904
4 changed files with 107 additions and 0 deletions

25
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
I tried this code:
```rust
<code>
```
I expected to see this happen: _explanation_
Instead, this happened: _explanation_
## Meta
- `teloxide` version: <!-- (e.g.: `0.3.1`) -->
- rustc version:
```
<version>
```
<!-- use `rustc --version --verbose` to get it -->

View file

@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Feature Request: <feature>'
labels: feature-request
assignees: Hirrolot, WaffleLapkin
---
<!-- Describe your idea here -->
### Pros
<!-- Describe good parts of your idea -->
### Cons
<!-- Describe bad parts of your idea -->
### Alternatives
<!-- Of any, describe alternatives here -->

30
.github/ISSUE_TEMPLATE/parse-error.md vendored Normal file
View file

@ -0,0 +1,30 @@
---
name: Parse error
about: Report issue with `teloxide` parsing of telegram response
title: 'Parse Error: <type or error description>'
labels: FIXME, bug
assignees: WaffleLapkin
---
When using `<...>` method I've got `RequestError::InvalidJson` error with the following description:
```text
<Description of the inner serde error here>
```
## Steps to reproduce
<!-- Steps to reproduce the issue - get the same error -->
## Meta
- `teloxide` version: <!-- (e.g.: `0.3.1`) -->
- rustc version:
```
<version>
```
<!-- use `rustc --version --verbose` to get it -->
### Additional context
<!-- Describe any additional context here, if needed-->

View file

@ -0,0 +1,30 @@
---
name: Unknown telegram error
about: You've found telegram error which is not known to teloxide
title: 'Unknown Error: <error description>'
labels: FIXME, bug, good first issue
assignees: ''
---
When using `<...>` method I've got `ApiError::Unknown` error with the following description:
```text
<Description of the error here (an inner string of ApiError::Unknown)>
```
## Steps to reproduce
<!-- Steps to reproduce the issue - get the same error -->
## Meta
- `teloxide` version: <!-- (e.g.: `0.3.1`) -->
- rustc version:
```
<version>
```
<!-- use `rustc --version --verbose` to get it -->
### Additional context
<!-- Describe any additional context here, if needed-->