|
|
|
@ -348,55 +348,26 @@ class UpgradeView(MasterView):
|
|
|
|
|
commit_hash_pattern = re.compile(r'^.{40}$')
|
|
|
|
|
|
|
|
|
|
def get_changelog_projects(self):
|
|
|
|
|
projects = {
|
|
|
|
|
'rattail': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/rattail/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/rattail/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'Tailbone': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'pyCOREPOS': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/pycorepos/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/pycorepos/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'rattail_corepos': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-corepos/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-corepos/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'tailbone_corepos': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone-corepos/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone-corepos/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'onager': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-restricted/onager/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-restricted/onager/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'rattail-onager': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-restricted/rattail-onager/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-restricted/rattail-onager/files/v{new_version}/CHANGELOG.md',
|
|
|
|
|
},
|
|
|
|
|
'rattail_tempmon': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-tempmon/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-tempmon/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'tailbone-onager': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-restricted/tailbone-onager/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-restricted/tailbone-onager/files/v{new_version}/CHANGELOG.md',
|
|
|
|
|
},
|
|
|
|
|
'rattail_woocommerce': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-woocommerce/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/rattail-woocommerce/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'tailbone_woocommerce': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone-woocommerce/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone-woocommerce/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
'tailbone_theo': {
|
|
|
|
|
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/theo/changelog/{new_version}/?size=10',
|
|
|
|
|
'release_url': 'https://kallithea.rattailproject.org/rattail-project/theo/files/v{new_version}/CHANGES.rst',
|
|
|
|
|
},
|
|
|
|
|
project_map = {
|
|
|
|
|
'onager': 'onager',
|
|
|
|
|
'pyCOREPOS': 'pycorepos',
|
|
|
|
|
'rattail': 'rattail',
|
|
|
|
|
'rattail_corepos': 'rattail-corepos',
|
|
|
|
|
'rattail-onager': 'rattail-onager',
|
|
|
|
|
'rattail_tempmon': 'rattail-tempmon',
|
|
|
|
|
'rattail_woocommerce': 'rattail-woocommerce',
|
|
|
|
|
'Tailbone': 'tailbone',
|
|
|
|
|
'tailbone_corepos': 'tailbone-corepos',
|
|
|
|
|
'tailbone-onager': 'tailbone-onager',
|
|
|
|
|
'tailbone_theo': 'theo',
|
|
|
|
|
'tailbone_woocommerce': 'tailbone-woocommerce',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
projects = {}
|
|
|
|
|
for name, repo in project_map.items():
|
|
|
|
|
projects[name] = {
|
|
|
|
|
'commit_url': f'https://forgejo.wuttaproject.org/rattail/{repo}/compare/{{old_version}}...{{new_version}}',
|
|
|
|
|
'release_url': f'https://forgejo.wuttaproject.org/rattail/{repo}/src/tag/v{{new_version}}/CHANGELOG.md',
|
|
|
|
|
}
|
|
|
|
|
return projects
|
|
|
|
|
|
|
|
|
|