Struct hubcaps::pulls::PullRequest
[−]
[src]
pub struct PullRequest<'a> { /* fields omitted */ }
A structure for accessing interfacing with a specific pull request
Methods
impl<'a> PullRequest<'a>
[src]
fn new<O, R>(github: &'a Github<'a>,
owner: O,
repo: R,
number: u64)
-> PullRequest<'a> where O: Into<String>, R: Into<String>
owner: O,
repo: R,
number: u64)
-> PullRequest<'a> where O: Into<String>, R: Into<String>
fn get(&self) -> Result<Pull>
Request a pull requests information
fn open(&self) -> Result<Pull>
short hand for editing state = open
fn close(&self) -> Result<Pull>
shorthand for editing state = closed
fn edit(&self, pr: &PullEditOptions) -> Result<Pull>
Edit a pull request
fn files(&self) -> Result<Vec<FileDiff>>
fn comments(&self) -> Comments
returns issue comments interface
fn review_comments(&self) -> ReviewComments
returns review comments interface