Skip to content

Customize Checkout Depth #16896

Closed
Closed

Description

@strawgate

Right now the checkout step the compiler puts in that actually checks out the repository does so without specifying depth, this means that only the commit that activated the workflow is checked out (depth 1).

For many use-cases, it's important to have the commit history available for the Agent. It would be nice if the checkout depth was customizable.

Activity

  1. locked and limited conversation to collaborators on Feb 19, 2026
  2. unlocked this conversation on Feb 19, 2026
  3. pelikhan commented on Feb 19, 2026

    @pelikhan
    Collaborator

    I am looking into controlling which repo checkout happens so I can also add fetch depth (the whole checkout thingy)

  4. pelikhan commented on Feb 19, 2026

    @pelikhan
    Collaborator

    Keep the feedback coming

  5. strawgate commented on Feb 19, 2026

    @strawgate
    ContributorAuthor

    As a workaround you can add a step

    steps:
      - name: Ensure full history
        run: |
          if git rev-parse --is-shallow-repository | grep -q true; then
            git fetch --unshallow --quiet
          fi
    
  6. locked and limited conversation to collaborators on Feb 19, 2026
  7. unlocked this conversation on Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions