We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06fd6f1 commit de07778Copy full SHA for de07778
1 file changed
sqlmesh/integrations/github/cicd/controller.py
@@ -290,6 +290,7 @@ def __init__(
290
config: t.Optional[t.Union[Config, str]] = None,
291
event: t.Optional[GithubEvent] = None,
292
client: t.Optional[Github] = None,
293
+ context: t.Optional[Context] = None,
294
) -> None:
295
from github import Github
296
@@ -331,7 +332,7 @@ def __init__(
331
332
if review.state.lower() == "approved"
333
}
334
logger.debug(f"Approvers: {', '.join(self._approvers)}")
- self._context: Context = Context(paths=self._paths, config=self.config)
335
+ self._context: Context = context or Context(paths=self._paths, config=self.config)
336
337
# Bot config needs the context to be initialized
338
logger.debug(f"Bot config: {self.bot_config.json(indent=2)}")
0 commit comments