Issue Template forms: Allow validation rules (maxLength, regex etc) #10227
Unanswered
cliffordfajardo
asked this question in
Projects and Issues
Replies: 1 comment 1 reply
-
I've mentioned a few people below who are very active & maintain some of the most widely popular github repositories in their respective areas. They will probably have a better sense of what would be helpful & may have better ideas than what I mentioned 😅 : react-query: @TkDodo , @tannerlinsley, @arnaudbzn |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I absolutely love Github's new Issue template forms ❤️
They have helped increase the quality of issue reports significantly. For example, if you look at the following issues in these repos from the last month (since we added Template forms), user issued reports have increased significantly, and even as a non-maintainer of some repos, I can follow along & learn from these reproducible code examples members of the community are sharing in their issue reports:
Problem Statement
Currently there is no way to add more granular validation rules to
ISSUE_TEMPLATE
file.As a result of this, people can dupe required fields in the template form. For example in the image below, a user submitted a codesanbox link which is not valid.
This is a big problem. How/Why?
To give some context for readers who stumble upon this post I'm writing:
In frontend/UI related repositories, we require user's to submit a
codesanbox.io
URL to a small reproducible code example. The purpose of this is many:Solutions Considered
ISSUE_TEMPLATE
file:CleanShot.2022-01-17.at.07.18.49.mp4
Example of Issue in Real life:
Related Discussions
Additional Resources
In case anyone from the community wants to learn more about Github issue templates check out the links below 😄
official github docs
a real example of an awesome github
ISSUE_TEMPLATE
for copy-pasting (ISSUE_TEMPLATE/bug_report.yml )Beta Was this translation helpful? Give feedback.
All reactions