pull_request_events
Creates, updates, deletes, gets or lists a pull_request_events resource.
Overview
| Name | pull_request_events |
| Type | Resource |
| Id | aws.codecommit.pull_request_events |
Fields
The following fields are returned by SELECT queries:
- describe_pull_request_events
| Name | Datatype | Description |
|---|---|---|
actor_arn | string | 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. |
approval_rule_event_metadata | object | Information about a pull request event. |
approval_rule_overridden_event_metadata | object | Information about an approval rule override event for a pull request. |
approval_state_changed_event_metadata | object | Information about an approval state change for a pull request. |
event_date | string (date-time) | The day and time of the pull request event, in timestamp format. |
pull_request_created_event_metadata | object | Information about the source and destination branches for the pull request. |
pull_request_event_type | string | 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)). (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_id | string | The system-generated ID of the pull request. |
pull_request_merged_state_changed_event_metadata | object | Information about the change in mergability state for the pull request event. |
pull_request_source_reference_updated_event_metadata | object | Information about the updated source branch for the pull request event. |
pull_request_status_changed_event_metadata | object | Information about the change in status for the pull request event. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_pull_request_events | select | region | Returns 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_pull_request_events
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
;