fixed build script

This commit is contained in:
2024-09-26 01:15:47 +02:00
parent 759381e64c
commit bb26639c37
2 changed files with 18 additions and 7 deletions

View File

@@ -27,14 +27,19 @@ body:
- 0.1.2 - 0.1.2
- 0.1.1 - 0.1.1
- 0.1.0 - 0.1.0
- 0.1.2
- 0.1.1
- 0.1.0
validations: validations:
required: true required: true
- type: textarea
id: steps_reproduce id: steps_reproduce
attributes: attributes:
label: Exact steps to reproduce this error label: Exact steps to reproduce this error
description: Tell what completely exactly what you did to get this error. description: Tell what completely exactly what you did to get this error.
validations: validations:
required: true required: true
- type: input
id: log id: log
attributes: attributes:
label: Log label: Log
@@ -42,8 +47,10 @@ body:
placeholder: https://mclo.gs/xyz placeholder: https://mclo.gs/xyz
validations: validations:
required: true required: true
- type: markdown
attributes: attributes:
value: Either press on the share button in you modrinth launcher logs or paste it on https://mclo.gs/ value: Either press on the share button in you modrinth launcher logs or paste it on https://mclo.gs/
- type: textarea
id: additional id: additional
attributes: attributes:
label: Additional information label: Additional information
@@ -51,14 +58,13 @@ body:
placeholder: Anything else. placeholder: Anything else.
validations: validations:
required: false required: false
- type: checkboxes
id: reinstalling id: reinstalling
attributes: attributes:
label: Checks label: Checks
description: Common mistakes (sorry btw) description: Common mistakes (sorry btw)
options: options:
- 0.2.0 - label: I tried reinstalling the modpack as a new instance or tried to fix it myself with other methods.
- 0.1.2
- 0.1.1
- 0.1.0
required: true required: true
- label: I tried using a modrinth compatible launcher and did not just unpack the `.mrpack`.
required: true required: true

View File

@@ -20,13 +20,18 @@ def update_bug_template(versions):
in_options_section = False in_options_section = False
for line in lines: for line in lines:
if "options:" in line: if "id: version" in line:
updated_lines.append(line)
in_options_section = True in_options_section = True
elif in_options_section and "options:" in line:
updated_lines.append(line) updated_lines.append(line)
for version in versions: for version in versions:
updated_lines.append(f" - {version}\n") updated_lines.append(
f" - {version}\n"
) # Ensure correct indentation
in_options_section = False # Exit after updating options
elif in_options_section and line.strip().startswith("-"): elif in_options_section and line.strip().startswith("-"):
continue continue # Skip old version options
else: else:
updated_lines.append(line) updated_lines.append(line)