Skip to content

Environment Variables

AYNIG exposes commit data to commands via environment variables.

Common variables:

  • AYNIG_BODY - commit body (prompt)
  • AYNIG_COMMIT_HASH - commit hash being processed

Each trailer key becomes an uppercase variable prefixed with AYNIG_TRAILER_. Hyphens are preserved, so use printenv or a scripting language to read them if needed.

aynig-state: build
priority: high

becomes:

  • AYNIG_TRAILER_AYNIG-STATE=build
  • AYNIG_TRAILER_PRIORITY=high