Skip to content

Commit

Permalink
Fix octokit codec merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashoneyman committed Jul 29, 2024
1 parent 637a757 commit ab184f2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions foreign/src/Foreign/Octokit.purs
Original file line number Diff line number Diff line change
Expand Up @@ -207,17 +207,14 @@ getCommitDateRequest { address, commitSha } =
, headers: Object.empty
, args: noArgs
, paginate: false
, codec: Profunctor.dimap toJsonRep fromJsonRep $ CJ.named "CommitData" $ CJ.Record.object
{ data: CJ.named "Commit" $ CJ.Record.object
{ committer: CJ.named "Commit.committer" $ CJ.Record.object
{ date: Internal.Codec.iso8601DateTime
}
}
, codec: Profunctor.dimap toJsonRep fromJsonRep $ CJ.named "Commit" $ CJ.Record.object
{ committer: CJ.named "Commit.committer" $ CJ.Record.object
{ date: Internal.Codec.iso8601DateTime }
}
}
where
toJsonRep date = { data: { committer: { date } } }
fromJsonRep = _.data.committer.date
toJsonRep date = { committer: { date } }
fromJsonRep = _.committer.date

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

0 comments on commit ab184f2

Please sign in to comment.