Skip to content

Chore/dependabot - #32

Closed
AsierZunzu wants to merge 9 commits into
gulian:masterfrom
AsierZunzu:chore/dependabot
Closed

AsierZunzu wants to merge 9 commits into
gulian:masterfrom
AsierZunzu:chore/dependabot

Conversation

@AsierZunzu

@AsierZunzu AsierZunzu commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Dependabot (.github/dependabot.yml): weekly on Saturday 10:00 Europe/Madrid
    • npm for /backend and /frontend, with a 5-day cooldown. Packages that must move together are grouped: prisma (majors included), fastify, react, tailwind and workbox-*. Other minor/patch bumps go into one PR per project.
    • GitHub Actions, all in one PR.
    • Docker (Dockerfile base image), with Node majors ignored.
    • docker-compose, with Postgres majors ignored, because a new major can't read the old data directory.
  • Build workflow (.github/workflows/build.yml): runs on every pull request.
    • backend: npm ci, prisma generate, tsc on Node 22
    • frontend: npm ci, npm run build
    • docker: builds the image for amd64 only and doesn't push it

Test plan

  • Backend and frontend build steps pass locally on master
  • All three jobs go green on this PR (the first real run of the docker job)
  • After merging, add backend, frontend and docker as required checks on master so a failing build blocks merging

AsierZunzu and others added 9 commits July 24, 2026 14:30
Every Saturday at 06:00 UTC (and on demand), fetch gulian/rewatch@master
and, when it has commits we don't, open a PR into our master. Nothing is
pushed to master directly, so deploy.yml and docker.yml stay gated behind
a human merge.

The sync branch is upstream's tip verbatim rather than a merge built in
CI, so GitHub computes the merge itself and conflicts surface as a normal
conflicted PR. The workflow only dry-run merges to detect conflicts up
front and flag them in the PR body.

When a sync PR from a previous week is still open, the branch is force-
pushed forward and the PR refreshed, so there is only ever one sync PR
and it always reflects upstream's current tip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
`gh` resolves the base repo to the parent when run inside a fork, so
`gh pr create` was trying to open the sync PR on gulian/rewatch, where
GITHUB_TOKEN has no write access -- surfacing as "Resource not
accessible by integration". `gh pr list` was querying upstream too, so
an existing sync PR would never be found.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
server.ts fell back to 3010 and the Vite dev proxy pointed at 3010,
while the Dockerfile, EXPOSE, the compose mapping, .env.example and
every README instruction used 3020. The two were internally consistent
— 3010 was the from-source dev pairing — but running the backend from
source with no .env and then following the README led to a dead port.

3020 everywhere, since that is the number already published to users.
The Vite proxy moves with the fallback; leaving it would have broken
`npm run dev` for anyone without PORT set.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Dependabot covers both npm projects, the Actions, the Dockerfile base
image and the compose images, weekly on Saturday. Packages that must
move together (prisma, fastify, react, tailwind, workbox) are grouped;
Node and Postgres majors are left for manual upgrades.

The new build workflow runs the backend and frontend builds and an
amd64 image build (no push) on every PR, so Dependabot bumps are
checked before merging.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@AsierZunzu AsierZunzu closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant