mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Use the new render attribute for diff/resource yaml form
Users seem to have a problem adding the three backticks symbol in he form to format the diff or resource text block. GitHub has added a new attribute, render, to add it automatically. This change adds this new attribute and modifies the form to simplify the use.
This commit is contained in:
parent
b6af12b6b1
commit
f89c44f427
1 changed files with 23 additions and 10 deletions
33
.github/ISSUE_TEMPLATE/firmware-bug-report.yml
vendored
33
.github/ISSUE_TEMPLATE/firmware-bug-report.yml
vendored
|
@ -29,19 +29,32 @@ body:
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# Flight controller configuration
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Flight controller configuration
|
label: Diff configuration
|
||||||
description: |
|
description: |
|
||||||
Create a `diff` and post it here in a code block. Put (three backticks) at the start and end of the diff block (instructions on how to do a diff: https://oscarliang.com/use-diff-not-dump-betaflight/).
|
Create a `diff` and post it here. Instructions on how to do a diff: https://oscarliang.com/use-diff-not-dump-betaflight/
|
||||||
Use `resource show all` to create a resource allocation list and post it here in a code block. Put (three backticks) at the start and end of the output block.
|
Don't add three backticks or any other format symbol at the start or end of the block, they will be added automatically.
|
||||||
value: |
|
placeholder: |
|
||||||
```
|
# PASTE HERE THE OUTPUT OF `diff` COMMAND IN THE CLI TAB
|
||||||
# REPLACE THIS LINE BY THE OUTPUT OF YOUR `diff`
|
render: txt
|
||||||
```
|
validations:
|
||||||
```
|
required: true
|
||||||
# REPLACE THIS LINE BY THE OUTPUT OF YOUR `resource show all`
|
|
||||||
```
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: Resources configuration
|
||||||
|
description: |
|
||||||
|
Use `resource show all` to create a resource allocation list and post it here.
|
||||||
|
Don't add three backticks or any other format symbol at the start or end of the block, they will be added automatically.
|
||||||
|
placeholder: |
|
||||||
|
# PASTE HERE THE OUTPUT OF `resource show all` COMMAND IN THE CLI TAB
|
||||||
|
render: txt
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue