aboutsummaryrefslogtreecommitdiff
path: root/modules/git_webhooks/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git_webhooks/github.py')
-rw-r--r--modules/git_webhooks/github.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py
index 7154c44c..1df948e4 100644
--- a/modules/git_webhooks/github.py
+++ b/modules/git_webhooks/github.py
@@ -80,6 +80,11 @@ CHECK_RUN_CONCLUSION = {
CHECK_RUN_FAILURES = ["failure", "cancelled", "timed_out", "action_required"]
class GitHub(object):
+ def is_private(self, data, headers):
+ if "repository" in data:
+ return data["repository"]["private"]
+ return False
+
def names(self, data, headers):
full_name = None
repo_username = None