mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
Don't use the commits feed as a changelog link in import
If it's often not a replacement for a proper changelog, do not advise its usage.
This commit is contained in:
parent
4b59f913f1
commit
beb17ad84a
@ -128,7 +128,6 @@ def main():
|
|||||||
# Figure out what kind of project it is...
|
# Figure out what kind of project it is...
|
||||||
projecttype = None
|
projecttype = None
|
||||||
issuetracker = None
|
issuetracker = None
|
||||||
changelog = None
|
|
||||||
license = None
|
license = None
|
||||||
website = url # by default, we might override it
|
website = url # by default, we might override it
|
||||||
if url.startswith('git://'):
|
if url.startswith('git://'):
|
||||||
@ -144,7 +143,6 @@ def main():
|
|||||||
sourcecode = url
|
sourcecode = url
|
||||||
issuetracker = url + '/issues'
|
issuetracker = url + '/issues'
|
||||||
website = ""
|
website = ""
|
||||||
changelog = url + '/commits'
|
|
||||||
elif url.startswith('https://gitlab.com/'):
|
elif url.startswith('https://gitlab.com/'):
|
||||||
projecttype = 'gitlab'
|
projecttype = 'gitlab'
|
||||||
repo = url
|
repo = url
|
||||||
@ -288,8 +286,6 @@ def main():
|
|||||||
app['Source Code'] = sourcecode
|
app['Source Code'] = sourcecode
|
||||||
if issuetracker:
|
if issuetracker:
|
||||||
app['Issue Tracker'] = issuetracker
|
app['Issue Tracker'] = issuetracker
|
||||||
if changelog:
|
|
||||||
app['Changelog'] = changelog
|
|
||||||
if license:
|
if license:
|
||||||
app['License'] = license
|
app['License'] = license
|
||||||
app['Repo Type'] = repotype
|
app['Repo Type'] = repotype
|
||||||
|
@ -125,10 +125,6 @@ regex_pedantic = {
|
|||||||
(re.compile(r'.*github\.com/[^/]+/[^/]+/issues/.*'),
|
(re.compile(r'.*github\.com/[^/]+/[^/]+/issues/.*'),
|
||||||
"/issues is often enough on its own"),
|
"/issues is often enough on its own"),
|
||||||
],
|
],
|
||||||
'Changelog': [
|
|
||||||
(re.compile(r'.*commit.*', re.IGNORECASE),
|
|
||||||
"Not every commit log is suitable as change log"),
|
|
||||||
],
|
|
||||||
'Summary': [
|
'Summary': [
|
||||||
(re.compile(r'.*[a-z0-9][.!?][ $]'),
|
(re.compile(r'.*[a-z0-9][.!?][ $]'),
|
||||||
"Punctuation should be avoided"),
|
"Punctuation should be avoided"),
|
||||||
|
Loading…
Reference in New Issue
Block a user