0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-28 16:14:41 +01:00
gitea/templates/repo
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 Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
branch Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
cite
code Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
diff Fix incorrect redirection when creating a PR fails (#29537) 2024-03-02 12:45:14 +00:00
editor Fix incorrect tree path value for patch editor (#29377) 2024-02-26 09:05:22 +00:00
find
graph
issue Extend issue template yaml engine (#29274) 2024-03-04 01:37:00 +01:00
migrate Refactor Safe modifier (#29392) 2024-02-25 10:45:56 +00:00
projects
pulls Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
release Fix a bug returning 404 when display a single tag with no release (#29466) 2024-03-02 14:03:39 +00:00
settings Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-01 10:16:19 +00:00
tag
wiki Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
activity.tmpl Implement recent commits graph (#29210) 2024-02-24 10:22:51 +00:00
blame.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
branch_dropdown.tmpl Rework spellchecking, add lint-spell (#29106) 2024-02-09 03:59:39 +00:00
clone_buttons.tmpl
clone_script.tmpl Fix URL calculation in clone input box (#29470) 2024-02-28 15:04:04 +00:00
code_frequency.tmpl Implement code frequency graph (#29191) 2024-02-23 23:41:24 +00:00
commit_load_branches_and_tags.tmpl Wrap contained tags and branches again (#29021) 2024-02-02 04:51:09 +00:00
commit_page.tmpl Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-01 10:16:19 +00:00
commit_status.tmpl
commit_statuses.tmpl Show commit status for releases (#29149) 2024-02-19 10:27:05 +00:00
commits.tmpl
commits_list.tmpl Show View at this point in history for every commit (#29122) 2024-02-13 09:07:59 +01:00
commits_list_small.tmpl
commits_table.tmpl
contributors.tmpl Deduplicate translations for contributors graph (#29256) 2024-02-19 12:47:38 +00:00
create.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
create_helper.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
empty.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl Use a predictiable fork URL to allow forking repositories without providing a repo ID (#29519) 2024-03-01 12:52:30 +00:00
home.tmpl Move citiation button to proper place (#29374) 2024-02-25 02:13:04 +02:00
icon.tmpl Tweak repo header (#29134) 2024-02-15 16:52:21 +00:00
latest_commit.tmpl
navbar.tmpl Implement recent commits graph (#29210) 2024-02-24 10:22:51 +00:00
packages.tmpl
pulse.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
recent_commits.tmpl Implement recent commits graph (#29210) 2024-02-24 10:22:51 +00:00
release_tag_header.tmpl Fix a bug returning 404 when display a single tag with no release (#29466) 2024-03-02 14:03:39 +00:00
search.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl Don't do a full page load when clicking Watch or Star (#29001) 2024-02-05 09:56:20 +00:00
sub_menu.tmpl
unicode_escape_prompt.tmpl Remove unnecessary "Str2html" modifier from templates (#29319) 2024-02-22 18:05:47 +00:00
upload.tmpl
user_cards.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
view_file.tmpl
view_list.tmpl Fix elipsis button not working if the last commit loading is deferred (#29544) 2024-03-02 19:31:59 +00:00
watch_unwatch.tmpl Don't do a full page load when clicking Watch or Star (#29001) 2024-02-05 09:56:20 +00:00
watchers.tmpl