pub struct PullRequest {Show 21 fields
pub number: u64,
pub url: String,
pub title: String,
pub state: PrState,
pub draft: bool,
pub head: String,
pub base: String,
pub mergeable: Option<bool>,
pub approvals: u32,
pub changes_requested: bool,
pub open_threads: u32,
pub auto_merge: bool,
pub author: String,
pub created: u64,
pub checks: Option<CheckState>,
pub fork: bool,
pub repo: String,
pub head_repo: String,
pub host_repo: String,
pub merge_commit: String,
pub reviewers: Vec<String>,
}Expand description
A pull request as its host tells it (kept with an agent’s data: AgentMeta::prs).
Fields§
§number: u64§url: String§title: String§state: PrState§draft: bool§head: String§base: String§mergeable: Option<bool>Conflicts with its base: Some(false); not known yet: none.
approvals: u32Reviewers whose last say is an approval.
changes_requested: boolA reviewer’s last say asks for changes.
open_threads: u32Threads of comments on lines not resolved yet.
auto_merge: boolThe host merges it by itself once the checks pass.
Who opened it (a login, a name on Azure DevOps); empty when the host does not say.
created: u64When it was opened (seconds since 1970); 0 when the host does not say.
checks: Option<CheckState>The checks of its last commit, in one word; none when it has none.
fork: boolIts branch is a fork’s: another repository’s branch that only bears the same name.
repo: StringOf an agent of several repositories (ESC-169): the repository it was opened in.
head_repo: StringThe repository on the host its branch is in (ada/demo), when the host tells it: a
fork’s, for one opened from a fork.
host_repo: StringThe repository on the host it is in (acme/demo), when it was read elsewhere than on the
remote of the project’s target: on the remote the agent’s branch tracks, or on the
repository that one was forked from. Empty: the target’s.
merge_commit: StringMerged: the commit its merge made on its base (the merge commit, the squash commit, or the last commit rebased), when the host tells it (ESC-67): what says in which environments a ticket merged by its pull request is deployed.
reviewers: Vec<String>Whose review is asked and not given yet (logins; names on Azure DevOps), when the host says it: the « Relecture demandée » filter of the project’s pull requests (ESC-65).
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§fn clone(&self) -> PullRequest
fn clone(&self) -> PullRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more