Class GitLabInboundMapper
java.lang.Object
io.agentscope.extensions.channel.gitlab.GitLabInboundMapper
Maps a GitLab
Note Hook payload into an InboundMessage.
Only Issue and MergeRequest notes are mapped in MVP; Commit and Snippet notes are dropped.
System notes (label changes, status changes) are skipped via object_attributes.system.
Peer model:
peerKind=PeerKind.THREADpeerId="<project.path_with_namespace>#<iid>:<noteable_type>"— the trailing:Issue|MergeRequestis essential for the outbound dispatcher to pick the correct endpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractAuthorId(com.fasterxml.jackson.databind.JsonNode payload) Returns theuser.idused for bot-loop self-detection.extractNoteId(com.fasterxml.jackson.databind.JsonNode payload) Returns theobject_attributes.idused as the idempotency key.Optional<io.agentscope.harness.agent.gateway.channel.InboundMessage>map(com.fasterxml.jackson.databind.JsonNode payload) Maps a Note Hook payload into anInboundMessage.
-
Constructor Details
-
GitLabInboundMapper
-
-
Method Details
-
extractNoteId
Returns theobject_attributes.idused as the idempotency key. -
extractAuthorId
Returns theuser.idused for bot-loop self-detection. -
map
public Optional<io.agentscope.harness.agent.gateway.channel.InboundMessage> map(com.fasterxml.jackson.databind.JsonNode payload) Maps a Note Hook payload into anInboundMessage. Returns empty for unsupported noteable types (Commit / Snippet), system notes, or malformed payloads.
-