fix: default checkout-fetch-depth to shallow clone (1)#49
Merged
andrewb1269 merged 2 commits intomainfrom Apr 14, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/PandasWhoCode/initialize-github-job/sessions/71954cac-3492-4be9-8649-25f1c0429b3d Co-authored-by: andrewb1269 <184121471+andrewb1269@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update default checkout fetch depth to 1
Default Apr 14, 2026
checkout-fetch-depth to shallow clone (1)
andrewb1269
approved these changes
Apr 14, 2026
rbarker-dev
approved these changes
Apr 14, 2026
andrewb1269
approved these changes
Apr 14, 2026
checkout-fetch-depth to shallow clone (1)checkout-fetch-depth to shallow clone (1)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR changes the composite action’s default repository checkout behavior to use a shallow clone (fetch depth 1) instead of fetching full history, and aligns docs/tests with that new default.
Changes:
- Updated
checkout-fetch-depthdefault inaction.ymlfrom0(full history) to1(shallow). - Updated README input table to reflect the new default.
- Adjusted the checkout-focused workflow to exercise the default path and assert the repo is shallow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
action.yml |
Sets checkout-fetch-depth default to shallow clone (1). |
README.md |
Updates documented default for checkout-fetch-depth to 1. |
.github/workflows/test.yml |
Removes explicit fetch-depth override in test-checkout and adds an assertion that checkout is shallow by default. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This action currently defaults
checkout-fetch-depthto0, which fetches full history. This PR aligns default behavior with the issue requirement by making shallow checkout (1) the default while preserving explicit override support (0,2, etc.).Default behavior update
inputs.checkout-fetch-depth.defaultinaction.ymlfrom0to1.Documentation alignment
checkout-fetch-depth: 1.Focused workflow coverage for default path
checkout-fetch-depthintest-checkout).