GH-900 ยท Repositories
Dependency insights and maintenance practices
Dependency graph and dependency insights for visibility, repository metrics dashboards, and maintenance best practices such as archiving and keeping docs current.
Key points
- The dependency graph summarizes what a repository depends on (from manifest and lock files) and, for public repos, what depends on it; it underpins Dependabot alerts.
- For upkeep, keep README and description current, close stale issues and PRs, and archive repositories you no longer maintain so they become read-only.
Practice questions
What happens to a repository when it is archived?
- It becomes read-only
- It is permanently deleted
- It becomes private
- Its history is squashed into one commit
Show answer
Answer: A. It becomes read-only
Archiving makes the repository read-only and signals it is no longer actively maintained. It is not deleted, and it can be unarchived later.
Which statements about the dependency graph are correct?
- It summarizes dependencies from manifest and lock files
- It is the basis for Dependabot alerts
- For public repositories it can list repositories that depend on yours
- It reports dependents of private repositories too
- It automatically opens pull requests to bump every dependency
Show answer
Answer: A. It summarizes dependencies from manifest and lock files, B. It is the basis for Dependabot alerts, C. For public repositories it can list repositories that depend on yours
The graph summarizes manifest and lock files, feeds Dependabot alerts, and lists dependents only for public repositories. It does not report dependents of private repositories, and opening bump PRs is Dependabot version updates, not the graph.
True or false: once a repository is archived, it can never be changed again.
Show answer
Answer: False
False. An archived repository can be unarchived from its settings, after which it can be edited again.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
