From 6b15ccd0f53c7ffd57820fb15664ecadee74392a Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 15 Aug 2023 10:33:19 +0200 Subject: Support repository path in commits --- app/SlackBuilder/Config.hs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/SlackBuilder/Config.hs') diff --git a/app/SlackBuilder/Config.hs b/app/SlackBuilder/Config.hs index be91ae0..6e093a7 100644 --- a/app/SlackBuilder/Config.hs +++ b/app/SlackBuilder/Config.hs @@ -7,10 +7,14 @@ import Data.Text (Text) import Toml ((.=)) import qualified Toml -newtype Settings = Settings - { ghToken :: Text +data Settings = Settings + { ghToken :: !Text + , repository :: !FilePath + , branch :: Text } deriving (Eq, Show) settingsCodec :: Toml.TomlCodec Settings settingsCodec = Settings <$> Toml.text "gh_token" .= ghToken + <*> Toml.string "repository" .= repository + <*> Toml.text "branch" .= branch -- cgit v1.2.3