Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping for data and endpoint exports #430

Merged
merged 1 commit into from
Feb 11, 2020
Merged
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
38 changes: 24 additions & 14 deletions src/GitHub.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ module GitHub (
watchersForR,
reposWatchedByR,

-- * Enterprise
-- | See <https://developer.github.com/enterprise/v3/enterprise-admin/>

-- ** Organizations
-- | See <https://developer.github.com/enterprise/v3/enterprise-admin/orgs/>
createOrganizationR,
renameOrganizationR,

-- * Gists
-- | See <https://developer.github.com/v3/gists/>
--
Expand Down Expand Up @@ -289,6 +281,15 @@ module GitHub (
commitR,
diffR,

-- ** Contents
-- | See <https://developer.github.com/v3/repos/contents/>
contentsForR,
readmeForR,
archiveForR,
createFileR,
updateFileR,
deleteFileR,

-- ** Deploy Keys
-- | See <https://developer.github.com/v3/repos/keys/>
deployKeysForR,
Expand Down Expand Up @@ -316,6 +317,12 @@ module GitHub (
-- * Create a fork
forksForR,

-- ** Statuses
-- | See <https://developer.github.com/v3/repos/statuses/>
createStatusR,
statusesForR,
statusForR,

-- ** Webhooks
-- | See <https://developer.github.com/v3/repos/hooks/>
webhooksForR,
Expand Down Expand Up @@ -389,11 +396,13 @@ module GitHub (
usersFollowingR,
usersFollowedByR,

-- ** Statuses
-- | See <https://developer.github.com/v3/repos/statuses/>
createStatusR,
statusesForR,
statusForR,
-- ** Git SSH Keys
-- | See <https://developer.github.com/v3/users/keys/>
publicSSHKeysR,
publicSSHKeysForR,
publicSSHKeyR,
createUserPublicSSHKeyR,
deleteUserPublicSSHKeyR,

-- ** Rate Limit
-- | See <https://developer.github.com/v3/rate_limit/>
Expand All @@ -410,7 +419,6 @@ import GitHub.Endpoints.Activity.Events
import GitHub.Endpoints.Activity.Notifications
import GitHub.Endpoints.Activity.Starring
import GitHub.Endpoints.Activity.Watching
import GitHub.Endpoints.Enterprise.Organizations
import GitHub.Endpoints.Gists
import GitHub.Endpoints.Gists.Comments
import GitHub.Endpoints.GitData.Blobs
Expand All @@ -433,6 +441,7 @@ import GitHub.Endpoints.Repos
import GitHub.Endpoints.Repos.Collaborators
import GitHub.Endpoints.Repos.Comments
import GitHub.Endpoints.Repos.Commits
import GitHub.Endpoints.Repos.Contents
import GitHub.Endpoints.Repos.DeployKeys
import GitHub.Endpoints.Repos.Deployments
import GitHub.Endpoints.Repos.Forks
Expand All @@ -444,4 +453,5 @@ import GitHub.Endpoints.Search
import GitHub.Endpoints.Users
import GitHub.Endpoints.Users.Emails
import GitHub.Endpoints.Users.Followers
import GitHub.Endpoints.Users.PublicSSHKeys
import GitHub.Request
4 changes: 3 additions & 1 deletion src/GitHub/Data.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ module GitHub.Data (
module GitHub.Data.Statuses,
module GitHub.Data.Teams,
module GitHub.Data.URL,
module GitHub.Data.Webhooks
module GitHub.Data.Webhooks,
module GitHub.Data.Webhooks.Validate,
) where

import GitHub.Internal.Prelude
Expand Down Expand Up @@ -94,6 +95,7 @@ import GitHub.Data.Statuses
import GitHub.Data.Teams
import GitHub.Data.URL
import GitHub.Data.Webhooks
import GitHub.Data.Webhooks.Validate

mkOwnerId :: Int -> Id Owner
mkOwnerId = Id
Expand Down