Skip to content

XS✔ ◾ Optimize package update workflow to skip commits if no changes#847

Merged
neilr81 merged 2 commits into
mainfrom
bugfix/nochange-pu
Apr 15, 2026
Merged

XS✔ ◾ Optimize package update workflow to skip commits if no changes#847
neilr81 merged 2 commits into
mainfrom
bugfix/nochange-pu

Conversation

@neilr81
Copy link
Copy Markdown
Contributor

@neilr81 neilr81 commented Apr 13, 2026

Adding more robust check if no changes are present for Package Updates.

Adding more robust check if no changes are present for Package Updates.
@neilr81 neilr81 requested a review from a team as a code owner April 13, 2026 17:25
Copilot AI review requested due to automatic review settings April 13, 2026 17:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Improves the package update GitHub Actions workflow by detecting when there are no working-tree changes and skipping the commit/PR creation path in that case.

Changes:

  • Add a PowerShell-based “changed files” check using git status --porcelain
  • Exit early and set has-changes=false when no changes are detected
  • Only create the update branch / stage files when changes are present

Comment thread .github/workflows/package-update.yml
@github-actions
Copy link
Copy Markdown
Contributor

PR Metrics

Thanks for keeping your pull request small.
Thanks for adding tests.

Lines
Product Code -
Test Code -
Subtotal -
Ignored Code 5
Total 5

Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs!

@github-actions github-actions Bot changed the title Optimize package update workflow to skip commits if no changes XS✔ ◾ Optimize package update workflow to skip commits if no changes Apr 13, 2026
@neilr81 neilr81 enabled auto-merge (squash) April 15, 2026 09:56
@neilr81 neilr81 merged commit f4d1670 into main Apr 15, 2026
7 checks passed
@neilr81 neilr81 deleted the bugfix/nochange-pu branch April 15, 2026 14:29
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.

3 participants