The repos proxy provides access to GitHub repository endpoints.
import { repos } from "@openally/github.sdk";
// Collect all tags
const tags = await repos.OpenAlly["github.sdk"].tags();
// Collect all contributors
const contributors = await repos.OpenAlly["github.sdk"].contributors();
// Stream pull requests page by page
for await (const pr of repos.nodejs.node.pulls()) {
console.log(pr.number, pr.title);
}
// Stream workflow runs for a specific workflow file
for await (const run of repos.nodejs.node.workflowRuns("ci.yml")) {
console.log(run.id, run.status);
}
// Collect all jobs for a specific run
const jobs = await repos.nodejs.node.runJobs(12345678);repos[owner][repo].<method>()All methods return an ApiEndpoint<T> instance.
Returns ApiEndpoint<Tag>.
Lists all tags for the repository.
GitHub docs: List repository tags
Returns ApiEndpoint<PullRequest>.
Lists pull requests.
GitHub docs: List pull requests
Returns ApiEndpoint<Issue>.
Lists repository issues.
GitHub docs: List repository issues
Returns ApiEndpoint<Commit>.
Lists commits.
GitHub docs: List commits
Returns ApiEndpoint<Contributor>.
Lists contributors to the repository, sorted by number of commits.
GitHub docs: List repository contributors
Returns ApiEndpoint<Workflow>.
Lists all GitHub Actions workflows defined in the repository.
GitHub docs: List repository workflows
Returns ApiEndpoint<WorkflowRun>.
Lists runs for a specific workflow, identified by filename (e.g. "ci.yml") or numeric ID.
GitHub docs: List workflow runs for a workflow
Returns ApiEndpoint<Job>.
Lists all jobs for a given workflow run.
GitHub docs: List jobs for a workflow run
Returns ApiEndpoint<Artifact>.
Lists all artifacts produced by a given workflow run.
GitHub docs: List workflow run artifacts