Map<String, String> permissions = new HashMap<>();
permissions.put("checks", WRITE_PERMISSION_NAME);
permissions.put("pull_requests", WRITE_PERMISSION_NAME);
- permissions.put("statuses", READ_PERMISSION_NAME);
permissions.put("metadata", READ_PERMISSION_NAME);
String endPoint = "/app";
+ " \"permissions\": {\n"
+ " \"checks\": \"read\",\n"
+ " \"metadata\": \"read\",\n"
- + " \"statuses\": \"read\",\n"
+ " \"pull_requests\": \"read\"\n"
+ " }\n"
+ "}";
+ " \"permissions\": {\n"
+ " \"checks\": \"write\",\n"
+ " \"metadata\": \"read\",\n"
- + " \"statuses\": \"read\",\n"
+ " \"pull_requests\": \"write\"\n"
+ " }\n"
+ "}";