Skip to content

Conversation

caarlos0
Copy link
Member

based on suggestions by @sushichan044

@caarlos0 caarlos0 self-assigned this Jun 22, 2025
@caarlos0 caarlos0 added the docs A problem or enhancement in documentation label Jun 22, 2025
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 22, 2025
@caarlos0 caarlos0 requested a review from Copilot June 22, 2025 18:27
Copy link

cloudflare-workers-and-pages bot commented Jun 22, 2025

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 443a18b
Status:⚡️  Build in progress...

View logs

Copy link
Contributor

@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 enhances support for custom URL functionality in Homebrew casks by adding documentation and tests. Key changes include:

  • Updated documentation with an example YAML snippet for configuring custom URL and headers.
  • Addition of a GitHubHelper module in the test data for retrieving asset URLs and tokens.
  • New test cases and a golden file to verify the custom_block_url configuration.

Reviewed Changes

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

File Description
www/docs/customization/homebrew_casks.md Revised docs and example usage for custom URL configuration.
internal/pipe/cask/testdata/github.rb Added GitHubHelper module for test purposes.
internal/pipe/cask/testdata/TestFullPipe/custom_block_url.rb.golden Added golden file for custom_block_url testing.
internal/pipe/cask/cask_test.go Extended test suite with new "custom_block_url" test case.
Comments suppressed due to low confidence (1)

www/docs/customization/homebrew_casks.md:297

  • Consider rephrasing this sentence for clarity. For example, 'The best way to support private repositories is to configure a custom block with a custom template URL and custom headers.'
a custom template URL, and custom headers.

Copy link

codecov bot commented Jun 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.69%. Comparing base (eaaf0c5) to head (443a18b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5844   +/-   ##
=======================================
  Coverage   82.69%   82.69%           
=======================================
  Files         164      164           
  Lines       16460    16460           
=======================================
  Hits        13612    13612           
  Misses       2256     2256           
  Partials      592      592           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@sushichan044 sushichan044 left a comment

Choose a reason for hiding this comment

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

Thanks for the great work 🙏
I have two small suggestions I'd like to request.

caarlos0 and others added 2 commits June 22, 2025 22:27
Co-authored-by: Kentaro Suzuki <71284054+sushichan044@users.noreply.github.com>
@caarlos0
Copy link
Member Author

thanks for the review @sushichan044 🙏🏻

@caarlos0 caarlos0 merged commit 0dd4742 into main Jun 23, 2025
7 of 8 checks passed
@caarlos0 caarlos0 deleted the url branch June 23, 2025 01:29
caarlos0 pushed a commit that referenced this pull request Jun 23, 2025
<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

Fixing the incorrect Ruby sample code I proposed for private cask
releases in #5844.

<!-- Why is this change being made? -->

<!-- # Provide links to any relevant tickets, URLs or other resources
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs A problem or enhancement in documentation size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants