]> source.dussan.org Git - gitea.git/commit
Support setting the `default` attribute of the issue template dropdown field (#31045...
authorGiteabot <teabot@gitea.io>
Fri, 24 May 2024 03:01:09 +0000 (11:01 +0800)
committerGitHub <noreply@github.com>
Fri, 24 May 2024 03:01:09 +0000 (11:01 +0800)
commit7d56ee3c0f7fae34131a82d44599a4caa09ad0ec
tree24807cbeee839971a7dc6d9ce008a661ea0b971d
parent2e90b80d6411ca3cae006d94f623a2d993557de0
Support setting the `default` attribute of the issue template dropdown field (#31045) (#31059)

Backport #31045 by @Zettat123

Fix #31044

According to [GitHub issue template
documentation](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema#attributes-for-dropdown),
the `default` attribute can be used to specify the preselected option
for a dropdown field.

Co-authored-by: Zettat123 <zettat123@gmail.com>
modules/issue/template/template.go
modules/issue/template/template_test.go
templates/repo/issue/fields/dropdown.tmpl