Repository navigation
Migrate Zig scraper from GitHub to Codeberg - #2790
Open
Cook3DCookie wants to merge 1 commit into
Open
Cook3DCookie wants to merge 1 commit into
Cook3DCookie wants to merge 1 commit into
Conversation
- Add get_codeberg_tags helper and use in get_latest_version - Add test for the new function - Update links for Zig icons and Zig source code - Document get_codeberg_tags in scraper-reference - Update GitHub API reference link for get_github_tags function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
lib/docs/scrapers/zig.rb: Updatedcodeattribute ofself.linksfrom GitHub to Codeberg, since Zig moved to Codeberg, and used the newly created helper function get_codeberg_tagslib/docs/core/doc.rb: Added the functionget_codeberg_tags, similar to the existing functionget_github_tagsdocs/scraper-reference.md: Added documentation forget_codeberg_tags, similar to existing documentation aboutget_github_tags, with a link to the Codeberg API reference and an example implementation. Additionally, I have noticed that the link for theget_github_tagsdocumentation was outdated, and therefore changed it to the new linktest/lib/docs/core/doc_test.rb: Added a new test forget_codeberg_tags, very similar to the existing test forget_github_tagspublic/icons/docs/zig/SOURCE: Updated the links to the locations on CodebergVerification
bundle exec thor test:all: 0 failurescurl https://codeberg.org/api/v1/repos/ziglang/zig/tags: returns theexpected JSON
bundle exec thor updates:check zig: latest version reported as0.17.1from Codeberg:
Scope note
self.releaseis intentionally left at 0.16.0, as CONTRIBUTING mentions that bumpingthe version should accompany an actual doc regeneration, which is out of scope
for this migration.
bundle exec thor updates:checkwill now report Zig as outdated.