mirror of
https://github.com/go-gitea/terraform-provider-gitea.git
synced 2026-07-01 21:03:59 -04:00
fb08997f76
Added `normalizeSSHKey` and `normalizeSSHKeyForRepo` functions in `resource_gitea_public_key.go` and `resource_gitea_repository_key.go` to standardize SSH key formats for consistent comparison. Updated corresponding `DiffSuppressFunc` to support key comparison. This change improves the reliability of SSH key handling. Reviewed-on: https://gitea.com/gitea/terraform-provider-gitea/pulls/126 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: hamki <me@hamki.org> Co-committed-by: hamki <me@hamki.org>