mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Lint 'main' too
This commit is contained in:
parent
aaf58826c0
commit
4a9b69a720
1 changed files with 3 additions and 3 deletions
|
|
@ -139,9 +139,9 @@ http_checks = (
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
re.compile(
|
re.compile(
|
||||||
r'^https://[^/]*(github|gitlab|bitbucket|rawgit|githubusercontent)\.[a-zA-Z]+/([^/]+/){2,3}master/'
|
r'^https://[^/]*(github|gitlab|bitbucket|rawgit|githubusercontent)\.[a-zA-Z]+/([^/]+/){2,3}(master|main)/'
|
||||||
),
|
),
|
||||||
_("Use /HEAD instead of /master to point at a file in the default branch"),
|
_("Use /HEAD instead of /master or /main to point at a file in the default branch"),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
@ -464,7 +464,7 @@ def check_builds(app):
|
||||||
"Build generated by `fdroid import` - remove disable line once ready"
|
"Build generated by `fdroid import` - remove disable line once ready"
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
for s in ['master', 'origin', 'HEAD', 'default', 'trunk']:
|
for s in ['master', 'main', 'origin', 'HEAD', 'default', 'trunk']:
|
||||||
if build.commit and build.commit.startswith(s):
|
if build.commit and build.commit.startswith(s):
|
||||||
yield _(
|
yield _(
|
||||||
"Branch '{branch}' used as commit in build '{versionName}'"
|
"Branch '{branch}' used as commit in build '{versionName}'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue