github-webhooks 0.13.0 → 0.14.0
raw patch · 6 files changed
+13/−7 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- GitHub.Data.Webhooks.Payload: [weCheckRunCheckSuite] :: HookCheckRun -> !HookCheckSuite
+ GitHub.Data.Webhooks.Payload: [whCheckRunCheckSuite] :: HookCheckRun -> !HookCheckSuite
Files
- CHANGELOG.md +6/−0
- github-webhooks.cabal +2/−2
- package.yaml +1/−1
- spec/DecodeEventsSpec.hs +1/−1
- src/GitHub/Data/Webhooks/Events.hs +2/−2
- src/GitHub/Data/Webhooks/Payload.hs +1/−1
CHANGELOG.md view
@@ -1,3 +1,9 @@+# 0.14.0++* Corrected description for CheckRunEventAction+* Fixed a decoding error for CheckRunEventActionRerequested+* Corrected a new hlint failure that was introduced by a recent hlint release+ # 0.13.0 * Support for `node_id`, which is used by the GraphQL API (by Alistair Burrowes)
github-webhooks.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 392c233dc7fdf218f1fac06e73ae9dded7e01ad2eb5251f992ea71bd7ffb60d6+-- hash: 9df6b1ffe1fd0cb5da8e6c4a2a90d73f6cf38957e7003b58aab36face9b04411 name: github-webhooks-version: 0.13.0+version: 0.14.0 synopsis: Aeson instances for GitHub Webhook payloads. description: Complete instances for decoding GitHub Webhook payloads (using @aeson@). See the README at <https://github.com/onrock-eng/github-webhooks#readme> for examples. category: GitHub
package.yaml view
@@ -1,5 +1,5 @@ name: github-webhooks-version: 0.13.0+version: 0.14.0 category: GitHub license: MIT
spec/DecodeEventsSpec.hs view
@@ -303,7 +303,7 @@ , whCheckRunOutputAnnotationsUrl = URL "https://api.github.com/repos/baxterthehacker/public-repo/check-runs/454339238/annotations" } , whCheckRunName = "Test Check Run"- , weCheckRunCheckSuite =+ , whCheckRunCheckSuite = HookCheckSuite { whCheckSuiteId = 12341234111 , whCheckSuiteNodeId = "MDg6Q2hlY2tSdW4xMjg2MjAyMjg="
src/GitHub/Data/Webhooks/Events.hs view
@@ -189,11 +189,11 @@ instance NFData CheckRunEventAction where rnf = genericRnf instance FromJSON CheckRunEventAction where- parseJSON = withText "Check suite event action" $ \t ->+ parseJSON = withText "Check run event action" $ \t -> case t of "created" -> pure CheckRunEventActionCreated "completed" -> pure CheckRunEventActionCompleted- "requested" -> pure CheckRunEventActionRerequested+ "rerequested" -> pure CheckRunEventActionRerequested "requested_action" -> pure CheckRunEventActionRequestedAction _ -> pure (CheckRunEventActionOther t)
src/GitHub/Data/Webhooks/Payload.hs view
@@ -609,7 +609,7 @@ , whCheckRunCompletedAt :: !(Maybe UTCTime) , whCheckRunOutput :: !HookCheckRunOutput , whCheckRunName :: !Text- , weCheckRunCheckSuite :: !HookCheckSuite+ , whCheckRunCheckSuite :: !HookCheckSuite , whCheckRunPullRequests :: !(Vector HookChecksPullRequest) } deriving (Eq, Show, Typeable, Data, Generic)