MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / get_beta_notes

Function get_beta_notes

Scripts/get-release-notes.py:116–136  ·  view source on GitHub ↗

Returns the release's change notes, taking the beta notes into account. If it's the first beta release, then it doesn't bother. Also checks if the release notes have been updated since the last beta

(beta_num, change_notes)

Source from the content-addressed store, hash-verified

114 return bool(diff_output)
115
116def get_beta_notes(beta_num, change_notes):
117 '''
118 Returns the release's change notes, taking the beta notes into account. If it's
119 the first beta release, then it doesn't bother. Also checks if the release notes
120 have been updated since the last beta
121 '''
122
123 if beta_num == 1:
124 return change_notes
125
126 with open(BETANOTES_FILEPATH, 'r') as beta_notes_file:
127 beta_notes = beta_notes_file.read()
128
129 return '''Updates in this beta:
130
131{}
132
133-------
134Changes for main release:
135{}
136'''.format(beta_notes, change_notes)
137
138
139if __name__ == '__main__':

Callers 1

print_release_notesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected