Skip to content

docs: mark private attribute as deprecated in github_repository#3298

Open
mvanhorn wants to merge 1 commit intointegrations:mainfrom
mvanhorn:docs/3297-repository-deprecated-attrs
Open

docs: mark private attribute as deprecated in github_repository#3298
mvanhorn wants to merge 1 commit intointegrations:mainfrom
mvanhorn:docs/3297-repository-deprecated-attrs

Conversation

@mvanhorn
Copy link

Summary

Marks the private attribute as deprecated in the github_repository resource docs and updates the GitHub Pages example to use visibility instead.

Why this matters

The private attribute triggers a Terraform deprecation warning at plan time ("use visibility instead"), but the docs page doesn't mention this deprecation. Users see the warning with no guidance in the documentation.

The Go source at resource_github_repository.go:60 has Deprecated: "use visibility instead" on the private schema field, but this was never reflected in the markdown docs.

Changes

website/docs/r/repository.html.markdown:

  • Add (**DEPRECATED**) marker to private attribute description, with "Use visibility instead." guidance
  • Replace private = false with visibility = "public" in the GitHub Pages example (the first example already uses visibility)

Testing

Verified the change matches the deprecation patterns already used for has_downloads (line 117) and ignore_vulnerability_alerts_during_read (line 145) in the same docs file.

Fixes #3297

This contribution was developed with AI assistance (Claude Code).

The private attribute has been deprecated in code since the
introduction of visibility, but the docs didn't reflect this.
Users see a Terraform deprecation warning with no explanation
in the provider documentation.

- Add DEPRECATED marker to private attribute description
- Update GitHub Pages example to use visibility instead of private

Fixes integrations#3297

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@github-actions github-actions bot added the Type: Documentation Improvements or additions to documentation label Mar 23, 2026
@deiga deiga requested a review from stevehipwell March 23, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS]: Update resource_github_repository docs to reflect implementation

2 participants