-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
semantic-release configuration #161
semantic-release configuration #161
Comments
We need that as well. Background: we use this action on hundreds of repos. Our Ops team sets up this action with a centrally managed base configuration for all repos. Individual repos should be able to override individual settings if needed. |
Thanks for chiming in! @zepatrik just provided a first implementation in #193. I have some open questions currently that I think we should resolve before moving forward:
Generally it's helpful at this stage to collect use cases to make sure we can cover everything in case we introduce this. |
In our case we use a repository that has a bunch of automation to sync default workflows and other files across the organization, especially this workflow: https://github.com/ory/meta/blob/44cf1a812de176ad5c6923a9cae7edc5195ced0d/templates/repository/common/.github/workflows/conventional_commits.yml
The problem with that is that basically all config values are the same across the whole organization, but not the scopes. They should be configurable per repository. Until a few weeks back we used https://github.com/zeke/semantic-pull-requests which did support that workflow, but that service does not work anymore.
If that works, sure. Open for suggestions.
In our case the base is the workflow file, and the separate config is the override. But we could make both work for the use-case.
There is already a lot of dot-files in the repository root. https://github.com/zeke/semantic-pull-requests had a |
Thanks for sharing the details and your proposed solutions @zepatrik! I'm actually wondering if there's a way to already achieve this and if we're in a better position if we don't move this into the core of this action. E.g. for the use case of sharing a lot of configuration across a multitude of repositories, I could image a good way would be to create a composite action that pre-configures this action with everything that needs to be shared and offers inputs for what needs to be overridden. I haven't tried this out, but if it works that way, you'd be able to reference your composite action in all the repositories and only provide the configuration you need to customise per repository (e.g. scopes). That way you could avoid syncing the configuration and you have a single place where you can update it. In regards to the config file, I think you could define such a file for yourself if you really need it and provide its values as dynamic inputs to this action (example). Another use case I could think of is reading configuration from a remote URL, this would work with the dynamic inputs too. So potentially there's already a solution to this that offers much more flexibility than what we could offer if we support this in the core of this action. |
Yes, actually @kevgo already started to implement such an action: ory/ci#94 |
We are using semantic-release and have as well some custom types. It would be great if the action could as well read (e.g.,
.releaserc.json
) from the project and use the same rules/configuration.The text was updated successfully, but these errors were encountered: