new fork resource
Closes #43
- Changes:
- a
github_forkresource to support creating forks of existing repositories; fields are repetitive of those ingithub_repository - in writing up #462 , I came across an issue where we'd have ID clashes between repositories already managed by terraform and the newly created forks as the repository name used as the ID would be the same for the source repository and its forks immediately after creation (though subsequent name updates could work around this but it's not guaranteed a user would intend to update the fork's name). Since
github_repositorymay need to be reworked to set IDs more uniquely or there will exist a discrepancy in how IDs are set for forked repo's to avoid overwriting IDs, this new resource came about to avoid conditional operations in the existinggithub_repositoryresource to handle forking behavior.
- a
Output of acceptance tests:
--- PASS: TestAccGithubFork_basic_org (12.33s)
--- PASS: TestAccGithubFork_basic_user (16.89s)
Any reason why this is not merged into main? Was looking for this feature currently.
I too am interested in this feature.
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
👋 Hey Friends, this pull request has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!