~sircmpwn/git.sr.ht

git.sr.ht/gitsrht/service.py -rw-r--r-- 374 bytes
b09557ddDrew DeVault AnnotatedTreeEntry: test entry against None 10 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
from gitsrht.types import User, OAuthToken, SSHKey
from scmsrht.service import BaseScmOAuthService, make_webhooks_notify_blueprint

class GitOAuthService(BaseScmOAuthService):
    def __init__(self):
        super().__init__("git.sr.ht", OAuthToken, User, SSHKey)

oauth_service = GitOAuthService()

webhooks_notify = make_webhooks_notify_blueprint(__name__, oauth_service)