ci.yml fetches all git history #39

Closed
opened 2026-08-04 13:49:28 +00:00 by kparal · 2 comments
Owner

ci.yml contains:

      - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
        with:
          fetch-depth: 0

That seems to mean Fetch all history for all tags and branches. For CI testing, only the last commit is necessary. I believe the whole

        with:
          fetch-depth: 0

can be dropped.

`ci.yml` contains: ``` - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 with: fetch-depth: 0 ``` That seems to mean [Fetch all history for all tags and branches](https://code.forgejo.org/actions/checkout#fetch-all-history-for-all-tags-and-branches). For CI testing, only the last commit is necessary. I believe the whole ``` with: fetch-depth: 0 ``` can be dropped.
Author
Owner

Closing in favor or quality/tickets#928

Closing in favor or https://forge.fedoraproject.org/quality/tickets/issues/928
Owner

I think I did this because it's necessary for diff-cover and diff-quality to work. They need both the PR branch and the main/master/whatever branch.

I think I did this because it's necessary for diff-cover and diff-quality to work. They need both the PR branch and the main/master/whatever branch.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quality/fedfind#39
No description provided.