feat(sync): fetch and store GitLab issue links (bd-343o)

Add end-to-end support for GitLab issue link fetching:
- New GitLabIssueLink type + fetch_issue_links API client method
- Migration 029: add issue_links job type and watermark column
- issue_links.rs: bidirectional entity_reference storage with
  self-link skip, cross-project fallback, idempotent upsert
- Drain pipeline in orchestrator following mr_closes_issues pattern
- Display related issues in 'lore show issues' output
- --no-issue-links CLI flag with config, autocorrect, robot-docs
- 6 unit tests for storage logic
This commit is contained in:
teernisse
2026-02-19 09:26:28 -05:00
parent 9a1dbda522
commit 1e679a6d72
18 changed files with 2051 additions and 8 deletions

View File

@@ -97,6 +97,10 @@ const MIGRATIONS: &[(&str, &str)] = &[
"028",
include_str!("../../migrations/028_surgical_sync_runs.sql"),
),
(
"029",
include_str!("../../migrations/029_issue_links_job_type.sql"),
),
];
pub fn create_connection(db_path: &Path) -> Result<Connection> {