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.
serveGithubRepo
@pomdtr
Script
Serve Github Repo Example Click here to preview a commit from 8 years ago. import { serveGithubRepo } from "https://esm.town/v/pomdtr/serveGithubRepo";
export default serveGithubRepo({
owner: "mkdocs",
repo: "mkdocs",
ref: "51ec734"
}); Fork this val to get your own copy, and customize the params. The first load can be a bit slow, but subsequents requests will be cached (both in your browser and on val.town) Use it from the cli deno run --allow-net https://esm.town/v/pomdtr/serveGithubRepoCli mkdocs/mkdocs --ref 51ec734
staleGithubPRsEmail
@glesica
Cron
Stale GitHub PRs email This val is designed to identify and report stale pull requests (PRs) across specified GitHub repositories. It checks for PRs that haven't had any activity for a predefined number of days (default is 3 days) and sends an email summary of these PRs. The email contains details formatted in HTML, offering an overview of PRs requiring attention. Usage Fork this val; Add the following environment variables : githubRepos : comma separated list of repos to check github : GitHub token githubOwner : Owner name