Back to APIs list

Github API examples & templates

Use these vals as a playground to view and fork Github API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
alexmcroberts avatar
githubFollowing
@alexmcroberts
Script
An interactive, runnable TypeScript val by alexmcroberts
pomdtr avatar
renderGithubReadme
@pomdtr
Script
An interactive, runnable TypeScript val by pomdtr
jswank avatar
githubRepos
@jswank
Script
An interactive, runnable TypeScript val by jswank
enzonotario avatar
githubRepos
@enzonotario
Script
An interactive, runnable TypeScript val by enzonotario
ramkarthik avatar
staleGithubPRs
@ramkarthik
Script
An interactive, runnable TypeScript val by ramkarthik
nbbaier avatar
valToGH
@nbbaier
Script
valToGH A utility function for programmatically updating a GitHub repository with code retrieved from a Val. NOTE : This function currently does not change the contents of a file if it is already present. I will however be adding that functionality. Usage import { valToGH } from 'https://esm.town/v/nbbaier/valToGH'; const repo = "yourGitHubUser/yourRepo"; const val = "valUser/valName"; // or vals = ["valUser/valName1","valUser/valName2", ...] const ghToken = Deno.env.get("yourGitHubToken"); const result = await valToGH(repo, val, ghToken); console.log(result); Parameters repo : The GitHub repository in the format {user}/{repo} . val : A single repository in the format {user}/{val} . ghToken : Your GitHub token for authentication (must have write permission to the target repo) Options branch : Optional target branch. Default is main . prefix : Optional directory path prefix for each file. message : Optional commit message. Default is the current date and time in the format yyyy-MM-dd T HH:mm:ss UTC . ts : Optional flag to use a .ts extension for the committed file instead of the default .tsx .
JanJakes avatar
githubFollowers
@JanJakes
Script
An interactive, runnable TypeScript val by JanJakes
eburrito avatar
githubRepos
@eburrito
Script
An interactive, runnable TypeScript val by eburrito
aviddabbler avatar
githubFollowers
@aviddabbler
Script
An interactive, runnable TypeScript val by aviddabbler
mcarter00 avatar
githubStarred
@mcarter00
Script
// GitHub starred repos
tzq avatar
getInformationOfTheGitHubReposiroty
@tzq
Script
An interactive, runnable TypeScript val by tzq
bdcravens avatar
githubFollowing
@bdcravens
Script
An interactive, runnable TypeScript val by bdcravens
rlesser avatar
Github_ScrapeTrendingRepos
@rlesser
Script
An interactive, runnable TypeScript val by rlesser
cbf avatar
githubFollowing
@cbf
Script
An interactive, runnable TypeScript val by cbf
pomdtr avatar
github_oauth_proxy
@pomdtr
Script
Proxy Server for Github Oauth The mechanism is inspired from https://indielogin.com/
joshmock avatar
githubStars
@joshmock
Script
An interactive, runnable TypeScript val by joshmock