Skip to content

Conversation

@loft-bot
Copy link
Contributor

Backport from main to v0.28

Original PR Nr.: #3495

Backported Commits:

"vCluster / Platform" team no longer exists after company reorg. Different
teams have different workflow state IDs for "Released" state, so we must
look up the released state ID per-team based on each issue's actual team.

Key changes:

  • Remove hardcoded -linear-team-name flag
  • Add GetIssueDetails() to fetch issue state and team in single API call
  • Cache released state IDs by team name to avoid redundant lookups
  • Pass pre-fetched IssueDetails to MoveIssueToState() to eliminate double API call
  • Add debug info (available teams/states) when workflow lookup fails
  • Add deduplicateIssueIDs() to handle same issue in multiple PRs

…ult (#3495)

"vCluster / Platform" team no longer exists after company reorg. Different
teams have different workflow state IDs for "Released" state, so we must
look up the released state ID per-team based on each issue's actual team.

Key changes:
- Remove hardcoded -linear-team-name flag
- Add GetIssueDetails() to fetch issue state and team in single API call
- Cache released state IDs by team name to avoid redundant lookups
- Pass pre-fetched IssueDetails to MoveIssueToState() to eliminate double API call
- Add debug info (available teams/states) when workflow lookup fails
- Add deduplicateIssueIDs() to handle same issue in multiple PRs

(cherry picked from commit be70d94)

# Conflicts:
#	hack/linear-sync/linear.go
Piotr1215
Piotr1215 previously approved these changes Jan 16, 2026
@Piotr1215 Piotr1215 merged commit dee0d55 into v0.28 Jan 16, 2026
41 checks passed
@Piotr1215 Piotr1215 deleted the backport/v0.28/pr-3495 branch January 16, 2026 20:10
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.

2 participants