Files
poli0981-dev/scripts
poli0981andClaude Opus 5.5 7215d59f31 ci(content): the admin's publish runs on Gitea's API
content-bump.yml used `gh` to open the content/bump PR, enable GitHub's auto-merge and
dispatch CI. On Gitea the same steps are calls to Gitea's API with the job token, in
scripts/content-publish.mjs (unit-tested):

- `open` (content-bump.yml): open or update the PR, write in its body whether it
  merges itself (<!-- publish: auto --> for Markdown/JSON, <!-- publish: review -->
  when MDX changed, with a comment), and dispatch ci.yml on content/bump: a PR the job
  token opens starts no workflow.
- `merge` (ci.yml's new publish job, after `build` passed on the dispatched run):
  squash-merge the PR at the commit CI built when its body says auto, then dispatch
  ci.yml on main, because the job token's merge commit starts no workflow either; that
  run deploys. A refused merge fails the job and says so on the PR; merging by hand
  deploys as usual.

Decision D5 named Gitea's merge_when_checks_succeed. The merge happens in CI instead:
the scheduled merge would also be the job token's push, so nothing would deploy it,
and the body marker gives the admin the "merges itself" flag Gitea's API lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 00:47:15 +07:00
..