from pydantic import Field, SecretStr
from maur.settings import SettingsModel


prompt_template = (
    "A Linear issue was created. Investigate and resolve it.\n\n"
    "Title: {title}\n\n"
    "Description:\n{description}"
)


class LinearSettings(SettingsModel):
    linear_webhook_secret: SecretStr
    linear_api_key: SecretStr
    repo_branch: str = Field(default="main")
    prompt_template: str = Field(default=prompt_template)
    label_filter: str | None = None
    """Only handle issues that have this label."""
