Required fields in issue template don't work in organization repositories #43859
Replies: 7 comments 17 replies
-
Same problem in my organization |
Beta Was this translation helpful? Give feedback.
-
Hi, this is by design and is documented here - https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms#about-yaml-syntax-for-issue-forms Would you mind sharing what forms you were looking to create with required fields to help the team better understand the use case? |
Beta Was this translation helpful? Give feedback.
-
@azenMatt - We also need required validations in our org for at least the Internal repositories. Especially as org admins, we can use GitHub issue templates to intake certain support requests and as people may miss out on filling required information this adds extra toil to reject such requests and going back to team members explaining what they missed, how to actually fill in the form etc. Not sure why this would be by design as it is already an optional attribute for public repos so why not make it the same for internal/private repos? Example of one such template: |
Beta Was this translation helpful? Give feedback.
-
Were you able to find a workaround @fmal? I have the same issue and it's also an issue with aplying automatic labels by using: labels: ["Bug Report"] This is also something that works great when it's not under an enterprise plan. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@jefferyjob yes, there is, see the Note: at the last section of https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms#about-yaml-syntax-for-issue-forms. @azenMatt point me to one person that thinks this would by design be useful only for public organisations. I cannot imagine you need an example of use cases for this, it's like saying we need to provide usecases for existence of Github Issues 😆 unless you want us to go back to Jira... 🚶🏻♂️ Selecting whether the issue is for DEV or PROD, requiring the reporter to enter the app version string against which the bug occurred, etc. etc. |
Beta Was this translation helpful? Give feedback.
-
Good News: "required" is now working in Internal Repos! |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
The same issue template used in a personal repository and in an enterprise org repo behaves differently.
Fields marked as required using
are correctly marked and validated as required in personal repositories (example https://github.com/michalandrzejczak/issue-templates-test/issues/new/choose), but the very same template moved to enterprise organization repo results in all fields being optional (no asterisks next to field labels and no validation)
Llooks as if validations were completely ignored in enterprise org repos.
Beta Was this translation helpful? Give feedback.
All reactions