When authoring CI/CD workflows, make configuration choices that (1) match the actual capabilities required by downstream steps and (2) use conservative, contributor-safe defaults for automated cleanup.
git blame, changelog generation, diffing across tags/commits), ensure the checkout includes sufficient history (commonly full history via fetch-depth: 0) and don’t remove it without verifying the dependency.Example (git history):
- uses: actions/checkout@v4
with:
ref: $
fetch-depth: 0 # required for git blame/history-based steps
Example (conservative stale closure):
const LABEL = 'needs-info';
const BUSINESS_DAYS = 10; // ~1–2 weeks; adjust only with a strong reason
Enter the URL of a public GitHub repository