mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 03:40:38 +08:00
19 lines
374 B
Python
19 lines
374 B
Python
from abc import ABC, abstractmethod
|
|
from enum import Enum
|
|
|
|
|
|
class Eligibility(Enum):
|
|
NOT_ELIGIBLE = 0
|
|
ELIGIBLE = 1
|
|
TRIAL = 2
|
|
|
|
|
|
class IdentityProvider(ABC):
|
|
@abstractmethod
|
|
def verify_eligibility(self, git_provider, git_provier_id, pr_url):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def inc_invocation_count(self, git_provider, git_provider_id):
|
|
pass
|