vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Support monorepo

Open moalamri opened this issue 3 years ago • 1 comments

Hi, Thank you so much for this extension, Is it possible to add monorepo support? I basically have nested projects under the main repository, and opening any of those projects will not resolve actions from parent project/repo When I open the main project at the root level the extension shows pinned actions, but nested projects will give this error:

Error running command github-actions.explorer.refresh: command 'github-actions.explorer.refresh' not found. This is likely caused by the extension that contributes github-actions.explorer.refresh.

I tried to add the paths per project as '../.github/workflows/build.yml', but still not resolved and give the same error.

Thank you so much.

moalamri avatar Oct 12 '22 15:10 moalamri

The issue is gone if I copy .github to all nested workspaces. Is it possible for the git extension API to locate the repo root folder? If so, then monorepo is possible to be implemented

UPDATE: I think it is possible to get the root uri of the repository using rootUri If it was on purpose to enable per nested workspace custom actions, then I think it's better leave it like this, but with mono repo I basically have single action for wrapping the projects. What would be even better is an extra option enableMonoRepo that make the extension fallback to use rootUri instead of workspace uri?

moalamri avatar Oct 12 '22 15:10 moalamri

We are not planning on improving this currently. We might revisit, but for now we expect a workspace folder to include the .github/workflows folder.

cschleiden avatar Mar 22 '23 18:03 cschleiden