Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

commit.go 509B

1234567891011121314151617181920
  1. // Copyright 2021 Gitea. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package models
  5. import (
  6. "code.gitea.io/gitea/modules/git"
  7. )
  8. // ConvertFromGitCommit converts git commits into SignCommitWithStatuses
  9. func ConvertFromGitCommit(commits []*git.Commit, repo *Repository) []*SignCommitWithStatuses {
  10. return ParseCommitsWithStatus(
  11. ParseCommitsWithSignature(
  12. ValidateCommitsWithEmails(commits),
  13. repo,
  14. ),
  15. repo,
  16. )
  17. }