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)
| 114 | return bool(diff_output) |
| 115 | |
| 116 | def 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 | ------- |
| 134 | Changes for main release: |
| 135 | {} |
| 136 | '''.format(beta_notes, change_notes) |
| 137 | |
| 138 | |
| 139 | if __name__ == '__main__': |
no outgoing calls
no test coverage detected