Skip to content

[feature] Support private repositories for extends in .moon/tasks[/**/*].{pkl,yml} files #2164

@gruffyn

Description

@gruffyn

Is your feature request related to a problem? Please describe.

Currently using the task extends syntax appears to require the files to be hosted publicly. When bootstrapping various repos for our engineers, we need to copy a number of common tasks into each repository. Unfortunately, these tasks contain some internal business logic and will need to be updated periodically.

Describe the solution you'd like

Using tools like github or gitlab as a base, it should be sufficient to allow us to pass url parameters containing environment variables. For example:

extends: 'https://raw.githubusercontent.com/organization/repository/master/.moon/tasks.yml?token=${GITHUB_TOKEN}'

I have tested this locally with a hardcoded token, but currently it fails on validation as the url string does not end with .yml.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions