Open gsaslis opened 1 year ago
This is the structure we receive through the event:
{
"type": "refs-fetched",
"remote": "z6MksmpU5b1dS7oaqF2bHXhQi1DWy2hB7Mh9CuN7y1DN6QSz",
"rid": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"updated": [
{
"updated": {
"name": "refs/namespaces/z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/refs/heads/master",
"old": "64708954ca5e3d561693e44d61169f14a16d09ba",
"new": "765823c686caa89db0b76c19595189ac1fde4e8e"
}
},
{
"created": {
"name": "refs/namespaces/z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/refs/heads/patches/731309bf14ee65adb1287a45121b016ee3a06f03",
"oid": "a3a223fc645b3d1edcedbaecb6907afdf33362f1"
}
},
]
}
For the created ref, we can get from the name the following:
remote node id: z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
(cloudhead)
patch id: 731309bf14ee65adb1287a45121b016ee3a06f03
@Archimidis ok, if you've already implemented the filtering, please feel free to close this issue.
To begin with, we are only interested in listening to events concerning patch updates.
(Later, there should be a configuration option on the broker about the events we should listen to)