Github sends two events when a branch is deleted: a push event where the after commit is 40 zeroes, and a delete event. Txgh cleans up old resources when it receives the delete event, and basically ignores the corresponding push event. However, our PushAttributes class expects push payloads to always have a head_commit attribute, which deleted pushes don't have. This PR fixes the issue by falling back to the pusher attribute.
https://rollbar.com/lumoslabs/txgh/items/115/
Github sends two events when a branch is deleted: a push event where the
after
commit is 40 zeroes, and a delete event. Txgh cleans up old resources when it receives the delete event, and basically ignores the corresponding push event. However, ourPushAttributes
class expects push payloads to always have ahead_commit
attribute, which deleted pushes don't have. This PR fixes the issue by falling back to thepusher
attribute.@lumoslabs/platform