fix: update project repo links, kallithea -> forgejo
This commit is contained in:
parent
a4d81a6e3c
commit
0b646d2d18
|
@ -84,9 +84,9 @@ tailbone = "tailbone.config:ConfigExtension"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://rattailproject.org"
|
Homepage = "https://rattailproject.org"
|
||||||
Repository = "https://kallithea.rattailproject.org/rattail-project/tailbone"
|
Repository = "https://forgejo.wuttaproject.org/rattail/tailbone"
|
||||||
Issues = "https://redmine.rattailproject.org/projects/tailbone/issues"
|
Issues = "https://forgejo.wuttaproject.org/rattail/tailbone/issues"
|
||||||
Changelog = "https://kallithea.rattailproject.org/rattail-project/tailbone/files/master/CHANGELOG.md"
|
Changelog = "https://forgejo.wuttaproject.org/rattail/tailbone/src/branch/master/CHANGELOG.md"
|
||||||
|
|
||||||
|
|
||||||
[tool.commitizen]
|
[tool.commitizen]
|
||||||
|
|
|
@ -348,56 +348,27 @@ class UpgradeView(MasterView):
|
||||||
commit_hash_pattern = re.compile(r'^.{40}$')
|
commit_hash_pattern = re.compile(r'^.{40}$')
|
||||||
|
|
||||||
def get_changelog_projects(self):
|
def get_changelog_projects(self):
|
||||||
projects = {
|
project_map = {
|
||||||
'rattail': {
|
'onager': 'onager',
|
||||||
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/rattail/changelog/{new_version}/?size=10',
|
'pyCOREPOS': 'pycorepos',
|
||||||
'release_url': 'https://kallithea.rattailproject.org/rattail-project/rattail/files/v{new_version}/CHANGES.rst',
|
'rattail': 'rattail',
|
||||||
},
|
'rattail_corepos': 'rattail-corepos',
|
||||||
'Tailbone': {
|
'rattail-onager': 'rattail-onager',
|
||||||
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone/changelog/{new_version}/?size=10',
|
'rattail_tempmon': 'rattail-tempmon',
|
||||||
'release_url': 'https://kallithea.rattailproject.org/rattail-project/tailbone/files/v{new_version}/CHANGES.rst',
|
'rattail_woocommerce': 'rattail-woocommerce',
|
||||||
},
|
'Tailbone': 'tailbone',
|
||||||
'pyCOREPOS': {
|
'tailbone_corepos': 'tailbone-corepos',
|
||||||
'commit_url': 'https://kallithea.rattailproject.org/rattail-project/pycorepos/changelog/{new_version}/?size=10',
|
'tailbone-onager': 'tailbone-onager',
|
||||||
'release_url': 'https://kallithea.rattailproject.org/rattail-project/pycorepos/files/v{new_version}/CHANGES.rst',
|
'tailbone_theo': 'theo',
|
||||||
},
|
'tailbone_woocommerce': 'tailbone-woocommerce',
|
||||||
'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',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
return projects
|
||||||
|
|
||||||
def get_changelog_url(self, project, old_version, new_version):
|
def get_changelog_url(self, project, old_version, new_version):
|
||||||
|
|
Loading…
Reference in a new issue