Skip to content

Fix "[main] Update Package Versions" job failing with merge queue enabled#8922

Merged
spetersenms merged 1 commit into
mainfrom
copilot/fix-github-actions-job-failure-yet-again
Jun 30, 2026
Merged

Fix "[main] Update Package Versions" job failing with merge queue enabled#8922
spetersenms merged 1 commit into
mainfrom
copilot/fix-github-actions-job-failure-yet-again

Conversation

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The scheduled [main] Update Package Versions job exits with code 1 even after successfully opening its automation PR. With the repository's merge queue enabled, gh pr merge --delete-branch is rejected, failing the step:

X Cannot use `-d` or `--delete-branch` when merge queue enabled
##[error]Process completed with exit code 1.

Change

  • build/scripts/AutomatedSubmission.psm1: drop the incompatible --delete-branch flag from the auto-merge call.
- gh pr merge --auto --squash --delete-branch | Out-Null
+ gh pr merge --auto --squash | Out-Null

Head-branch cleanup is governed by the repo's "automatically delete head branches" setting, so behavior is unchanged for merge-queue merges.

Copilot AI requested a review from mazhelez June 30, 2026 12:19
@github-actions github-actions Bot added the needs-approval Workflow runs require maintainer approval to start label Jun 30, 2026
@mazhelez mazhelez marked this pull request as ready for review June 30, 2026 13:02
@github-actions github-actions Bot added the Build: scripts & configs Build scripts and configuration files label Jun 30, 2026
@mazhelez mazhelez requested review from a team June 30, 2026 13:02
@github-actions

Copy link
Copy Markdown
Contributor

Could not find a linked ADO work item. Please link one by using the pattern 'AB#' followed by the relevant work item number. You may use the 'Fixes' keyword to automatically resolve the work item when the pull request is merged. E.g. 'Fixes AB#1234'

@github-actions

Copy link
Copy Markdown
Contributor

Copilot PR Review

Iteration 1 · Outcome: not-applicable

All sub-skills returned not-applicable: the PR diff contains no AL source changes (only build/scripts/AutomatedSubmission.psm1, a PowerShell file). Every leaf skill declares technologies: [al] and declined the task.

Knowledge source: https://github.com/microsoft/BCQuality@822cae1b2771ac25f665f73369f69093bd4fd630

No findings were posted for this iteration.

Orchestrator pre-filter (13 file(s) excluded)

  • layer-disabled (knowledge) : 13 file(s)

Findings produced by the Copilot CLI agent against BCQuality at 822cae1b2771ac25f665f73369f69093bd4fd630. Reply 👎 on any inline comment to flag false positives.

@spetersenms spetersenms merged commit ce8af5a into main Jun 30, 2026
59 of 62 checks passed
@spetersenms spetersenms deleted the copilot/fix-github-actions-job-failure-yet-again branch June 30, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build: scripts & configs Build scripts and configuration files needs-approval Workflow runs require maintainer approval to start

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants