Skip to content

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

Description

@hudsonm62

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}`;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions