Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
15 changes: 12 additions & 3 deletions .github/workflows/build-catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:

permissions:
contents: write
discussions: read

jobs:
validate:
Expand Down Expand Up @@ -62,14 +63,22 @@ jobs:
working-directory: tools/catalog-build
- run: npm run build
working-directory: tools/catalog-build
- run: npm run build:stats
working-directory: tools/catalog-build
env:
CLARITY_API_TOKEN: ${{ secrets.CLARITY_API_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit generated catalog
run: |
if git diff --quiet -- catalog.json; then
echo "Catalog is already current."
git add catalog.json resource-stats.json traffic-data/clarity-views.json resource-discussions.json
if [ -f design-concepts/resource-stats.json ]; then
git add design-concepts/resource-stats.json
fi
if git diff --cached --quiet; then
echo "Catalog and resource stats are already current."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add catalog.json
git commit -m "chore: rebuild catalog [skip ci]"
git push
23 changes: 22 additions & 1 deletion .github/workflows/traffic-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

permissions:
contents: write
discussions: read
pull-requests: write

concurrency:
Expand All @@ -24,6 +25,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: tools/catalog-build/package-lock.json

- name: Install catalog build dependencies
run: npm ci
working-directory: tools/catalog-build

- name: Collect and persist traffic data
env:
GH_TOKEN: ${{ secrets.TRAFFIC_TOKEN }}
Expand Down Expand Up @@ -176,13 +188,22 @@ jobs:

echo "✅ Saved $DATA_DIR/$DATE.json"

- name: Build resource stats
env:
CLARITY_API_TOKEN: ${{ secrets.CLARITY_API_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node tools/catalog-build/build-stats.js

- name: Commit and open PR
env:
GH_TOKEN: ${{ secrets.TRAFFIC_TOKEN }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add traffic-data/
git add traffic-data/ resource-stats.json resource-discussions.json
if [ -f design-concepts/resource-stats.json ]; then
git add design-concepts/resource-stats.json
fi
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
Expand Down
217 changes: 100 additions & 117 deletions index.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions resource-discussions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"repo": "microsoft/FastTrack",
"note": "Maps gallery resource slug -> GitHub Discussion number in the Resource Votes category.",
"map": {}
}
37 changes: 37 additions & 0 deletions resource-stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"generatedAt": "2026-07-21T18:20:40.181Z",
"sources": {
"views": "clarity",
"upvotes": "github-discussions"
},
"resources": {
"agents-cost-calculator": {
"views": 90,
"viewsUniques": 60
},
"ai-council": {
"views": 78,
"viewsUniques": 61
},
"autoreply-agent": {
"views": 69,
"viewsUniques": 46
},
"copilot-agents-guide": {
"views": 32,
"viewsUniques": 6
},
"powerclaw-agent": {
"views": 1632,
"viewsUniques": 961
},
"purview-audit-copilot-report": {
"views": 656,
"viewsUniques": 382
},
"viva-insights-copilot-dashboard": {
"views": 119,
"viewsUniques": 70
}
}
}
Loading
Loading