Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use hardcoded branch name in doc generation #222

Open
hudsonm62 opened this issue Feb 15, 2025 · 0 comments
Open

Don't use hardcoded branch name in doc generation #222

hudsonm62 opened this issue Feb 15, 2025 · 0 comments

Comments

@hudsonm62
Copy link

The URL to devcontainer-template.json uses a hardcoded path to main branch, when in reality not everyone will be using the main branch.

Instead, it should be generated based on the current branch name in context (which could be master, dev, version numbers, and so on) - AND/OR add an input parameter to override it

urlToConfig = `https://github.com/${srcInfo.owner}/${srcInfo.repo}/blob/main/${basePathTrimmed}/${f}/${metadataFile}`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant