Skip to content

Commit

Permalink
Rename project to "Repos Uploader"
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Nov 20, 2023
1 parent 4781a84 commit aac2d30
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -180,7 +180,7 @@ insertRepoQuery extendedRepo =
mutation {
insert_repos(objects: [
{
owner: "{{name}}"
owner: "{{owner}}"
name: "{{name}}"
description: "{{description}}"
homepage: "{{homepage}}"
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]
maintainer: [email protected]
copyright: Adrian Sieber
category: Web

Expand Down Expand Up @@ -47,7 +47,7 @@ library:
- github

executables:
haskell-repos:
repos-uploader:
language: GHC2021
source-dirs: app
main: Main.hs
Expand Down
22 changes: 11 additions & 11 deletions haskell-repos.cabal → repos-uploader.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
maintainer: [email protected]
copyright: Adrian Sieber
license: AGPL-3.0-or-later
build-type: Simple
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit aac2d30

Please sign in to comment.