I'm using GitHub API v3 to connect to a repository
and get the list of issues that were update/created since
a specific date. I use these parameters to get a filtered result:
If i find any result, for each issue I get the issue events that triggered a change (filtering for the ones that happened since
date).
Everything works fine for every issue event
except for locked and unlocked
events that, for some reason, don't update the issue updated
field.
This leads to the inability to get then the list of issues that were updated since
that specific date and therefore I don't check for the issue events
.
Questions:
As of today (4th of October, 2015), I cannot reproduce this issue. If it was reproducible when the question was posted, probably it was a bug, not a feature.
Is there a reason why these two events don't update the issue?
They do update the issue (see the updated_at
field) and the since
parameter works fine.
Is there an acceptable solution, except for the one where I should get all the issues and query them manually?
Just use the since
parameter, the way how it is supposed to work, but keep in mind the timezone could be different. Since you're in Romania (like me! :-)
) and your server could be into another timezone, you may want to modify the date to match the Romanian time. That's most probably your issue. Just add/substract few hours and see if that helps.
curl
ing the issues, I cannot reproduce the behavior you have.
On the other side, you may want to use the locked
parameter which is anyway updated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With