-
-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(cask): add test and docs for custom URL #5844
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
Conversation
There was a problem hiding this 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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. 🚀 New features to boost your workflow:
|
There was a problem hiding this 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.
Co-authored-by: Kentaro Suzuki <71284054+sushichan044@users.noreply.github.com>
thanks for the review @sushichan044 🙏🏻 |
<!-- 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 -->
based on suggestions by @sushichan044