Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
Comment on lines 19 to +20

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Missing fetch-depth: 0 breaks full-history mirroring

The fetch-depth: 0 option was dropped from the actions/checkout step. Without it, GitHub Actions performs a shallow clone (depth=1), so only the latest commit tip is available locally. The cssnr/mirror-repository-action pushes from this checked-out repo — the official example workflow from cssnr itself explicitly uses fetch-depth: 0 alongside this very action. Without it, Codeberg will receive only the HEAD commit of each pushed branch/tag rather than the full repository history.

Suggested change
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0

Fix in Claude Code Fix in Codex Fix in Cursor


- name: Mirror to Codeberg
uses: cssnr/mirror-repository-action@4e3e1a67ee37ac30073df96fe9f53ef7ec4a4f80 # v1
uses: cssnr/mirror-repository-action@2af5bf347684245f52b5f56502956a57f9b8813e # v1
with:
host: https://codeberg.org
username: thedavidweng
Expand Down
Loading