🔧 Add updated issue templates (#323)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sebastián Ramírez · committed by GitHub · parent 45179f0 · Browse files · 6 files·+328 added−131 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+328 added−131 removed
- other:+328 added−131 removed
Provenance
- Commit
7cb5c73- Tree
e6d6b57- Author
Sebastián Ramírez <tiangolo@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
45179f0
6 files changed+328 added−131 removed
deleted:.github/ISSUE_TEMPLATE/bug_report.md-80 removed
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980---name: Bug reportabout: Create a report to help us improvetitle: "[BUG]"labels: bugassignees: ''
---
### Describe the bug
Write here a clear and concise description of what the bug is.
### To Reproduce
Steps to reproduce the behavior with a minimum self-contained file.
Replace each part with your own scenario:
* Create a file `main.py` with:
```Pythonimport typer
app = typer.Typer()
@app.command()def hello(name: str): typer.echo(f"Hello {name}")
if __name__ == "__main__": app()```
* Call it with:
```bashpython main.py Camila```
* It outputs:
```Hello Camila```
* But I expected it to output:
```Hello World```
### Expected behavior
Add a clear and concise description of what you expected to happen.
### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
* OS: [e.g. Linux / Windows / macOS]* Typer Version [e.g. 0.3.0], get it with:
```bashpython -c "import typer; print(typer.__version__)"```
* Python version, get it with:
```bashpython --version```
### Additional context
Add any other context about the problem here.added:.github/ISSUE_TEMPLATE/config.yml+4 added
1234blank_issues_enabled: falsecontact_links: - name: Security Contact about: Please report security vulnerabilities to security@tiangolo.comdeleted:.github/ISSUE_TEMPLATE/feature_request.md-26 removed
1234567891011121314151617181920212223242526---name: Feature requestabout: Suggest an idea for this projecttitle: "[FEATURE]"labels: enhancementassignees: ''
---
### Is your feature request related to a problem
Is your feature request related to a problem?
Add a clear and concise description of what the problem is. Ex. I want to be able to [...] but I can't because [...]
### The solution you would like
Add a clear and concise description of what you want to happen.
### Describe alternatives you've considered
Add a clear and concise description of any alternative solutions or features you've considered.
### Additional context
Add any other context or screenshots about the feature request here.added:.github/ISSUE_TEMPLATE/feature-request.yml+179 added
1+name: Feature Request2+description: Suggest an idea or ask for a feature that you would like to have in Typer3+labels: [enhancement]4+body:5+ - type: markdown6+ attributes:7+ value: |8+ Thanks for your interest in Typer! 🚀9+10+ Please follow these instructions, fill every question, and do every step. 🙏11+ 12+ I'm asking this because answering questions and solving problems in GitHub issues is what consumes most of the time.13+ 14+ I end up not being able to add new features, fix bugs, review pull requests, etc. as fast as I wish because I have to spend too much time handling issues.15+16+ All that, on top of all the incredible help provided by a bunch of community members that give a lot of their time to come here and help others.17+18+ If more Typer users came to help others like them just a little bit more, it would be much less effort for them (and you and me 😅).19+20+ By asking questions in a structured way (following this) it will be much easier to help you.21+ 22+ And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎23+24+ As there are too many issues with questions, I'll have to close the incomplete ones. That will allow me (and others) to focus on helping people like you that follow the whole process and help us help you. 🤓25+ - type: checkboxes26+ id: checks27+ attributes:28+ label: First Check29+ description: Please confirm and check all the following options.30+ options:31+ - label: I added a very descriptive title to this issue.32+ required: true33+ - label: I used the GitHub search to find a similar issue and didn't find it.34+ required: true35+ - label: I searched the Typer documentation, with the integrated search.36+ required: true37+ - label: I already searched in Google "How to X in Typer" and didn't find any information.38+ required: true39+ - label: I already read and followed all the tutorial in the docs and didn't find an answer.40+ required: true41+ - label: I already checked if it is not related to Typer but to [Click](https://github.com/pallets/click).42+ required: true43+ - type: checkboxes44+ id: help45+ attributes:46+ label: Commit to Help47+ description: |48+ After submitting this, I commit to one of:49+ 50+ * Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.51+ * I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.52+ * Implement a Pull Request for a confirmed bug.53+54+ options:55+ - label: I commit to help with one of those options 👆56+ required: true57+ - type: textarea58+ id: example59+ attributes:60+ label: Example Code61+ description: |62+ Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.63+64+ If I (or someone) can copy it, run it, and see it right away, there's a much higher chance I (or someone) will be able to help you.65+66+ placeholder: |67+ import typer68+69+70+ def main(name: str):71+ typer.echo(f"Hello {name}")72+73+74+ if __name__ == "__main__":75+ typer.run(main)76+ render: python77+ validations:78+ required: true79+ - type: textarea80+ id: description81+ attributes:82+ label: Description83+ description: |84+ What is your feature request?85+86+ Write a short description telling me what you are trying to solve and what you are currently doing.87+ placeholder: |88+ * Create a Typer CLI that says "Hello".89+ * Run it on the command line without a name.90+ * I would like it to use Privacy-Aware Artificial Intelligence based on Block Chain and predict my name without me typing it.91+ validations:92+ required: true93+ - type: textarea94+ id: wanted-solution95+ attributes:96+ label: Wanted Solution97+ description: |98+ Tell me what's the solution you would like.99+ placeholder: |100+ I would like it to say my name without me having to type it.101+ validations:102+ required: true103+ - type: textarea104+ id: wanted-code105+ attributes:106+ label: Wanted Code107+ description: Show me an example of how you would want the code to look like.108+ placeholder: |109+ import typer110+111+112+ def main(name: str):113+ typer.guess_name(f"Hello {name}")114+115+116+ if __name__ == "__main__":117+ typer.run(main)118+ render: python119+ validations:120+ required: true121+ - type: textarea122+ id: alternatives123+ attributes:124+ label: Alternatives125+ description: |126+ Tell me about alternatives you've considered.127+ placeholder: |128+ To hardcode my name, so that if I don't type it it will be the default.129+ - type: dropdown130+ id: os131+ attributes:132+ label: Operating System133+ description: What operating system are you on?134+ multiple: true135+ options:136+ - Linux137+ - Windows138+ - macOS139+ - Other140+ validations:141+ required: true142+ - type: textarea143+ id: os-details144+ attributes:145+ label: Operating System Details146+ description: You can add more details about your operating system here, in particular if you chose "Other".147+ - type: input148+ id: typer-version149+ attributes:150+ label: Typer Version151+ description: |152+ What Typer version are you using?153+154+ You can find the Typer version with:155+156+ ```bash157+ python -c "import typer; print(typer.__version__)"158+ ```159+ validations:160+ required: true161+ - type: input162+ id: python-version163+ attributes:164+ label: Python Version165+ description: |166+ What Python version are you using?167+168+ You can find the Python version with:169+170+ ```bash171+ python --version172+ ```173+ validations:174+ required: true175+ - type: textarea176+ id: context177+ attributes:178+ label: Additional Context179+ description: Add any additional context information or screenshots you think are useful.deleted:.github/ISSUE_TEMPLATE/question.md-25 removed
12345678910111213141516171819202122232425---name: Questionabout: Ask a questiontitle: "[QUESTION]"labels: questionassignees: ''
---
### First check
* [ ] I used the GitHub search to find a similar issue and didn't find it.* [ ] I searched the Typer documentation, with the integrated search.* [ ] I already searched in Google "How to X in Typer" and didn't find any information.* [ ] I already searched in Google "How to X in Click" and didn't find any information.
### Description
How can I [...]?
Is it possible to [...]?
### Additional context
Add any other context or screenshots about the feature request here.added:.github/ISSUE_TEMPLATE/question.yml+145 added
1+name: Question or Problem2+description: Ask a question or ask about a problem3+labels: [question]4+body:5+ - type: markdown6+ attributes:7+ value: |8+ Thanks for your interest in Typer! 🚀9+10+ Please follow these instructions, fill every question, and do every step. 🙏11+ 12+ I'm asking this because answering questions and solving problems in GitHub issues is what consumes most of the time.13+ 14+ I end up not being able to add new features, fix bugs, review pull requests, etc. as fast as I wish because I have to spend too much time handling issues.15+16+ All that, on top of all the incredible help provided by a bunch of community members that give a lot of their time to come here and help others.17+18+ If more Typer users came to help others like them just a little bit more, it would be much less effort for them (and you and me 😅).19+20+ By asking questions in a structured way (following this) it will be much easier to help you.21+ 22+ And there's a high chance that you will find the solution along the way and you won't even have to submit it and wait for an answer. 😎23+24+ As there are too many issues with questions, I'll have to close the incomplete ones. That will allow me (and others) to focus on helping people like you that follow the whole process and help us help you. 🤓25+ - type: checkboxes26+ id: checks27+ attributes:28+ label: First Check29+ description: Please confirm and check all the following options.30+ options:31+ - label: I added a very descriptive title to this issue.32+ required: true33+ - label: I used the GitHub search to find a similar issue and didn't find it.34+ required: true35+ - label: I searched the Typer documentation, with the integrated search.36+ required: true37+ - label: I already searched in Google "How to X in Typer" and didn't find any information.38+ required: true39+ - label: I already read and followed all the tutorial in the docs and didn't find an answer.40+ required: true41+ - label: I already checked if it is not related to Typer but to [Click](https://github.com/pallets/click).42+ required: true43+ - type: checkboxes44+ id: help45+ attributes:46+ label: Commit to Help47+ description: |48+ After submitting this, I commit to one of:49+ 50+ * Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.51+ * I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.52+ * Implement a Pull Request for a confirmed bug.53+54+ options:55+ - label: I commit to help with one of those options 👆56+ required: true57+ - type: textarea58+ id: example59+ attributes:60+ label: Example Code61+ description: |62+ Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.63+64+ If I (or someone) can copy it, run it, and see it right away, there's a much higher chance I (or someone) will be able to help you.65+66+ placeholder: |67+ import typer68+69+70+ def main(name: str):71+ typer.echo(f"Hello {name}")72+73+74+ if __name__ == "__main__":75+ typer.run(main)76+ render: python77+ validations:78+ required: true79+ - type: textarea80+ id: description81+ attributes:82+ label: Description83+ description: |84+ What is the problem, question, or error?85+86+ Write a short description telling me what you are doing, what you expect to happen, and what is currently happening.87+ placeholder: |88+ * Create a small Typer script.89+ * Open a Terminal with Ninja-Turtle-Shell.90+ * Trigger autocompletion hitting TAB.91+ * I don't see any completion in the terminal using Ninja-Turtle-Shell.92+ * I expected to see autocompletion there.93+ validations:94+ required: true95+ - type: dropdown96+ id: os97+ attributes:98+ label: Operating System99+ description: What operating system are you on?100+ multiple: true101+ options:102+ - Linux103+ - Windows104+ - macOS105+ - Other106+ validations:107+ required: true108+ - type: textarea109+ id: os-details110+ attributes:111+ label: Operating System Details112+ description: You can add more details about your operating system here, in particular if you chose "Other".113+ - type: input114+ id: typer-version115+ attributes:116+ label: Typer Version117+ description: |118+ What Typer version are you using?119+120+ You can find the Typer version with:121+122+ ```bash123+ python -c "import typer; print(typer.__version__)"124+ ```125+ validations:126+ required: true127+ - type: input128+ id: python-version129+ attributes:130+ label: Python Version131+ description: |132+ What Python version are you using?133+134+ You can find the Python version with:135+136+ ```bash137+ python --version138+ ```139+ validations:140+ required: true141+ - type: textarea142+ id: context143+ attributes:144+ label: Additional Context145+ description: Add any additional context information or screenshots you think are useful.