Skip to content

Support Draft Pull Requests API Public Beta #1120

@dmitshur

Description

@dmitshur

GitHub Developer API announcement: https://developer.github.com/changes/2019-02-14-draft-pull-requests/.

It looks like we'll need the following for this issue:

  • a new media type (application/vnd.github.shadow-cat-preview+json) must be added to github.go,
  • this media type must be added to the header of calls to all affected endpoints (list PRs, get a single PR),
  • a new Draft field must be added to the PullRequest struct that is returned from list/get PR endpoints,
  • and also to NewPullRequest struct used for creating a PR, Edit: This doesn't need to be done; this isn't a part of the preview API at this time.
  • the PullRequestsService.Edit needs to be updated to allow the new Draft field to be passed Edit: This doesn't need to be done; this isn't a part of the preview API at this time.

This would be a great PR for any new contributor to this repo or a new Go developer. All contributions are greatly appreciated!

Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work.

Please check out our CONTRIBUTING.md guide to get started.

Thank you!

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