Bläddra i källkod

Add doctor orphan check for orphaned pull requests without an existing base repo (#19731)

tags/v1.18.0-dev
silentcodeg 2 år sedan
förälder
incheckning
e82db15cfa
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      modules/doctor/dbconsistency.go

+ 3
- 0
modules/doctor/dbconsistency.go Visa fil

@@ -105,6 +105,9 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
// find pulls without existing issues
genericOrphanCheck("Orphaned PullRequests without existing issue",
"pull_request", "issue", "pull_request.issue_id=issue.id"),
// find pull requests without base repository
genericOrphanCheck("Pull request entries without existing base repository",
"pull_request", "repository", "pull_request.base_repo_id=repository.id"),
// find tracked times without existing issues/pulls
genericOrphanCheck("Orphaned TrackedTimes without existing issue",
"tracked_time", "issue", "tracked_time.issue_id=issue.id"),

Laddar…
Avbryt
Spara