updater
- introduce updater.host - allow dev branch - minor improvements
This commit is contained in:
parent
cd6457352b
commit
2ba83ea3fe
2 changed files with 12 additions and 4 deletions
|
@ -1740,11 +1740,15 @@ class ForgejoEngine:
|
|||
"""Integration to Forgejo/Gitea API"""
|
||||
|
||||
def __init__(self):
|
||||
self.api_url = 'https://git.pointer.click'
|
||||
# the api_url may be overwritten by form_repo_url
|
||||
# if updater.host is set
|
||||
self.api_url = 'https://codeberg.org'
|
||||
self.token = None
|
||||
self.name = "forgejo"
|
||||
|
||||
def form_repo_url(self, updater):
|
||||
if updater.host:
|
||||
self.api_url = "https://" + updater.host
|
||||
return "{}/api/v1/repos/{}/{}".format(self.api_url, updater.user, updater.repo)
|
||||
|
||||
def form_tags_url(self, updater):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue