GitHub API guide

github.com

Check your signed-in GitHub account, find duplicate issues, download repository folders, and discover trending projects.

Included services GitHub Contents, Github Current Intelligence, GitHub Trending

Actions and inputs

github whoami

Show the GitHub account signed in to your browser.

issues dupes

Find open issues that match a search term.

Inputs Search term, repository, optional limit

fetch

Download a repository folder while preserving its directory structure.

Inputs Repository folder, optional ref, output folder, optional file glob

github-trending repos

List trending repositories by language and time range.

Inputs Optional language, time range, and limit

Repository issues

Create

Open an issue in a repository you own or administer where Issues is enabled.

Inputs Repository, title, and description

Read

Review an issue's status, labels, assignees, and discussion.

Inputs Repository and issue number

Update

Edit the issue or triage it in a repository you administer, subject to your permissions.

Inputs Repository, issue number, and changes to description, labels, or assignees

Delete

Close the issue as completed or not planned while preserving its discussion.

Inputs Repository, issue number, and closure reason