provider dependency-graph GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}
@utdk/github /repos/{owner}/{repo}/dependency-graph/compare/{basehead}
Get a diff of the dependencies between commits
Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits.
owner path required
The account owner of the repository. The name is not case sensitive.
string
repo path required
The name of the repository without the `.git` extension. The name is not case sensitive.
string
basehead path required
The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`.
string
name query
The full path, relative to the repository root, of the dependency manifest file.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
dependencyGraph.diffRange
GET/repos/{owner}/{repo}/dependency-graph/compare/{basehead}
Gets the diff of the dependency changes between two commits of a repository, based on the changes to the dependency manifests made in those commits.

Parameters

required

The account owner of the repository. The name is not case sensitive.

required

The name of the repository without the `.git` extension. The name is not case sensitive.

required

The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their corresponding HEAD commits, and an appropriate merge base will be determined. This parameter expects the format `{base}...{head}`.

The full path, relative to the repository root, of the dependency manifest file.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.dependencyGraph.diffRange()