main does not typecheck: clearProgressLabel calls the removed this.swapLabels #256
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck#256
Loading…
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?
bun run typecheckfails onmain(8d03452):Cause
Two branches merged into
mainin the same window:feat(server): mark planned issues with a configurable planned_label,a690585) replaced the privateForgejoDispatcher.swapLabelshelper with the free functionapplyLabelDeltainapps/server/src/forgejo/issue-labels.tsand migrated its call sites.fix(server): do not report a merged implementation as abandoned,a0f3b07) addedclearProgressLabel, which callsthis.swapLabels(api, { owner, repo, number }, { add: null, remove: progressLabel }).The merge commit
8d03452took both, so the new call site refers to a method that no longer exists. Neither branch was red on its own; only the merge is.Fix
In
clearProgressLabel(apps/server/src/forgejo/dispatcher.ts:2694), use the replacement — note thatapplyLabelDeltatakes arrays, not single names:applyLabelDeltais already imported in that file.Impact
mainis red, so every branch cut from it fails the typecheck job until this lands. Found while implementing #238; not fixed there to keep that branch on topic.It is not only a type error:
this.swapLabels(…)throwsTypeErrorat runtime, whichclearProgressLabel's owntry/catchswallows into alog.warn, so the progress label silently stays on the issue.The existing test already catches it —
bun testinapps/serveronmainfails with:So both
typecheckandtestare red onmainuntil this is fixed.omp-deck referenced this issue2026-11-11 11:03:53 +01:00