From c3ccf509fac2d7cd01eda8400f0d52fe59f426ad Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 27 Oct 2024 16:08:25 +0100 Subject: [PATCH] changelog field --- release.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/release.py b/release.py index 114f529..7dad07d 100755 --- a/release.py +++ b/release.py @@ -135,8 +135,10 @@ def main(config: dict, version: str, channel: str, local: bool): file_hash = None changelog = confirm('Do you want to include a changelog?') + changelog_url = None if changelog: chlog_filepath, chlog_filename = just_find_file('changelog.txt') + changelog_url = f'{config["baseUrl"]}/{BASE_DIR}/{channel}/{version}/changelog.txt' latest_data = load_latest_data(channel) version_dir = make_path(channel, version) @@ -163,6 +165,7 @@ def main(config: dict, version: str, channel: str, local: bool): 'id': latest_data['id'] + 1, 'timestamp': int(time.time()), 'file': file_url, + 'changelog': changelog_url 'sha256': file_hash }