Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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. }