plugin hooks for repo modification

Fixes: https://pagure.io/koji/issue/2636
This commit is contained in:
Tomas Kopecek 2021-01-11 13:52:35 +01:00
parent 3e8f8000c8
commit 6ad2bccec3
3 changed files with 13 additions and 0 deletions

View file

@ -34,6 +34,7 @@ from koji.util import encode_datetime_recurse
# the available callback hooks and a list
# of functions to be called for each event
callbacks = {
# hub
'prePackageListChange': [],
'postPackageListChange': [],
'preTaskStateChange': [],
@ -54,8 +55,11 @@ callbacks = {
'postRepoDone': [],
'preCommit': [],
'postCommit': [],
# builder
'preSCMCheckout': [],
'postSCMCheckout': [],
'postCreateDistRepo': [],
'postCreateRepo': [],
}