mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-25 07:15:57 +03:00
[PR #142] [MERGED] fix: add metadata field to repositories table to prevent duplicate issues on sync #149
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/142
Author: @arunavo4
Created: 10/30/2025
Status: ✅ Merged
Merged: 10/31/2025
Merged by: @arunavo4
Base:
main← Head:fix/issue-141-duplicate-issues-on-sync📝 Commits (1)
d59a07afix: add metadata field to repositories table to prevent duplicate issues on sync📊 Changes
4 files changed (+2017 additions, -0 deletions)
View changed files
➕
drizzle/0008_serious_thena.sql(+1 -0)➕
drizzle/meta/0008_snapshot.json(+2006 -0)📝
drizzle/meta/_journal.json(+7 -0)📝
src/lib/db/schema.ts(+3 -0)📄 Description
Fixes #141
The repository metadata field was missing from the database schema, which caused the metadata sync state (issues, PRs, releases, etc.) to not persist. This resulted in duplicate issues being created every time a repository was synced because the system couldn't track what had already been mirrored.
Changes:
Root cause analysis:
The fix ensures metadata state persists between mirrors and syncs, preventing duplicate metadata (issues, PRs, releases) from being created in Gitea.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.