github
GithubEnvVars
¶
Bases: BaseModel
Environment variables required when running in Github.
Attributes:
Name | Type | Description |
---|---|---|
repo |
str
|
... |
run_id |
str
|
... |
run_number |
str
|
... |
github_token |
str
|
... |
git_branch |
str
|
... |
git_sha |
str
|
... |
triggered_by |
str
|
... |
Source code in m/log/ci_tools/providers/github.py
env_vars()
¶
Read the environment variables from Github Actions.
Returns:
Type | Description |
---|---|
OneOf[Issue, EnvVars]
|
An |
Source code in m/log/ci_tools/providers/github.py
log_format(formatter, record, show_traceback, debug_python)
¶
Format a log record using the functions provided in this module.
This function is meant to be used by a log formatter. See more info
Parameters:
Name | Type | Description | Default |
---|---|---|---|
formatter |
Formatter
|
A log formatter instance. |
required |
record |
LogRecord
|
A log record. |
required |
show_traceback |
bool
|
If true, display the python stack trace. |
required |
debug_python |
bool
|
If true, display the location of the record's origin. |
required |
Returns:
Type | Description |
---|---|
str
|
A formatted string. |