You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ai): devops ai analyze pr runs for real under its own --dry-run #2314
In src/devops_cli/commands/analyze.py:460, devops ai analyze pr declares --dry-run.
At lines 523 to 524, the command calls session.client.get_pull and session.client.get_pull_files.
These calls execute gh pr view and contact the GitHub REST and GraphQL APIs.
Execution contacts the remote GitHub service before checking the dry-run state.
Under #412 and #986, contacting the remote service under --dry-run is external communication.
Proposed Solution
Check dry_run or is_dry_run() and render the preview before contacting GitHub API.
Use render_dry_run_result(command="devops ai analyze pr", ...) to show the planned action.
Ensure the command starts zero child processes and issues zero network calls.
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
Type: type/bug. The candidate fixes a bug where the command did not obey the dry-run rule.
Priority: P1-High. The fix ensures commands follow the project's dry-run rule and prevent unintended external calls.
Value: High. The change improves safety and prevents unintended resource usage during dry runs.
Effort: Medium. The fix requires checking dry-run state and rendering preview before API calls.
Possible duplicate: feat(ai): ai model and gateway commands list their requests in a dry run and make none #2241, which may ask for the same change. The model names devops ai analyze pr command checks dry-run state before contacting GitHub API as the change that both ask for. Both items ask for the same change to make ai commands follow the dry-run rule. A person closes one of the two if that is so.
Activity
dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate fixes a bug where the command did not obey the dry-run rule.The fix ensures commands follow the project's dry-run rule and prevent unintended external calls.The change improves safety and prevents unintended resource usage during dry runs.The fix requires checking dry-run state and rendering preview before API calls.devops ai analyze pr command checks dry-run state before contacting GitHub APIas the change that both ask for.Both items ask for the same change to make ai commands follow the dry-run rule.A person closes one of the two if that is so.chore(cli): survey argument-taking --dry-run command paths (#2316)
fix(ai): analyze pr previews under --dry-run and contacts no service (#…