Skip to content

Fix automerge: only trigger on success, not every status update#83

Merged
mattleibow merged 1 commit into
mainfrom
mattleibow/automerge-bot-comments
May 11, 2026
Merged

Fix automerge: only trigger on success, not every status update#83
mattleibow merged 1 commit into
mainfrom
mattleibow/automerge-bot-comments

Conversation

@mattleibow

Copy link
Copy Markdown
Collaborator

Follow-up to #82. The workflow was triggering on every status state change (pending, success, error, failure), causing a stack of runs and duplicate comments per commit.

Fix: Add github.event.state == 'success' to the job condition. Now the workflow only runs when a status completes green. Combined with the script's "waiting for required statuses" check, it only comments/merges once ALL required statuses are green.

Filter status events to state=='success' in the job condition.
Eliminates runs for pending/error/failure states. The workflow
now only comments/merges once ALL required statuses are green.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow force-pushed the mattleibow/automerge-bot-comments branch from 445f1a6 to 31a7d1b Compare May 11, 2026 17:45
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 445f1a6:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
❌Error Details

  • [Error: CannotMergeCommit] Cannot merge commit 445f1a6c46e79980d119b4e3b66bfa09bf864347 in branch mattleibow/automerge-bot-comments of repository https://github.com/mono/SkiaSharp-API-docs into branch main (commit 4ceec1420e346e4edcd7512de5c55145854d53f9). Please follow this documentation: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ to use git.exe to resolve you content conflicts locally and then push to remote.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

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

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 31a7d1b:

✅ 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 5815529 into main May 11, 2026
3 checks passed
@mattleibow mattleibow deleted the mattleibow/automerge-bot-comments branch May 11, 2026 17:55
mattleibow added a commit that referenced this pull request Jun 30, 2026
Go Live: publish latest API docs (#171)

Publish the accumulated SkiaSharp / HarfBuzzSharp API documentation from main
to the live (published) branch. This is the first Go Live since #66 and rolls up
a large batch of docs automation, a full regeneration, and content/cross-reference
cleanup.

Highlights in this batch:

- Docs automation: automated API docs writer (#92, hardened in #155), daily
  update workflow, go-live workflow (#65), and a Learn Build status-based
  auto-merge gate (#82, #83) backed by check-learn-build.py and a
  .github/known-warnings.csv baseline.
- Regeneration: frameworks docs switched to latest-only monikers (#141), baseline
  reset to the Windows-generated output (#142), and stub regeneration moved to
  Linux via Mono (#147). This drops older, no-longer-shipping member/type pages
  (e.g. pre-v1.68 view APIs, the removed Android ISKRenderer interface, and the
  SKPaint text properties that moved to SKFont).
- Content: filled API documentation placeholders (#150, #151, #172) and fixed
  broken cross-references (#152).
- Cross-reference cleanup (#173): removed/repointed 36 obsolete xref-not-found
  references left behind by the latest-only-moniker regeneration — dangling links
  in 2019-era remarks to members that were since removed or relocated. Without
  this the Go Live build reported 160 warnings and the auto-merge gate (correctly)
  blocked the publish.

Build health at publish: 0 errors, 124 warnings, 0 suggestions. All 124 remaining
warnings are expected xref-not-found references to external framework types
(OpenTK, Gdk/Cairo/Graphene, ElmSharp/Tizen.NUI, Windows.UI.Xaml, Microsoft.UI.Xaml,
SharpVk, Vortice) that Learn cannot resolve and which are tracked in the
known-warnings.csv baseline — 0 new warnings versus baseline, so the gate passes.

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Copilot App <223556219+Copilot@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.

1 participant