packages feed

hercules-ci-api-0.7.2.0: src/Hercules/API/Repos/SimpleRepo.hs

{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Repos.SimpleRepo where

import Hercules.API.Accounts.SimpleAccount (SimpleAccount)
import Hercules.API.Prelude
import Hercules.API.Repos.Repo (Repo)

data SimpleRepo = SimpleRepo
  { id :: Id Repo,
    name :: Name Repo,
    owner :: SimpleAccount,
    displayName :: Text,
    imageURL :: Maybe Text,
    isPublic :: Bool
  }
  deriving (Generic, Show, Eq, NFData, ToJSON, FromJSON, ToSchema)