Skip to main content

pull_request_events

Creates, updates, deletes, gets or lists a pull_request_events resource.

Overview

Namepull_request_events
TypeResource
Idaws.codecommit.pull_request_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actor_arnstringThe 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.
approval_rule_event_metadataobjectInformation about a pull request event.
approval_rule_overridden_event_metadataobjectInformation about an approval rule override event for a pull request.
approval_state_changed_event_metadataobjectInformation about an approval state change for a pull request.
event_datestring (date-time)The day and time of the pull request event, in timestamp format.
pull_request_created_event_metadataobjectInformation about the source and destination branches for the pull request.
pull_request_event_typestringThe type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)). (PULL_REQUEST_CREATED, PULL_REQUEST_STATUS_CHANGED, PULL_REQUEST_SOURCE_REFERENCE_UPDATED, PULL_REQUEST_MERGE_STATE_CHANGED, PULL_REQUEST_APPROVAL_RULE_CREATED, PULL_REQUEST_APPROVAL_RULE_UPDATED, PULL_REQUEST_APPROVAL_RULE_DELETED, PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN, PULL_REQUEST_APPROVAL_STATE_CHANGED)
pull_request_idstringThe system-generated ID of the pull request.
pull_request_merged_state_changed_event_metadataobjectInformation about the change in mergability state for the pull request event.
pull_request_source_reference_updated_event_metadataobjectInformation about the updated source branch for the pull request event.
pull_request_status_changed_event_metadataobjectInformation about the change in status for the pull request event.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_pull_request_eventsselectregionReturns information about one or more pull request events.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about one or more pull request events.

SELECT
actor_arn,
approval_rule_event_metadata,
approval_rule_overridden_event_metadata,
approval_state_changed_event_metadata,
event_date,
pull_request_created_event_metadata,
pull_request_event_type,
pull_request_id,
pull_request_merged_state_changed_event_metadata,
pull_request_source_reference_updated_event_metadata,
pull_request_status_changed_event_metadata
FROM aws.codecommit.pull_request_events
WHERE region = '{{ region }}' -- required
;