Skip to content
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

Fixing github_repository_file owner/org handling #1494

Merged
merged 6 commits into from
Jan 18, 2023
Merged

Fixing github_repository_file owner/org handling #1494

merged 6 commits into from
Jan 18, 2023

Conversation

vmasutin
Copy link
Contributor

Fixing github_repository_file owner handling, if full_name ispassed, split it into owner and repo, use user as an owner otherwise

Signed-off-by: Valery Masiutsin val.masiutsin@gmail.com

Resolves #942


Behavior

Before the change?

  • owner account was used as an org

After the change?

  • if full_name is passed then its being split into org and repo

Other information


Additional info

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)
  • Added the appropriate label for the given change

Does this introduce a breaking change?

No
Please see our docs on breaking changes to help!

  • Yes (Please add the Type: Breaking change label)
  • No

If Yes, what's the impact:

  • N/A

Pull request type

Please add the corresponding label for change this PR introduces:

  • Bugfix: Type: Bug
  • Feature/model/API additions: Type: Feature
  • Updates to docs or samples: Type: Documentation
  • Dependencies/code cleanup: Type: Maintenance

passed, split it into `owner` and `repo`, use user as an `owner`
otherwise

Signed-off-by: Valery Masiutsin <val.masiutsin@gmail.com>
Copy link
Member

@kfcampbell kfcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing! This is an obnoxious bug I'm looking forward to getting fixed.

github/data_source_github_repository_file_test.go Outdated Show resolved Hide resolved
website/docs/d/repository_file.html.markdown Outdated Show resolved Hide resolved
website/docs/d/repository_file.html.markdown Outdated Show resolved Hide resolved
@kfcampbell kfcampbell merged commit 592edcc into integrations:main Jan 18, 2023
avidspartan1 pushed a commit to avidspartan1/terraform-provider-github that referenced this pull request Feb 5, 2024
* Fixing `github_repository_file` owner handling, if `full_name` is
passed, split it into `owner` and `repo`, use user as an `owner`
otherwise

Signed-off-by: Valery Masiutsin <val.masiutsin@gmail.com>

* Update github/data_source_github_repository_file_test.go

Co-authored-by: Keegan Campbell <me@kfcampbell.com>

* Update website/docs/d/repository_file.html.markdown

Co-authored-by: Keegan Campbell <me@kfcampbell.com>

* Small docs fixup

* Take into account @vmasutin's suggestion

Signed-off-by: Valery Masiutsin <val.masiutsin@gmail.com>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants