gitea/docs/content/usage
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>
2024-03-04 01:37:00 +01:00
..
actions Update docs about DEFAULT_ACTIONS_URL (#29442) 2024-02-27 09:18:35 +00:00
packages Docker Tag Information in Docs (#29047) 2024-02-16 21:22:00 +08:00
_index.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
_index.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
agit-support.en-us.md Update agit-support.en-us.md (#27652) 2023-10-17 17:53:36 +08:00
agit-support.zh-cn.md Change the default branch in the agit docs (#27621) 2023-10-14 09:50:23 -04:00
authentication.en-us.md Revert "Support SAML authentication (#25165)" (#29358) 2024-02-24 12:18:49 +08:00
authentication.zh-cn.md Fix some incorrect links in docs (#28191) 2023-11-24 13:57:09 +00:00
badge.en-us.md Implement actions badge svgs (#28102) 2024-02-27 18:56:18 +01:00
blame.en-us.md Support .git-blame-ignore-revs file (#26395) 2023-09-16 17:42:34 +00:00
clone-filter.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
clone-filter.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
code-owners.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
incoming-email.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
incoming-email.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
issue-pull-request-templates.en-us.md Extend issue template yaml engine (#29274) 2024-03-04 01:37:00 +01:00
issue-pull-request-templates.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
labels.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
labels.zh-cn.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
linked-references.en-us.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
linked-references.zh-cn.md Fix incorrect Chinese translation of linked-references.zh-cn.md (#27382) 2023-10-02 06:13:08 +00:00
merge-message-templates.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
merge-message-templates.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
multi-factor-authentication.en-us.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
permissions.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
permissions.zh-cn.md Update zh-cn documentation (#26406) 2023-08-14 01:35:49 -04:00
profile-readme.en-us.md Fix doc img path in profile readme (#28994) 2024-01-31 21:32:17 +08:00
profile-readme.zh-cn.md Update some translations and fix markdown formatting (#29099) 2024-02-11 19:03:49 +02:00
protected-tags.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
protected-tags.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
pull-request.en-us.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
pull-request.zh-cn.md Update documents to fix some links (#26885) 2023-09-03 18:45:20 +00:00
push.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
push.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
repo-mirror.en-us.md Update repo-mirror.en-us.md (#28612) 2023-12-27 00:36:11 +08:00
repo-mirror.zh-cn.md Update zh-cn documentation (#26406) 2023-08-14 01:35:49 -04:00
secrets.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
secrets.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
template-repositories.en-us.md Rephrase template documentation to be more clear about .gitea/template (#27450) 2023-10-06 14:51:33 +08:00
template-repositories.zh-cn.md Update zh-cn documentation (#26406) 2023-08-14 01:35:49 -04:00
webhooks.en-us.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00
webhooks.zh-cn.md Docusaurus-ify (#26051) 2023-07-26 04:53:13 +00:00