Refactor Gpg::Commit to delegate signature methods
What does this MR do and why?
- In Render verification status for gpg signed tags (!200868 - merged) we extracted a class from Gpg::Commit.
- This change is to refactor Gpg::Commit by delegating to that extracted class.
Note: The diff is probably easier to read if Show whitespace changes is unchecked
How to set up and validate locally
- Create a gpg key (https://docs.gitlab.com/user/project/repository/signed_commits/gpg/#create-a-gpg-key)
- Create a project
- Enable the
gpg_commit_delegate_to_signaturefeature flag - Create signed commits and push them to the project as the user with the gpg key
- Check that the commits are verified as expected.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #19260
Edited by Jerry Seto