diff --git a/src/models/types.py b/src/models/types.py new file mode 100644 index 0000000..d4bafa0 --- /dev/null +++ b/src/models/types.py @@ -0,0 +1,28 @@ +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"