diff --git a/.github/ISSUE_TEMPLATE/BUG.yml b/.github/ISSUE_TEMPLATE/BUG.yml index d4bf04b..02378fb 100644 --- a/.github/ISSUE_TEMPLATE/BUG.yml +++ b/.github/ISSUE_TEMPLATE/BUG.yml @@ -27,14 +27,19 @@ body: - 0.1.2 - 0.1.1 - 0.1.0 + - 0.1.2 + - 0.1.1 + - 0.1.0 validations: required: true + - type: textarea id: steps_reproduce attributes: label: Exact steps to reproduce this error description: Tell what completely exactly what you did to get this error. validations: required: true + - type: input id: log attributes: label: Log @@ -42,8 +47,10 @@ body: placeholder: https://mclo.gs/xyz validations: required: true + - type: markdown attributes: value: Either press on the share button in you modrinth launcher logs or paste it on https://mclo.gs/ + - type: textarea id: additional attributes: label: Additional information @@ -51,14 +58,13 @@ body: placeholder: Anything else. validations: required: false + - type: checkboxes id: reinstalling attributes: label: Checks description: Common mistakes (sorry btw) options: - - 0.2.0 - - 0.1.2 - - 0.1.1 - - 0.1.0 + - label: I tried reinstalling the modpack as a new instance or tried to fix it myself with other methods. required: true + - label: I tried using a modrinth compatible launcher and did not just unpack the `.mrpack`. required: true diff --git a/release.py b/release.py index 1ca0c76..4d43464 100644 --- a/release.py +++ b/release.py @@ -20,13 +20,18 @@ def update_bug_template(versions): in_options_section = False for line in lines: - if "options:" in line: + if "id: version" in line: + updated_lines.append(line) in_options_section = True + elif in_options_section and "options:" in line: updated_lines.append(line) 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("-"): - continue + continue # Skip old version options else: updated_lines.append(line)