mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 15:49:57 +00:00
Add example on the docs
Signed-off-by: PauloMigAlmeida <paulo.miguel.almeida.rodenas@gmail.com>
This commit is contained in:
@@ -25,4 +25,8 @@ permissions.put("pull_requests", GHPermissionType.WRITE);
|
||||
GHAppInstallationToken appInstallationToken = appInstallation
|
||||
.createToken(permissions)
|
||||
.create();
|
||||
// Or
|
||||
|
||||
GHAppInstallationToken appInstallationToken = appInstallation.create();
|
||||
|
||||
+-----+
|
||||
|
||||
@@ -4,10 +4,10 @@ import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collections;
|
||||
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user