Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

ListPullRequestsOptions does not work? #161

Open
@quantonganh

Description

@quantonganh

return prs, c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/pulls", owner, repo), jsonHeader, bytes.NewReader(body), &prs)

How does this work?

func (c *Client) getParsedResponse(method, path string, header http.Header, body io.Reader, obj interface{}) error {

func (c *Client) getResponse(method, path string, header http.Header, body io.Reader) ([]byte, error) {

func (c *Client) doRequest(method, path string, header http.Header, body io.Reader) (*http.Response, error) {

You passed body as a JSON to a GET request and expect it will be converted to a query string?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions