Skip to content

Commit ab184f2

Browse files
Fix octokit codec merge error
1 parent 637a757 commit ab184f2

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

foreign/src/Foreign/Octokit.purs

+5-8
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,14 @@ getCommitDateRequest { address, commitSha } =
207207
, headers: Object.empty
208208
, args: noArgs
209209
, paginate: false
210-
, codec: Profunctor.dimap toJsonRep fromJsonRep $ CJ.named "CommitData" $ CJ.Record.object
211-
{ data: CJ.named "Commit" $ CJ.Record.object
212-
{ committer: CJ.named "Commit.committer" $ CJ.Record.object
213-
{ date: Internal.Codec.iso8601DateTime
214-
}
215-
}
210+
, codec: Profunctor.dimap toJsonRep fromJsonRep $ CJ.named "Commit" $ CJ.Record.object
211+
{ committer: CJ.named "Commit.committer" $ CJ.Record.object
212+
{ date: Internal.Codec.iso8601DateTime }
216213
}
217214
}
218215
where
219-
toJsonRep date = { data: { committer: { date } } }
220-
fromJsonRep = _.data.committer.date
216+
toJsonRep date = { committer: { date } }
217+
fromJsonRep = _.committer.date
221218

222219
-- | Create a comment on an issue. Requires authentication.
223220
-- | https://github.com/octokit/plugin-rest-endpoint-methods.js/blob/v5.16.0/docs/issues/createComment.md

0 commit comments

Comments
 (0)