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.
bwaidelich avatar
bwaidelich
githubEvents
Script
An interactive, runnable TypeScript val by bwaidelich
0
stevekrouse avatar
stevekrouse
createGithubIssue
Script
This helper function creates a Github Issue in the specified repo, assigned to whoever you want. It also adds it into the current milestone. We use this in @stevekrouse/renderEmails to auto-create issues when we have server restarts, in the current milestone, assigned to @maxm, our infra guy. import { createIssue } from 'https://esm.town/v/stevekrouse/createGithubIssue'; console.log( await createIssue({ title: "Test Issue", body: "This is a test issue.", repoOwner: "val-town", repoName: "val.town", assignee: "maxmcd", githubToken: Deno.env.get("GITHUB_CONTRIBUTIONS"), }), );
1
stungeye avatar
stungeye
githubFollowers
Script
An interactive, runnable TypeScript val by stungeye
0
rym avatar
rym
githubFollowers
Script
An interactive, runnable TypeScript val by rym
0
neverstew avatar
neverstew
githubStarWebhook
Script
An interactive, runnable TypeScript val by neverstew
0
rld avatar
rld
githubFollowers
Script
An interactive, runnable TypeScript val by rld
0
pomdtr avatar
pomdtr
datasette
HTTP
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
old_mkdocs
HTTP
This val serve an old commit from the mkdocs repos
1
axel_sb avatar
axel_sb
githubUser
Script
An interactive, runnable TypeScript val by axel_sb
0
hultner avatar
hultner
githubUser
Script
An interactive, runnable TypeScript val by hultner
0
karfau avatar
karfau
githubEmoji
HTTP
Usage import {githubEmojiUrl} from "https://esm.town/v/karfau/githubEmoji"; console.log(githubEmojiUrl('+1')) //"https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" or in a browser <img src="https://karfau-githubEmoji.web.val.run/+1"></img> Looks like in the preview. curl https://karfau-githubEmoji.web.val.run/+1 (prints "https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png?v8" ) If the name you pass (as argument or in the request path) is not in the list, it returns The list of names can be accessed using githubEmojiNames or by calling https://karfau-githubemoji.web.val.run/names
1
rcoady avatar
rcoady
githubEvents
Script
An interactive, runnable TypeScript val by rcoady
0
stevekrouse avatar
stevekrouse
githubStarred
Script
// Cities named Brooklyn
0
sdan avatar
sdan
githubEvents
Script
An interactive, runnable TypeScript val by sdan
0
bram avatar
bram
githubEvents
Script
An interactive, runnable TypeScript val by bram
0
vladimyr avatar
vladimyr
jsr2gh
HTTP
jsr2gh Redirect to jsr package's GitHub repository page, like vladimyr-jsr2gh.web.val.run/@luca/flag Usage https://vladimyr-jsr2gh.web.val.run/<scope>/<name> Example https://vladimyr-jsr2gh.web.val.run/@luca/flag https://vladimyr-jsr2gh.web.val.run/@std/assert
0