The value of the fixed "sign" flag in the github push event payload

Looking through the github API, the PushEvents category includes a list of commits and the assigned github time when the event occurred. Description PushEvent documentation states that the commits[][distinct] attribute indicates

Is this commit different from what was pressed before.

This assumes that there is only one event record in which the commit is marked with the 'distinct' flag set to True, as the earliest time that Github has seen, and that such an event will have the earliest timestamp compared to any other event that also has this commit.

However, I found that some commits get marked "distinctive" in several push event notifications, and which are fixed with "distinct" = False can actually be displayed in earlier events than the events where they were marked like true

Why? I do not understand the meaning of a "separate" flag?

+5
source share

Source: https://habr.com/ru/post/1234890/


All Articles