Authoring Module Reference
Authoring Module Reference
Section titled “Authoring Module Reference”The authoring module controls how commit author information is handled.
Functions
Section titled “Functions”authoring.pass_thru
Section titled “authoring.pass_thru”Preserve original author when possible:
authoring.pass_thru( default = "Bot <bot@example.com>", # Fallback author)authoring.overwrite
Section titled “authoring.overwrite”Replace all authors:
authoring.overwrite( "Bot <bot@example.com>", # Author for all commits)authoring.allowed
Section titled “authoring.allowed”Allow specific authors, default for others:
authoring.allowed( default = "Bot <bot@example.com>", # Fallback author allowlist = [ # Preserved authors "alice@example.com", "bob@example.com", ],)Author Format
Section titled “Author Format”Authors use Git standard format:
Name <email@example.com>Examples
Section titled “Examples”Open Source Export
Section titled “Open Source Export”authoring = authoring.pass_thru( default = "Open Source Bot <oss@company.com>",)Bot-Only Commits
Section titled “Bot-Only Commits”authoring = authoring.overwrite( "Sync Bot <sync@company.com>",)Allow Internal Team
Section titled “Allow Internal Team”authoring = authoring.allowed( default = "External <external@company.com>", allowlist = [ "*@company.com", ],)