CI PR Comments
The ci.comments section configures automatic comments on pull requests (GitHub) or merge requests
(GitLab) with plan summaries, similar to tools like tfcmt and atlantis.
Configuration
atmos.yaml
ci.comments.enabledPost or update comments on PRs (GitHub) or MRs (GitLab) with plan summaries.
Requires:
pull-requests: writepermission (GitHub) or API token with MR notes scope (GitLab)Default:
trueci.comments.behaviorHow to handle comments:
create— Always create a new commentupdate— Update existing comment or fail if none existsupsert— Update existing comment or create new one (recommended)
Comments are identified by an HTML marker for the component/stack combination, so each component gets its own comment that is updated on subsequent runs.
Default:
upsert
GitHub Actions Permissions
PR comments require the pull-requests: write permission:
permissions:
pull-requests: write
Custom Templates
Override the default comment templates with your own Markdown. See Templates for configuration and template variables.
Related
- CI Configuration - Full configuration reference
- Templates - Custom template configuration
- Native CI Overview - Feature overview