Commit 00d8d13
committed
Add Javascript code to obtain a GitHub App access token
In order to act as a GitHub App, we need to obtain a so-called
"installation access token", which is like a Personal Access Token for
GitHub Apps, but scoped to a specific repository. To that end, we need
to figure out the "installation ID" of the GitHub App on that specific
repository.
Here are two support functions to make this happen, both making use of
the previously-introduced function to perform GitHub API requests on
behalf of a GitHub App.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 92d02f1 commit 00d8d13
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments