Skip to content

Commit 9f22966

Browse files
committed
Ignore output of repository invitation
1 parent 9b9cd9f commit 9f22966

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub/Endpoints/Repos/Collaborators.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ addCollaborator
6868
-> Name Owner -- ^ Repository owner
6969
-> Name Repo -- ^ Repository name
7070
-> Name User -- ^ Collaborator to add
71-
-> IO (Either Error Invitation)
71+
-> IO (Either Error ())
7272
addCollaborator auth owner repo coll =
7373
executeRequest auth $ addCollaboratorR owner repo coll
7474

7575
addCollaboratorR
7676
:: Name Owner -- ^ Repository owner
7777
-> Name Repo -- ^ Repository name
7878
-> Name User -- ^ Collaborator to add
79-
-> Request 'RW Invitation
79+
-> Request 'RW ()
8080
addCollaboratorR owner repo coll =
81-
command Put ["repos", toPathPart owner, toPathPart repo, "collaborators", toPathPart coll] mempty
81+
command Put' ["repos", toPathPart owner, toPathPart repo, "collaborators", toPathPart coll] mempty
8282
-- /repos/:owner/:repo/collaborators/:username

0 commit comments

Comments
 (0)