Slackbot
03/13/2023, 5:29 PMPePe Amengual
03/14/2023, 3:09 AMPePe Amengual
03/14/2023, 3:10 AMAaronC
03/14/2023, 1:19 PMatlantis
with some extra debugging around the GetModifiedFiles
function for Gitlab.
It seems that it’s actually getting an empty slice of changes from Gitlab when it queries it immediately after the web-hook is triggered, all the other fields are in place but Changes:[]
is empty.
Which makes no sense because when I hit the exact same API call I see a list of changes.
Just to prove this out in a brute force method I put a sleep inside the function to ensure Gitlab had fully updated everything before we ask for the changes, it has worked every single time after about 2 dozen tests.AaronC
03/14/2023, 1:54 PMPePe Amengual
03/14/2023, 4:20 PMPePe Amengual
03/14/2023, 4:21 PMPePe Amengual
03/14/2023, 4:22 PMAaronC
03/14/2023, 5:02 PMAaronC
03/14/2023, 5:03 PMPePe Amengual
03/14/2023, 5:27 PMAaronC
03/14/2023, 5:28 PMPePe Amengual
03/14/2023, 5:29 PM