Skip to content

Adding a computed attribute for the repository owner to the github_repository #2675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlanCitrix
Copy link

Resolves #2503


Before the change?

  • The repository owner has to either be parsed out of the full_name, or passed around as a separate variable.

After the change?

  • Repository owner is now a computed field in both the repository resource and data source.
  • The data source can be queried by name + owner when using anonymous auth. full_name will also still work.

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@nickfloyd nickfloyd moved this from 🆕 Triage to 👀 In review in 🧰 Octokit Active Jun 3, 2025
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.

[FEAT]: Add owner attribute to github_repository data source and resource
1 participant