The dependency graph API is great! However, it is currently tied only to a repository. Unfortunately this limits its usefulness.
In reality, each commit in a repository has its own unique dependency graph as the dependencies will change over time with new commits. Exposing this means you can do things like analyze dependency changes in a PR and give feedback.
Without this, even doing analysis at the repo level is tricky. You might fire a webhook upon merge to master to inspect the dependencies, but there is a race condition that by the time the dependencies are queried other commits may have been merged. Only with the ability to specify the commit sha to base the dependency graph on do you have a reliable way of understanding the dependency graph.
Another side benefit of this would be an easy way to track dependency changes over time, with the historical imformation available.
Are there any plans for such a feature?
Thank you for your feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.
Once again, thank you for your input!
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!