pretenders / ployst

The ployst core repo
1 stars 0 forks source link

Github webhook fails to detect branch deletions #105

Open txels opened 9 years ago

txels commented 9 years ago

Github sends a push event which represents a branch deletion. We interpret it incorrectly as a branch update/create. This is part of the JSON data:

{
  "ref": "refs/heads/carles/354-pull-requests",
  "before": "0732e6cb8ef11e7f1236c5cf6ff05d11651c1a7f",
  "after": "0000000000000000000000000000000000000000",
  "created": false,
  "deleted": true,
  "forced": true,
  "base_ref": null,
  "compare": "https://github.com/pretenders/ployst/compare/0732e6cb8ef1...000000000000",
  "commits": [

  ],
  "head_commit": null,
  ...
alexcouper commented 9 years ago

nice catch