Skip to content

docs: fix documentation drift — pipeline trigger cancel step inaccuracy#523

Merged
jamesadevine merged 1 commit into
mainfrom
docs/fix-pipeline-trigger-doc-drift-3ff37798b5f6d722
May 13, 2026
Merged

docs: fix documentation drift — pipeline trigger cancel step inaccuracy#523
jamesadevine merged 1 commit into
mainfrom
docs/fix-pipeline-trigger-doc-drift-3ff37798b5f6d722

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Documentation Freshness Audit

This audit found the following inconsistency between code and documentation:

Findings

Area Issue File(s)
Pipeline trigger prompt Step 11 incorrectly states "a step to cancel previous queued builds is included" when on.pipeline is set — no such step exists in the compiler prompts/create-ado-agentic-workflow.md

Details

Step 11 — Pipeline Triggers in prompts/create-ado-agentic-workflow.md contained this inaccurate sentence:

When on.pipeline is set: trigger: none and pr: none are generated automatically, and a step to cancel previous queued builds is included.

What the code actually does (src/compile/extensions/trigger_filters.rs):

  • trigger: none and pr: none are generated automatically when on.pipeline is set — ✅ correct
  • A gate step with self-cancellation logic is only generated when on.pipeline.filters is configured with at least one filter check — ❌ the old text implied it was always generated

The TriggerFiltersExtension::setup_steps() method returns an empty Vec (no steps) when there are no filter checks. No "cancel previous queued builds" step of any kind is generated from a plain on.pipeline configuration without filters:.

Additionally, the filters: sub-option was entirely absent from the Step 11 YAML example, leaving agents with no guidance on how to use pipeline filters.

Applied Fixes

  • Corrected the description: removed the false "cancel previous queued builds" claim; accurately describes that a gate step is only added when filters: are configured
  • Added a filters: sub-object example to the Step 11 YAML block so agents know pipeline filters are available

This pull request was created by the automated documentation freshness check.

Generated by Documentation Freshness Check · ● 6.3M ·

The Step 11 pipeline trigger section incorrectly stated that setting
`on.pipeline` automatically includes "a step to cancel previous queued
builds". No such step exists. The self-cancellation gate step is only
generated when `on.pipeline.filters` is configured with actual filter
checks (via the TriggerFiltersExtension in
src/compile/extensions/trigger_filters.rs).

Fix the description to accurately describe the behavior: trigger: none
and pr: none are generated automatically, and a gate step with
self-cancellation is only added when filters: are configured.

Also add a complete filters: example to the pipeline trigger YAML block
so agents know filters are available under on.pipeline.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jamesadevine jamesadevine marked this pull request as ready for review May 13, 2026 06:22
@jamesadevine jamesadevine merged commit 13bfdeb into main May 13, 2026
@jamesadevine jamesadevine deleted the docs/fix-pipeline-trigger-doc-drift-3ff37798b5f6d722 branch May 13, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant