Skip to content

Enable automerge with better failure comments#86

Merged
mattleibow merged 1 commit into
mainfrom
enable-automerge
May 11, 2026
Merged

Enable automerge with better failure comments#86
mattleibow merged 1 commit into
mainfrom
enable-automerge

Conversation

@mattleibow

@mattleibow mattleibow commented May 11, 2026

Copy link
Copy Markdown
Collaborator

Two changes:

  1. Enable automerge — flips DRY_RUN to false

  2. Better failure comments — the comment now distinguishes between:

    • Validation failures: new warnings, check failures (shows the reason)
    • Merge failures: branch not up to date, SHA mismatch, etc. (shows the gh error)
    • Both together: if validation passes but merge fails, shows both

Example for the 'not up to date' case:

⚠️ Auto-merge blocked

Merge failed: Pull request is not mergeable: the head branch is not up to date with the base branch.
The PR branch needs to be updated with main before it can be merged.

To revert automerge: change DRY_RUN: false back to DRY_RUN: true.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit d8ef5cd:

✅ Validation status: passed

File Status Preview URL Details
.github/workflows/automerge-docs.yml ✅Succeeded

For more details, please refer to the build report.

@mattleibow mattleibow merged commit 354c2b0 into main May 11, 2026
2 of 3 checks passed
@mattleibow mattleibow deleted the enable-automerge branch May 11, 2026 19:08
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@mattleibow mattleibow changed the title Enable automerge — disable dry-run mode Enable automerge with better failure comments May 11, 2026
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.

1 participant