latestOpenAPI 3.1.02026-08-1963241304.5 KB

ae394a06c465

activity_log

Get the activity log

Get the activity log of the requested repository. Supports filtering by event_type, derived outcome (success / failure / pending / neutral), trigger (include only these trigger strings — Datadog Only), and not_trigger (exclude). trigger and not_trigger are mutually exclusive.

get/repos/{owner}/{repository}/logs

Path parameters

ownerstring required

The owner of the repository

The owner of the repository

repositorystring required

The name of the repository

The name of the repository

Query parameters

pull_requestinteger[] nullable

Filter events by pull-request number. Repeatable to match several PRs at once (e.g. ?pull_request=1&pull_request=2).

Filter events by pull-request number. Repeatable to match several PRs at once (e.g. ?pull_request=1&pull_request=2).

base_refstring nullable

Get events for PRs to the given base ref

Get events for PRs to the given base ref

batch_pullinteger[] nullable

Filter to batch (draft) pull requests' own lifecycle events by number (surfaced in the dashboard as "Batch Pull Request"). Repeatable to match several batches at once. The draft PR is the Mergify-opened pull request that speculatively checks a batch; this returns each batch's action.queue.checks_start / action.queue.checks_end events (which snapshot the draft PR number) plus the batch's bisection events. When in_place is true the number is the user's own PR rather than a Mergify draft. The number rotates on checks-retry — each event snapshots the number at that attempt. Mutually exclusive with not_batch_pull (exclusion).

Filter to batch (draft) pull requests' own lifecycle events by number (surfaced in the dashboard as "Batch Pull Request"). Repeatable to match several batches at once. The draft PR is the Mergify-opened pull request that speculatively checks a batch; this returns each batch's action.queue.checks_start / action.queue.checks_end events (which snapshot the draft PR number) plus the batch's bisection events. When in_place is true the number is the user's own PR rather than a Mergify draft. The number rotates on checks-retry — each event snapshots the number at that attempt. Mutually exclusive with not_batch_pull (exclusion).

not_batch_pullinteger[] nullable

Exclude batch (draft) pull requests' own lifecycle events by number — the same event set batch_pull includes, negated. Repeatable. Mirrors Datadog's facet semantics: unchecking a batch pull request in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with batch_pull (positive include).

Exclude batch (draft) pull requests' own lifecycle events by number — the same event set batch_pull includes, negated. Repeatable. Mirrors Datadog's facet semantics: unchecking a batch pull request in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with batch_pull (positive include).

event_typeEventType[] nullable

The specific types of events to select

The specific types of events to select

not_event_typeEventType[] nullable

Exclude events whose type matches any of the given values. Mutually exclusive with event_type (positive include).

Exclude events whose type matches any of the given values. Mutually exclusive with event_type (positive include).

outcomeEventOutcome[] nullable

Filter events by derived outcome label (success / failure / pending / neutral). Repeatable to match several outcomes at once (e.g. ?outcome=success&outcome=failure).

Filter events by derived outcome label (success / failure / pending / neutral). Repeatable to match several outcomes at once (e.g. ?outcome=success&outcome=failure).

not_outcomeEventOutcome[] nullable

Exclude events whose derived outcome label matches any of the given values (success / failure / pending / neutral). Repeatable. Mirrors Datadog's facet semantics: unchecking an outcome in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with outcome (positive include).

Exclude events whose derived outcome label matches any of the given values (success / failure / pending / neutral). Repeatable. Mirrors Datadog's facet semantics: unchecking an outcome in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with outcome (positive include).

triggerstring[] nullable

Include only events whose trigger matches one of the given values (exact match). Repeatable. Mirrors Datadog's facet behaviour after clicking Only: the URL switches from exclusion mode to inclusion mode with a positive list — shorter than not_trigger=<everything else>. Mutually exclusive with not_trigger.

Include only events whose trigger matches one of the given values (exact match). Repeatable. Mirrors Datadog's facet behaviour after clicking Only: the URL switches from exclusion mode to inclusion mode with a positive list — shorter than not_trigger=<everything else>. Mutually exclusive with not_trigger.

not_triggerstring[] nullable

Exclude events whose trigger matches any of the given values (exact match). Repeatable. Mirrors Datadog's facet semantics: the default state is all triggers included, and unchecking a trigger in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with trigger (positive include).

Exclude events whose trigger matches any of the given values (exact match). Repeatable. Mirrors Datadog's facet semantics: the default state is all triggers included, and unchecking a trigger in the dashboard sidebar adds it to the exclusion list. Mutually exclusive with trigger (positive include).

not_pull_requestinteger[] nullable

Exclude events whose pull request matches any of the given numbers. Mutually exclusive with pull_request (positive include).

Exclude events whose pull request matches any of the given numbers. Mutually exclusive with pull_request (positive include).

received_fromstring date-time nullable

Start of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to received_to - 1 day.

Start of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to received_to - 1 day.

received_tostring date-time nullable

End of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to now.

End of the time range (ISO 8601 with timezone, e.g. 2024-01-01T00:00:00Z). Defaults to now.

cursorstring nullable

The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get first/previous/next/last pages

The opaque cursor of the current page. Must be extracted from RFC 5988 pagination links to get first/previous/next/last pages

per_pageinteger

The number of items per page

The number of items per page

Response

Successful Response

sizeinteger required

The number of items in this page

per_pageinteger required

The number of items per page