diff options
| author | 2019-06-25 17:53:00 +0100 | |
|---|---|---|
| committer | 2019-06-25 17:53:00 +0100 | |
| commit | 12181bfec6c3219571d50779a21e649f23e2b030 (patch) | |
| tree | 957f74cce2eea46a53bd643e46d4e576012d4e2d /modules/git_webhooks | |
| parent | catch and format "unknown record type" exceptions (diff) | |
| signature | ||
Add system to have multiple url shorteners and chose which to use
Diffstat (limited to 'modules/git_webhooks')
| -rw-r--r-- | modules/git_webhooks/__init__.py | 5 | ||||
| -rw-r--r-- | modules/git_webhooks/github.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/git_webhooks/__init__.py b/modules/git_webhooks/__init__.py index 55a45999..83e27d68 100644 --- a/modules/git_webhooks/__init__.py +++ b/modules/git_webhooks/__init__.py @@ -1,3 +1,8 @@ +#--depends-on channel_access +#--depends-on check_mode +#--depends-on commands +#--depends-on shorturl + import itertools, json, re, urllib.parse from src import ModuleManager, utils from . import colors, gitea, github diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 1df948e4..a5fd32ed 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -343,7 +343,7 @@ class GitHub(object): url = "" if data["check_run"]["details_url"]: url = data["check_run"]["details_url"] - url = " - %s" % self.exports.get_one("shortlink")(url) + url = " - %s" % self.exports.get_one("shorturl-any")(url) duration = "" if data["check_run"]["completed_at"]: |
