Repository navigation
Conversation
Draft
1 of 5 tasks
Contributor
|
Warning Your comment is too long (maximum is 65536 characters), so the coverage report was not added. See the job log for how to reduce it. |
all-hands-bot
approved these changes
Nov 7, 2026
all-hands-bot
left a comment
Contributor
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Scope gate: the capabilities contract belongs to this service, and Canvas consumption is tracked separately in OpenHands/OpenHands#19461 (currently ready-for-dev), so this is the right repository.
Verified on head 58406b1:
- The change is purely additive:
eventOptionsBySourcedefaults to an empty dict, the existingeventTypes/eventTypesBySourcecatalogs are unchanged, and matching, provider subscriptions, and routing are untouched —event_options()is display-only and consumed only byGET /v1/capabilities. _EVENT_LABELScovers exactly the four catalog sources. I verified programmatically that every generated option's key is a real catalog key (union ofsupported_event_patternsand labels, filtered throughpattern_can_match), keys are unique, and Azure's keys map 1:1 ontoAZURE_DEVOPS_EVENT_TYPES.git.pullrequest.mergedis labeled "Pull request merge attempted" per Microsoft's event definition, and GitHub'spull_request.closedis not presented as a guaranteed merge — both consistent with the PR description.- The
kindclassification uses the same wildcard charset the trigger matcher accepts; every advertised pattern self-matches viafnmatch(verified), so a selected "pattern" option works as a triggeronvalue. - Source scoping is correct: custom sources and sources without a catalog get
Nonefromevent_options()and no invented metadata; catalog keys trackeventTypesBySourceexactly. - Tests: the added endpoint test asserts source scoping, unique keys, the catalog superset, valid patterns via
pattern_can_match, and label/kind spot checks. Local run oftests/test_event_schemas.pypasses (56 tests, including trigger matching), Ruff and Pyright are clean on the changed modules, and GitHub Actions on this head are all green includingunit-tests(success).
No material correctness, security, or compatibility findings.
✅ APPROVED
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automation setup currently receives raw event keys without display names. Add optional
eventOptionsBySourcemetadata with each key's label, group and event/pattern kind, while retaining the existing catalogs for older clients. Exact events appear before wildcard families. Custom sources and sources unavailable to the organization receive no invented catalog.The metadata covers GitHub, Azure DevOps, Jira Data Center and Bitbucket Data Center. It does not change matching, provider subscriptions or routing. Azure's
git.pullrequest.mergedis labeled “Pull request merge attempted,” matching Microsoft's event definition; GitHub's closed event is not labeled as a guaranteed merge.Validation: 41 capabilities/preflight tests pass, plus Ruff and Pyright on changed modules. Endpoint tests verify source scoping, catalog compatibility, unique keys and valid trigger patterns. Canvas consumption is tracked in OpenHands/OpenHands#19461.
Companion UI preview
The attached screenshots and video show the companion Canvas implementation for OpenHands/OpenHands#19461, using this metadata shape. The UI code is on
alona/automation-event-uiand is not included in this backend PR. This is the running app with MSW fixture data, not live provider webhook delivery.The recording uses UI clicks, keyboard navigation and typed text to select two events, add a shared filter, save the draft and inspect the phone layout. The browser test asserts the save response and outgoing event list. Existing automation editing was also checked on an isolated local stack with API readback after UI saves.
3.mp4
Jev-Fast-Audit
⚡ Jev fast audit · estimates · 0.27s · commit 58406b1
Strongest signal: No primary concern selected.
Evidence: No primary concern to locate.
Coverage: complete supplied coverage; 8/8 hunks, 4/4 files.
All estimates and evidence