Skip to content

Approve, Revise, or Decline

Commands must start on the first line of a comment on a migration PR. Only users with write, maintain, or admin repository permission can run them. Add guidance on the same line or in the remaining comment body.

Generate the first subscriber change pass:

/template-sync approve

Add implementation guidance after the first line:

/template-sync approve
Use the existing settings module instead of creating a new config file.

Or put short guidance on the same line:

/template-sync approve Use the existing settings module.

Use approve once. After a generation pass completes, use revise for follow-up changes.

Request a new generation pass after an approval pass has completed:

/template-sync revise
Keep the generated lockfile update, but move route constants into src/routes.js.

Short revision guidance can also go on the command line:

/template-sync revise Move route constants into src/routes.js.

Revisions include previous generation summaries in the prompt so the model can react to maintainer feedback.

Close the migration PR and mark the migration declined:

/template-sync decline

The command workflow applies generated file operations locally, commits, pushes, and comments with a summary. It does not refresh lockfiles or run subscriber package.json scripts because generated repository code is untrusted while OPENAI_API_KEY and GitHub tokens are present.

If a recognized command cannot complete, the workflow comments on the PR with the failure message. This includes missing configuration such as OPENAI_API_KEY, upstream release lookup failures, OpenAI API failures, malformed generation output, checkout failures, and push failures. Errors that happen before the workflow can read the issue event or bot token still appear only in the GitHub Actions logs.

Run normal PR CI or local checks against the generated branch after the bot pushes it. Keep those PR checks free of repository secrets when they can execute generated code.