Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
install:
install: build
stack build --copy-bins

gitlab-helper --render-man-page > gitlab-helper.1
gzip -9 -c gitlab-helper.1 > gitlab-helper.1.gz
sudo mv gitlab-helper.1.gz /usr/local/share/man/man1/gitlab-helper.1.gz
sudo mandb
rm gitlab-helper.1

check: format lint

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ The app will look at several places for your configuration, in the following ord

1. command-line arguments
1. environment variables
1. A config file at the file path provided in the `CONFIG_FILE` environment variable or the `--config-file` option
1. `${PWD}/.gitlab-helper.yml` (the directory in which the executable is started)
1. `~/.gitlab-helper.yml`

Expand Down
1 change: 0 additions & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Main where

import Program
import Relude

main :: IO ()
main = run
27 changes: 6 additions & 21 deletions gitlab-helper.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.37.0.
-- This file has been generated from package.yaml by hpack version 0.38.0.
--
-- see: https://github.com/sol/hpack

Expand All @@ -27,11 +27,7 @@ library
exposed-modules:
App
Branches
Config.Config
Config.Env
Config.File
Config.Optparse
Config.Types
Config
Effects
MergeRequests
Program
Expand All @@ -48,28 +44,23 @@ library
build-depends:
aeson
, autodocodec
, barbies
, base >=4.7 && <5
, burrito >=2.0.1.0
, colonnade
, colourista
, containers
, directory
, either
, envparse
, githash
, gitlab-api-http-client-mtl
, gitlab-api-types
, http-conduit
, http-types
, network-uri
, optparse-applicative
, opt-env-conf
, path
, path-io
, relude
, scientific
, split
, text
, time
, yaml
default-language: Haskell2010

executable gitlab-helper
Expand All @@ -78,13 +69,10 @@ executable gitlab-helper
Paths_gitlab_helper
hs-source-dirs:
app
default-extensions:
NoImplicitPrelude
ghc-options: -fwrite-ide-info -hiedir=.hie -Wall -Wcompat -Widentities -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -fhide-source-paths -Wpartial-fields -Wmissing-deriving-strategies -Wunused-packages -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >=4.7 && <5
, gitlab-helper
, relude
default-language: Haskell2010

test-suite gitlab-helper-test
Expand All @@ -95,15 +83,12 @@ test-suite gitlab-helper-test
Paths_gitlab_helper
hs-source-dirs:
test
default-extensions:
NoImplicitPrelude
ghc-options: -fwrite-ide-info -hiedir=.hie -Wall -Wcompat -Widentities -Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -fhide-source-paths -Wpartial-fields -Wmissing-deriving-strategies -Wunused-packages -threaded -rtsopts -with-rtsopts=-N
build-tool-depends:
sydtest-discover:sydtest-discover
build-depends:
base >=4.7 && <5
, gitlab-helper
, optparse-applicative
, relude
, opt-env-conf-test
, sydtest
default-language: Haskell2010
20 changes: 8 additions & 12 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ description: Please see the README on GitHub at <https://github.com/L7R7/gitlab-

dependencies:
- base >= 4.7 && < 5
- relude

default-extensions:
- NoImplicitPrelude
default-extensions: []

ghc-options:
- -fwrite-ide-info
Expand All @@ -41,29 +39,27 @@ library:
- -flate-specialise
- -fspecialise-aggressively
- -Wmissing-export-lists
default-extensions:
- NoImplicitPrelude
dependencies:
- aeson
- autodocodec
- barbies
- burrito >= 2.0.1.0
- colonnade
- colourista
- containers
- directory
- either
- envparse
- githash
- http-conduit
- http-types
- gitlab-api-http-client-mtl
- gitlab-api-types
- network-uri
- optparse-applicative
- opt-env-conf
- path
- path-io
- relude
- scientific
- split
- text
- time
- yaml

executables:
gitlab-helper:
Expand All @@ -87,5 +83,5 @@ tests:
- -with-rtsopts=-N
dependencies:
- gitlab-helper
- optparse-applicative
- opt-env-conf-test
- sydtest
2 changes: 1 addition & 1 deletion src/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module App (App (..)) where

import Config.Types
import Config
import Gitlab.Client.MTL (HasApiToken (..), HasBaseUrl (..), HasUserAgent (..))
import Relude

Expand Down
2 changes: 1 addition & 1 deletion src/Branches.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where

import App
import Colourista.Pure
import Config.Types (Config (..), WithArchivedProjects (SkipArchivedProjects))
import Config (Config (..), WithArchivedProjects (SkipArchivedProjects))
import qualified Data.Text as T (intercalate)
import Data.Time hiding (getCurrentTime)
import Effects
Expand Down
Loading