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
151 changes: 151 additions & 0 deletions .github/DISCUSSION_TEMPLATE/questions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
labels: [question]
body:
- type: markdown
attributes:
value: |
Thanks for your interest in Asyncer! 🚀

Please follow these instructions, fill every question, and do every step. 🙏

I'm asking this because answering questions and solving problems in GitHub is what consumes most of the time.

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 questions.

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.

If more Asyncer users came to help others like them just a little bit more, it would be much less effort for them (and you and me 😅).

By asking questions in a structured way (following this) it will be much easier to help you.

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. 😎

As there are too many questions, I'll have to discard and 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. 🤓
- type: checkboxes
id: checks
attributes:
label: First Check
description: Please confirm and check all the following options.
options:
- label: I added a very descriptive title here.
required: true
- label: I used the GitHub search to find a similar question and didn't find it.
required: true
- label: I searched the Asyncer documentation, with the integrated search.
required: true
- label: I already searched in Google "How to X in Asyncer" and didn't find any information.
required: true
- label: I already read and followed all the tutorial in the docs and didn't find an answer.
required: true
- label: I already checked if it is not related to Asyncer but to [AnyIO](https://github.com/agronholm/anyio).
required: true
- label: I already checked if it is not related to Asyncer but to [Trio](https://github.com/python-trio/trio).
required: true
- type: checkboxes
id: help
attributes:
label: Commit to Help
description: |
After submitting this, I commit to one of:

* Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
* 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.
* Review one Pull Request by downloading the code and following all the review process](https://asyncer.tiangolo.com/help/#review-pull-requests).

options:
- label: I commit to help with one of those options 👆
required: true
- type: textarea
id: example
attributes:
label: Example Code
description: |
Please add a self-contained, [minimal, reproducible, example](https://stackoverflow.com/help/minimal-reproducible-example) with your use case.

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.

placeholder: |
import time

import anyio
from asyncer import asyncify


def do_sync_work(name: str):
time.sleep(1)
return f"Hello, {name}"


async def main():
message = await asyncify(do_sync_work)(name="World")
print(message)


anyio.run(main)
render: python
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: |
What is the problem, question, or error?

Write a short description telling me what you are doing, what you expect to happen, and what is currently happening.
placeholder: |
* Call a sync function from async code with asyncify().
* Print the result value.
* It only printed the value once, I expected it to call that function many times.
validations:
required: true
- type: dropdown
id: os
attributes:
label: Operating System
description: What operating system are you on?
multiple: true
options:
- Linux
- Windows
- macOS
- Other
validations:
required: true
- type: textarea
id: os-details
attributes:
label: Operating System Details
description: You can add more details about your operating system here, in particular if you chose "Other".
- type: input
id: asyncer-version
attributes:
label: asyncer Version
description: |
What Asyncer version are you using?

You can find the Asyncer version with:

```bash
python -c "import asyncer; print(asyncer.__version__)"
```
validations:
required: true
- type: input
id: python-version
attributes:
label: Python Version
description: |
What Python version are you using?

You can find the Python version with:

```bash
python --version
```
validations:
required: true
- type: textarea
id: context
attributes:
label: Additional Context
description: Add any additional context information or screenshots you think are useful.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ body:

Please follow these instructions, fill every question, and do every step. 🙏

I'm asking this because answering questions and solving problems in GitHub issues is what consumes most of the time.
I'm asking this because answering questions and solving problems in GitHub is what consumes most of the time.

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.
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 questions.

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.

Expand All @@ -21,16 +21,16 @@ body:

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. 😎

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. 🤓
As there are too many questions, I'll have to discard and 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. 🤓
- type: checkboxes
id: checks
attributes:
label: First Check
description: Please confirm and check all the following options.
options:
- label: I added a very descriptive title to this issue.
- label: I added a very descriptive title here.
required: true
- label: I used the GitHub search to find a similar issue and didn't find it.
- label: I used the GitHub search to find a similar question and didn't find it.
required: true
- label: I searched the Asyncer documentation, with the integrated search.
required: true
Expand All @@ -51,7 +51,7 @@ body:

* Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
* 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.
* Implement a Pull Request for a confirmed bug.
* Review one Pull Request by downloading the code and following all the review process](https://asyncer.tiangolo.com/help/#review-pull-requests).

options:
- label: I commit to help with one of those options 👆
Expand Down