github RayLabsHQ/gitea-mirror v3.65.0

46 minutes ago

Features

  • Branches to watch for force-push protection (#659, #657, thanks @zwimer). Smart and Block & Approve watched every branch, so on a repository where people force-push their own branches, each rewrite took a snapshot or held the sync, and with five snapshots kept per repository a few of them could push out the one that saved the default branch. Branches to watch, under the mode tiles on the Automation tab, can now be set to Default branch: only a rewrite or deletion of the default branch counts, and other branches sync straight through. The default branch is read from GitHub at each sync. For new setups, PRE_SYNC_BACKUP_BRANCHES=default sets it. See Force-Push Protection.

Fixes

  • Deleted branches that were already merged no longer take a snapshot (#659). A branch deleted on GitHub, for example after its pull request was merged, took a snapshot or held the sync even when all its commits were on the default branch. Such a deletion now counts for nothing, in both settings. A branch whose commits are not on the default branch, as after a squash merge, still counts. The check costs one GitHub request per deleted branch, once.

Notes

  • No database migration.
  • Branches to watch starts at All branches, so nothing changes until you pick Default branch.

As always, back up your Gitea before upgrading.

Full changelog: v3.64.0...v3.65.0

Don't miss a new gitea-mirror release

NewReleases is sending notifications on new releases.