Power BI Connector for GitHub

Build 26.0.9655

RepositoryPullRequests

Lists information about pull requests in repositories.

View-Specific Information

Select

The connector uses the GitHub API to process WHERE clause conditions that are built with the following columns and operators:

  • BaseRefName supports the '=' comparison operator.
  • HeadRefName supports the '=' comparison operator.
  • State supports the '=,IN' comparison operators.
  • RepositoryName supports the '=,IN' comparison operators.
  • OwnerLogin supports the '=,IN' comparison operators.

For example, the following queries are processed server-side:

SELECT * FROM [RepositoryPullRequests]
SELECT * FROM [RepositoryPullRequests] WHERE [BaseRefName] = 'Val1'
SELECT * FROM [RepositoryPullRequests] WHERE [HeadRefName] = 'Val1'
SELECT * FROM [RepositoryPullRequests] WHERE [State] = 'OPEN'
SELECT * FROM [RepositoryPullRequests] WHERE [RepositoryName] = 'Val1'
SELECT * FROM [RepositoryPullRequests] WHERE [OwnerLogin] = 'Val1'

The connector processes other filters client-side within the connector.

The connector uses the GitHub API to process ORDER BY clause conditions that are built with the following columns:

  • UpdatedAt
  • CreatedAt

SELECT * FROM [RepositoryPullRequests] ORDER BY [UpdatedAt]
SELECT * FROM [RepositoryPullRequests] ORDER BY [CreatedAt]

The connector processes ordering by other columns client-side within the connector.

Columns

Name Type ReadOnly References Description
Id [KEY] String True

The ID of the pull request.

FullDatabaseId Long True

Identifies the primary key from the database as a BigInt.

Author String True

The actor's login name who authored the comment.

AuthorAssociation String True

Author's association with the subject of the comment.

Editor String True

The actor's login name who edited this pull request's body.

HeadRepositoryId String False

The repository associated with this pull request's head Ref.

HeadRepositoryOwner String True

The owner's login name of the repository associated with this pull request's head Ref.

MergedBy String True

The actor's login name who merged the pull request.

BaseRefId String True

Identifies the ID of the base ref associated with the pull request, even if the ref has been deleted.

BaseRefOid String True

Identifies the OID of the base ref associated with the pull request, even if the ref has been deleted.

BaseRefPrefix String True

Identifies the prefix of the base Ref associated with the pull request.

BaseRefName String False

Identifies the name of the base Ref associated with the pull request, even if the ref has been deleted.

HeadRefId String True

Identifies the ID of the head ref associated with the pull request, even if the ref has been deleted.

HeadRefOid String True

Identifies the OID of the head ref associated with the pull request, even if the ref has been deleted.

HeadRefPrefix String True

Identifies the prefix of the head Ref associated with the pull request.

HeadRefName String False

Identifies the name of the head Ref associated with the pull request, even if the ref has been deleted.

Title String False

Identifies the pull request title.

TitleHTML String True

Identifies the pull request title rendered to HTML.

Body String False

The body as Markdown.

BodyText String True

The body rendered to text.

BodyHTML String True

The body rendered to HTML.

State String False

Identifies the state of the pull request.

The allowed values are OPEN, CLOSED, MERGED.

Number Int True

Identifies the pull request number.

Mergeable String True

Whether or not the pull request can be merged based on the existence of merge conflicts.

Merged Bool True

Whether or not the pull request was merged.

Closed Bool False

true if the pull request is closed.

ChangedFiles Int True

The number of changed files in this pull request.

Additions Int True

The number of additions in this pull request.

Deletions Int True

The number of deletions in this pull request.

TotalCommentsCount Int True

Returns a count of how many comments this pull request has received.

ReviewDecision String True

The current status of this pull request with respect to code review.

Locked Bool True

true if the pull request is locked.

ActiveLockReason String True

Reason that the conversation was locked.

IsDraft Bool False

Identifies if the pull request is a draft.

IsCrossRepository Bool True

The head and base repositories are different.

MaintainerCanModify Bool False

Indicates whether maintainers can modify the pull request.

CreatedViaEmail Bool True

Check if this comment was created via an email reply.

IncludesCreatedEdit Bool True

Check if this comment was edited and includes an edit with the creation data.

MergeCommitId String True

The commit ID that was created when this pull request was merged.

PotentialMergeCommitId String True

The commit ID that GitHub automatically generated to test if this pull request could be merged. This field will not return a value if the pull request is merged, or if the test merge commit is still being generated. See the mergeable field for more details on the mergeability of the pull request.

Permalink String True

The permalink to the pull request.

ResourcePath String True

The HTTP path for this pull request.

ChecksResourcePath String True

The HTTP path for the checks of this pull request.

RevertResourcePath String True

The HTTP path for reverting this pull request.

Url String True

The HTTP URL for this pull request.

ChecksUrl String True

The HTTP URL for the checks of this pull request.

RevertUrl String True

The HTTP URL for reverting this pull request.

LastEditedAt Datetime True

The moment the editor made the last edit.

MergedAt Datetime True

The date and time that the pull request was merged.

ClosedAt Datetime True

Identifies the date and time when the object was closed.

PublishedAt Datetime True

Identifies when the comment was published at.

UpdatedAt Datetime True

Identifies the date and time when the object was last updated.

CreatedAt Datetime True

Identifies the date and time when the object was created.

MilestoneId String False

Identifies the milestone's ID associated with the pull request.

MilestoneTitle String True

Identifies the title of the milestone.

MilestoneNumber Int True

Identifies the number of the milestone.

AutoMergeRequestCommitHeadline String True

The commit title of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging.

AutoMergeRequestAuthorEmail String True

The email address of the author of this auto-merge request.

AutoMergeRequestCommitBody String True

The commit message of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging.

AutoMergeRequestEnabledAt Datetime True

When was this auto-merge request was enabled.

AutoMergeRequestMergeMethod String True

The merge method of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging.

ViewerDidAuthor Bool True

Did the viewer author this comment.

IsReadByViewer Bool True

Is this pull request read by the viewer.

ViewerSubscription String True

Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.

ViewerCanLabel Bool True

Indicates if the viewer can edit labels for this object.

ViewerCanClose Bool True

Indicates if the object can be closed by the viewer.

ViewerCanReact Bool True

Can user react to this subject.

ViewerCanReopen Bool True

Indicates if the object can be reopened by the viewer.

ViewerCanSubscribe Bool True

Check if the viewer is able to change their subscription status for the repository.

ViewerCanApplySuggestion Bool True

Whether or not the viewer can apply suggestion.

ViewerCanEditFiles Bool True

Can the viewer edit files within this pull request.

ViewerCanDeleteHeadRef Bool True

Check if the viewer can restore the deleted head ref.

ViewerCanDisableAutoMerge Bool True

Whether or not the viewer can disable auto-merge.

ViewerCanEnableAutoMerge Bool True

Whether or not the viewer can enable auto-merge.

ViewerCanMergeAsAdmin Bool True

Indicates whether the viewer can bypass branch protections and merge the pull request immediately.

ViewerCanUpdate Bool True

Check if the current viewer can update this object.

ViewerCanUpdateBranch Bool True

Whether or not the viewer can update the head ref of this PR, by merging or rebasing the base ref. If the head ref is up to date or unable to be updated by this user, this will return false.

ViewerCannotUpdateReasons String True

Reasons why the current viewer can not update this comment.

ViewerLatestReviewRequestId String True

The ID of the viewer's latest review request.

ViewerLatestReviewId String True

The ID of the viewer's latest review.

IsMergeQueueEnabled Bool True

Indicates whether the pull request's base ref has a merge queue enabled.

IsInMergeQueue Bool True

Indicates whether the pull request is in a merge queue.

MergeQueueEntryId String True

The ID of this entry in the queue.

MergeQueueEntryJump Bool True

Whether this pull request should jump the queue.

MergeQueueEntryPosition Int True

The position of this entry in the queue.

MergeQueueEntrySolo Bool True

Does this pull request need to be deployed on its own.

MergeQueueEntryState String True

The state of this entry in the queue.

MergeQueueEntryEnqueuedAt Datetime True

The date and time this entry was added to the merge queue.

MergeQueueEntryEstimatedTimeToMerge Int True

The estimated time in seconds until this entry will be merged.

MergeQueueEntryBaseCommitId String True

The ID of the base commit in the queue entry.

MergeQueueEntryHeadCommitId String True

The ID of the head commit in the queue entry.

MergeQueueEntryMergeQueueId String True

The ID of the entry's queue.

MergeQueueEntryMergeQueueUrl String True

The HTTP URL for this merge queue.

MergeQueueEntryMergeQueueResourcePath String True

The HTTP path for this merge queue.

MergeQueueEntryMergeQueueNextEntryEstimatedTimeToMerge Int True

The estimated time in seconds until a newly added entry would be merged.

StatusCheckRollupId String True

The Node ID of the StatusCheckRollup object.

StatusCheckRollupCommitId String True

The commit the status and check runs are attached to.

StatusCheckRollupState String True

The combined status for the commit.

RepositoryId String True

The ID of the repository.

RepositoryName String True

The name of the repository.

OwnerLogin String True

The login field of a user or organization.

Pseudo-Columns

Pseudo column fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.

Name Type Description
AssigneeIds String

A simple, comma-separated list of Node IDs of assignees for this pull request.

LabelIds String

A simple, comma-separated list of Node IDs of labels for this pull request.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655