Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/changelog-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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: "22"
Comment thread
aditya520 marked this conversation as resolved.
Outdated
cache: pnpm

- name: Install dependencies for developer-hub
working-directory: apps/developer-hub
run: pnpm install --frozen-lockfile --filter @pythnetwork/developer-hub...

- name: Capture today's snapshot
working-directory: apps/developer-hub
run: pnpm snapshot:changelog

- name: Regenerate change log data
working-directory: apps/developer-hub
run: pnpm generate:changelog

- name: Commit and push if changed
run: |
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-snapshots/
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Outdated

if git diff --cached --quiet; then
echo "No new snapshot — nothing to commit."
exit 0
fi

DATE=$(date -u +%Y-%m-%d)
git commit -m "chore(developer-hub): daily change-log snapshot ${DATE}"
git push
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Outdated
3 changes: 3 additions & 0 deletions apps/developer-hub/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
dist/
next-env.d.ts

# Auto-generated by `pnpm generate:changelog` from data/changelog-snapshots/.
src/components/ChangeLog/generated-data.ts
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Commit or pre-generate required change-log module

src/components/ChangeLog/generated-data.ts is now ignored, but data.ts imports it unconditionally, so a fresh checkout does not contain a resolvable module until someone manually runs pnpm 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 👍 / 👎.


# Ai Migration
.ai/**
9 changes: 9 additions & 0 deletions apps/developer-hub/content/docs/price-feeds/changelog.mdx
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 />
2 changes: 1 addition & 1 deletion apps/developer-hub/content/docs/price-feeds/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,
"title": "Price Feeds",
"description": "Real-time financial market data",
"pages": ["core", "pro"],
"pages": ["core", "pro", "changelog"],
"defaultOpen": true,
"icon": "ChartLine"
}
Loading
Loading