infracost_comment
Post cloud cost estimates to pull requests on GitHub, GitLab, Azure Repos, or Bitbucket to inform infrastructure spending decisions.
Instructions
Post cost estimate comments to pull requests on GitHub, GitLab, Azure Repos, or Bitbucket.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Customize comment tag to support multiple scenarios. | |
| path | No | Path to Infracost JSON file. Optional; auto-detected from common filenames when omitted. | |
| repo | No | Repository in format owner/repo. | |
| token | No | GitHub/GitLab/Azure DevOps/Bitbucket token. | |
| apiKey | No | Infracost API key. | |
| commit | No | Commit SHA. | |
| dryRun | No | Dry run mode - generate comment without posting. | |
| behavior | No | Behavior: update (default), new, or delete-and-new. | |
| platform | No | Platform: github, gitlab, azure-repos, or bitbucket. | github |
| extraArgs | No | Additional CLI arguments. | |
| pullRequest | No | Pull request number. | |
| timeoutSeconds | No | Command timeout in seconds. | |
| workingDirectory | No | Directory where the command is executed. |