# github\_pulls

Detailed information and metrics about GitHub pull requests.

Group: github

[All tables](/schema.md)

[View HTML reference](https://docs.getdx.com/schema/github_pulls/)

| Column | Type | Description | References |
| --- | --- | --- | --- |
| id | number | Unique identifier for the row. |  |
| source\_id | number | GitHub ID of the repository. |  |
| repository\_id | number | ID of the GitHub repository which this pull request was created for. | [github\_repositories](/schema/github_repositories.md) |
| user\_id | number | ID of the user who created the pull request. | [github\_users](/schema/github_users.md) |
| merged\_by\_user\_id | number | ID of the user who merged the pull request | [github\_users](/schema/github_users.md) |
| closed\_by\_user\_id | number | ID of the user who closed the pull request. | [github\_users](/schema/github_users.md) |
| number | number | The pull request number for the repository. |  |
| title | string | Title of the pull request. |  |
| head\_ref | string | Reference to the branch where the pull request changes are implemented. Typically a branch name. |  |
| base\_ref | string | Reference to the branch where changes would be pulled into. Typically a branch name. |  |
| created | date | Date at which the pull request was created. |  |
| updated | date | Most recent date at which the pull request was updated. |  |
| closed | date | Date at which the pull request was closed. Present only if it is closed. |  |
| merged | date | Date at which the pull request was merged. Present only if it was merged. |  |
| first\_commit\_at | date | Timestamp of the first commit in the pull request. |  |
| ready\_for\_review | date | Date at which the pull request was marked as ready-for-review (i.e., converted from draft state). |  |
| draft | boolean | Boolean indicating whether or not the pull request is marked as a "draft" request. |  |
| merge\_commit\_sha | string | Git commit SHA of the merge commit used to merge into the base branch. |  |
| rebased\_commit\_originals | jsonb | Maps each pull request commit that was rebased by a force push while the pull request was open (for example by a merge queue or "Update branch") to the commit it replaced, paired by patch ID. Same structure as pull\_requests.rebased\_commit\_originals, which it is copied to. Used only for AI code metrics. Null when no rebased commits were found, or when the pull request has not been checked. |  |
| rebased\_commits\_checked\_event\_id | string | GraphQL node ID of the latest head\_ref\_force\_pushed event checked for rebased commits, so the pull request is only checked again after another force push. Null when it has not been checked. |  |
| rebased\_commits\_retry\_since | date | When the check for rebased commits first failed temporarily (for example a GitHub server error). A scheduled job retries it for 30 days from then, even if the pull request is not synced again. Null when no retry is pending. |  |
| open\_to\_merge | number | Time difference in seconds between a pull request being merged and being created. |  |
| 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. |  |
| additions | number | Count of lines added in the pull request. |  |
| deletions | number | Count of lines deleted in the pull request. |  |
| changed\_files | number | Count of files changed in the pull request. |  |
| commits | number | Count of commits in the pull request. |  |
| timespent | number | Estimated time spent working on the pull request in hours, calculated from commit history. |  |
| source\_url | string | URL directly to the pull request within GitHub. |  |
| description | string | Conditional schema: [github\_pull\_descriptions](https://docs.getdx.com/conditional-schemas/). Description of the pull request. |  |
| jira\_issue\_id | number | ID of the Jira issue linked to this pull request. | [jira\_issues](/schema/jira_issues.md) |
| issue\_tracker\_key | string | Issue key extracted from the pull request for issue tracker linking. |  |
| linear\_issue\_id | number | ID of the Linear issue linked to this pull request. | [linear\_issues](/schema/linear_issues.md) |
| synced\_at (DX internal) | date | Timestamp of when the pull request was last synced. |  |
| commits\_synced\_at (DX internal) | date | Timestamp of when the commits for this pull request were last synced. |  |
| api\_error\_pr\_details\_sync (DX internal) | boolean | Whether DX encountered an API error while syncing pull request details. |  |
| files\_synced\_at (DX internal) | date | When DX last synced files. |  |
| comments\_synced\_at (DX internal) | date | When DX last synced conversation comments for this pull request. Only present when the connection has "Import pull request comments" enabled. |  |
| row\_created\_at (DX internal) | date | When DX created this database row. |  |
| row\_updated\_at (DX internal) | date | When DX last updated this database row. |  |
