Skip to content

[AutoPR] TODO implement this so that we can pass variables ... #128

Open
@github-actions

Description

@github-actions

TODO implement this so that we can pass variables through without explicitly passing them from/to every workflow and action

# Context mixin for actions and other objects with scope (e.g. workflows)
class ContextModel(StrictModel):
#: Which context variables to global-style include in the scope.
# TODO implement this so that we can pass variables through without explicitly
# passing them from/to every workflow and action
# global_context: dict[ContextVarName, ContextVarName] = Field(default_factory=dict)
pass
### Context actions

One approach to resolve this TODO is to use global variables or a shared context object to pass variables without explicitly passing them between workflows and actions. Another option is to refactor the code to use dependency injection, allowing the variables to be passed through constructor parameters or method arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions