# Repository Create/Update/Delete Hooks

**URL:** <https://forum.gitea.com/t/repository-create-update-delete-hooks/209>\
**Category:** Gitea Usages\
**Created:** [February 19, 2018, 6:01pm UTC](https://forum.gitea.com/t/repository-create-update-delete-hooks/209 "2018-02-19T18:01:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marbetschar](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@marbetschar](https://forum.gitea.com/u/marbetschar)\
**Post date:** [February 19, 2018, 6:01pm UTC](https://forum.gitea.com/t/repository-create-update-delete-hooks/209/1 "2018-02-19T18:01:01Z")

</div>

Is it possible to inject custom code on repository creation, update and removal?

I’d love having Gitea running in a PostgreSQL environment and automatically setup and maintaining [git\_fdw](https://github.com/franckverrot/git_fdw) for each repository, so we can query statistical data for the hosted repos.

---

<div class="post-metadata">

**Author:** ![howl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/howl/32/4725_2.png) [@howl](https://forum.gitea.com/u/howl)\
**Post date:** [February 26, 2018, 5:54pm UTC](https://forum.gitea.com/t/repository-create-update-delete-hooks/209/2 "2018-02-26T17:54:04Z")

</div>

Well, there are already organization-wide webhooks you can add, which feature creating, deleting or committing to a repository. Don’t know if that suits your need. You can find them in Org settings -\> Webhooks on the left sidebar.
