Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EditIssue should have a Vector of assignees #335

Closed
axman6 opened this issue Oct 25, 2018 · 1 comment
Closed

EditIssue should have a Vector of assignees #335

axman6 opened this issue Oct 25, 2018 · 1 comment

Comments

@axman6
Copy link
Contributor

axman6 commented Oct 25, 2018

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)

@axman6 axman6 changed the title EditIssue should have a Vector of assignees EditIssue should have a Vector of assignees Oct 25, 2018
@phadej
Copy link
Contributor

phadej commented Oct 25, 2018

Please make a PR, I'll appreaciate it!

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

No branches or pull requests

2 participants