get_app_from_url: add codeberg.org as git url

This commit is contained in:
Izzy 2020-04-15 09:13:08 +02:00
parent 57446eee1c
commit 46a464a74b
No known key found for this signature in database
GPG key ID: 5841AA5BBD64591E

View file

@ -1789,6 +1789,10 @@ def get_app_from_url(url):
app.IssueTracker = url + '/issues'
# Figure out the repo type and adddress...
app.RepoType, app.Repo = getrepofrompage(url)
elif parsed.netloc == 'codeberg.org':
app.RepoType = 'git'
app.SourceCode = url
app.IssueTracker = url + '/issues'
elif url.startswith('https://') and url.endswith('.git'):
app.RepoType = 'git'