aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2017-05-18 03:20:12 +0300
committerkongr45gpen <electrovesta@gmail.com>2017-05-18 03:20:12 +0300
commite350d277690773bf0cca5da00718a73262d69149 (patch)
tree6f0d04510cfdb7adf2a7ccc02f7ecdaf754ba59c /config.py
parentec80993f8f076874eb346cbf7c43dbd9301ac1e1 (diff)
downloadsupybot_github-e350d277690773bf0cca5da00718a73262d69149.tar.gz
supybot_github-e350d277690773bf0cca5da00718a73262d69149.tar.bz2
supybot_github-e350d277690773bf0cca5da00718a73262d69149.zip
Add support for specifying the maximum commit count
Diffstat (limited to 'config.py')
-rw-r--r--config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.py b/config.py
index 85c3a02..b7faba3 100644
--- a/config.py
+++ b/config.py
@@ -93,4 +93,7 @@ conf.registerChannelValue(Github, 'alwaysShowForcedPushes',
registry.Boolean(True,
"""Whether to always show force-pushes, even if hidePush is set to True"""))
+conf.registerChannelValue(Github, 'maxCommitCount',
+ registry.Integer(7,
+ """The maximum number of commits to show (0 to disable)"""))
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:

© 2014-2024 Faster IT GmbH | imprint | privacy policy