diff --git a/github-tools.cabal b/github-tools.cabal index 19e2c02..1416d2e 100644 --- a/github-tools.cabal +++ b/github-tools.cabal @@ -1,140 +1,140 @@ -name: github-tools -version: 0.1.2 -synopsis: Various Github helper utilities. -homepage: https://toktok.github.io/ -license: GPL-3 -license-file: LICENSE -author: iphydf -maintainer: iphydf@users.noreply.github.com -category: Development -build-type: Simple -cabal-version: >=1.10 +name: github-tools +version: 0.1.2 +synopsis: Various Github helper utilities. +homepage: https://toktok.github.io/ +license: GPL-3 +license-file: LICENSE +author: iphydf +maintainer: iphydf@users.noreply.github.com +category: Development +build-type: Simple +cabal-version: >=1.10 description: - Pull Request status tool. - Change log generator. source-repository head - type: git - location: https://github.com/TokTok/hs-github-tools.git + type: git + location: https://github.com/TokTok/hs-github-tools.git library exposed-modules: - GitHub.Tools.AutoMerge - GitHub.Tools.Changelogs - GitHub.Tools.NetworkGraph - GitHub.Tools.PullRequestInfo - GitHub.Tools.PullStatus - GitHub.Tools.Requests - GitHub.Types - GitHub.Types.Base - GitHub.Types.Base.Author - GitHub.Types.Base.Branch - GitHub.Types.Base.Change - GitHub.Types.Base.Changes - GitHub.Types.Base.CheckApp - GitHub.Types.Base.CheckCommit - GitHub.Types.Base.CheckCommitRef - GitHub.Types.Base.CheckCommitRepo - GitHub.Types.Base.CheckOutput - GitHub.Types.Base.CheckPullRequest - GitHub.Types.Base.CheckRun - GitHub.Types.Base.CheckSuite - GitHub.Types.Base.Commit - GitHub.Types.Base.CommitComment - GitHub.Types.Base.CommitDetails - GitHub.Types.Base.CommitRef - GitHub.Types.Base.CommitRefHtml - GitHub.Types.Base.DateTime - GitHub.Types.Base.Deployment - GitHub.Types.Base.DeploymentPayload - GitHub.Types.Base.DeploymentStatus - GitHub.Types.Base.Hook - GitHub.Types.Base.HookConfig - GitHub.Types.Base.Installation - GitHub.Types.Base.Invitation - GitHub.Types.Base.Issue - GitHub.Types.Base.IssueComment - GitHub.Types.Base.Label - GitHub.Types.Base.License - GitHub.Types.Base.Link - GitHub.Types.Base.Membership - GitHub.Types.Base.Milestone - GitHub.Types.Base.Organization - GitHub.Types.Base.PageBuild - GitHub.Types.Base.PageBuildError - GitHub.Types.Base.Permissions - GitHub.Types.Base.PullRequest - GitHub.Types.Base.PullRequestLinks - GitHub.Types.Base.PullRequestRef - GitHub.Types.Base.PushCommit - GitHub.Types.Base.Reactions - GitHub.Types.Base.Release - GitHub.Types.Base.RepoOwner - GitHub.Types.Base.Repository - GitHub.Types.Base.Review - GitHub.Types.Base.ReviewComment - GitHub.Types.Base.ReviewCommentLinks - GitHub.Types.Base.ReviewLinks - GitHub.Types.Base.SimplePullRequest - GitHub.Types.Base.SimpleRepository - GitHub.Types.Base.StatusCommit - GitHub.Types.Base.Team - GitHub.Types.Base.User - GitHub.Types.Base.UserRef - GitHub.Types.Base.UserStamp - GitHub.Types.Base.Verification - GitHub.Types.Base.Workflow - GitHub.Types.Base.WorkflowJob - GitHub.Types.Base.WorkflowRun - GitHub.Types.Base.WorkflowStep - GitHub.Types.Event - GitHub.Types.Events - GitHub.Types.Events.CheckRunEvent - GitHub.Types.Events.CheckSuiteEvent - GitHub.Types.Events.CommitCommentEvent - GitHub.Types.Events.CreateEvent - GitHub.Types.Events.DeleteEvent - GitHub.Types.Events.DeploymentEvent - GitHub.Types.Events.DeploymentStatusEvent - GitHub.Types.Events.ForkEvent - GitHub.Types.Events.GollumEvent - GitHub.Types.Events.IssueCommentEvent - GitHub.Types.Events.IssuesEvent - GitHub.Types.Events.LabelEvent - GitHub.Types.Events.MemberEvent - GitHub.Types.Events.MembershipEvent - GitHub.Types.Events.MilestoneEvent - GitHub.Types.Events.OrganizationEvent - GitHub.Types.Events.PageBuildEvent - GitHub.Types.Events.PingEvent - GitHub.Types.Events.PullRequestEvent - GitHub.Types.Events.PullRequestReviewCommentEvent - GitHub.Types.Events.PullRequestReviewEvent - GitHub.Types.Events.PushEvent - GitHub.Types.Events.ReleaseEvent - GitHub.Types.Events.RepositoryEvent - GitHub.Types.Events.StarEvent - GitHub.Types.Events.StatusEvent - GitHub.Types.Events.WatchEvent - GitHub.Types.Events.WorkflowJobEvent - GitHub.Types.Events.WorkflowRunEvent - GitHub.Types.PayloadParser - GitHub.WebHook.Handler - ghc-options: - -Wall - hs-source-dirs: src - default-language: Haskell2010 + GitHub.Tools.AutoMerge + GitHub.Tools.Changelogs + GitHub.Tools.NetworkGraph + GitHub.Tools.PullRequestInfo + GitHub.Tools.PullStatus + GitHub.Tools.Requests + GitHub.Types + GitHub.Types.Base + GitHub.Types.Base.Author + GitHub.Types.Base.Branch + GitHub.Types.Base.Change + GitHub.Types.Base.Changes + GitHub.Types.Base.CheckApp + GitHub.Types.Base.CheckCommit + GitHub.Types.Base.CheckCommitRef + GitHub.Types.Base.CheckCommitRepo + GitHub.Types.Base.CheckOutput + GitHub.Types.Base.CheckPullRequest + GitHub.Types.Base.CheckRun + GitHub.Types.Base.CheckSuite + GitHub.Types.Base.Commit + GitHub.Types.Base.CommitComment + GitHub.Types.Base.CommitDetails + GitHub.Types.Base.CommitRef + GitHub.Types.Base.CommitRefHtml + GitHub.Types.Base.DateTime + GitHub.Types.Base.Deployment + GitHub.Types.Base.DeploymentPayload + GitHub.Types.Base.DeploymentStatus + GitHub.Types.Base.Hook + GitHub.Types.Base.HookConfig + GitHub.Types.Base.Installation + GitHub.Types.Base.Invitation + GitHub.Types.Base.Issue + GitHub.Types.Base.IssueComment + GitHub.Types.Base.Label + GitHub.Types.Base.License + GitHub.Types.Base.Link + GitHub.Types.Base.Membership + GitHub.Types.Base.Milestone + GitHub.Types.Base.Organization + GitHub.Types.Base.PageBuild + GitHub.Types.Base.PageBuildError + GitHub.Types.Base.Permissions + GitHub.Types.Base.PullRequest + GitHub.Types.Base.PullRequestLinks + GitHub.Types.Base.PullRequestRef + GitHub.Types.Base.PushCommit + GitHub.Types.Base.Reactions + GitHub.Types.Base.Release + GitHub.Types.Base.RepoOwner + GitHub.Types.Base.Repository + GitHub.Types.Base.Review + GitHub.Types.Base.ReviewComment + GitHub.Types.Base.ReviewCommentLinks + GitHub.Types.Base.ReviewLinks + GitHub.Types.Base.SimplePullRequest + GitHub.Types.Base.SimpleRepository + GitHub.Types.Base.StatusCommit + GitHub.Types.Base.Team + GitHub.Types.Base.User + GitHub.Types.Base.UserRef + GitHub.Types.Base.UserStamp + GitHub.Types.Base.Verification + GitHub.Types.Base.Workflow + GitHub.Types.Base.WorkflowJob + GitHub.Types.Base.WorkflowRun + GitHub.Types.Base.WorkflowStep + GitHub.Types.Event + GitHub.Types.Events + GitHub.Types.Events.CheckRunEvent + GitHub.Types.Events.CheckSuiteEvent + GitHub.Types.Events.CommitCommentEvent + GitHub.Types.Events.CreateEvent + GitHub.Types.Events.DeleteEvent + GitHub.Types.Events.DeploymentEvent + GitHub.Types.Events.DeploymentStatusEvent + GitHub.Types.Events.ForkEvent + GitHub.Types.Events.GollumEvent + GitHub.Types.Events.IssueCommentEvent + GitHub.Types.Events.IssuesEvent + GitHub.Types.Events.LabelEvent + GitHub.Types.Events.MemberEvent + GitHub.Types.Events.MembershipEvent + GitHub.Types.Events.MilestoneEvent + GitHub.Types.Events.OrganizationEvent + GitHub.Types.Events.PageBuildEvent + GitHub.Types.Events.PingEvent + GitHub.Types.Events.PullRequestEvent + GitHub.Types.Events.PullRequestReviewCommentEvent + GitHub.Types.Events.PullRequestReviewEvent + GitHub.Types.Events.PushEvent + GitHub.Types.Events.ReleaseEvent + GitHub.Types.Events.RepositoryEvent + GitHub.Types.Events.StarEvent + GitHub.Types.Events.StatusEvent + GitHub.Types.Events.WatchEvent + GitHub.Types.Events.WorkflowJobEvent + GitHub.Types.Events.WorkflowRunEvent + GitHub.Types.PayloadParser + GitHub.WebHook.Handler + + ghc-options: -Wall + hs-source-dirs: src + default-language: Haskell2010 build-depends: - base >= 4 && < 5 - , aeson >= 2 + aeson >=2 + , base >=4 && <5 , bytestring , containers , cryptohash - , exceptions , directory - , github >= 0.25 && < 0.29 + , exceptions + , github >=0.25 && <0.29 , html - , http-client >= 0.4.30 + , http-client >=0.4.30 , http-client-tls , monad-parallel , process @@ -144,17 +144,16 @@ library , tabular , text , time + , unix , unordered-containers , uuid , vector - , unix executable hub-automerge - main-is: hub-automerge.hs - ghc-options: - -Wall - hs-source-dirs: tools - default-language: Haskell2010 + main-is: hub-automerge.hs + ghc-options: -Wall + hs-source-dirs: tools + default-language: Haskell2010 build-depends: base , bytestring @@ -163,11 +162,10 @@ executable hub-automerge , text executable hub-pulls - main-is: hub-pulls.hs - ghc-options: - -Wall - hs-source-dirs: tools - default-language: Haskell2010 + main-is: hub-pulls.hs + ghc-options: -Wall + hs-source-dirs: tools + default-language: Haskell2010 build-depends: base , bytestring @@ -176,11 +174,10 @@ executable hub-pulls , text executable hub-changelog - main-is: hub-changelog.hs - ghc-options: - -Wall - hs-source-dirs: tools - default-language: Haskell2010 + main-is: hub-changelog.hs + ghc-options: -Wall + hs-source-dirs: tools + default-language: Haskell2010 build-depends: base , bytestring @@ -189,11 +186,10 @@ executable hub-changelog , text executable hub-graph - main-is: hub-graph.hs - ghc-options: - -Wall - hs-source-dirs: tools - default-language: Haskell2010 + main-is: hub-graph.hs + ghc-options: -Wall + hs-source-dirs: tools + default-language: Haskell2010 build-depends: base , bytestring @@ -201,11 +197,10 @@ executable hub-graph , github-tools executable hub-roadmap - main-is: hub-roadmap.hs - ghc-options: - -Wall - hs-source-dirs: tools - default-language: Haskell2010 + main-is: hub-roadmap.hs + ghc-options: -Wall + hs-source-dirs: tools + default-language: Haskell2010 build-depends: base , bytestring @@ -214,30 +209,30 @@ executable hub-roadmap , text executable webservice - main-is: webservice.hs - ghc-options: - -Wall - hs-source-dirs: web - default-language: Haskell2010 + main-is: webservice.hs + ghc-options: -Wall + hs-source-dirs: web + default-language: Haskell2010 other-modules: - TokTok.Handlers - TokTok.Hello - TokTok.Webhooks + TokTok.Handlers + TokTok.Hello + TokTok.Webhooks + build-depends: - base - , Diff - , github-tools - , aeson-pretty + aeson-pretty + , base , bytestring , case-insensitive , containers + , Diff , expiring-cache-map , github + , github-tools , http-media , http-types , pretty - , servant >= 0.5 - , servant-server >= 0.5 + , servant >=0.5 + , servant-server >=0.5 , suspend , text , time @@ -250,24 +245,22 @@ executable webservice , warp test-suite testsuite - type: exitcode-stdio-1.0 - default-language: Haskell2010 - hs-source-dirs: test - main-is: testsuite.hs + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: test + main-is: testsuite.hs other-modules: - GitHub.Types.BaseSpec - GitHub.Types.EventsSpec - ghc-options: - -Wall - -fno-warn-unused-imports - -- Support parallel test execution (since each test can take quite long, - -- because the GitHub data structures are rather large). - -threaded - build-tool-depends: - hspec-discover:hspec-discover + GitHub.Types.BaseSpec + GitHub.Types.EventsSpec + + ghc-options: -Wall -Wno-unused-imports -threaded + + -- Support parallel test execution (since each test can take quite long, + -- because the GitHub data structures are rather large). + build-tool-depends: hspec-discover:hspec-discover build-depends: - base < 5 - , aeson >= 2 + aeson >=2 + , base <5 , github-tools , hspec , QuickCheck