Explorar el Código

Remove all CommitStatus when a repo is deleted (#5940)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tags/v1.9.0-dev
John Olheiser hace 5 años
padre
commit
f81c6cc2a9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      models/repo.go

+ 1
- 0
models/repo.go Ver fichero

@@ -1787,6 +1787,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
&Webhook{RepoID: repoID},
&HookTask{RepoID: repoID},
&Notification{RepoID: repoID},
&CommitStatus{RepoID: repoID},
); err != nil {
return fmt.Errorf("deleteBeans: %v", err)
}

Cargando…
Cancelar
Guardar