Skip to content

[docs] Update dependencies guide for apm outdated and apm view versions (from #613)#634

Open
danielmeppiel wants to merge 1 commit intomainfrom
docs/outdated-command-2026-04-09-569967a113782696
Open

[docs] Update dependencies guide for apm outdated and apm view versions (from #613)#634
danielmeppiel wants to merge 1 commit intomainfrom
docs/outdated-command-2026-04-09-569967a113782696

Conversation

@danielmeppiel
Copy link
Copy Markdown
Collaborator

Documentation Updates - 2026-04-09

This PR updates the dependencies guide based on features merged in the last 24 hours.

Features Documented

Changes Made

  • Updated docs/src/content/docs/guides/dependencies.md to add a new "Checking for Outdated Dependencies" subsection just before the existing "Updating Dependencies" section.

The new subsection documents:

  • apm outdated usage with all options (--global, --verbose, -j N)
  • Output column meanings (Package, Current, Latest, Status)
  • Comparison logic (semver for tags, SHA for branches)
  • apm view owner/repo-name versions as a complement for inspecting available refs before updating

Merged PRs Referenced

Notes

The CLI reference (docs/src/content/docs/reference/cli-commands.md) and the skill guide (packages/apm-guide/.apm/skills/apm-usage/commands.md) already documented both commands. The CHANGELOG for [0.8.11] also covered the changes. The only gap was the user-facing dependencies guide, which described the update workflow but gave no visibility into staleness detection before updating.

Generated by Daily Documentation Updater ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/daily-doc-updater.md@b87234850bf9664d198f28a02df0f937d0447295
  • expires on Apr 11, 2026, 3:44 AM UTC

Document apm outdated and apm view <pkg> versions in the dependencies
guide (guides/dependencies.md). These commands were shipped in #613 but
were only referenced in the CLI reference (cli-commands.md); the guide
had no mention of how to check for staleness before running an update.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@danielmeppiel danielmeppiel added automation documentation Improvements or additions to documentation labels Apr 9, 2026
Copilot AI review requested due to automatic review settings April 9, 2026 03:44
@danielmeppiel danielmeppiel added documentation Improvements or additions to documentation automation labels Apr 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the user-facing dependencies guide to document recently added dependency staleness detection features, aligning the workflow guide with the existing CLI reference for apm outdated and apm view ... versions.

Changes:

  • Added a new “Checking for Outdated Dependencies” subsection documenting apm outdated usage and output columns.
  • Added a note on using apm view OWNER/REPO versions to inspect available remote refs before updating.
Show a summary per file
File Description
docs/src/content/docs/guides/dependencies.md Adds guidance for checking dependency staleness via apm outdated and inspecting remote refs via apm view ... versions.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

- **Latest** - the newest remote tag or branch-tip SHA
- **Status** - `up-to-date`, `outdated`, or `unknown`

Tag-pinned deps use semver comparison; branch-pinned deps compare commit SHAs. Local and Artifactory dependencies are skipped.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section implies apm outdated can compare any SHA-pinned dependency, but commit-hash pins are currently reported as unknown (since the tool cannot map an arbitrary commit hash to a remote branch tip). Consider documenting that unknown can occur for commit-pinned refs, and that deps with no explicit ref are checked against the default branch tip (shown as (default)).

Suggested change
Tag-pinned deps use semver comparison; branch-pinned deps compare commit SHAs. Local and Artifactory dependencies are skipped.
Tag-pinned deps use semver comparison, and branch-pinned deps compare against the latest commit on that branch. Commit-pinned refs can show `unknown` because `apm outdated` cannot map an arbitrary commit SHA to a remote branch tip. Dependencies with no explicit ref are checked against the default branch tip and shown as `(default)`. Local and Artifactory dependencies are skipped.

Copilot uses AI. Check for mistakes.
```bash
apm view owner/repo-name versions
```

Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apm view ... versions parses the package argument as a dependency reference and requires an owner/repo (or full URL) format; the short-name form used elsewhere in this guide only works for locally installed package metadata. Consider changing the example (or adding a short note) so readers don't try apm view repo-name versions and hit an "Invalid repository format" error.

Suggested change
Use the dependency reference from `apm.yml` here (`owner/repo` or a full URL). A short package name alone is only valid for local installed-package metadata and will fail with an invalid repository format error.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants