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

WIP: If account-level config is changed trigger update all #179

Closed

Conversation

mvegter
Copy link
Contributor

@mvegter mvegter commented Nov 16, 2019

Fixes #95

WIP as I the implementation is open for discussion.

flow:

  • Update .github repo
  • Probot updates .github
  • Loop each repo containing settings.yml and update it with the new base config of .github repo

@gundalow
Copy link

Ah, nice. I've just started using Settings Bot, and noticed that none of my changes to github.com/ORG/.github were being propagated to my other repos.

@travi
Copy link
Member

travi commented Dec 4, 2019

sorry that it has taken a while to take a dee look at this, but i do really like the approach to this. the alternative of updating the other repos for all commits to the default branch seemed like overkill to me, so i like that this approach is triggered by an actual change to the account-level config instead.

this is a big change to the behavior of this system, so i do want to be careful with getting this integrated. it is also high value, so i definitely want to solve this need.

@travi travi changed the title WIP: If base is changed trigger update all WIP: If account-level is changed trigger update all Dec 4, 2019
@travi travi changed the title WIP: If account-level is changed trigger update all WIP: If account-level config is changed trigger update all Dec 4, 2019
@jay-oswald
Copy link

Any updates on this @travi @mvegter would love this to get merged in

@travi
Copy link
Member

travi commented Apr 16, 2020

@jay-oswald sorry for the delays, but this is still high on the priority list. there are a few items that i am working to get completed ahead of this in order to make enabling this type of functionality in a safe way. since this is a complex feature, it has the potential to cause problems that we want to avoid.

it has been a little difficult lately to find time to focus on moving this forward safely, but please know that it is still planned to be an upcoming feature

@jpoehnelt
Copy link

Any support needed to help move this through?

@travi
Copy link
Member

travi commented Apr 24, 2020

as mentioned in my recent comment, this is high on the priority list, but needs to be implemented carefully. it is a difficult one to get done through community contributions. please know that it is planned once some other pieces can come together.

const config = await context.config('settings.yml', {}, { arrayMerge: mergeArrayByName })
return Settings.sync(context.github, context.repo(), config)
await onPush(context)
if (repositoryName === '.github') {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we could make this configurable in case I don't want to name my .github repository ".github"? The main reason for that is that I have a master repo which has submodules with all the repos in the org. I currently named my "base" repo template, but I'm not married to that. However, I can't name it ".github", because then I can't have a submodule for it in the main stack repo, at least not have it named the same way as the .github repo itself. I could have a submodule "template" that points at the repo ".github", but it would be anomalous compared to everything else.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are the types of details that make this implementation complex. thank you for raising this so that we can consider it. i wasnt personally aware that probot-config supported extending config from other repos than .github, but if that is supported there, it probably makes sense to find a way to enable when this goes out.

would you mind capturing those thoughts in #95 in case this PR ends up not being the way we move this effort forward?

@alvarosanchez
Copy link

Could this be possibly moved forward?

@stale
Copy link

stale bot commented Oct 21, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes in .github repository are not propagated
7 participants