Skip to content

Add GitHub billing usage plugin#71

Open
KingParmenides wants to merge 1 commit into
opencost:mainfrom
KingParmenides:codex-github-billing-plugin-bounty-20260511
Open

Add GitHub billing usage plugin#71
KingParmenides wants to merge 1 commit into
opencost:mainfrom
KingParmenides:codex-github-billing-plugin-bounty-20260511

Conversation

@KingParmenides
Copy link
Copy Markdown

What does this PR change?

  • Adds a GitHub billing usage OpenCost plugin for issue Github Billing and Usage #42.
  • Supports GitHub enhanced billing usage endpoints for both organizations and users.
  • Maps returned usage line items such as Actions, Packages, and storage SKUs into OpenCost custom costs.
  • Adds config validation, README usage notes, and mocked API unit tests.
  • Adds github to the plugin manifest.

How will this PR impact users?

Users can ingest GitHub billing usage into OpenCost custom costs with a billing-capable GitHub token and account name.

Does this PR address any GitHub or Zendesk issues?

Closes #42

How was this PR tested?

  • go test ./... from pkg/plugins/github
  • go vet ./... from pkg/plugins/github
  • VERSION=dev COMMIT=codex ./tools/build-plugins ./pkg/plugins/github/go.mod
  • git diff --check

Bounty

This is a submission for the $1k plugin bounty mentioned on #42. BTC payout address if accepted: 39Q34P8A7g375yqEr8buvNJkUbRgKfbKQZ

Signed-off-by: KingParmenides <parmenides0000@gmail.com>
@KingParmenides KingParmenides force-pushed the codex-github-billing-plugin-bounty-20260511 branch from 014d937 to e6d63a5 Compare May 11, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github Billing and Usage

1 participant