# Pull Request > [!NOTE] > This is the documentation for schema `v1.0` > > [Changelog](https://github.com/risenlab/agentlogs/blob/main/CHANGELOG.md#schema-v1_0)
DescriptionGitHub pull request collected from a task or session.
Parquet tablepull_requests
Schema definitionagentlogs/schema/types/pull_request.py
## Data sources - Pull request (see [`found_using`](#fields)): - `graphql_global_id`: GitHub GraphQL `node(id:)` ([documentation](https://docs.github.com/en/graphql/reference/queries#node)) - `graphql_number_repo`: GitHub GraphQL `repository.pullRequest(number:)` ([documentation](https://docs.github.com/en/graphql/reference/objects#repository)) - `graphql_mint_global_id`: GitHub GraphQL `node(id:)` with a minted `global_id` from the base64-encoded `011:PullRequest{id}` ([documentation](https://docs.github.com/en/graphql/reference/queries#node)) - `rest_number_repo`: GitHub REST `GET /repos/{owner}/{repo}/pulls/{pull_number}` ([documentation](https://docs.github.com/en/rest/pulls/pulls#get-a-pull-request)) Only successful GitHub API responses are stored. Other tables may contain references to this table with no matching row. ## Relations | Property | Related table | Related field | Description | | --- | --- | --- | --- | | repository | [Repository](repository.md) | | | | created_by_tasks (list) | [Agent Task](agent_task.md) | pull_request_artifacts | Tasks that created this pull request as an artifact (see [Agent Task](./agent_task.md) `pull_request_artifacts`). | | created_by_sessions (list) | [Agent Session](agent_session.md) | pull_request_artifact | Sessions that created this pull request (see [Agent Session](./agent_session.md) `pull_request_artifact`). | | user (optional) | [User](user.md) | pull_requests | | | assignees (list) | [User](user.md) | assigned_pull_requests | | | requested_reviewers (list) | [User](user.md) | review_requested_pull_requests | Users only. Review requests to teams are not collected: GitHub GraphQL `Team` fields on review requests require org scopes this collection does not use. Only the first 20 are fetched. | | merged_by (optional) | [User](user.md) | merged_pull_requests | | | auto_merge.enabled_by (optional) | [User](user.md) | auto_merge_enabled_pull_requests | | ## Fields | Property | Type | GitHub field | Description | | --- | --- | --- | --- | | id | `int` (optional) | id | | | graphql_id | `str` | node_id | | | number | `int` | number | | | found_using | `str` | | `graphql_global_id`, `graphql_number_repo`, `graphql_mint_global_id`, or `rest_number_repo`. See [Data sources](#data-sources) | | timeline_found | `bool` | | | | repository | `struct{}` | | See [Relations](#relations). | |     full_name | `str` | | | | created_by_tasks | `list[]` | | See [Relations](#relations). | |     id | `str` | id | | | created_by_sessions | `list[]` | | See [Relations](#relations). | |     id | `str` | id | | | user | `struct{}` (optional) | user | See [Relations](#relations). | |     id | `int` (optional) | user
.id | | |     login | `str` (optional) | user
.login | | |     graphql_id | `str` (optional) | user
.node_id | | |     type | `str` (optional) | user
.type | | | assignees | `list[]` | assignees | See [Relations](#relations). | |     id | `int` (optional) | assignees[]
.id | | |     login | `str` (optional) | assignees[]
.login | | |     graphql_id | `str` (optional) | assignees[]
.node_id | | |     type | `str` (optional) | assignees[]
.type | | | requested_reviewers | `list[]` | requested_reviewers | See [Relations](#relations). | |     id | `int` (optional) | requested_reviewers[]
.id | | |     login | `str` (optional) | requested_reviewers[]
.login | | |     graphql_id | `str` (optional) | requested_reviewers[]
.node_id | | |     type | `str` (optional) | requested_reviewers[]
.type | | | merged_by | `struct{}` (optional) | merged_by | See [Relations](#relations). | |     id | `int` (optional) | merged_by
.id | | |     login | `str` (optional) | merged_by
.login | | |     graphql_id | `str` (optional) | merged_by
.node_id | | |     type | `str` (optional) | merged_by
.type | | | title | `str` | title | | | body | `str` (optional) | body | | | state | `str` | state | | | locked | `bool` | locked | | | draft | `bool` | draft | | | labels | `list[str]` | labels[]
.name | Only the first 20 are fetched. | | active_lock_reason | `str` (optional) | active_lock_reason | | | created_at | `datetime` | created_at | | | updated_at | `datetime` | updated_at | | | closed_at | `datetime` (optional) | closed_at | | | merged_at | `datetime` (optional) | merged_at | | | head | `struct{}` | head | | |     ref | `str` | head
.ref | | |     sha | `str` | head
.sha | | | base | `struct{}` | base | | |     ref | `str` | base
.ref | | |     sha | `str` | base
.sha | | | author_association | `str` | author_association | | | auto_merge | `struct{}` (optional) | | | |     enabled_by | `struct{}` (optional) | enabled_by | See [Relations](#relations). | |         id | `int` (optional) | enabled_by
.id | | |         login | `str` (optional) | enabled_by
.login | | |         graphql_id | `str` (optional) | enabled_by
.node_id | | |         type | `str` (optional) | enabled_by
.type | | |     merge_method | `str` | merge_method | | |     commit_title | `str` (optional) | commit_title | | |     commit_message | `str` (optional) | commit_message | | | merged | `bool` | merged | | | mergeable | `bool` (optional) | mergeable | | | mergeable_state | `str` | mergeable_state | | | maintainer_can_modify | `bool` | maintainer_can_modify | | | additions_count | `int` | additions | | | deletions_count | `int` | deletions | | | changed_files_count | `int` | changed_files | |