Skip to content

Remove explicit ref from checkout step for default behavior - #58

Open
fadrian06 wants to merge 1 commit into
leafsphp:v5.xfrom
fadrian06:fix-lint-workflow
Open

Remove explicit ref from checkout step for default behavior#58
fadrian06 wants to merge 1 commit into
leafsphp:v5.xfrom
fadrian06:fix-lint-workflow

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (pls check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe below

Description

This pull request makes a minor update to the GitHub Actions workflow configuration by removing the ref parameter from the checkout step in .github/workflows/lint.yml. This change simplifies the workflow and ensures it checks out the correct commit by default.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Remove the 'ref' property from the checkout action to allow the
workflow to use the default checkout behavior. This ensures the
correct commit is used for both push and pull request events.
Copilot AI lite review requested due to automatic review settings September 11, 2026 01:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

馃煛 Changes recommended

The generator/template must be updated to prevent the workflow change from being overwritten.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This pull request removes the explicit checkout ref from the lint workflow, relying on default commit behavior.

Changes:

  • Removes github.head_ref from the checkout step.
  • Requires updating the generator/template because the workflow is generated.
File summaries
File Description
.github/workflows/lint.yml Removes the explicit checkout ref.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v7
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