正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。
ドキュメントに関する現在のご利用体験についてお聞かせください。アンケートにご協力ください。

glab govern audit sync

Sync agent session data to GitLab. (EXPERIMENTAL)

Synopsis

Read new entries from the local agent transcript since the last sync and POST them to GitLab as audit events.

Called by the Stop hook after every agent turn. Also used by the SessionEnd hook (with –complete) to mark the session as complete.

Project is resolved from:

  1. –project flag (requires –hostname)
  2. Git remote of the current directory

This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

glab govern audit sync [flags]

Examples

console
# Sync the current agent session to GitLab
$ glab govern audit sync

# Sync and mark the session as completed
$ glab govern audit sync --complete

# Sync against a specific project
$ glab govern audit sync --project my-group/my-project --hostname gitlab.com

Options

      --complete          Mark the session as completed. Used by the SessionEnd hook.
  -H, --hostname string   GitLab hostname (required with --project).
  -p, --project string    Project ID or path to sync against.
      --silent            Suppress all output. Used when invoked from hooks.

Options inherited from parent commands

  -h, --help   Show help for this command.