stategraph apply-autoapprove
stategraph apply-autoapprove is a reserved pull request comment, not a terminal command, to run plan and apply in one operation, with no manual review between them.
Not available
Orchestration does not run this command. To apply, run stategraph plan, and then stategraph apply.
The reserved command has two phases:
- Plan: runs init and plan, and generates the plan output.
- Apply: applies the plan immediately, with no review and no approval.
Applies without review
This command applies changes immediately, with no review step. Restrict it to the environments and users where an unreviewed apply is acceptable.
Usage
stategraph apply-autoapprove [tag-query]
A tag query filters by dir:<path>, workspace:<name>, or tag name, with and, or, and not.
Examples
All changes:
stategraph apply-autoapprove
The development environment:
stategraph apply-autoapprove dev
A specific directory:
stategraph apply-autoapprove dir:staging
A complex query:
stategraph apply-autoapprove non-prod and dir:config
Related commands
- stategraph plan: preview changes first
- stategraph apply: the standard apply with review
- stategraph apply-force: apply without meeting the requirements