Skip to content

Commit e711df6

Browse files
committed
build: 2.9.1 release
1 parent d7a0621 commit e711df6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/generateReleaseNotes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
JIRA_AUTH = os.environ.get('JIRA_AUTH')
88
JIRA_FILTER = os.environ.get('FILTER_ID')
9-
RELEASE_INFO_PATH = '../release.info'
9+
RELEASE_INFO_PATH = '../gradle/libs.versions.toml'
1010
RELEASE_MD_PATH = '../RELEASE.md'
1111

1212
release_versions = {}
1313
with open(RELEASE_INFO_PATH, 'r') as file:
1414
for line in file:
15-
y = line.strip().split(":")
16-
release_versions[y[0]] = str(y[1])
17-
15+
y = line.strip().split(" = ")
16+
if len(y) == 2:
17+
release_versions[y[0]] = str(y[1])
1818

1919
print("Getting issues from filter version...")
2020
print(JIRA_FILTER)
@@ -42,13 +42,13 @@
4242
</tr>
4343
</table>'''
4444
f = open(RELEASE_MD_PATH, "w")
45-
f.write("Android Capture App for DHIS 2 (v" + release_versions["vName"] + ") - Patch version\n")
45+
f.write("Android Capture App for DHIS 2 (v" + release_versions.get('vName').replace("\"", "") + ") - Patch version\n")
4646
f.write(content_header)
4747
f.write("\n## Bugs fixed\n")
4848
for issue in filtered_issues['issues']:
4949
f.write("* [" + issue['key'] + "](https://dhis2.atlassian.net/browse/" + issue['key'] + ") " +
5050
issue['fields']['summary'] + "\n")
51-
f.write('''* This patch release updates the [Android SDK](https://github.com/dhis2/dhis2-android-sdk) to version ''' + release_versions["sdkVersion"] + '''.
51+
f.write('''* This patch release updates the [Android SDK](https://github.com/dhis2/dhis2-android-sdk) to version ''' + release_versions.get('dhis2sdk').replace("\"", "") + '''.
5252
5353
You can find in Jira details on the [bugs fixed](https://dhis2.atlassian.net/issues/?filter=''' + JIRA_FILTER + ''') in this version.
5454

0 commit comments

Comments
 (0)