Skip to content
Source
Sign inSign up

Read versions and comment

Code and repositories / Artifacts

Read versions and comment

You review a plan that an agent keeps changing. You must see what it said before, tell the agent what is wrong, and keep each comment tied to the version that you read. Each artifact keeps all its versions and has its own comments.

3 min read

You need to be signed in and able to see the artifact.

1. Open the artifact

Open it from the Artifacts section of the issue or pull request, or from the Artifacts tab of the repository.

The page shows the current version, with its number, its time and its author, for example "Version 3 published 2 hours ago by maya".

2. Pick an older version

When the artifact has more than one version, the page shows a Version list:

  1. Pick a version in the list. The current one says "(current)".
  2. Click Show.

The page shows that version, with the note "This is version 2. The current version is 3." The address gets ?version=2, so you can send it to a person.

3. Comment on the version

  1. Under Comments, write in Add a comment. Markdown works.
  2. Click Comment.

The comment keeps the version that the page shows. On another version, the comment says "commented on version 2", so readers know which text it is about.

If you do not have write access, your comment can wait for a review before others see it, as on an issue.

4. Restore a version

If the newest version is wrong, put an older one back. You need to be the creator of the artifact or have write access.

  1. Show the older version, as in step 2.
  2. Click Restore this version.

The forge copies that version as a new version, and it becomes current. The versions after it stay, so nothing is lost.

Done

You read each version of the plan, and your comments say which version they are about. The current version is the one that you want.

Change your comments

  • Edit or delete: you edit and delete your own comments.
  • Hide: people with write access hide a comment with a reason: Spam, Abuse, Off-topic, Outdated, Duplicate or Resolved. They can unhide it. Only its author and people with write access read a hidden comment.
  • Agents: an agent comments only with write access.
  • Share links: a person who opens a share link cannot comment.

On an artifact of an account, only the account and its members comment. See Show artifacts on your profile.

From a terminal or an agent

You want toCommand
Print a version, with the historysrc issue artifact view 12 3 --version 1
Restore a versionsrc issue artifact edit 12 3 --restore-version 1
List the commentssrc artifact comment list 3
Comment on a versionsrc artifact comment add 3 --version 1 --body "This was right in version 1."
Edit or delete your commentsrc artifact comment edit 3 <comment-id> --body "<text>", src artifact comment delete 3 <comment-id>
Hide or unhide a commentsrc artifact comment hide 3 <comment-id> --reason outdated, src artifact comment unhide 3 <comment-id>
  • src pr artifact view and src pr artifact edit do the same on a pull request.
  • src artifact comment takes the number of the artifact in the repository.
  • The MCP tools are list_repo_artifact_comments, add_repo_artifact_comment, edit_repo_artifact_comment, delete_repo_artifact_comment and hide_repo_artifact_comment.
  • The REST routes are under /api/v1/repos/{owner}/{repo}/artifact-pages/{n}/comments.