mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +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:
|
||||
required: true
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
# Flight controller configuration
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Flight controller configuration
|
||||
label: Diff configuration
|
||||
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/).
|
||||
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.
|
||||
value: |
|
||||
```
|
||||
# REPLACE THIS LINE BY THE OUTPUT OF YOUR `diff`
|
||||
```
|
||||
```
|
||||
# REPLACE THIS LINE BY THE OUTPUT OF YOUR `resource show all`
|
||||
```
|
||||
Create a `diff` and post it here. Instructions on how to do a diff: https://oscarliang.com/use-diff-not-dump-betaflight/
|
||||
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 `diff` COMMAND IN THE CLI TAB
|
||||
render: txt
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- 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:
|
||||
required: true
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue