Skip to content

Authoring Module Reference

The authoring module controls how commit author information is handled.

Preserve original author when possible:

authoring.pass_thru(
default = "Bot <bot@example.com>", # Fallback author
)

Replace all authors:

authoring.overwrite(
"Bot <bot@example.com>", # Author for all commits
)

Allow specific authors, default for others:

authoring.allowed(
default = "Bot <bot@example.com>", # Fallback author
allowlist = [ # Preserved authors
"alice@example.com",
"bob@example.com",
],
)

Authors use Git standard format:

Name <email@example.com>
authoring = authoring.pass_thru(
default = "Open Source Bot <oss@company.com>",
)
authoring = authoring.overwrite(
"Sync Bot <sync@company.com>",
)
authoring = authoring.allowed(
default = "External <external@company.com>",
allowlist = [
"*@company.com",
],
)