forked from google/go-github
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Draft Pull Requests Preview API
This change implements support for a preview of a new Draft Pull Requests API, announced at https://developer.github.com/changes/2019-02-14-draft-pull-requests/. • Add new media type constant. • Use that media type in "list pull requests" and "get pull request" endpoints. • Add Draft struct field to the PullRequest struct. The "create pull request" and "update pull request" endpoints don't set the new media type yet, but that can be dealt with in a future change. Fixes google#1120.
- Loading branch information
1 parent
5fccd9e
commit 6d8a511
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters