cypher7682 opened a new issue, #8313: URL: https://github.com/apache/incubator-devlake/issues/8313
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened When branches are deleted in github, the `lake.refs` table is not updated to either A: mark the branch as deleted, or B: the branch is deleted from the table. This causes problems when trying to detect stale branches, because it includes branches that have already been deleted/tidied up in github. ### What do you expect to happen Either: - Mark the branch as deleted in the `lake.refs` table - Remove the branch from the `lake.refs` table ### How to reproduce - Create a repository - Push an additional branch to the repository - Scrap the repository - Check the `lake.refs` table for the repo + branches - Delete the branch in the github UI - Scrape the repository - Check the `lake.refs` table for the branch - it should still exist. ### Anything else _No response_ ### Version devlake-1.0.2-beta1 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org