[FEAT]: Automatically import autolinks when trying to create one for a repository
Describe the need
When using the Terraform provider with organization scoped rights (GitHub App especially), repository transfers are complicated to manage.
Every 422 could be mitigated by trying to import the resource automatically first.
Autolinks are unique by the prefix key, so they could be imported quite easily.
SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
👋 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 @acouvreur 👋
Thanks for raising this! This is a valid point, that some resources could be auto-imported.
Though I don't know how common that is for Terraform and with import blocks it's quite simple to do the imports while adding resources