2 min lesson
Run one unattended cloud update
Start a cloud run from a fixed ref, save its identifiers, enforce a deadline and inspect its pull request.
Step 1 of 2
First confirm that the API key can access the intended repository, then pass its URL and starting ref in cloud.repos. Enable autoCreatePR only when the job should open a pull request. Save agent.agentId, run.id and run.requestId before the worker can disconnect. Stream status while connected and use wait for the terminal result; call cancel if the job crosses the declared deadline. On success, inspect result.git, the pull request diff, the named checks and any files returned by listArtifacts before anyone merges.
Learn more
Optional practice
Test yourself on Run one unattended cloud update
QWhich evidence closes the unattended cloud update?