Skip to content

fix(import): map the highest GitLab weight to Urgent instead of No priority - #1290

Open
RaphaelFakhri wants to merge 1 commit into
linear:masterfrom
RaphaelFakhri:fix/import-gitlab-weight-priority
Open

RaphaelFakhri wants to merge 1 commit into
linear:masterfrom
RaphaelFakhri:fix/import-gitlab-weight-priority

Conversation

@RaphaelFakhri

Copy link
Copy Markdown

Summary

Fix the GitLab CSV importer giving the highest-weight issues no priority.

normalizeWeights mapped weights to 0 through 4, with 0 for the highest weight. In Linear, priority 0 means "No priority", so the issues with the highest weight ended up unprioritized while the lowest weight became Low. When all issues share one weight, the importer already used 1 (Urgent), which shows the intended range starts at Urgent.

Weights now map to 1 (Urgent) through 4 (Low), and 0 stays reserved for issues without a weight.

Testing

The new test imports GitLab CSV files with different weights and checks the priorities.

pnpm --filter @linear/import exec vitest run src/_tests/GitlabCsvImporter.test.ts
  • Before the fix: 3 failed, 1 passed.
  • After the fix: 4 passed.

A changeset for @linear/import is included.

…iority

The weight normalization produced 0 for the highest weight, which Linear
treats as No priority. Map weights onto priorities 1 to 4 instead.
@changeset-bot

changeset-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0f22d5e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@linear/import Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant