Skip to content

Conversation

@tangrufus
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 8, 2025 06:46
@tangrufus tangrufus added the enhancement New feature or request label Dec 8, 2025
@tangrufus tangrufus enabled auto-merge (squash) December 8, 2025 06:46
@tangrufus tangrufus merged commit 98a6263 into main Dec 8, 2025
6 checks passed
@tangrufus tangrufus deleted the cone branch December 8, 2025 06:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the sparse-checkout-cone-mode: false parameter from GitHub Actions checkout configurations, transitioning to use cone mode (the default) for sparse checkouts in workflow files. This change affects PHP-related workflows that perform partial repository checkouts to optimize CI/CD performance.

Key Changes:

  • Removed sparse-checkout-cone-mode: false from three checkout action configurations
  • Changes affect workflows that use sparse checkout for composer.json and composer.lock files
  • Aligns with cone mode as the default sparse-checkout behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/lint-php.yml Removed cone mode override for composer.json sparse checkout in php-matrix job
.github/workflows/audit-php.yml Removed cone mode override for composer.json sparse checkout in php-matrix job and for composer.json/composer.lock sparse checkout in composer-audit job

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

with:
sparse-checkout: |
composer.json
composer.lock
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Removing sparse-checkout-cone-mode: false may cause issues with checking out composer.json and composer.lock. In cone mode (the new default), sparse-checkout patterns are treated as directory paths, not file patterns. This means these files may not be checked out as expected.

To check out specific files in cone mode, you typically need to either:

  1. Keep sparse-checkout-cone-mode: false to use non-cone mode (original behavior)
  2. Change the pattern to include the parent directory (e.g., use / to checkout the root and then specify files)
Suggested change
composer.lock
composer.lock
sparse-checkout-cone-mode: false

Copilot uses AI. Check for mistakes.
steps:
- uses: actions/checkout@v6
with:
sparse-checkout: composer.json
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Removing sparse-checkout-cone-mode: false may cause issues with checking out composer.json. In cone mode (the new default), sparse-checkout patterns are treated as directory paths, not file patterns. This means composer.json may not be checked out as expected.

To check out a specific file in cone mode, you typically need to either:

  1. Keep sparse-checkout-cone-mode: false to use non-cone mode (original behavior)
  2. Change the pattern to include the parent directory (e.g., use / to checkout the root and then specify files)

The same issue applies to the other occurrences in audit-php.yml.

Suggested change
sparse-checkout: composer.json
sparse-checkout: composer.json
sparse-checkout-cone-mode: false

Copilot uses AI. Check for mistakes.
steps:
- uses: actions/checkout@v6
with:
sparse-checkout: composer.json
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

Removing sparse-checkout-cone-mode: false may cause issues with checking out composer.json. In cone mode (the new default), sparse-checkout patterns are treated as directory paths, not file patterns. This means composer.json may not be checked out as expected.

To check out a specific file in cone mode, you typically need to either:

  1. Keep sparse-checkout-cone-mode: false to use non-cone mode (original behavior)
  2. Change the pattern to include the parent directory (e.g., use / to checkout the root and then specify files)
Suggested change
sparse-checkout: composer.json
sparse-checkout: composer.json
sparse-checkout-cone-mode: false

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants