Skip to content

Conversation

@yeelali14
Copy link
Contributor

@yeelali14 yeelali14 commented Jan 19, 2026

✨ PR Description

Purpose: Fix checkout workflow failures in gitStream when pull request head branch has been deleted by adding graceful fallback handling and error recovery.
Main changes:

  • Added error handling to git fetch and checkout operations with fallback commands using || true to prevent workflow termination on deleted branches
  • Updated @linearb/gitstream-core dependency from 2.1.244 to 2.1.244-10 to support improved branch deletion scenarios
  • Added warning message when upstream head branch fetch fails to provide visibility into branch deletion events

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed OSS Licenses high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

Copy link
Contributor

@gitstream-cm gitstream-cm bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ PR Review

The PR implements error handling for git operations to gracefully handle deleted branches, but the error suppression approach is overly broad and could mask legitimate issues.

1 issues detected:

🐞 Bug - Blanket error suppression masks legitimate git errors beyond just deleted branches.

Details: The use of || true on git checkout operations suppresses all errors, not just those related to deleted branches. This could hide legitimate git configuration issues, permission problems, or other failures that should be addressed, making debugging difficult and potentially allowing the workflow to continue in an inconsistent state.
File: action.yml

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Review using Guidelines Learn how

@yeelali14 yeelali14 closed this Jan 21, 2026
@yeelali14 yeelali14 deleted the LINBEE-21919-1 branch January 21, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants