Skip to content

EditIssue should have a Vector of assignees #335

Description

@axman6

According to https://developer.github.com/v3/issues/#edit-an-issue the assignee field is deprecated, and has been replaced with assignees, an array of user names. This currently means you can't ass multiple assignees to an issue:

HTTPError (HttpExceptionRequest Request {
  host                 = "api.github.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("Authorization","<REDACTED>"),("User-Agent","github.hs/0.7.4"),("Accept","application/vnd.github.preview")]
  path                 = "/repos/<OWNER>/<REPO>/issues/10"
  queryString          = ""
  method               = "PATCH"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (StatusCodeException (Response {
    responseStatus = Status {statusCode = 422, statusMessage = "Unprocessable Entity"},
    responseVersion = HTTP/1.1,
    responseHeaders = <REDACTED>,
    responseBody = (),
    responseCookieJar = CJ {expose = []},
    responseClose' = ResponseClose}) 
    "{\"message\":\"Validation Failed\",\"errors\":
      [{\"value\":\"<AUSER>\",
      \"resource\":\"Issue\",
      \"field\":\"assignee\",
      \"code\":\"invalid\"}],
      \"documentation_url\":\"https://developer.github.com/v3/issues/#edit-an-issue\"}"))

(I'd like to submit a PR but won't have time to in the next day or two)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions