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 18 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 required fetch-depth: 0 on checkout

The cssnr/mirror-repository-action marketplace docs explicitly warn: "Checkout with: fetch-depth: 0 is necessary!" Without it, actions/checkout defaults to a shallow clone of depth 1, so only the latest commit is present locally. The mirror action will then push a shallow/truncated history to Codeberg instead of a full mirror, and may error out entirely on repositories where it cannot resolve refs beyond the tip commit. The fetch-depth: 0 line was present before this PR and its removal looks unintentional.

Suggested change
steps:
- 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