Skip to content

docs(extensions): list the converge hook events - #5328

Open
alfredoperez wants to merge 2 commits into
github:mainfrom
alfredoperez:docs/converge-hooks-and-order
Open

alfredoperez wants to merge 2 commits into
github:mainfrom
alfredoperez:docs/converge-hooks-and-order

Conversation

@alfredoperez

Copy link
Copy Markdown
Contributor

Description

templates/commands/converge.md fires hooks.before_converge and hooks.after_converge, but neither event is named anywhere in the docs. This adds them to the three places that list hook events: docs/extensions/api.md, docs/extensions/developing.md and docs/extensions/overview.md.

Hook order is already stated consistently on main (templates surface hooks in YAML order, HookExecutor sorts by priority), so this PR does not touch it.

Testing

Ran a script that collects every hooks.before_* / hooks.after_* key read by templates/commands/*.md and greps the docs for each. On current main it reported 2 events fired but undocumented (before_converge, after_converge); after this change both are documented in the three files above.

Docs only; no behaviour change.

  • Tested locally with .venv/bin/specify --help (n/a, docs only)
  • Ran relevant existing tests (n/a, docs only)
  • Tested with a sample project (n/a, docs only)

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance (fill in the disclosure below)

AI disclosure: drafted with Claude Code (Claude Opus 5.5, default settings); I checked every line against main.

@alfredoperez
alfredoperez requested a review from mnriem as a code owner November 9, 2026 03:05
Copilot AI auto review requested due to automatic review settings November 9, 2026 03:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified, and the documentation-only changes do not affect runtime behavior.

No open issues 🎉

What changed in this PR

This documentation-only pull request documents the before_converge and after_converge extension hook events across the extension documentation. It does not change runtime behavior.

Changes:

  • Added converge events to the project-wide hook configuration example.
  • Documented converge hook points in the extension development guide.
  • Added individual converge event descriptions to the API reference.
File Description
docs/​extensions/​overview.md Lists converge events in the hook configuration example.
docs/​extensions/​developing.md Documents converge events as available extension hook points.
docs/​extensions/​api.md Adds detailed descriptions for both converge events.

Review effort: Lite (auto)

@mnriem mnriem added the triage-can-wait Verdict: valid and in-scope but deprioritized; held behind the evidence gate label Nov 9, 2026
@mnriem
mnriem requested an auto review from Copilot November 11, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are present, and the documentation changes consistently describe the existing converge hook events without altering runtime behavior.

No open issues 🎉

Review effort: Lite (auto)

@mnriem

mnriem commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Please address test & lint errors

Copilot AI auto review requested due to automatic review settings November 11, 2026 20:45
@alfredoperez

Copy link
Copy Markdown
Contributor Author

Thanks! The only failure was test_script_help_includes_python_variant on Windows (3.14); the other jobs were cancelled after it, and Lint passed. This PR only touches three docs files, and main is green now, so I updated the branch from main to re-run the checks.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage-can-wait Verdict: valid and in-scope but deprioritized; held behind the evidence gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants