From 7b58182683583ed79006a4381ef7aa8b5780dd5b Mon Sep 17 00:00:00 2001 From: Nicolas De loof Date: Fri, 12 Sep 2014 23:16:43 +0200 Subject: [PATCH] Update github scopes according to https://developer.github.com/v3/oauth/#scopes --- src/main/java/org/kohsuke/github/GHAuthorization.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/org/kohsuke/github/GHAuthorization.java b/src/main/java/org/kohsuke/github/GHAuthorization.java index dae2c74115..7fe8fdaf94 100644 --- a/src/main/java/org/kohsuke/github/GHAuthorization.java +++ b/src/main/java/org/kohsuke/github/GHAuthorization.java @@ -22,6 +22,15 @@ public class GHAuthorization { public static final String DELETE_REPO = "delete_repo"; public static final String NOTIFICATIONS = "notifications"; public static final String GIST = "gist"; + public static final String READ_HOOK = "read:repo_hook"; + public static final String WRITE_HOOK = "write:repo_hook"; + public static final String AMIN_HOOK = "admin:repo_hook"; + public static final String READ_ORG = "read:org"; + public static final String WRITE_ORG = "write:org"; + public static final String ADMIN_ORG = "admin:org"; + public static final String READ_KEY = "read:public_key"; + public static final String WRITE_KEY = "write:public_key"; + public static final String ADMIN_KEY = "admin:public_key"; private GitHub root; private int id;