-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: refactor sync template workflow to work in a whitelist setting #78
base: development
Are you sure you want to change the base?
Conversation
Here is a QA, though it's failed because I don't have auth setup, you can see through the logs the modified files: 1. can create files with whitelist |
My solution enables individual repo configuration, the whitelist for this repo's
Therefore a second step to this PR, is opening PRs in repos that implement |
@zugdev, this task has been idle for a while. Please provide an update. |
I think this is a good default whitelist. The next steps are:
|
Probably should be all .github/* and all root config files at least. |
I know that the deploy workflow shouldn't be in |
@zugdev, this task has been idle for a while. Please provide an update. |
I have the whitelist set to Here is a QA simulating a blacklisted deploy workflow, as we will do in [1. Action Run] I had to create a PTA to be able to change the Also if you sync multiple times without merging it simply updates the PR, instead of opening new ones. Notice I've blacklisted |
@zugdev, this task has been idle for a while. Please provide an update. |
another QA flow:
the idea is an open sync PR can be incremented |
@zugdev, this task has been idle for a while. Please provide an update. |
Do you think there is a way to make it a single script instead of a ton in every repo? |
I think so |
@zugdev, this task has been idle for a while. Please provide an update. |
1 similar comment
@zugdev, this task has been idle for a while. Please provide an update. |
@zugdev So we need to copy/paste the sync-template.yml to all of our repositories? What if there's a change in the I actually thought there will be a single workflow file in the https://github.com/ubiquity/ts-template repository run on cron and
|
Im refactoring in favor of this push from ts-template idea. It is better. |
Resolves #61
The sync workflow should only propose changes automatically on shared files between repos, I agree those include some of the workflows and ts settings. What I would propose is to enable manual workflow runs with input files too. This way if you want every repo that uses the template to receive a specific new file or to create an overwriting, but not too big PR, you can do it. I believe the AI analysis even though might help, would still need a thorough review and would not reduce any time overhead. I am not sure centralizing the sync workflow is a good idea, if so we would need another way to identify which repos implement the template, to only open PRs in those. If it is really needed we can have a repos list in the workflow, but I think having the sync template in this repo and skipping when it runs here is sufficient to deliver updates to all sync-template workflows across our implementations.