29 lines
506 B
Python
29 lines
506 B
Python
from enum import Enum
|
|
from pydantic import BaseModel
|
|
from typing import Optional, List
|
|
|
|
|
|
class Provider(str, Enum):
|
|
GITHUB = "github"
|
|
GITLAB = "gitlab"
|
|
|
|
|
|
class IssueStatus(str, Enum):
|
|
OPEN = "open"
|
|
IN_PROGRESS = "in_progress"
|
|
CLOSED = "closed"
|
|
|
|
|
|
class WorkflowStatus(str, Enum):
|
|
PENDING = "pending"
|
|
RUNNING = "running"
|
|
SUCCESS = "success"
|
|
FAILURE = "failure"
|
|
|
|
|
|
class PRStatus(str, Enum):
|
|
OPEN = "open"
|
|
MERGED = "merged"
|
|
CLOSED = "closed"
|
|
DRAFT = "draft"
|