Public
Edited
Mar 11, 2023
1 fork
1 star
Insert cell
Insert cell
repo = "observablehq/plot"
Insert cell
issues = fetchGithub(`/repos/${repo}/issues`, {per_page: 50})
Insert cell
Inputs.table(issues, {
layout: "auto",
columns: ["html_url", "title", "user", "comments", "created_at", "body"],
format: {
html_url: (html_url, i, data) => htl.html`<a href="${html_url}">${data[i].number}</a>`,
user: user => user.login,
created_at: created_at => d3.timeFormat("%x %X")(new Date(created_at)),
}
})
Insert cell
import {fetchGithub, hasApiKey, rateLimitSummary} from "@observablehq/github-actions-workflows-api"
Insert cell
// For a notebook to access Secrets, it must statically reference one; this cell grants Secret access to the notebook from which we import the GitHub API helpers. `undefined &&` prevents the Secret from appearing in plaintext in the Inspector.
undefined && Secret("GITHUB_ACCESS_TOKEN")
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more