Skip to content

Add fallback environment variables #43

@bahmutov

Description

@bahmutov

For really weird environments (like Docker containers WITHOUT git), we can have fallback environment variables we can check if git calls fail. For example we could polyfill failed keys with these environment variables

branch: COMMIT_INFO_BRANCH
message: COMMIT_INFO_MESSAGE
email: COMMIT_INFO_EMAIL
author: COMMIT_INFO_AUTHOR
sha: COMMIT_INFO_SHA
remote: COMMIT_INFO_REMOTE

then anyone who is spawning a container can set these environment variables themselves and get useful info

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions