From aac2d30e683e079f2a8d5838d4e85e4e641df877 Mon Sep 17 00:00:00 2001 From: Adrian Sieber Date: Mon, 20 Nov 2023 08:53:40 +0000 Subject: [PATCH] Rename project to "Repos Uploader" --- README.md | 4 ++-- app/Main.hs | 6 +++--- package.yaml | 12 +++++------ haskell-repos.cabal => repos-uploader.cabal | 22 ++++++++++----------- 4 files changed, 22 insertions(+), 22 deletions(-) rename haskell-repos.cabal => repos-uploader.cabal (76%) diff --git a/README.md b/README.md index 4391a5c..cc967d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Haskell Repos +# Repos Uploader -Load metadata for all Haskell repositories on GitHub and store it in Airsequel. +Load metadata for a list of GitHub repos and store it in Airsequel. ## Related diff --git a/app/Main.hs b/app/Main.hs index 0727c77..4054b6b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -152,7 +152,7 @@ getNumberOfCommits repo = do let request = initialRequest { method = "HEAD" - , requestHeaders = [("User-Agent", "haskell-repos")] + , requestHeaders = [("User-Agent", "repos-uploader")] } response <- httpLbs request manager @@ -180,7 +180,7 @@ insertRepoQuery extendedRepo = mutation { insert_repos(objects: [ { - owner: "{{name}}" + owner: "{{owner}}" name: "{{name}}" description: "{{description}}" homepage: "{{homepage}}" @@ -242,7 +242,7 @@ saveRepoInAirsequel extendedRepo = do main :: IO () main = do - possibleRepo <- GH.github () GH.repositoryR "ad-si" "haskell-repos" + possibleRepo <- GH.github () GH.repositoryR "Airsequel" "SQLiteDAV" case possibleRepo of Left error -> putErrText $ "Error: " <> show error diff --git a/package.yaml b/package.yaml index 74356de..ac584a6 100644 --- a/package.yaml +++ b/package.yaml @@ -1,13 +1,13 @@ -name: haskell-repos -version: 0.1.0.0 +name: repos-uploader +version: 0.0.0.0 synopsis: | - Download all Haskell repositories from GitHub and save them to Airsequel + Download metadata for a list of GitHub repos and save it to Airsequel description: | For more information check out the readme. -homepage: https://github.com/ad-si/haskell-repos#readme +homepage: https://github.com/Airsequel/repos-uploader#readme license: AGPL-3.0-or-later author: Adrian Sieber -maintainer: mail@adriansieber.com +maintainer: adrian@feram.io copyright: Adrian Sieber category: Web @@ -47,7 +47,7 @@ library: - github executables: - haskell-repos: + repos-uploader: language: GHC2021 source-dirs: app main: Main.hs diff --git a/haskell-repos.cabal b/repos-uploader.cabal similarity index 76% rename from haskell-repos.cabal rename to repos-uploader.cabal index cca6394..6f1e066 100644 --- a/haskell-repos.cabal +++ b/repos-uploader.cabal @@ -4,17 +4,17 @@ cabal-version: 2.2 -- -- see: https://github.com/sol/hpack -- --- hash: a056babab5004ab1b5703fca4e303777b0644be275bee04bb4ef61ac2cfb7ffb +-- hash: edf1d0e842d7eb15d2887b590795f9ed4d1528afca430e992664b2334bc47242 -name: haskell-repos -version: 0.1.0.0 -synopsis: Download all Haskell repositories from GitHub and save them to Airsequel +name: repos-uploader +version: 0.0.0.0 +synopsis: Download metadata for a list of GitHub repos and save it to Airsequel description: For more information check out the readme. category: Web -homepage: https://github.com/ad-si/haskell-repos#readme +homepage: https://github.com/Airsequel/repos-uploader#readme author: Adrian Sieber -maintainer: mail@adriansieber.com +maintainer: adrian@feram.io copyright: Adrian Sieber license: AGPL-3.0-or-later build-type: Simple @@ -25,9 +25,9 @@ library exposed-modules: Lib other-modules: - Paths_haskell_repos + Paths_repos_uploader autogen-modules: - Paths_haskell_repos + Paths_repos_uploader hs-source-dirs: source default-extensions: @@ -50,12 +50,12 @@ library , time default-language: GHC2021 -executable haskell-repos +executable repos-uploader main-is: Main.hs other-modules: - Paths_haskell_repos + Paths_repos_uploader autogen-modules: - Paths_haskell_repos + Paths_repos_uploader hs-source-dirs: app default-extensions: