1. click New the menu (or right-click in left project nam) -> SRE Genius(DevOps)

AutoDevChat

Generate GitHub Actions

Which will generate build system info and template file, then render to prompt

impl code: GenerateGitHubActionsAction

val githubActions = BuildSystemProvider.guess(project);
val templateRender = TemplateRender("genius/cicd")
templateRender.context = DevOpsContext.from(githubActions)
val template = templateRender.getTemplate("generate-github-action.vm")

Generate Dockerfile

Which will generate build system info and template file, then render to prompt

impl code: GenerateDockerfileAction

val dockerContexts = BuildSystemProvider.guess(project)
val templateRender = TemplateRender("genius/sre")
templateRender.context = DevOpsContext.from(dockerContexts)
val template = templateRender.getTemplate("generate-dockerfile.vm")