infracost comment gitlab

Post an Infracost comment to GitLab

Options

NameDescription
--behavior <behavior>Behavior when posting comment, one of: update (default) Update latest comment new Create a new comment delete-and-new Delete previous matching comments and create a new comment
--commit <commit>Commit SHA to post comment on, mutually exclusive with merge-request
--dry-runGenerate comment without actually posting to GitLab
--gitlab-server-url <gitlab-server-url>GitLab Server URL
--gitlab-token <gitlab-token>
  • Required ✳
--merge-request <merge-request>Merge request number to post comment on, mutually exclusive with commit
--path, -p <path>
  • Required ✳
  • Repeatable ♾
--policy-path <policy-path>
  • Repeatable ♾
--repo <repo>
  • Required ✳
--tag <tag>Customize hidden markdown tag used to detect comments posted by Infracost