haskell-github / github

The github API for Haskell
https://hackage.haskell.org/package/github
BSD 3-Clause "New" or "Revised" License
411 stars 190 forks source link

For issues, get field `state_reason` to distinguish issues closed as `not_planned` #495

Closed andreasabel closed 1 year ago

andreasabel commented 1 year ago

For issues, get field state_reason to distinguish issues closed as not_planned. This amounts to a new enum type IssueStateReason and a new field in Issue which should be parsed here: https://github.com/haskell-github/github/blob/f63f92c46b3980d06c87959009af21628d06e8a2/src/GitHub/Data/Issues.hs#L186-L205

According to https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#get-an-issue the possible values are