gitea源码

issue_label.yml 635B

123456789101112131415161718192021222324252627282930313233343536
  1. # type IssueLabel struct {
  2. # ID int64 `xorm:"pk autoincr"`
  3. # IssueID int64 `xorm:"UNIQUE(s)"`
  4. # LabelID int64 `xorm:"UNIQUE(s)"`
  5. # }
  6. -
  7. id: 1 # Should remain - matches comment 2
  8. issue_id: 1
  9. label_id: 1
  10. should_remain: true
  11. -
  12. id: 2 # Should remain
  13. issue_id: 2
  14. label_id: 2
  15. should_remain: true
  16. -
  17. id: 3 # Should be deleted
  18. issue_id: 1
  19. label_id: 3
  20. should_remain: false
  21. -
  22. id: 4 # Should remain
  23. issue_id: 3
  24. label_id: 1
  25. should_remain: true
  26. -
  27. id: 5 # Should be deleted
  28. issue_id: 3
  29. label_id: 2
  30. should_remain: false
  31. -
  32. id: 6 # Should be deleted
  33. issue_id: 3
  34. label_id: 5
  35. should_remain: false