Prepare 0.26 by phadej · Pull Request #446 · haskell-github/github · GitHub
Skip to content
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
109 changes: 59 additions & 50 deletions .travis.yml
50 changes: 34 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
## Changes for 0.24

**Major change**:
Introduce `github` n-ary combinator to hoist `... -> Request rw res`
into `... -> IO (Either Error res)` (i.e. n-ary `executeRequest`).
With that in place drop `.. -> IO (Either Error res)` functions.

This reduces symbol bloat in the library.
[#415](https://github.com/phadej/github/pull/415)
## Changes for 0.26

- Generalize PagedQuery to allow its reuse by preview github APIs
[#439](https://github.com/phadej/github/pull/439)
- Add endpoint for listing organizations outside collaborators
[#445](https://github.com/phadej/github/pull/445)
- Add endpoint for users search
[#444](https://github.com/phadej/github/pull/444)
- Make repoWebhookResponseStatus optional
[#436](https://github.com/phadej/github/pull/436)
- Teams improvements
[#417](https://github.com/phadej/github/pull/417)
- Add deleteReference endpoint
[#388](https://github.com/phadej/github/pull/388)

## Changes for 0.25

- Remove double `withOpenSSL`
[#414](https://github.com/phadej/github/pull/414)
- Pull requests reviews API uses issue number
[#409](https://github.com/phadej/github/pull/409)
- Update `Repo`, `NewRepo` and `EditRepo` data types
[#407](https://github.com/phadej/github/pull/407)
- Add `executeRequestWithMgrAndRes`
[#421](https://github.com/phadej/github/pull/421)
- Add `limitsFromHttpResponse`
Expand All @@ -29,10 +30,27 @@ This reduces symbol bloat in the library.
- Add support for collaborator permission endpoint
[#425](https://github.com/phadej/github/pull/425)
- Add support for the comment reply endpoint
[#424](Add support for the comment reply endpoint)
[#424](https://github.com/phadej/github/pull/424)
- Organise exports in `GitHub`
[#430](https://github.com/phadej/github/pull/430)

## Changes for 0.24

**Major change**:
Introduce `github` n-ary combinator to hoist `... -> Request rw res`
into `... -> IO (Either Error res)` (i.e. n-ary `executeRequest`).
With that in place drop `.. -> IO (Either Error res)` functions.

This reduces symbol bloat in the library.
[#415](https://github.com/phadej/github/pull/415)

- Remove double `withOpenSSL`
[#414](https://github.com/phadej/github/pull/414)
- Pull requests reviews API uses issue number
[#409](https://github.com/phadej/github/pull/409)
- Update `Repo`, `NewRepo` and `EditRepo` data types
[#407](https://github.com/phadej/github/pull/407)

## Changes for 0.23

- Escape URI paths
Expand Down
13 changes: 7 additions & 6 deletions github.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: >=1.10
name: github
version: 0.24
version: 0.26
synopsis: Access to the GitHub API, v3.
category: Network
description:
Expand Down Expand Up @@ -36,7 +36,8 @@ tested-with:
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.1
|| ==8.8.3
|| ==8.10.1

extra-source-files:
README.md
Expand Down Expand Up @@ -163,7 +164,7 @@ library

-- Packages bundles with GHC, mtl and text are also here
build-depends:
base >=4.7 && <4.14
base >=4.7 && <4.15
, binary >=0.7.1.0 && <0.11
, bytestring >=0.10.4.0 && <0.11
, containers >=0.5.5.1 && <0.7
Expand All @@ -175,15 +176,15 @@ library

-- other packages
build-depends:
aeson >=1.4.0.0 && <1.5
, base-compat >=0.10.4 && <0.12
aeson >=1.4.0.0 && <1.6
, base-compat >=0.11.1 && <0.12
, base16-bytestring >=0.1.1.6 && <0.2
, binary-instances >=1 && <1.1
, cryptohash-sha1 >=0.11.100.1 && <0.12
, deepseq-generics >=0.2.0.0 && <0.3
, exceptions >=0.10.2 && <0.11
, hashable >=1.2.7.0 && <1.4
, http-client >=0.5.12 && <0.7
, http-client >=0.5.12 && <0.8
, http-link-header >=1.0.3.1 && <1.1
, http-types >=0.12.3 && <0.13
, iso8601-time >=0.1.5 && <0.2
Expand Down
2 changes: 1 addition & 1 deletion samples/Organizations/Teams/CreateTeamFor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main = do
Github.createTeamFor'
(Github.OAuth token)
org
(Github.CreateTeam team (Just desc) (read repos :: [String]) Github.PermissionPull)
(Github.CreateTeam team (Just desc) (read repos :: [String]) Github.PrivacyClosed Github.PermissionPull)
_ ->
error "usage: CreateTeamFor <token> <org> <team_name> <description> <[\"repos\"]>"
case result of
Expand Down
2 changes: 1 addition & 1 deletion samples/Teams/EditTeam.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ main = do
(GitHub.OAuth $ fromString token)
GitHub.editTeamR
(GitHub.mkTeamId $ read team_id)
(GitHub.EditTeam (GitHub.mkTeamName $ fromString team_name) (Just $ fromString desc) GitHub.PermissionPull)
(GitHub.EditTeam (GitHub.mkTeamName $ fromString team_name) (Just $ fromString desc) Nothing Nothing)
_ ->
error "usage: EditTeam <token> <team_id> <team_name> <description>"
case result of
Expand Down
3 changes: 2 additions & 1 deletion samples/github-samples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ tested-with:
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.1
|| ==8.8.3
|| ==8.10.1

library
hs-source-dirs: src
Expand Down
2 changes: 2 additions & 0 deletions src/GitHub.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ module GitHub (
referenceR,
referencesR,
createReferenceR,
deleteReferenceR,
namespacedReferencesR,

-- ** Trees
-- | See <https://developer.github.com/v3/git/trees/>
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub/Data/GitData.hs
Loading