cursor_origin_pulls

Details about the pull requests in your Cursor Origin repositories.

id

Primary key
Unique identifier for the row.

repository_id

Foreign key
ID of the repository this pull request belongs to.

source_id

Foreign key
Cursor Origin ID of the pull request.

number

string
Number of the pull request within its repository.

title

string
Title of the pull request.

state

string
State of the pull request.

draft

boolean
Boolean indicating whether the pull request is a draft.

user_id

Foreign key
ID of the user who authored the pull request.

head_ref

string
Name of the pull request's head branch.

head_sha

string
SHA of the pull request's head commit.

base_ref

string
Name of the pull request's base branch.

base_sha

string
SHA of the pull request's base commit.

merge_commit_sha

string
SHA of the merge commit, if merged.

additions

number
Number of lines added by the pull request.

deletions

number
Number of lines removed by the pull request.

changed_files

number
Number of files changed by the pull request.

source_url

string
URL directly to the pull request in Cursor Origin.

created_at

date
Timestamp of when the pull request was created.

updated_at

date
Timestamp of when the pull request was last updated.

merged_at

date
Timestamp of when the pull request was merged, if merged.

closed_at

date
Timestamp of when the pull request was closed, if closed.

ready_for_review

date
Date at which the pull request was marked as ready-for-review (i.e., converted from draft state).

open_to_merge

number
Time difference in seconds between the pull request being merged and being created. When "ready-for-review" is used, the calculation is instead the difference between the merge and the pull request being marked as "ready-for-review".

open_to_first_review

number
Time difference in seconds between the first review being submitted and the pull request being created. When "ready-for-review" is used, the calculation is instead the difference between the first review being submitted and the pull request being marked as "ready-for-review".

open_to_first_approval

number
Time difference in seconds between a pull request being approved and being created.