Skip to content

Improve automerge failure comments#87

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

Improve automerge failure comments#87
mattleibow merged 1 commit into
mainfrom
enable-automerge-v2

Conversation

@mattleibow

Copy link
Copy Markdown
Collaborator

The failure comment now distinguishes between:

  • Validation failures: new warnings, check failures (shows the reason)
  • Merge failures: branch not up to date, SHA mismatch (shows the gh error)
  • Both together: not mutually exclusive

Example for 'not up to date':

⚠️ 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.

The failure comment now shows specific context:
- Validation failures: shows the check reason and warnings detail
- Merge failures: shows the gh error (e.g. 'not up to date')
- Both can appear together since they're not mutually exclusive

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow merged commit b68a4f4 into main May 11, 2026
1 of 3 checks passed
@mattleibow mattleibow deleted the enable-automerge-v2 branch May 11, 2026 19:23
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 7b9b1fb:

✅ Validation status: passed

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

For more details, please refer to the build report.

@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.

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