Skip to content

Skip build workflow for PRs with empty diffs#2479

Merged
calda merged 2 commits intodevelopfrom
copilot/skip-build-for-empty-prs
Mar 28, 2026
Merged

Skip build workflow for PRs with empty diffs#2479
calda merged 2 commits intodevelopfrom
copilot/skip-build-for-empty-prs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 28, 2026

Empty PRs (e.g. from GitHub Copilot with no actual changes) were triggering the full build CI matrix unnecessarily.

  • .github/workflows/build.yml: Added a check-for-changes gate job with if: github.event_name != 'pull_request' || github.event.pull_request.changed_files > 0. All 7 build jobs now declare needs: check-for-changes — when the gate is skipped (empty-diff PR), GitHub Actions automatically skips all dependents. Push events to main/develop are unaffected.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Skip build workflow for pull requests with empty diff Skip build workflow for PRs with empty diffs Mar 28, 2026
Copilot AI requested a review from calda March 28, 2026 21:35
@calda calda marked this pull request as ready for review March 28, 2026 21:36
@calda calda merged commit 3991302 into develop Mar 28, 2026
17 checks passed
@calda calda deleted the copilot/skip-build-for-empty-prs branch March 28, 2026 21:36
@calda
Copy link
Copy Markdown
Collaborator

calda commented Mar 28, 2026

Much better

image

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.29%. Comparing base (cc466c8) to head (42d4630).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2479   +/-   ##
========================================
  Coverage    95.29%   95.29%           
========================================
  Files          167      167           
  Lines        25337    25337           
========================================
+ Hits         24145    24146    +1     
+ Misses        1192     1191    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

calda added a commit that referenced this pull request Apr 11, 2026
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants