Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit a2869a7

Browse files
feat(cost-centers): register cost center resources and data sources
- Register 4 resources in provider.go: - github_enterprise_cost_center - github_enterprise_cost_center_users - github_enterprise_cost_center_organizations - github_enterprise_cost_center_repositories - Register 2 data sources in provider.go: - github_enterprise_cost_center - github_enterprise_cost_centers - Add navigation links in website/github.erb T_EDITOR=true git rebase --continue t status
1 parent 3a7bf00 commit a2869a7

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

github/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ func Provider() *schema.Provider {
217217
"github_enterprise_actions_workflow_permissions": resourceGithubEnterpriseActionsWorkflowPermissions(),
218218
"github_actions_organization_workflow_permissions": resourceGithubActionsOrganizationWorkflowPermissions(),
219219
"github_enterprise_security_analysis_settings": resourceGithubEnterpriseSecurityAnalysisSettings(),
220+
"github_enterprise_cost_center": resourceGithubEnterpriseCostCenter(),
221+
"github_enterprise_cost_center_users": resourceGithubEnterpriseCostCenterUsers(),
222+
"github_enterprise_cost_center_organizations": resourceGithubEnterpriseCostCenterOrganizations(),
223+
"github_enterprise_cost_center_repositories": resourceGithubEnterpriseCostCenterRepositories(),
220224
"github_workflow_repository_permissions": resourceGithubWorkflowRepositoryPermissions(),
221225
},
222226

@@ -293,6 +297,8 @@ func Provider() *schema.Provider {
293297
"github_user_external_identity": dataSourceGithubUserExternalIdentity(),
294298
"github_users": dataSourceGithubUsers(),
295299
"github_enterprise": dataSourceGithubEnterprise(),
300+
"github_enterprise_cost_center": dataSourceGithubEnterpriseCostCenter(),
301+
"github_enterprise_cost_centers": dataSourceGithubEnterpriseCostCenters(),
296302
"github_repository_environment_deployment_policies": dataSourceGithubRepositoryEnvironmentDeploymentPolicies(),
297303
},
298304
}

website/github.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@
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_cost_center.html">github_enterprise_cost_center</a>
105+
</li>
106+
<li>
107+
<a href="/docs/providers/github/d/enterprise_cost_centers.html">github_enterprise_cost_centers</a>
108+
</li>
103109
<li>
104110
<a href="/docs/providers/github/d/external_groups.html">github_external_groups</a>
105111
</li>
@@ -307,6 +313,9 @@
307313
<li>
308314
<a href="/docs/providers/github/r/enterprise_actions_permissions.html">github_enterprise_actions_permissions</a>
309315
</li>
316+
<li>
317+
<a href="/docs/providers/github/r/enterprise_cost_center.html">github_enterprise_cost_center</a>
318+
</li>
310319
<li>
311320
<a href="/docs/providers/github/r/enterprise_organization.html">github_enterprise_organization</a>
312321
</li>

0 commit comments

Comments
 (0)