Skip to content

aws.codecommit.describe_pull_request_events

Example SQL Queries

SELECT * FROM
aws.codecommit.describe_pull_request_events
WHERE
"pull_request_id" = 'VALUE';

Description

Returns information about one or more pull request events.

Table Definition

Column NameColumn Data Type
pull_request_id Required Input Column

The system-generated ID of the pull request.

VARCHAR
actor_arn Input Column

The Amazon Resource Name (ARN) of the user whose actions resulted in the event. Examples include updating the pull request with more commits or changing the status of a pull request.

VARCHAR
pull_request_event_type Input Column

The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)).

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
approval_rule_event_metadata

Information about a pull request event.

STRUCT(
"approval_rule_name" VARCHAR,
"approval_rule_id" VARCHAR,
"approval_rule_content" VARCHAR
)
Show child fields
approval_rule_event_metadata.approval_rule_content

The content of the approval rule.

approval_rule_event_metadata.approval_rule_id

The system-generated ID of the approval rule.

approval_rule_event_metadata.approval_rule_name

The name of the approval rule.

approval_rule_overridden_event_metadata

Information about an approval rule override event for a pull request.

STRUCT(
"revision_id" VARCHAR,
"override_status" VARCHAR
)
Show child fields
approval_rule_overridden_event_metadata.override_status

The status of the override event.

approval_rule_overridden_event_metadata.revision_id

The revision ID of the pull request when the override event occurred.

approval_state_changed_event_metadata

Information about an approval state change for a pull request.

STRUCT(
"revision_id" VARCHAR,
"approval_status" VARCHAR
)
Show child fields
approval_state_changed_event_metadata.approval_status

The approval status for the pull request.

approval_state_changed_event_metadata.revision_id

The revision ID of the pull request when the approval state changed.

event_date

The day and time of the pull request event, in timestamp format.

TIMESTAMP_S
pull_request_created_event_metadata

Information about the source and destination branches for the pull request.

STRUCT(
"repository_name" VARCHAR,
"source_commit_id" VARCHAR,
"destination_commit_id" VARCHAR,
"merge_base" VARCHAR
)
Show child fields
pull_request_created_event_metadata.destination_commit_id

The commit ID of the tip of the branch specified as the destination branch when the pull request was created.

pull_request_created_event_metadata.merge_base

The commit ID of the most recent commit that the source branch and the destination branch have in common.

pull_request_created_event_metadata.repository_name

The name of the repository where the pull request was created.

pull_request_created_event_metadata.source_commit_id

The commit ID on the source branch used when the pull request was created.

pull_request_merged_state_changed_event_metadata

Information about the change in mergability state for the pull request event.

STRUCT(
"repository_name" VARCHAR,
"destination_reference" VARCHAR,
"merge_metadata" STRUCT(
"is_merged" BOOLEAN,
"merged_by" VARCHAR,
"merge_commit_id" VARCHAR,
"merge_option" VARCHAR
)
)
Show child fields
pull_request_merged_state_changed_event_metadata.destination_reference

The name of the branch that the pull request is merged into.

pull_request_merged_state_changed_event_metadata.merge_metadata

Information about the merge state change event.

Show child fields
pull_request_merged_state_changed_event_metadata.merge_metadata.is_merged

A Boolean value indicating whether the merge has been made.

pull_request_merged_state_changed_event_metadata.merge_metadata.merge_commit_id

The commit ID for the merge commit, if any.

pull_request_merged_state_changed_event_metadata.merge_metadata.merge_option

The merge strategy used in the merge.

pull_request_merged_state_changed_event_metadata.merge_metadata.merged_by

The Amazon Resource Name (ARN) of the user who merged the branches.

pull_request_merged_state_changed_event_metadata.repository_name

The name of the repository where the pull request was created.

pull_request_source_reference_updated_event_metadata

Information about the updated source branch for the pull request event.

STRUCT(
"repository_name" VARCHAR,
"before_commit_id" VARCHAR,
"after_commit_id" VARCHAR,
"merge_base" VARCHAR
)
Show child fields
pull_request_source_reference_updated_event_metadata.after_commit_id

The full commit ID of the commit in the source branch that was the tip of the branch at the time the pull request was updated.

pull_request_source_reference_updated_event_metadata.before_commit_id

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was updated.

pull_request_source_reference_updated_event_metadata.merge_base

The commit ID of the most recent commit that the source branch and the destination branch have in common.

pull_request_source_reference_updated_event_metadata.repository_name

The name of the repository where the pull request was updated.

pull_request_status_changed_event_metadata

Information about the change in status for the pull request event.

STRUCT(
"pull_request_status" VARCHAR
)
Show child fields
pull_request_status_changed_event_metadata.pull_request_status

The changed status of the pull request.