fix(create-pr): skip auto-complete API call on draft PRs#200
fix(create-pr): skip auto-complete API call on draft PRs#200jamesadevine merged 1 commit intomainfrom
Conversation
When both draft: true and auto-complete: true are configured, skip the autoCompleteSetBy API call since ADO silently ignores auto-complete on draft PRs. The existing warning is preserved so operators are aware of the conflict. This prevents a pointless API call and avoids silent behavior loss when draft: true became the default in PR #155. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🔍 Rust PR ReviewSummary: Looks good — clean, minimal fix for a real behavioral issue. Findings✅ What Looks Good
|
Closes #194.
Problem
When
draft: true(now the default since #155) andauto-complete: trueare both configured, the executor makes a pointlessautoCompleteSetByAPI call that ADO silently ignores on draft PRs. The operator gets a log warning but may not realize auto-complete isn't actually set.Fix
Option 2 from the issue: skip the auto-complete API call when
draft: true. The warning is preserved so operators are aware of the conflict.Testing