Follow-up from "Fix note creation error for SHA256 repositories"
Follow-up for https://gitlab.com/gitlab-org/gitlab/-/merge_requests/174154#note_2247733096 > is it worth having a feature spec to make sure that diff comments get posted correctly? ### Proposal * Add a feature spec to verify if diff comments are posted correctly for SHA256 repositories. * Apply an additional check for diff note length (to prevent SHA256 hashes in SHA1 repositories) ([see note](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/174154#note_2248739611)) Note: [How to setup SHA256 repository in tests](https://gitlab.com/gitlab-org/gitlab/-/blob/d0ca077f049d9c0919266a954749b79a58bfa21f/spec/models/diff_note_spec.rb#L71)
issue