Module: CommitSignature
- Extended by:
- ActiveSupport::Concern
- Included in:
- CommitSignatures::GpgSignature, CommitSignatures::SshSignature, CommitSignatures::X509CommitSignature
- Defined in:
- app/models/concerns/commit_signature.rb
Instance Method Summary collapse
Instance Method Details
#commit ⇒ Object
37 38 39 |
# File 'app/models/concerns/commit_signature.rb', line 37 def commit project.commit(commit_sha) end |
#reverified_status ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'app/models/concerns/commit_signature.rb', line 45 def reverified_status return verification_status unless Feature.enabled?(:check_for_mailmapped_commit_emails, project) return verification_status unless verified_signature_type? || verified_system? verified_emails = signed_by_user&.verified_emails if verified_emails&.exclude?(commit.) 'unverified_author_email' else verification_status end end |
#signed_by_user ⇒ Object
41 42 43 |
# File 'app/models/concerns/commit_signature.rb', line 41 def signed_by_user raise NoMethodError, 'must implement `signed_by_user` method' end |