beads/internal/linear
Kevin Glynn 922f9089e3
fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776)
Push bead labels (issue_type-derived + custom labels) to Linear on `bd linear sync --push`, closing #3753.

Why: completes the #3772 pair - #3772 gave push-direction state mapping its outbound overrides, this PR makes labels flow beads -> Linear (they previously only flowed Linear -> beads, so pushed issues arrived label-less). Adds paginated `GetTeamLabels`, a per-team `LabelCache`, inversion of `label_type_map` for the push direction, label-aware `PushFieldsEqual` skip logic, and warnings for labels missing on the Linear team. Author rebased onto main same-day when asked; rebase verified clean against the pre-rebase diff (changed lines byte-identical, both #3772 and #3776 test sets preserved in mapping_test.go).

Local verification: gofmt clean, `CGO_ENABLED=0 go build -tags gms_pure_go ./...` ok, `go test ./internal/linear/...` ok, `go vet` clean. Failing PR checks (errcheck in formula_schema.go, testing.Short policy, unclaim/update claim tests) are base-branch breakage present on main at rebase time, since fixed by #4623 - unrelated to this change.

Co-Authored-By: kev <kglynn@pryoninc.com>
2026-07-07 06:27:16 -07:00
..
client.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
client_test.go fix(linear): correct issueBatchCreate GraphQL variable type (#3703) 2026-05-06 12:14:15 -07:00
fieldmapper.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
idempotency.go feat(linear): add idempotency markers to prevent duplicate issue creation 2026-05-02 01:00:09 -04:00
idempotency_test.go fix(linear): address maintainer blockers on idempotency PR 2026-05-02 18:59:33 -04:00
mapping.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
mapping_test.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
oauth.go fix(linear): address maintainer feedback on OAuth client-credentials PR 2026-05-02 19:04:20 -04:00
oauth_test.go feat(linear): add OAuth client-credentials support 2026-05-02 09:35:08 -04:00
parent_reconcile.go fix(linear): wire parent-child relationships to Linear's parent field (#3930) 2026-07-06 22:16:07 -07:00
parent_reconcile_test.go fix(linear): wire parent-child relationships to Linear's parent field (#3930) 2026-07-06 22:16:07 -07:00
staleness.go fix(linear): clean staleness lint 2026-05-02 18:38:36 -07:00
staleness_test.go feat(linear): add ambient staleness signal for auto-fresh data 2026-05-02 20:08:33 -04:00
synclock.go fix(linear): clean sync lock lint 2026-05-02 18:38:36 -07:00
synclock_test.go fix(linear): keep lock file stable across Release cycles 2026-05-02 18:55:08 -04:00
synclock_unix.go feat(linear): add per-workspace concurrency lock on sync 2026-05-02 01:02:55 -04:00
synclock_wasm.go feat(linear): add per-workspace concurrency lock on sync 2026-05-02 01:02:55 -04:00
synclock_windows.go feat(linear): add per-workspace concurrency lock on sync 2026-05-02 01:02:55 -04:00
tracker.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
tracker_test.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
types.go Sync Linear milestones as local epics (#3528) 2026-05-05 07:45:30 -07:00