Skip to content

GitHub URL from context #204

@lure8225

Description

@lure8225

Hi, for using this in a GitHub enterprise context it would be necessary to get the base url from the context instead of hardcoding it to github.com

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

I think it should be available from here

https://github.com/actions/toolkit/blob/04945c6048e796f86b5c4cf1965faa378af67480/packages/github/src/context.ts#L23C5-L23C5

Sorry that I currently am not able to directly do a PR for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions