Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary hardcoding of ref #1456

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented Apr 11, 2025

Applying dependabot/fetch-metadata#617 over here:

I'm copying the setup of one of these actions to another repo, and the hardcoding of ref surprised me... these should be the same as the default behavior. I checked with Barry who originally committed these files, and he didn't remember why... possibly he'd hardcoded them when testing the action and forgot to remove them.

So let's pull them out to remove confusion.

@Copilot Copilot bot review requested due to automatic review settings April 11, 2025 22:58
@jeffwidman jeffwidman requested a review from a team as a code owner April 11, 2025 22:58
Copy link

@Copilot 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 unnecessary hardcoding of the "ref" parameter in the workflow files to rely on the default behavior of the actions/checkout.

  • Remove the "ref" parameter from the checkout step in .github/workflows/test.yml
  • Remove the "ref" parameter from the checkout step in .github/workflows/check-dist.yml

Reviewed Changes

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

File Description
.github/workflows/test.yml Removed hardcoded "ref" in the checkout step to use default behavior
.github/workflows/check-dist.yml Removed hardcoded "ref" in both the checkout and the subsequent step to use default behavior

I'm copying the setup of one of these actions to another repo, and the hardcoding of ref surprised me... these should be the same as the defaault behavior. I checked with Barry who originally committed these files, and he didn't remember why... possibly he'd hardcoded them when testing the action and forgot to remove them.

So let's pull them out to remove confusion.
@jeffwidman jeffwidman force-pushed the remove-unneeded-ref-hardcoding branch from 21e2530 to d1a760e Compare April 11, 2025 23:08
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.

1 participant