Required fields in issue template don't work in organization repositories #43859
-
Select Topic AreaBug BodyThe 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.
Replies: 4 comments 12 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.
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?