{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/Azure-Functions/issues/485","repository_url":"https://api.github.com/repos/Azure/Azure-Functions","labels_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/485/comments","events_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/485/events","html_url":"https://github.com/Azure/Azure-Functions/issues/485","id":255840159,"number":485,"title":"Continuous integration - webhooks dissapear","user":{"login":"frli","id":1047912,"avatar_url":"https://avatars0.githubusercontent.com/u/1047912?v=4","gravatar_id":"","url":"https://api.github.com/users/frli","html_url":"https://github.com/frli","followers_url":"https://api.github.com/users/frli/followers","following_url":"https://api.github.com/users/frli/following{/other_user}","gists_url":"https://api.github.com/users/frli/gists{/gist_id}","starred_url":"https://api.github.com/users/frli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frli/subscriptions","organizations_url":"https://api.github.com/users/frli/orgs","repos_url":"https://api.github.com/users/frli/repos","events_url":"https://api.github.com/users/frli/events{/privacy}","received_events_url":"https://api.github.com/users/frli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Azure/Azure-Functions/milestones/3","html_url":"https://github.com/Azure/Azure-Functions/milestone/3","labels_url":"https://api.github.com/repos/Azure/Azure-Functions/milestones/3/labels","id":2700824,"number":3,"title":"Active Questions","description":null,"creator":{"login":"christopheranderson","id":2252976,"avatar_url":"https://avatars2.githubusercontent.com/u/2252976?v=4","gravatar_id":"","url":"https://api.github.com/users/christopheranderson","html_url":"https://github.com/christopheranderson","followers_url":"https://api.github.com/users/christopheranderson/followers","following_url":"https://api.github.com/users/christopheranderson/following{/other_user}","gists_url":"https://api.github.com/users/christopheranderson/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheranderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheranderson/subscriptions","organizations_url":"https://api.github.com/users/christopheranderson/orgs","repos_url":"https://api.github.com/users/christopheranderson/repos","events_url":"https://api.github.com/users/christopheranderson/events{/privacy}","received_events_url":"https://api.github.com/users/christopheranderson/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2017-08-14T18:42:02Z","updated_at":"2017-09-07T16:54:30Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-09-07T07:25:59Z","updated_at":"2017-09-07T19:34:51Z","closed_at":null,"author_association":"NONE","body":"I'm not sure if this is the right place to file this issue. Apologies if this is the wrong place.\r\n\r\n**Background**\r\nWe have two azure functions (dev and prod, built with Visual Studio 2017 tooling) configured to build from the same Github repo.\r\nOne function is configured to pull from the `dev` branch and the other from the `master`branch.\r\nInspecting `https://github.com/[YOUR-ORG]/[YOUR-REPO]/settings/hooks` shows two outgoing webhooks pointing at `https://your-function-dev.scm.azurewebsites.net/deploy  (push)` and `https://your-function-prod.scm.azurewebsites.net/deploy  (push)`.\r\n\r\n**Problem**\r\nOne or both outgoing webhook from Github dissapear resulting in no builds occurring and nothing being deployed.\r\n\r\nInspecting the Github organisations audit log at `https://github.com/organizations/[YOUR-ORG]/settings/audit-log` shows my name for a `hook.destroy` operation although this is not something I have done manually (knowingly) either trough portal.azure.com nor github.com. \r\n\r\nThe first time this happened I assumed that I had made mistake but we've run into this issue 4 or 5 times now. There's still a chance that I'm somehow making the same mistake over and over but I have a hard time seeing it. I'm not purposely pressing the `disconnect` button 😄 .\r\n\r\n**Workaround**\r\nDisconnect and reconnect with Github under `Deployment options` on the Function blade in portal.azure.com.\r\nWarning: This action appears to also clear *outgoing* webhooks from KUDU which in our case triggers API testing via Runscope post deploy. Not sure why these are cleared and it would be great if they weren't.\r\n\r\n**Don't forget**\r\nAzure functions are awesome 👍 "},"comment":{"url":"https://api.github.com/repos/Azure/Azure-Functions/issues/comments/327901412","html_url":"https://github.com/Azure/Azure-Functions/issues/485#issuecomment-327901412","issue_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/485","id":327901412,"user":{"login":"davidebbo","id":556238,"avatar_url":"https://avatars1.githubusercontent.com/u/556238?v=4","gravatar_id":"","url":"https://api.github.com/users/davidebbo","html_url":"https://github.com/davidebbo","followers_url":"https://api.github.com/users/davidebbo/followers","following_url":"https://api.github.com/users/davidebbo/following{/other_user}","gists_url":"https://api.github.com/users/davidebbo/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebbo/subscriptions","organizations_url":"https://api.github.com/users/davidebbo/orgs","repos_url":"https://api.github.com/users/davidebbo/repos","events_url":"https://api.github.com/users/davidebbo/events{/privacy}","received_events_url":"https://api.github.com/users/davidebbo/received_events","type":"User","site_admin":false},"created_at":"2017-09-07T19:34:51Z","updated_at":"2017-09-07T19:34:51Z","author_association":"COLLABORATOR","body":"@frli I'm not seeing any signs of API calls that would cause this. The closest thing is that at 2017-09-07 08:38:42, `bygma-api-function-prod` was restarted. But that was 8 minutes before, and a restart should be harmless.\r\n\r\nWhat does the GitHub audit log show about the identity that called hook.delete?\r\n\r\nAnd you've seen that happen multiple times? It would be interesting to try to correlate it with certain actions happening at that time. Right now this is a mystery to me."}}
{"actor":{"display_login":"davidebbo"}}