-
Notifications
You must be signed in to change notification settings - Fork 334
feat(developer-hub): add Change Log page under Price Feeds #3674
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
Open
aditya520
wants to merge
9
commits into
main
Choose a base branch
from
feat/changelog-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8211d51
feat(developer-hub): add Change Log page under Price Feeds
aditya520 54e58ad
fix(developer-hub): simplify changelog footer to source attribution
aditya520 d4f4d1e
fix(developer-hub): remove RSS button from changelog meta bar
aditya520 f94e824
fix(developer-hub): remove Subscribe button from changelog meta bar
aditya520 27833c2
Update apps/developer-hub/scripts/generate-changelog.ts
aditya520 3d78ceb
Update .github/workflows/changelog-snapshot.yml
aditya520 0d09451
refactor(developer-hub): store daily diffs instead of full snapshots
aditya520 3ad2201
fix(developer-hub): persist changelog baseline via Actions cache, not…
aditya520 6101ada
fix(developer-hub): retry changelog push on conflict, fail loudly
aditya520 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| name: Snapshot Pyth symbols for Change Log | ||
|
|
||
| on: | ||
| schedule: | ||
| # Daily at 00:30 UTC. Slight offset from midnight to avoid contention | ||
| # and to ensure any in-progress upstream writes have settled. | ||
| - cron: "30 0 * * *" | ||
| workflow_dispatch: {} | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| snapshot: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version-file: "package.json" | ||
| cache: pnpm | ||
|
|
||
| - name: Install dependencies for developer-hub | ||
| working-directory: apps/developer-hub | ||
| run: pnpm install --frozen-lockfile --filter @pythnetwork/developer-hub... | ||
|
|
||
| # Restore the rolling baseline (the 3 MB symbols snapshot from the | ||
| # previous run) so today's diff can be computed against it. Missing | ||
| # cache is fine — the snapshot script bootstraps a fresh baseline. | ||
| - name: Restore baseline snapshot | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: apps/developer-hub/data/latest-snapshot.json | ||
| key: changelog-baseline | ||
| restore-keys: changelog-baseline | ||
|
|
||
| - name: Capture today's snapshot and diff | ||
| working-directory: apps/developer-hub | ||
| run: pnpm snapshot:changelog | ||
|
|
||
| - name: Verify generator runs cleanly | ||
| working-directory: apps/developer-hub | ||
| run: pnpm generate:changelog | ||
|
|
||
| # Save today's snapshot back to the cache for tomorrow. Unique key | ||
| # per run so each save creates a new entry; old caches age out via | ||
| # GitHub's standard 7-day inactivity eviction. | ||
| - name: Save baseline snapshot | ||
| if: always() | ||
| uses: actions/cache/save@v4 | ||
| with: | ||
| path: apps/developer-hub/data/latest-snapshot.json | ||
| key: changelog-baseline-${{ github.run_id }} | ||
|
|
||
| - name: Commit and push diff if changed | ||
| run: | | ||
| set -euo pipefail | ||
|
|
||
| git config user.name "github-actions[bot]" | ||
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git add apps/developer-hub/data/changelog-diffs/ | ||
|
|
||
| if git diff --cached --quiet; then | ||
| echo "No new diff today — nothing to commit." | ||
| exit 0 | ||
| fi | ||
|
|
||
| DATE=$(date -u +%Y-%m-%d) | ||
| git commit -m "chore(developer-hub): daily change-log diff ${DATE}" | ||
|
|
||
| # Retry on conflict — another commit may have landed on the | ||
| # default branch between checkout and push. Rebase and retry | ||
| # up to 3 times before giving up loudly. | ||
| BRANCH="${GITHUB_REF_NAME}" | ||
| for attempt in 1 2 3; do | ||
| if git push origin "HEAD:${BRANCH}"; then | ||
| echo "Push succeeded on attempt ${attempt}." | ||
| exit 0 | ||
| fi | ||
| echo "Push rejected on attempt ${attempt}; rebasing onto origin/${BRANCH} and retrying…" | ||
| git fetch origin "${BRANCH}" | ||
| git rebase "origin/${BRANCH}" | ||
| done | ||
|
|
||
| echo "::error::Push failed after 3 attempts. Investigate branch protection or persistent races." >&2 | ||
| exit 1 |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| title: Change Log | ||
| description: Daily record of status transitions on Pyth price feeds — additions, activations, upcoming expirations, and removals. | ||
| slug: /price-feeds/changelog | ||
| --- | ||
|
|
||
| import { ChangeLog } from "../../../src/components/ChangeLog"; | ||
|
|
||
| <ChangeLog /> |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| { | ||
| "date": "2026-05-08", | ||
| "label": "Friday", | ||
| "summary": { | ||
| "added": 6, | ||
| "went_live": 2, | ||
| "expiring": 0, | ||
| "removed": 0 | ||
| }, | ||
| "hero": "6 new feeds announced, 2 went live.", | ||
| "events": [ | ||
| { | ||
| "id": "Equity.US.IGE/USD", | ||
| "lazerId": 2795, | ||
| "asset": "Ishares North American Natural Resources Etf", | ||
| "assetType": "equity", | ||
| "date": "2026-05-08", | ||
| "quote": "USD", | ||
| "hermesId": "c0948c8763aafa254159835fac7d9cc1f65cb2c370791d7fa52493e0bfe974bd", | ||
| "changeType": "went_live" | ||
| }, | ||
| { | ||
| "id": "Equity.US.TER/USD", | ||
| "lazerId": 1420, | ||
| "asset": "Teradyne Inc", | ||
| "assetType": "equity", | ||
| "date": "2026-05-08", | ||
| "quote": "USD", | ||
| "hermesId": "58ab181e7512766728d2cc3581839bbb913e6cd24457ba422cbe2a33df64416e", | ||
| "changeType": "went_live" | ||
| }, | ||
| { | ||
| "id": "Crypto.AFSUI/SUI.RR", | ||
| "lazerId": 3245, | ||
| "asset": "Aftermath Staked Sui", | ||
| "assetType": "crypto-redemption-rate", | ||
| "date": "2026-05-08", | ||
| "quote": "SUI", | ||
| "changeType": "added" | ||
| }, | ||
| { | ||
| "id": "Crypto.HASUI/SUI.RR", | ||
| "lazerId": 3244, | ||
| "asset": "Haedal Staked Sui", | ||
| "assetType": "crypto-redemption-rate", | ||
| "date": "2026-05-08", | ||
| "quote": "SUI", | ||
| "changeType": "added" | ||
| }, | ||
| { | ||
| "id": "Crypto.EXUSDC/USDC.RR", | ||
| "lazerId": 3243, | ||
| "asset": "Exceed Usd Coin", | ||
| "assetType": "crypto-redemption-rate", | ||
| "date": "2026-05-08", | ||
| "quote": "USDC", | ||
| "changeType": "added" | ||
| }, | ||
| { | ||
| "id": "Crypto.LIMUSD/USDC.RR", | ||
| "lazerId": 3242, | ||
| "asset": "Liminal Us Dollar", | ||
| "assetType": "crypto-redemption-rate", | ||
| "date": "2026-05-08", | ||
| "quote": "USDC", | ||
| "changeType": "added" | ||
| }, | ||
| { | ||
| "id": "Crypto.HEMIBTC/BTC.RR", | ||
| "lazerId": 3241, | ||
| "asset": "Hemi Bitcoin", | ||
| "assetType": "crypto-redemption-rate", | ||
| "date": "2026-05-08", | ||
| "quote": "BTC", | ||
| "changeType": "added" | ||
| }, | ||
| { | ||
| "id": "Equity.US.DRAM/USD", | ||
| "lazerId": 3240, | ||
| "asset": "Roundhill Memory Etf", | ||
| "assetType": "equity", | ||
| "date": "2026-05-08", | ||
| "quote": "USD", | ||
| "changeType": "added" | ||
| } | ||
| ] | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
src/components/ChangeLog/generated-data.tsis now ignored, butdata.tsimports it unconditionally, so a fresh checkout does not contain a resolvable module until someone manually runspnpm generate:changelog. In this repo the normal dev path (start:dev->next dev) does not generate that file first, which causes a module-not-found failure for the new page in clean environments.Useful? React with 👍 / 👎.