-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Description
- Gitea version (or commit ref): current
- Git version: Any
- Operating system: All
- Database (use
[x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
When deleting a repo, currently all commit statuses are being left in the database. Gitea should clean up this table as well when deleting a repo.
Based on the CommitStatus struct having a RepoID here I believe it should be as easy as adding it to the list here
Let me know if this sounds correct and I'd be happy to submit a PR.
I only noticed this when testing the commit status API, there may be more things that can be cleaned up as well.
zeripath