Repository navigation
Tell the portfolio when the project list changes - #12
Merged
Merged
Conversation
inosaint.github.io scrapes this site's tiles at build time, with no feed and no live fetch, so a project added here does not reach its homepage until that repo rebuilds on its own. Fire a projects-updated repository_dispatch at it on pushes that touch index.html — the only file carrying tiles. This repo is on legacy Pages, which publishes a little after the push lands, so poll the served page until it matches the committed index.html first; dispatching straight away would have the portfolio bake in the list it is replacing. Needs a PORTFOLIO_DISPATCH_TOKEN secret: a PAT with contents:write on inosaint/inosaint.github.io. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KWNyAfb9D1hp8ZJj3whaGv
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.
Pairs with inosaint/inosaint.github.io#55.
The portfolio homepage scrapes this site's tiles at build time — no feed, no live fetch — so a project added here is invisible there until that repo rebuilds. This fires a
projects-updatedrepository_dispatchat it.Scoped to
index.htmlvia apaths:filter, since that's the only file carryingclass="tile"anchors. Image-only or CSS commits won't trigger a rebuild.Why the wait step: this repo is on legacy Pages, which publishes a little after the push lands. Dispatching immediately would have the portfolio scrape the old
index.htmland bake in the list we're replacing — exactly the bug this is meant to fix. So it polls the served page (cache-busted) until it matches the committed file, up to 10 minutes, then dispatches anyway with a warning rather than failing.Before this works: add a
PORTFOLIO_DISPATCH_TOKENsecret to this repo — a fine-grained PAT scoped toinosaint/inosaint.github.iowith Contents: read and write. Merge #55 first, or the dispatch lands on a workflow that doesn't yet listen for it.🤖 Generated with Claude Code
https://claude.ai/code/session_01KWNyAfb9D1hp8ZJj3whaGv