Skip to content

Add configurable fetch-depth to Danger-enabled workflows#79

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/update-fetch-depth-for-danger
Closed

Add configurable fetch-depth to Danger-enabled workflows#79
Copilot wants to merge 3 commits intomainfrom
copilot/update-fetch-depth-for-danger

Conversation

Copy link

Copilot AI commented Jan 31, 2026

Danger fails with "couldn't find remote ref refs/heads/danger_head" when git history is too shallow to resolve the merge base between PR branches.

Changes

  • Added FETCH_DEPTH input to android-cloud-check.yml
  • Added fetch_depth input to ios-selfhosted-test.yml and ios-kmp-selfhosted-test.yml
  • Defaults to 1 (preserves current shallow clone behavior)
  • Set to 0 to fetch full history when Danger merge base errors occur

Usage

# Android
uses: futuredapp/.github/.github/workflows/android-cloud-check.yml@main
with:
  FETCH_DEPTH: 0

# iOS
uses: futuredapp/.github/.github/workflows/ios-selfhosted-test.yml@main
with:
  fetch_depth: 0

Naming follows existing conventions in each workflow (uppercase for Android, lowercase for iOS).


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: PavelMesicek <72208496+PavelMesicek@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub workflow to set fetch depth for Danger Add configurable fetch-depth to Danger-enabled workflows Jan 31, 2026
Copilot AI requested a review from PavelMesicek January 31, 2026 13:08
@PavelMesicek PavelMesicek marked this pull request as ready for review January 31, 2026 13:11
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