Skip to content

docs: expand trigger configuration in README with on.pr and on.pipeline examples#1506

Merged
jamesadevine merged 1 commit into
mainfrom
docs/trigger-configuration-readme-0e60737e773b1d07
Jul 15, 2026
Merged

docs: expand trigger configuration in README with on.pr and on.pipeline examples#1506
jamesadevine merged 1 commit into
mainfrom
docs/trigger-configuration-readme-0e60737e773b1d07

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • The README's "Schedule Syntax" section only covered schedule expressions. Users building PR-reviewing agents had no README-level guidance for on.pr or on.pipeline — they had to find agent-facing docs instead.
  • Renamed the section to "Trigger Configuration" with three subheadings covering all supported trigger types.

Changes

  • README.md — renamed ## Schedule Syntax## Trigger Configuration; added ### on.schedule — recurring schedule (existing content, just re-headlined); added ### on.pr — pull request trigger with two-layer filter table, three YAML examples (minimal, branch+changed-files, label gate), mode table, and an ADO Azure Repos note; added ### on.pipeline — upstream pipeline completion with a basic and a filtered example, plus a note on trigger suppression semantics. Updated the on field table link to #trigger-configuration.

Accuracy checks

  • on.pr filter fields verified against PrTriggerConfig, PrFilters, BranchFilter, PathFilter structs in src/compile/types.rs
  • on.pr.mode (synthetic / policy) verified against PrMode enum in src/compile/types.rs
  • on.pipeline fields (name, project, branches, filters) verified against PipelineTrigger and PipelineFilters structs
  • Trigger suppression behavior (emit trigger: none / pr: none when schedule or pipeline is set) verified against the front-matter.mdx trigger suppression table

Validation

  • README re-read — headings, code fences, and links are well-formed; #trigger-configuration anchor matches the renamed heading; docs/front-matter.md#pr-triggering-in-azure-repos target exists in the agent-facing doc

Created by the docs-writer workflow.

Generated by Docs Writer · 239.7 AIC · ⌖ 12.3 AIC · ⊞ 7.7K ·

…ne examples

The README's former 'Schedule Syntax' section only covered schedule
expressions. Users building PR-reviewing agents had no README-level
guidance for on.pr or on.pipeline triggers — they had to find the
agent-facing front-matter.md instead.

Changes:
- Rename 'Schedule Syntax' to 'Trigger Configuration' and update the
  on: field table link (#trigger-configuration anchor)
- Add on.schedule subheading (existing content unchanged)
- Add on.pr section: two-layer filter table, three YAML examples
  (minimal, branch+changed-files, label gate), mode table, and
  a note on the synthetic vs policy strategies
- Add on.pipeline section: basic example and a filters example
  with branch + time-window; note on trigger suppression

All claims verified against PrTriggerConfig / PipelineTrigger /
PipelineFilters structs in src/compile/types.rs and the
PrMode enum docs in the same file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot mentioned this pull request Jul 14, 2026
@jamesadevine jamesadevine marked this pull request as ready for review July 15, 2026 09:47
@jamesadevine jamesadevine merged commit 3ecad3a into main Jul 15, 2026
13 checks passed
@jamesadevine jamesadevine deleted the docs/trigger-configuration-readme-0e60737e773b1d07 branch July 15, 2026 09:51
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