You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/docs/content
6543 77e29e0c39
Extend issue template yaml engine (#29274)
Add new option:

`visible`: witch can hide a specific field of the form or the created
content afterwards

It is a string array witch can contain `form` and `content`. If only
`form` is present, it wont show up in the created issue afterwards and
the other way around. By default it sets both except for markdown

As they are optional and github don't have any similar thing, it is non
breaking and also do not conflict with it.

With this you can:
- define "post issue creation" elements like a TODO list to track an
issue state
- make sure to have a checkbox that reminds the user to check for a
thing but dont have it in the created issue afterwards
- define markdown for the created issue (was the downside of using yaml
instead of md in the past)
 - ...

## Demo

```yaml
name: New Contribution
description: External Contributor creating a pull

body:
- type: checkboxes
  id: extern-todo
  visible: [form]
  attributes:
    label: Contribution Guidelines
    options:
      - label: I checked there exist no similar feature to be extended
        required: true
      - label: I did read the CONTRIBUTION.MD 
        required: true
- type: checkboxes
  id: intern-todo
  visible: [content]
  attributes:
    label: Maintainer Check-List
    options:
      - label: Does this pull follow the KISS principe
      - label: Checked if internal bord was notifyed  
# ....
```
[Demo
Video](https://cloud.obermui.de/s/tm34fSAbJp9qw9z/download/vid-20240220-152751.mkv)


---
*Sponsored by Kithara Software GmbH*

---------

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
11 months ago
..
administration Breaking summary for template refactoring (#29395) 11 months ago
contributing Add `io.Closer` guidelines (#29387) 11 months ago
development Enable markdownlint `no-trailing-punctuation` and `no-blanks-blockquote` (#29214) 12 months ago
help Update FAQ about git hook problems (#29495) 11 months ago
installation Update some translations and fix markdown formatting (#29099) 12 months ago
usage Extend issue template yaml engine (#29274) 11 months ago
actions.en-us.md Docusaurus-ify (#26051) 2 years ago
administration.en-us.md Docusaurus-ify (#26051) 2 years ago
administration.zh-cn.md Docusaurus-ify (#26051) 2 years ago
contributing.en-us.md Docusaurus-ify (#26051) 2 years ago
development.en-us.md Docusaurus-ify (#26051) 2 years ago
development.zh-cn.md Docusaurus-ify (#26051) 2 years ago
help.en-us.md Docusaurus-ify (#26051) 2 years ago
help.zh-cn.md Docusaurus-ify (#26051) 2 years ago
index.en-us.md Update index doc (#26455) 1 year ago
index.zh-cn.md Update zh-cn documentation (#26406) 1 year ago
installation.en-us.md Docusaurus-ify (#26051) 2 years ago
installation.zh-cn.md Docusaurus-ify (#26051) 2 years ago
packages.en-us.md Docusaurus-ify (#26051) 2 years ago
search.en-us.md Docusaurus-ify (#26051) 2 years ago
search.nl-nl.md Docusaurus-ify (#26051) 2 years ago
search.pt-br.md Docusaurus-ify (#26051) 2 years ago
search.zh-cn.md Docusaurus-ify (#26051) 2 years ago
usage.en-us.md Docusaurus-ify (#26051) 2 years ago
usage.zh-cn.md Docusaurus-ify (#26051) 2 years ago