# post-receive hook script must have --repository
RevlinkMatch(
repo_urls=[r'/usr/src/bare/(.*)'],
- revlink=r'https://git.humopery.space/?p=\1;a=commitdiff;h=%s')
- # TODO: render framagit links
- # TODO: render github links
- # TODO: render gitlab links
+ revlink=r'https://git.humopery.space/?p=\1;a=commitdiff;h=%s'),
+ RevlinkMatch(
+ repo_urls=[r'https://github.com/(.*).git'],
+ revlink=r'https://github.com/\1/commit/%s'),
+ RevlinkMatch(
+ repo_urls=[r'https://gitlab.com/(.*).git'],
+ revlink=r'https://gitlab.com/\1/-/commit/%s'),
+ RevlinkMatch(
+ repo_urls=[r'https://framagit.org/(.*).git'],
+ revlink=r'https://framagit.org/\1/-/commit/%s'),
),
'schedulers': [ForceScheduler(
name="force",