{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/4299","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/4299/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/4299/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/4299/events","html_url":"https://github.com/go-gitea/gitea/pull/4299","id":334812028,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2Njg2NzA0","number":4299,"title":"Implement Default Webhooks","user":{"login":"aunger","id":2125216,"node_id":"MDQ6VXNlcjIxMjUyMTY=","avatar_url":"https://avatars2.githubusercontent.com/u/2125216?v=4","gravatar_id":"","url":"https://api.github.com/users/aunger","html_url":"https://github.com/aunger","followers_url":"https://api.github.com/users/aunger/followers","following_url":"https://api.github.com/users/aunger/following{/other_user}","gists_url":"https://api.github.com/users/aunger/gists{/gist_id}","starred_url":"https://api.github.com/users/aunger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aunger/subscriptions","organizations_url":"https://api.github.com/users/aunger/orgs","repos_url":"https://api.github.com/users/aunger/repos","events_url":"https://api.github.com/users/aunger/events{/privacy}","received_events_url":"https://api.github.com/users/aunger/received_events","type":"User","site_admin":false},"labels":[{"id":474798837,"node_id":"MDU6TGFiZWw0NzQ3OTg4Mzc=","url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/feature","name":"kind/feature","color":"006b75","default":false},{"id":475283844,"node_id":"MDU6TGFiZWw0NzUyODM4NDQ=","url":"https://api.github.com/repos/go-gitea/gitea/labels/lgtm/need%201","name":"lgtm/need 1","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-gitea/gitea/milestones/28","html_url":"https://github.com/go-gitea/gitea/milestone/28","labels_url":"https://api.github.com/repos/go-gitea/gitea/milestones/28/labels","id":3604129,"node_id":"MDk6TWlsZXN0b25lMzYwNDEyOQ==","number":28,"title":"1.7.0","description":"","creator":{"login":"lunny","id":81045,"node_id":"MDQ6VXNlcjgxMDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/81045?v=4","gravatar_id":"","url":"https://api.github.com/users/lunny","html_url":"https://github.com/lunny","followers_url":"https://api.github.com/users/lunny/followers","following_url":"https://api.github.com/users/lunny/following{/other_user}","gists_url":"https://api.github.com/users/lunny/gists{/gist_id}","starred_url":"https://api.github.com/users/lunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunny/subscriptions","organizations_url":"https://api.github.com/users/lunny/orgs","repos_url":"https://api.github.com/users/lunny/repos","events_url":"https://api.github.com/users/lunny/events{/privacy}","received_events_url":"https://api.github.com/users/lunny/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":0,"state":"open","created_at":"2018-08-28T14:20:14Z","updated_at":"2018-09-20T19:18:09Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2018-06-22T09:37:08Z","updated_at":"2018-09-26T18:20:04Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/4299","html_url":"https://github.com/go-gitea/gitea/pull/4299","diff_url":"https://github.com/go-gitea/gitea/pull/4299.diff","patch_url":"https://github.com/go-gitea/gitea/pull/4299.patch"},"body":"Partially implement #770. (This is only webhooks, not git hooks.)\r\n\r\n- Add \"Default Webhooks\" page in site admin UI.\r\n- Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0.\r\n- Add a few handlers and templates, but mostly modify the existing ones to serve double-duty. I should point out that installations that have customized the webhooks templates (probably uncommon) will need to edit them to accomodate a slight change in the semantics of .BaseLink.\r\n- Upon repo creation, copy the set of default webhooks into the new repo.\r\n- A repo owner may delete or edit these webhooks if he doesn't like the defaults.\r\n"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/424819328","html_url":"https://github.com/go-gitea/gitea/pull/4299#issuecomment-424819328","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/4299","id":424819328,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDgxOTMyOA==","user":{"login":"lafriks","id":165205,"node_id":"MDQ6VXNlcjE2NTIwNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/165205?v=4","gravatar_id":"","url":"https://api.github.com/users/lafriks","html_url":"https://github.com/lafriks","followers_url":"https://api.github.com/users/lafriks/followers","following_url":"https://api.github.com/users/lafriks/following{/other_user}","gists_url":"https://api.github.com/users/lafriks/gists{/gist_id}","starred_url":"https://api.github.com/users/lafriks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lafriks/subscriptions","organizations_url":"https://api.github.com/users/lafriks/orgs","repos_url":"https://api.github.com/users/lafriks/repos","events_url":"https://api.github.com/users/lafriks/events{/privacy}","received_events_url":"https://api.github.com/users/lafriks/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T18:20:04Z","updated_at":"2018-09-26T18:20:04Z","author_association":"MEMBER","body":"@aunger I would like to have ability to have forced webhooks for all repositories, updating webhooks for repositories when changing default webhook, ability to select/deselect from default webhooks in repository settings etc"}}
{"actor":{"display_login":"lafriks"}}