ci: use shallow change-detection checkout #8

Open
john wants to merge 3 commits from chore/test-hygiene-baseline into main
Owner

Summary

  • replace the full-history change-detector checkout with depth 2
  • fetch the exact pull-request base commit shallowly before calculating the diff
  • preserve existing conservative force-run fallbacks

Validation

  • workflow YAML parsed successfully
  • no **REDACTED** placeholders
  • git diff --check
  • local test-hygiene scanner reports no findings

Merge checkpoint

Merging to main triggers .forgejo/workflows/build.yml, which rebuilds and distributes the shared forgejo-ci:latest runner image. Hold merge for explicit human approval.

## Summary - replace the full-history change-detector checkout with depth 2 - fetch the exact pull-request base commit shallowly before calculating the diff - preserve existing conservative force-run fallbacks ## Validation - workflow YAML parsed successfully - no `**REDACTED**` placeholders - `git diff --check` - local test-hygiene scanner reports no findings ## Merge checkpoint Merging to `main` triggers `.forgejo/workflows/build.yml`, which rebuilds and distributes the shared `forgejo-ci:latest` runner image. Hold merge for explicit human approval.
ci: use shallow change-detection checkout
Some checks failed
dokku-image-deploy.yml / ci: use shallow change-detection checkout (push) Failing after 0s
dokku-image-deploy.yml / ci: use shallow change-detection checkout (pull_request) Failing after 0s
70b82a325a
ci: retrigger checks after workflow contract fix
Some checks failed
dokku-image-deploy.yml / ci: retrigger checks after workflow contract fix (push) Failing after 0s
dokku-image-deploy.yml / ci: retrigger checks after workflow contract fix (pull_request) Failing after 0s
a83ca89caf
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin chore/test-hygiene-baseline:chore/test-hygiene-baseline
git switch chore/test-hygiene-baseline

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff chore/test-hygiene-baseline
git switch chore/test-hygiene-baseline
git rebase main
git switch main
git merge --ff-only chore/test-hygiene-baseline
git switch chore/test-hygiene-baseline
git rebase main
git switch main
git merge --no-ff chore/test-hygiene-baseline
git switch main
git merge --squash chore/test-hygiene-baseline
git switch main
git merge --ff-only chore/test-hygiene-baseline
git switch main
git merge chore/test-hygiene-baseline
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
haskytech/forgejo-ci!8
No description provided.