Skip to content

Commit e679a48

Browse files
authored
Remove usages of the lowercase h in GitHub (#1413)
1 parent 8cdab64 commit e679a48

17 files changed

+19
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ BUG FIXES:
532532

533533
BUG FIXES:
534534

535-
* resource/github_branch_protection: Prevent enabling `dismissal_restrictions` in Github console if `dismissal_users` and `dismissal_teams` are not set ([#453](https://github.com/integrations/terraform-provider-github/issues/453))
535+
* resource/github_branch_protection: Prevent enabling `dismissal_restrictions` in GitHub console if `dismissal_users` and `dismissal_teams` are not set ([#453](https://github.com/integrations/terraform-provider-github/issues/453))
536536
* resource/github_repository_collaborator: Allow modifying permissions from `maintain` and `triage` ([#457](https://github.com/integrations/terraform-provider-github/issues/457))
537537
* Documentation Fix for `github_actions_public_key` data-source ([#458](https://github.com/integrations/terraform-provider-github/issues/458))
538538
* Documentation Fix for `github_branch_protection` resource ([#410](https://github.com/integrations/terraform-provider-github/issues/410))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ If you do not have an organization already that you are comfortable running test
220220

221221
Make sure that your organization has a `terraform-module-template` repository ([terraformtesting/terraform-template-module](https://github.com/terraformtesting/terraform-template-module) is an example you can clone) and that its "Template repository" item in Settings is checked.
222222

223-
If you are interested in using and/or testing Github's [Team synchronization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github) feature, please contact a maintainer as special arrangements can be made for your convenience.
223+
If you are interested in using and/or testing GitHub's [Team synchronization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github) feature, please contact a maintainer as special arrangements can be made for your convenience.
224224

225225
## Resources
226226

github/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func RateLimitedHTTPClient(client *http.Client, writeDelay time.Duration, readDe
3737

3838
client.Transport = NewEtagTransport(client.Transport)
3939
client.Transport = NewRateLimitTransport(client.Transport, WithWriteDelay(writeDelay), WithReadDelay(readDelay))
40-
client.Transport = logging.NewTransport("Github", client.Transport)
40+
client.Transport = logging.NewTransport("GitHub", client.Transport)
4141
client.Transport = newPreviewHeaderInjectorTransport(map[string]string{
4242
// TODO: remove when Stone Crop preview is moved to general availability in the GraphQL API
4343
"Accept": "application/vnd.github.stone-crop-preview+json",

github/data_source_github_organization_team_sync_groups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func dataSourceGithubOrganizationTeamSyncGroupsRead(d *schema.ResourceData, meta
5353

5454
result, err := flattenGithubIDPGroupList(idpGroupList)
5555
if err != nil {
56-
return fmt.Errorf("unable to flatten IdP Groups in Github Organization(Org: %q) : %+v", orgName, err)
56+
return fmt.Errorf("unable to flatten IdP Groups in GitHub Organization(Org: %q) : %+v", orgName, err)
5757
}
5858

5959
groups = append(groups, result...)

github/resource_github_repository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ func resourceGithubRepositoryRead(d *schema.ResourceData, meta interface{}) erro
588588

589589
func resourceGithubRepositoryUpdate(d *schema.ResourceData, meta interface{}) error {
590590
// Can only update a repository if it is not archived or the update is to
591-
// archive the repository (unarchiving is not supported by the Github API)
591+
// archive the repository (unarchiving is not supported by the GitHub API)
592592
if d.Get("archived").(bool) && !d.HasChange("archived") {
593593
log.Printf("[INFO] Skipping update of archived repository")
594594
return nil
@@ -774,7 +774,7 @@ func expandPagesUpdate(input []interface{}) *github.PagesUpdate {
774774
update.CNAME = github.String(v)
775775
}
776776

777-
// To update the Github Pages source, the github.PagesUpdate Source field
777+
// To update the GitHub Pages source, the github.PagesUpdate Source field
778778
// must include the branch name and optionally the subdirectory /docs.
779779
// e.g. "master" or "master /docs"
780780
pagesSource := pages["source"].([]interface{})[0].(map[string]interface{})

github/resource_github_team_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func resourceGithubTeamRepositoryUpdate(d *schema.ResourceData, meta interface{}
157157
permission := d.Get("permission").(string)
158158
ctx := context.WithValue(context.Background(), ctxId, d.Id())
159159

160-
// the go-github library's AddTeamRepo method uses the add/update endpoint from Github API
160+
// the go-github library's AddTeamRepo method uses the add/update endpoint from GitHub API
161161
_, err = client.Teams.AddTeamRepoByID(ctx,
162162
orgId,
163163
teamId,

github/resource_github_team_sync_group_mapping.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func flattenGithubIDPGroupList(idpGroupList *github.IDPGroupList) ([]interface{}
180180

181181
// expandTeamSyncGroups creates an IDPGroupList with an array of IdP groups
182182
// defined in the *schema.ResourceData to be later used to create or update
183-
// IdP group connections in Github; if the "group" key is not present,
183+
// IdP group connections in GitHub; if the "group" key is not present,
184184
// an empty array must be set in the IDPGroupList per API endpoint specs:
185185
// https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections
186186
func expandTeamSyncGroups(d *schema.ResourceData) *github.IDPGroupList {

github/sweeper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func sharedConfigForRegion(region string) (interface{}, error) {
2929

3030
meta, err := config.Meta()
3131
if err != nil {
32-
return nil, fmt.Errorf("error getting Github meta parameter")
32+
return nil, fmt.Errorf("error getting GitHub meta parameter")
3333
}
3434

3535
return meta, nil

website/docs/d/organization_webhooks.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: "github"
33
page_title: "GitHub: github_organization_webhooks"
44
description: |-
5-
Get information on all Github webhooks of the organization.
5+
Get information on all GitHub webhooks of the organization.
66
---
77

88
# github\_organization\_webhooks

website/docs/d/repository_branches.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: "github"
33
page_title: "GitHub: repository_branches"
44
description: |-
5-
Get information on a Github repository's branches.
5+
Get information on a GitHub repository's branches.
66
---
77

88
# github_repository_branches

0 commit comments

Comments
 (0)