terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

new fork resource

Open anGie44 opened this issue 5 years ago • 2 comments

Closes #43

  • Changes:
    • a github_fork resource to support creating forks of existing repositories; fields are repetitive of those in github_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_repository may 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_repository resource to handle forking behavior.

Output of acceptance tests:

--- PASS: TestAccGithubFork_basic_org (12.33s)
--- PASS: TestAccGithubFork_basic_user (16.89s)

anGie44 avatar May 17 '20 07:05 anGie44

Any reason why this is not merged into main? Was looking for this feature currently.

camal-cakar-gcx avatar Nov 18 '20 13:11 camal-cakar-gcx

I too am interested in this feature.

public-rant avatar Oct 13 '21 00:10 public-rant

👋 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!

nickfloyd avatar Nov 30 '22 16:11 nickfloyd

👋 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!

github-actions[bot] avatar Sep 06 '23 01:09 github-actions[bot]