See [here](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms). Examples can be found e.g. [here](https://github.com/pypa/pypi-support/issues/new/choose). A PR should basically convert the existing templates into the form layout.