Skip to content

Commit

Permalink
Document the PullRequest number field (#476)
Browse files Browse the repository at this point in the history
Fixes #473
  • Loading branch information
Chris00 authored Oct 24, 2023
1 parent db7f850 commit e63bc42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/pulls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ pub struct PullRequest {
pub comments_url: Option<Url>,
#[serde(skip_serializing_if = "Option::is_none")]
pub statuses_url: Option<Url>,
/// The pull request number. Note that GitHub's REST API
/// considers every pull-request an issue with the same number.
pub number: u64,
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<IssueState>,
Expand Down

0 comments on commit e63bc42

Please sign in to comment.