pub struct PullRequest {Show 18 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub slug_id: Option<String>,
pub title: Option<String>,
pub number: Option<f64>,
pub source_branch: Option<String>,
pub target_branch: Option<String>,
pub head_sha: Option<String>,
pub base_sha: Option<String>,
pub url: Option<String>,
pub status: Option<PullRequestStatus>,
pub merge_settings: Option<PullRequestMergeSettings>,
pub merge_commit: Option<PullRequestCommit>,
pub checks: Option<Vec<PullRequestCheck>>,
pub commits: Option<Vec<PullRequestCommit>>,
pub creator: Option<Box<User>>,
}Expand description
Internal A pull or merge request from a connected version control system (GitHub or GitLab). Pull requests are automatically linked to Linear issues via branch names or commit messages containing issue identifiers. They track the full lifecycle including status, reviewers, checks, and merge state, and are synced bidirectionally with the hosting provider.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
slug_id: Option<String>The pull request’s unique URL slug, used to construct human-readable URLs within the Linear app.
title: Option<String>The title of the pull request.
number: Option<f64>The pull request number as assigned by the hosting provider (e.g., #123 on GitHub). Unique within a repository.
source_branch: Option<String>The source (head) branch of the pull request that contains the proposed changes.
target_branch: Option<String>The target (base) branch that the pull request will be merged into.
head_sha: Option<String>The Git SHA of the latest commit on the source branch. Updated as new commits are pushed. Null if not yet synced.
base_sha: Option<String>The Git SHA of the base commit on the target branch that the pull request is compared against. Null if not yet synced.
url: Option<String>The URL of the pull request on the hosting provider (e.g., a GitHub or GitLab URL).
status: Option<PullRequestStatus>The current status of the pull request (open, closed, merged, or draft). Synced from the hosting provider.
merge_settings: Option<PullRequestMergeSettings>Merge settings and allowed merge methods for this pull request’s repository. Null if the settings have not been synced from the provider.
merge_commit: Option<PullRequestCommit>The merge commit created when the pull request was merged. Null if the pull request has not been merged or if the merge commit data is not available.
checks: Option<Vec<PullRequestCheck>>Internal The CI/CD checks and status checks associated with the pull request, synced from the hosting provider.
commits: Option<Vec<PullRequestCommit>>ALPHA The commits included in the pull request, synced from the hosting provider. Includes metadata such as SHA, message, diff stats, and author information.
creator: Option<Box<User>>Internal The Linear user who created the pull request. Null if the creator is an external user not mapped to a Linear account, or if the creator’s account has been deleted.
Trait Implementations§
Source§impl Clone for PullRequest
impl Clone for PullRequest
Source§fn clone(&self) -> PullRequest
fn clone(&self) -> PullRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more