Skip to content

Commit 100f96e

Browse files
committed
feat(billing): register enterprise billing data sources
Register data sources in provider.go and add sidebar entries in github.erb.
1 parent fd0ada9 commit 100f96e

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

github/provider.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ func Provider() *schema.Provider {
294294
"github_user_external_identity": dataSourceGithubUserExternalIdentity(),
295295
"github_users": dataSourceGithubUsers(),
296296
"github_enterprise": dataSourceGithubEnterprise(),
297+
"github_enterprise_billing_premium_request_usage": dataSourceGithubEnterpriseBillingPremiumRequestUsage(),
298+
"github_enterprise_billing_usage": dataSourceGithubEnterpriseBillingUsage(),
299+
"github_enterprise_billing_usage_summary": dataSourceGithubEnterpriseBillingUsageSummary(),
297300
"github_repository_environment_deployment_policies": dataSourceGithubRepositoryEnvironmentDeploymentPolicies(),
298301
},
299302
}

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ require (
1111
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.2
1212
github.com/hashicorp/terraform-plugin-testing v1.14.0
1313
github.com/shurcooL/githubv4 v0.0.0-20260209031235-2402fdf4a9ed
14+
github.com/stretchr/testify v1.10.0
1415
golang.org/x/crypto v0.48.0
1516
golang.org/x/oauth2 v0.35.0
1617
)
@@ -20,6 +21,7 @@ require (
2021
github.com/agext/levenshtein v1.2.2 // indirect
2122
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
2223
github.com/cloudflare/circl v1.6.1 // indirect
24+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2325
github.com/fatih/color v1.18.0 // indirect
2426
github.com/golang/protobuf v1.5.4 // indirect
2527
github.com/google/go-cmp v0.7.0 // indirect
@@ -51,6 +53,7 @@ require (
5153
github.com/mitchellh/mapstructure v1.5.0 // indirect
5254
github.com/mitchellh/reflectwalk v1.0.2 // indirect
5355
github.com/oklog/run v1.1.0 // indirect
56+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5457
github.com/shurcooL/graphql v0.0.0-20240915155400-7ee5256398cf // indirect
5558
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
5659
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
@@ -66,4 +69,5 @@ require (
6669
google.golang.org/genproto/googleapis/rpc v0.0.0-20250818200422-3122310a409c // indirect
6770
google.golang.org/grpc v1.75.1 // indirect
6871
google.golang.org/protobuf v1.36.9 // indirect
72+
gopkg.in/yaml.v3 v3.0.1 // indirect
6973
)

website/github.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@
100100
<li>
101101
<a href="/docs/providers/github/d/enterprise.html">github_enterprise</a>
102102
</li>
103+
<li>
104+
<a href="/docs/providers/github/d/enterprise_billing_premium_request_usage.html">github_enterprise_billing_premium_request_usage</a>
105+
</li>
106+
<li>
107+
<a href="/docs/providers/github/d/enterprise_billing_usage.html">github_enterprise_billing_usage</a>
108+
</li>
109+
<li>
110+
<a href="/docs/providers/github/d/enterprise_billing_usage_summary.html">github_enterprise_billing_usage_summary</a>
111+
</li>
103112
<li>
104113
<a href="/docs/providers/github/d/external_groups.html">github_external_groups</a>
105114
</li>

0 commit comments

Comments
 (0)