Public
Edited
Nov 21, 2024
1 star
Insert cell
Insert cell
Insert cell
username = "microsoft"
Insert cell
repo = "typescript"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
artifacts = fetchGithub(`/repos/${username}/${repo}/actions/artifacts`)
Insert cell
artifact = artifacts?.artifacts?.length &&
fetchGithub(
`/repos/${username}/${repo}/actions/artifacts/${artifacts.artifacts[0].id}`
)
Insert cell
Insert cell
userEvents = fetchGithub(`/users/${username}/events/public`)
Insert cell
Insert cell
repoEvents = fetchGithub(`/repos/${username}/${repo}/events`)
Insert cell
Insert cell
stargazers = fetchGithub(`/repos/${username}/${repo}/stargazers`)
Insert cell
Insert cell
gists = fetchGithub(`/users/${username}/gists`)
Insert cell
Insert cell
gist = gistPick && fetchGithub(`/gists/${gistPick?.id}`)
Insert cell
gistCommits = gistPick && fetchGithub(`/gists/${gistPick?.id}/commits`)
Insert cell
Insert cell
gitignores = fetchGithub(`/gitignore/templates`)
Insert cell
Insert cell
gitignore = fetchGithub(`/gitignore/templates/${gitignoresPick}`)
Insert cell
Insert cell
Insert cell
issues = fetchGithub(
`/repos/${username}/${repo}/issues`,
{ state: "all" }, // default: "open"
{ headers: { accept: "application/vnd.github.squirrel-girl-preview" } } // to get reactions
)
Insert cell
Insert cell
issueComments = issues && fetchGithub(`/repos/${username}/${repo}/issues/${issuesPick?.number}/comments`)
Insert cell
Insert cell
Insert cell
issues && issues.filter(d => d.pull_request)
Insert cell
Insert cell
licenses = fetchGithub(`/licenses`)
Insert cell
repoLicense = fetchGithub(`/repos/${username}/${repo}/license`)
Insert cell
repoLicenseSource = repoLicense && fetchGithub(`/licenses/${repoLicense.license.key}`)
Insert cell
Insert cell
Insert cell
(await fetchGithubResponse(`/octocat`)).text()
Insert cell
(await fetchGithubResponse(`/zen`)).text()
Insert cell
Insert cell
organization = fetchGithub(`/orgs/${username}`)
Insert cell
organizations = fetchGithub(`/users/${username}/orgs`)
Insert cell
Insert cell
projectsMediaType = ({ headers: { accept: "application/vnd.github.inertia-preview+json" } })
Insert cell
projects = fetchGithub(`/repos/${username}/${repo}/projects`, {}, projectsMediaType)
// projects = fetchGithub(`/orgs/${username}/projects`, {}, projectsMediaType)
// projects = fetchGithub(`/users/${username}/projects`, {}, projectsMediaType)
Insert cell
Insert cell
columns = fetchGithub(`/projects/${projectsPick.id}/columns`, {}, projectsMediaType)
Insert cell
Insert cell
cards = fetchGithub(`/projects/columns/${columnsPick.id}/cards`, {}, projectsMediaType)
Insert cell
Insert cell
pullRequests = fetchGithub(`/repos/${username}/${repo}/pulls`)
Insert cell
Insert cell
pullRequestCommits = pullRequests && fetchGithub(`/repos/${username}/${repo}/pulls/${pullRequestsPick?.number}/commits`)
Insert cell
pullRequestComments = pullRequests && fetchGithub(`/repos/${username}/${repo}/pulls/${pullRequestsPick?.number}/comments`)
Insert cell
Insert cell
fetchGithub(`/rate_limit`)
Insert cell
Insert cell
repos = fetchGithub(`/users/${username}/repos`)
Insert cell
branches = fetchGithub(`/repos/${username}/${repo}/branches`)
Insert cell
collaborators = fetchGithub(`/repos/${username}/${repo}/collaborators`)
Insert cell
commits = fetchGithub(`/repos/${username}/${repo}/commits`)
Insert cell
forks = fetchGithub(`/repos/${username}/${repo}/forks`)
Insert cell
pages = fetchGithub(`/repos/${username}/${repo}/pages`)
Insert cell
releases = fetchGithub(`/repos/${username}/${repo}/releases`)
Insert cell
referrers = fetchGithub(`/repos/${username}/${repo}/traffic/popular/referrers`)
Insert cell
Insert cell
Insert cell
searchResults = fetchGithub(`/search/repositories`, {q: searchQuery})
Insert cell
Insert cell
Insert cell
you = fetchGithub(`/user`)
Insert cell
yourFollowers = fetchGithub(`/user/followers`)
Insert cell
yourFollowing = fetchGithub(`/user/following`)
Insert cell
user = fetchGithub(`/user/${username}`)
Insert cell
userFollowers = fetchGithub(`/user/${username}/followers`)
Insert cell
userFollowing = fetchGithub(`/user/${username}/following`)
Insert cell
Insert cell
Insert cell
import {toc} from "@mbostock/toc"
Insert cell
import {fetchGithub, fetchGithubResponse, 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
Insert cell
english_language_to_observable_explanation_generator_yay = function (sentences) {

let doc_script = 'a function a day to learn everything about a robot that can build a arcology in 10 days for 300 dollars eta 2025 - 1 sentence to debug per day ;p'

let magic_spell = 'one_word'
//each one makes a sentence
//each sentence makes a function -- gets a diagram + test suite
// function makes data - in red,yellow,green data
//measure all alan's 10 hows in every sq meter of earth
//execute each function - datum and consensus_level
//example apenwarr_metal_model (set of )
//question: can every 3 year old on earth understand everything in robotics
//knowledge is a crystal and

return sentences.map((datum) => {
return o1()
})



}
Insert cell
import o1 from 'dynabot.dev/import_fn?id=o1'
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