From dd0de4300ce7214b0f360910a7247374296a9006 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 23 2018 11:56:26 +0000 Subject: Little doc string changes to hopefully make things clearer Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/hooks/__init__.py b/pagure/hooks/__init__.py index 9a17e80..f9f5185 100644 --- a/pagure/hooks/__init__.py +++ b/pagure/hooks/__init__.py @@ -73,12 +73,13 @@ class BaseRunner(object): username (string): The user performing a push project (model.Project): The project this call is made for repotype (string): Value of lib.REPOTYPES indicating for which - repo the currnet call is + repo the current call is repodir (string): Directory where a clone of the specified repo is located. Do note that this might or might not be a writable clone. changes (dict): A dict with keys being the ref to update, values being a tuple of (from, to). + For example: {'refs/heads/master': (hash_from, hash_to), ...} """ if hooktype == "pre-receive": cls.pre_receive(