All guides

Connect GitHub for PR Cost Impact

Install the Cloptima GitHub App so every pull request that changes infrastructure gets an automatic cost-impact comment before merge.

6 min read Updated June 2026Setup
On this page
  1. 01How it works
  2. 02Install the GitHub App
  3. 03Map repositories to applications
  4. 04Open a PR and review the comment
  5. 05Optional: enforce in CI/CD

01

How it works

Cloptima connects to GitHub as an organization-installed GitHub App with least-privilege access. It reads the workload definitions in a pull request — Kubernetes manifests, Helm values, and related config — calculates the projected monthly cost delta against your cluster's real pricing, and posts it as a comment before merge.

  • Installed as a GitHub App — no personal access tokens to manage
  • Reads manifest/Helm/config files in the PR, never your application source
  • Posts a before/after monthly cost delta with budget context
  • Optional guardrails can flag PRs that exceed a cost threshold

02

Install the GitHub App

From Cloptima Settings → Integrations → GitHub, install the Cloptima app into your organization and select the repositories you want analyzed. You can add or remove repositories at any time.

03

Map repositories to applications

Relate each repository to the application or team it deploys, so cost deltas attribute to the right owner. This is what powers app-level chargeback when a change drives costs up.

04

Open a PR and review the comment

Change a replica count, resource request/limit, or add a new workload, and Cloptima comments on the PR with the projected monthly impact and how it affects the namespace or team budget — so the decision happens in code review, not after the invoice.

05

Optional: enforce in CI/CD

Use the Cloptima CI helper to upload a redacted PR cost-impact artifact and fail builds that exceed policy. The latest run is also available to the console and API for dashboards and audits.

Put This Guide Into Practice

Cloptima automates the strategies described in this guide.

No credit card required
5-minute setup
Free trial