跳转到内容
EN

List changes

Code Mode: praxis.devops.projects.changes.list

HTTP: GET /devops/v1/projects/{project}/changes

List the project’s changes, newest first, each with its derived stage and one cell per environment. Use it to see what is in flight before opening another change, or to find the id (the branch name) of a change you want to read. filter narrows the list: stage is derived from the facts, so it is applied after derivation, while type, owner and ended narrow on stored columns. Leaving a filter field out, or sending an empty array, does not narrow that field. ended=true lists changes that are done or abandoned, ended=false lists the rest. totalSize is answered on the first page only and counts what the filter leaves.

签名

praxis.devops.projects.changes.list(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string};query?:{/** e.g. 20 */ pageSize?:number;/** e.g. "pt1.eyJvIjoyMH0" */ pageToken?:string;/** e.g. "{\"ended\":false,\"type\":[\"feat\"]}" */ filter?:string}}):Promise<{/** The changes on this page, each with its derived stage and per-environment cells. */ items:Array<{/** The change's id, which is its branch name <type>/<slug>; unique within the project and percent-encoded in paths. e.g. "feat/run-page-v2" */ id:string;/** The resource type of this answer, always change. */ object:"change";/** RFC 3339 UTC time the change was opened; the change list is ordered by it, newest first. e.g. "2026-11-08T06:30:00Z" */ createTime:string;/** RFC 3339 UTC time the change's own fields last changed. e.g. "2026-11-08T07:02:00Z" */ updateTime:string;/** Canonical Console link for this change. e.g. "https://console.deepraxis.com/devops/dvp_01m6j8swzteapw2j5sh4/changes/feat/run-page-v2" */ viewerUrl:string;/** The project this change belongs to, from the project list. e.g. "dvp_01m6j8swzteapw2j5sh4" */ project:string;/** The first half of the id, listed so readers need not split it. e.g. "feat" */ type:string;/** The second half of the id; also the key of the change's flag. e.g. "run-page-v2" */ slug:string;/** One line saying what the change is for. e.g. "Run page v2: streaming output and tool cards" */ title:string;/** Ticket references the change belongs to. */ tickets:Array<string>;/** Whether the change carries a flag that is rolled out in each environment on its own. e.g. true */ withFlag:boolean;owner:{/** What sort of actor this is, which decides how the id should be read. e.g. "user" */ kind:"user"|"agent"|"system";/** Identifier of the actor within its kind, such as a user id for a person. e.g. "usr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Display name for the actor at the time, so a record reads the way it did when it was written; absent when none was known. e.g. "Sean" */ label?:string};/** True for an urgent fix that may take the patch path. e.g. false */ urgent:boolean;/** The branch that was cut; null when the project has no connected repository. e.g. "feat/run-page-v2" */ branch:string|null;/** The pull requests whose head branch is this change's id, one per slice. */ pullRequests:Array<{/** The pull request identifier, used to read the pull request itself. e.g. "pr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The pull request number on the git host; slice order follows it. e.g. 412 */ number:number;/** The pull request's state on the git host. e.g. "open" */ state:"open"|"closed"|"merged";/** True while the pull request is a draft and cannot be merged. e.g. false */ draft:boolean;/** True once it was merged; equal to state merged. e.g. false */ merged:boolean;/** The commit that merged it into main; null before it is merged. e.g. "4f9c2ab" */ mergeCommit:string|null;/** The pull request title as it stands on the git host. e.g. "Run page v2: streaming output" */ title:string;/** RFC 3339 UTC time the pull request last changed. e.g. "2026-11-08T07:02:00Z" */ updateTime:string}>;/** The change's flag id, readable with the flag retrieve call; null when it has no flag. e.g. "flg_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ flag:string|null;/** The workspace that has the branch checked out; null when none does. e.g. null */ workspace:string|null;/** Whether the next merged pull request is the last slice; until it is true the change cannot roll out or finish. e.g. true */ lastSlice:boolean;/** True once the change was abandoned. e.g. false */ abandoned:boolean;stage:{/** The change's position; with several pull requests it is the slice furthest behind. e.g. "reviewing" */ stage:"developing"|"reviewing"|"integrating"|"integrated"|"deployed"|"rolling_out"|"done"|"abandoned"|"rolled_back";/** The environment the stage refers to, from the project's environment list; absent for stages that are not tied to one. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment?:string;/** A qualifier inside the stage: paused means the rollout was turned back to zero, verification_failed means the version deployed but its verification failed; othe e.g. "verification_failed" */ sub?:string};/** Set when this change is a suspect of a failed verification that no later success has replaced; null otherwise. */ suspectedIn?:{/** The promotion whose verification failed, from a promotion read. e.g. "prm_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ promotion:string;/** The release that promotion carried. e.g. "rls_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ release:string;/** The environment where verification failed. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** The test runs that failed verification. */ runs:Array<string>}|null;/** One cell per environment of the project. */ cells:Array<{/** The environment this cell describes, from the project's environment list. e.g. "dve_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ environment:string;/** True once a promotion carrying this change succeeded in the environment. e.g. true */ deployed:boolean;/** The release the change rode into this environment; absent when it was not deployed there. e.g. "rls_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ version?:string;/** The change's flag in this environment; present only for a change that has a flag. */ flag?:{/** Whether the flag is on in this environment. e.g. true */ on:boolean;/** The share of traffic served while on, 0 to 100; absent while on means the internal organization only. e.g. 50 */ percent?:number;/** True when the rollout was paused and turned back to zero. e.g. false */ paused?:boolean}}>}>;/** How many changes the project and filter match across every page; returned on the first page only. e.g. 12 */ totalSize?:number;/** Cursor for the next page; an empty string means this was the last page, which is the only signal a list is finished. e.g. "pt1.eyJvIjo1MH0" */ nextPageToken:string}>;

参数

名称位置类型必填说明
projectpathstring是Identifies the project whose data you are reading, from the project list or create answer.
pageSizequerynumber否How many items this page returns, 1 to 100; omitted uses 50. A larger value is capped at 100 rather than refused, and 0 falls back to the default, so a paging loop never fails on a size alone.
pageTokenquerystring否The cursor from the previous page’s nextPageToken. Treat it as opaque and never build one yourself; omit it for the first page.
filterquerystring否JSON object with any of stage (array of stages), type (array of change types), owner (the requester’s actor id) and ended (boolean). A stage or type that is not in the vocabulary is refused with INVALID_ARGUMENT rather than ignored.

响应

状态码内容类型说明
200application/jsonOne page of the project’s changes, newest first, narrowed by the filter.
400application/jsonINVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
401application/jsonThe API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
403application/jsonThe credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible.
404application/jsonPROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
500application/jsonINTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.