summaryrefslogtreecommitdiffstats
path: root/src/site
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-12 10:00:12 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-12 11:40:10 -0400
commitba567069542e1f6769097ff78cd9612a9f08eb83 (patch)
treecd87bc2dd205b5c346a35fecaf0f52fe6e00c416 /src/site
parentaa89bef3a9e06404afb268426cbab1ef20c3857c (diff)
downloadgitblit-ba567069542e1f6769097ff78cd9612a9f08eb83.tar.gz
gitblit-ba567069542e1f6769097ff78cd9612a9f08eb83.zip
Add TicketHook extension
Diffstat (limited to 'src/site')
-rw-r--r--src/site/setup_plugins.mkd23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/site/setup_plugins.mkd b/src/site/setup_plugins.mkd
index 4c32e973..6e4e92a7 100644
--- a/src/site/setup_plugins.mkd
+++ b/src/site/setup_plugins.mkd
@@ -111,6 +111,29 @@ public class MyPatchsetHook extends PatchsetHook {
}
```
+### Extension Point: Ticket Hook
+
+You can provide your own custom ticket hook by extending the *TicketHook* class.
+
+```java
+import com.gitblit.extensions.TicketHook;
+import com.gitblit.models.TicketModel;
+import com.gitblit.models.TicketModel.Change;
+import ro.fortsoft.pf4j.Extension;
+
+@Extension
+public class MyTicketHook extends TicketHook {
+
+ @Override
+ public void onNewTicket(TicketModel ticket) {
+ }
+
+ @Override
+ public void onUpdateTicket(TicketModel ticket, Change change) {
+ }
+}
+```
+
### Mac OSX Fonts
Gitblit's core SSH commands and those in the *powertools* plugin rely on use of ANSI border characters to provide a pretty presentation of data. Unfortunately, the fonts provided by Apple - while very nice - don't work well with ANSI border characters. The following public domain fixed-width, fixed-point, bitmapped fonts work very nicely. I find the 6x12 font with a line spacing of ~0.8 to be quite acceptable.