View source: R/fake-github-app.R
| fake_github_app | R Documentation |
A webfakes::new_app() application that implements the subset of the
GitHub REST API needed by the gh test suite. It is exported so that
downstream packages that depend on gh can use it to test their own
GitHub-backed code without hitting the real API.
fake_github_app()
The app accepts any token whose shape is a valid GitHub PAT (40 hex
characters or a ghp_ / github_pat_ / ghs_ / ghr_ / gho_ /
ghu_ prefix). Any other non-empty token is rejected with a 401
"Bad credentials". A missing Authorization header yields a 401
"Requires authentication" for endpoints that need a user.
A webfakes_app object.
app <- fake_github_app()
proc <- webfakes::new_app_process(app)
proc$url()
proc$stop()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.