feat: feeds automaticos - projetos (GitHub) + posts (Notion)#2
Merged
Conversation
- Client-side fetch of github.com/users/rodckdev/repos filtered by topic=portfolio - assets/data/posts.json generated by scheduled GitHub Action from Notion DB Portfolio - Cron 03:00 UTC daily + workflow_dispatch manual trigger - Graceful empty/error states in UI; sync exits 0 if secrets missing
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.
Summary
Adiciona duas secoes alimentadas automaticamente ao site, fechando o loop com o pipeline email-to-notion-ai.
Projetos abertos (07) - card-grid com os repositorios publicos de @rodckdev que tiverem a topic
portfolio. Fetch client-side viahttps://api.github.com/users/rodckdev/repos, filtro por topic, ordenacao por ultimo push. Rate-limit de 60 req/h por IP basta.Posts publicados (08) - card-grid consumindo
assets/data/posts.json, gerado por GitHub Action diario que consulta o DB Portfolio do Notion filtrandoPublicable=true. Mostra titulo, categoria, contexto/problema/solucao/resultado, tecnologias e relative time.Mecanica do Action (.github/workflows/sync-notion.yml):
0 3 * * *(03:00 UTC) +workflow_dispatch@notionhq/clientem.github/scripts/, rodasync-notion.mjsgithub-actions[bot], usa[skip ci]NOTION_API_KEYouNOTION_PORTFOLIO_DB_IDausentes -> exit 0 sem erro (site continua funcionando, secao mostra estado vazio)UI: estados loading/empty/error em ambos os feeds, grids responsivas, print CSS continua ocultando essas secoes. CV snapshot renumerado de 07 para 09.
Review & Testing Checklist for Human
Publicable=trueno DB Portfolio, rodar o workflow, e checar se ela aparece na secao 08portfolioem algum repo publico e verificar que ele aparece em 07 ao recarregar a paginaNotes
Secrets necessarios no repo
rodckdev/portfolio:Ou via UI: Settings -> Secrets and variables -> Actions. Integration do Notion precisa estar conectada a pagina que contem o DB Portfolio.