Add latest version column to function catalog documentation#1226
Open
aravindtga wants to merge 1 commit intokptdev:mainfrom
Open
Add latest version column to function catalog documentation#1226aravindtga wants to merge 1 commit intokptdev:mainfrom
aravindtga wants to merge 1 commit intokptdev:mainfrom
Conversation
✅ Deploy Preview for krm-function-catalog ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Adds a “Latest Version” column to the function catalog table by querying GitHub tags per function at build time and linking the displayed version to the corresponding GitHub release.
Changes:
- Add per-function GitHub API lookups and semver-like selection logic to compute/display latest versions.
- Add Hugo
security.funcs.getenvallowlist entry forKRM_CATALOG_API_TOKEN. - Document how to configure an API token for local/Netlify builds and link docs from CONTRIBUTING.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| documentation/layouts/shortcodes/listfunctions.html | Fetches tags from GitHub and renders a new “Latest Version” column with release links |
| documentation/config.toml | Allows reading KRM_CATALOG_API_TOKEN via Hugo security config |
| documentation/README.md | Documents optional GitHub token setup to avoid rate limits |
| CONTRIBUTING.md | Adds pointer to documentation README for running the docs site |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
926bf50 to
1a152e6
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
This PR adds a "Latest Version" column to the function listing on the catalog documentation site, showing the latest released version for each function with a link to its GitHub release.
Changes
Notes
KRM_CATALOG_API_TOKENvia the site's environment variables in the Netlify UI.