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

Extendable configuration #1180

Open
juancarlosjr97 opened this issue Dec 8, 2024 · 3 comments · May be fixed by #1181
Open

Extendable configuration #1180

juancarlosjr97 opened this issue Dec 8, 2024 · 3 comments · May be fixed by #1181

Comments

@juancarlosjr97
Copy link
Contributor

Following the idea of #934, let's add as the first extendable configuration to the following:

  1. Extend the configuration using the extends and merge the local configuration with the remote configuration
  2. The local will always take precedence over the extends configuration
  3. The extends must be accessible via the internet

Note: I think as part of the first iteration, public access is enough to make it work, and then we can add authorization to make it work behind a private access repo.

@juancarlosjr97
Copy link
Contributor Author

juancarlosjr97 commented Dec 8, 2024

So, I was thinking, of following a similar approach to Renovate for Shareable Configuration Presets.

Using a pattern matching as follows

  • github>owner/repo
  • github>owner/repo#tag
  • github>owner/repo:file#tag

Then, take that configuration for example

{
    "$schema": "https://unpkg.com/release-it@17/schema/release-it.json",
    "extends":  "github>juancarlosjr97/release-it-configuration"
}

Then, merge with local, and then all goes as normal execution.

@juancarlosjr97
Copy link
Contributor Author

I have an initial PR #1181, just need to write tests for it to make sure all is passing, but I tested this using this project from local https://github.com/juancarlosjr97/release-it-configuration-test using this configuration https://github.com/juancarlosjr97/release-it-configuration-test/blob/main/.release-it.json#L3.

juancarlosjr97 added a commit to juancarlosjr97/release-it that referenced this issue Dec 8, 2024
@juancarlosjr97
Copy link
Contributor Author

PR ready to review with test and documentation added #1181 :)

juancarlosjr97 added a commit to juancarlosjr97/release-it that referenced this issue Dec 14, 2024
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

Successfully merging a pull request may close this issue.

1 participant