Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d9fcba

Browse files
Housekeeping for data and endpoint exports
- Add missing data and endpoint exports - Move statuses exports under repositories - Remove duplicated enterprise exports
1 parent abc4fff commit 7d9fcba

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

src/GitHub.hs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ module GitHub (
5656
watchersForR,
5757
reposWatchedByR,
5858

59-
-- * Enterprise
60-
-- | See <https://developer.github.com/enterprise/v3/enterprise-admin/>
61-
62-
-- ** Organizations
63-
-- | See <https://developer.github.com/enterprise/v3/enterprise-admin/orgs/>
64-
createOrganizationR,
65-
renameOrganizationR,
66-
6759
-- * Gists
6860
-- | See <https://developer.github.com/v3/gists/>
6961
--
@@ -289,6 +281,15 @@ module GitHub (
289281
commitR,
290282
diffR,
291283

284+
-- ** Contents
285+
-- | See <https://developer.github.com/v3/repos/contents/>
286+
contentsForR,
287+
readmeForR,
288+
archiveForR,
289+
createFileR,
290+
updateFileR,
291+
deleteFileR,
292+
292293
-- ** Deploy Keys
293294
-- | See <https://developer.github.com/v3/repos/keys/>
294295
deployKeysForR,
@@ -316,6 +317,12 @@ module GitHub (
316317
-- * Create a fork
317318
forksForR,
318319

320+
-- ** Statuses
321+
-- | See <https://developer.github.com/v3/repos/statuses/>
322+
createStatusR,
323+
statusesForR,
324+
statusForR,
325+
319326
-- ** Webhooks
320327
-- | See <https://developer.github.com/v3/repos/hooks/>
321328
webhooksForR,
@@ -389,11 +396,13 @@ module GitHub (
389396
usersFollowingR,
390397
usersFollowedByR,
391398

392-
-- ** Statuses
393-
-- | See <https://developer.github.com/v3/repos/statuses/>
394-
createStatusR,
395-
statusesForR,
396-
statusForR,
399+
-- ** Git SSH Keys
400+
-- | See <https://developer.github.com/v3/users/keys/>
401+
publicSSHKeysR,
402+
publicSSHKeysForR,
403+
publicSSHKeyR,
404+
createUserPublicSSHKeyR,
405+
deleteUserPublicSSHKeyR,
397406

398407
-- ** Rate Limit
399408
-- | See <https://developer.github.com/v3/rate_limit/>
@@ -410,7 +419,6 @@ import GitHub.Endpoints.Activity.Events
410419
import GitHub.Endpoints.Activity.Notifications
411420
import GitHub.Endpoints.Activity.Starring
412421
import GitHub.Endpoints.Activity.Watching
413-
import GitHub.Endpoints.Enterprise.Organizations
414422
import GitHub.Endpoints.Gists
415423
import GitHub.Endpoints.Gists.Comments
416424
import GitHub.Endpoints.GitData.Blobs
@@ -433,6 +441,7 @@ import GitHub.Endpoints.Repos
433441
import GitHub.Endpoints.Repos.Collaborators
434442
import GitHub.Endpoints.Repos.Comments
435443
import GitHub.Endpoints.Repos.Commits
444+
import GitHub.Endpoints.Repos.Contents
436445
import GitHub.Endpoints.Repos.DeployKeys
437446
import GitHub.Endpoints.Repos.Deployments
438447
import GitHub.Endpoints.Repos.Forks
@@ -444,4 +453,5 @@ import GitHub.Endpoints.Search
444453
import GitHub.Endpoints.Users
445454
import GitHub.Endpoints.Users.Emails
446455
import GitHub.Endpoints.Users.Followers
456+
import GitHub.Endpoints.Users.PublicSSHKeys
447457
import GitHub.Request

src/GitHub/Data.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ module GitHub.Data (
5959
module GitHub.Data.Statuses,
6060
module GitHub.Data.Teams,
6161
module GitHub.Data.URL,
62-
module GitHub.Data.Webhooks
62+
module GitHub.Data.Webhooks,
63+
module GitHub.Data.Webhooks.Validate,
6364
) where
6465

6566
import GitHub.Internal.Prelude
@@ -94,6 +95,7 @@ import GitHub.Data.Statuses
9495
import GitHub.Data.Teams
9596
import GitHub.Data.URL
9697
import GitHub.Data.Webhooks
98+
import GitHub.Data.Webhooks.Validate
9799

98100
mkOwnerId :: Int -> Id Owner
99101
mkOwnerId = Id

0 commit comments

Comments
 (0)