Format yaml files

The schema at https://json.schemastore.org/gitea-issue-forms.json
doesn't like empty titles, so just remove the key to the same effect as
a zero length string.

Add document start markers where they are missing.

Use a max line length of 100 as discussed with Dunedan.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2024-09-05 09:42:42 +02:00 committed by Dunedan
parent 10e7513bba
commit 87f667732c
4 changed files with 27 additions and 15 deletions

View File

@ -1,19 +1,24 @@
---
name: Defect name: Defect
about: Report an issue with the game. Errors, crashes, unexpected behaviour should be reported this way. about: >
title: "" Report an issue with the game. Errors, crashes, unexpected behaviour should be reported this way.
labels: labels:
- "Type/Defect" - "Type/Defect"
- "Priority/3: Should Have" - "Priority/3: Should Have"
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: >
**Please select a Theme label that corresponds best to your issue. You can also adjust the Priority label.** **Please select a Theme label that corresponds best to your issue. You can also adjust the
Priority label.**
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Reporting Errors label: Reporting Errors
description: For crashes and errors, you must read the [ReportingErrors](wiki/ReportingErrors) page. In particular, if you are reporting a crash, you must upload crashlog files in the Description field below. description: >
For crashes and errors, you must read the [ReportingErrors](wiki/ReportingErrors) page. In
particular, if you are reporting a crash, you must upload crashlog files in the Description
field below.
options: options:
- label: I have read the ReportingErrors wiki page. - label: I have read the ReportingErrors wiki page.
required: true required: true
@ -29,6 +34,8 @@ body:
- type: input - type: input
attributes: attributes:
label: Version label: Version
description: Type the version of the game you are running (displayed at the bottom of the main menu, or the Alpha version, or "nightly-build"). description: >
Type the version of the game you are running (displayed at the bottom of the main menu, or
the Alpha version, or "nightly-build").
validations: validations:
required: true required: true

View File

@ -1,14 +1,15 @@
---
name: Enhancement name: Enhancement
about: Ask us for an improvement you wish to see in the game. about: Ask us for an improvement you wish to see in the game.
title: ""
labels: labels:
- "Type/Enhancement" - "Type/Enhancement"
- "Priority/3: Should Have" - "Priority/3: Should Have"
body: body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: >
**Please select a Theme label that corresponds best to your issue. You can also adjust the Priority label.** **Please select a Theme label that corresponds best to your issue. You can also adjust the
Priority label.**
- type: textarea - type: textarea
attributes: attributes:
@ -18,7 +19,9 @@ body:
- type: markdown - type: markdown
attributes: attributes:
value: | value: >
**Important Note:** Gameplay and balance changes require preliminary discussion, and consensus must be reached with the Balancing team.<br> **Important Note:** Gameplay and balance changes require preliminary discussion, and
If this is a gameplay change, please add the *Needs Design Input* label, and open a forum topic for discussing your proposal.<br> consensus must be reached with the Balancing team.<br>
If this is a gameplay change, please add the *Needs Design Input* label, and open a forum
topic for discussing your proposal.<br>
You should link that forum topic in the ticket Description above. You should link that forum topic in the ticket Description above.

View File

@ -13,7 +13,9 @@ jobs:
run: pip3 install lxml run: pip3 install lxml
- name: Workaround for authentication problem with LFS - name: Workaround for authentication problem with LFS
# https://gitea.com/gitea/act_runner/issues/164 # https://gitea.com/gitea/act_runner/issues/164
run: git config --local http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/.extraheader '' run: >
git config --local
http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/.extraheader ''
- name: Download necessary LFS assets - name: Download necessary LFS assets
run: git lfs pull -I binaries/data/mods/public/maps run: git lfs pull -I binaries/data/mods/public/maps
- name: Check for missing references - name: Check for missing references

View File

@ -57,8 +57,8 @@ repos:
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1 rev: v0.10.0.1
hooks: hooks:
- id: shellcheck - id: shellcheck
exclude: ^build/premake/premake5/ exclude: ^build/premake/premake5/
- repo: https://github.com/igorshubovych/markdownlint-cli - repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0 rev: v0.41.0
hooks: hooks: