-
Notifications
You must be signed in to change notification settings - Fork 178
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
Update repository config on all default branch commits #120
base: master
Are you sure you want to change the base?
Update repository config on all default branch commits #120
Conversation
@@ -6,15 +6,15 @@ module.exports = (robot, _, Settings = require('./lib/settings')) => { | |||
const payload = context.payload | |||
const defaultBranch = payload.ref === 'refs/heads/' + payload.repository.default_branch | |||
|
|||
const config = await getConfig(context, 'settings.yml', {}, { arrayMerge: mergeArrayByName }) | |||
if (!defaultBranch) { | |||
// Not the defualt branch, nothing to see here! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure how to print with debug logs in probot :( but this should be a debug log
}) | ||
|
||
if (defaultBranch && settingsModified) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the if
for applying settings or not to the top, as if its not the case, there is no point on running the deepmerge
The PR failure seems to be related to this merge: https://travis-ci.org/probot/settings/builds/504391901 |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Waiting for feedback Mr Bot |
Not being able to sync the |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Still relevant, blocked by project being dead? |
@mortenlj the project is not dead, but is now maintained by a few volunteers that are not working full time on this project. i'm sorry that there hasn't been feedback on this specific PR since I joined as a maintainer, but please consider that the maintainers are volunteering their time to keep the project moving forward rather than becoming dead, even if addressing some problems takes longer than we all would like. While applying changes to account-level config is a problem that we want to solve, we want to proceed carefully since the possible solutions do come with tradeoffs. addressing this problem introduces a very significant behavioral change to how settings works currently. i'm at least wanting to make sure that i understand the system well before making a hasty change in this area. we are considering some other solutions, like #179, which could solve the same problem with a less expensive approach. we understand that solving this need is something that will benefit most settings users, including the usage by the maintainers. i can assure you that the need is not going unnoticed. |
Matt, great to know you guys have this on your scope, but it would be great
then to mark this so it stops getting the stale every now and then, as it's
really annoying to comment every X and just adds noise to the other people
following this, including myself.
Really appreciate the volunteer time and I fully understand, as I struggle
as well with my GH projects sometimes.
As you know, my time to update, research how this project works, etc, was
also volunteered and would have appreciated at least a comment on this as
it was opened 8 months ago aside from a bot.
Thanks, hope we can find a solution for this soon and hopefully some more
maintainers to help.
…On Wed, Dec 4, 2019, 5:21 PM Matt Travi ***@***.***> wrote:
@mortenlj <https://github.com/mortenlj> the project is not dead, but is
now maintained by a few volunteers that are not working full time on this
project. i'm sorry that there hasn't been feedback on this specific PR
since I joined as a maintainer, but please consider that the maintainers
are volunteering their time to keep the project moving forward rather than
becoming dead, even if addressing some problems takes longer than we all
would like.
While applying changes to account-level config is a problem that we want
to solve, we want to proceed carefully since the possible solutions do come
with tradeoffs. addressing this problem introduces a very significant
behavioral change to how settings works currently. i'm at least wanting to
make sure that i understand the system well before making a hasty change in
this area. we are considering some other solutions, like #179
<#179>, which could solve the same
problem with a less expensive approach.
we understand that solving this need is something that will benefit most
settings users, including the usage by the maintainers. i can assure you
that the need is not going unnoticed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACLS7CLQ3CM24RLU7X4RKOLQW4V6BANCNFSM4HDW4A4A>
.
|
@travi I appreciate that it's a volunteer effort, and I really do value your work. My reason for asking if the project is dead is because in my view, one of the most important things to do when maintaining an open source project with too little time is to give potential new maintainers/contributors feedback when they open a PR. Since this PR has not received any feedback in 8 months, my thoughts were that there hasn't been anyone maintaining the project in 8 months. If the project isn't dead, and progress is being made, then that's excellent news! I eagerly await a solution to the problem. I would have contributed myself, except I don't know up or down in a javascript codebase. 😄 |
agreed on this point. i still need to understand how the bot is configured for this project, but i have been annoyed by this as well, including before i became a maintainer. i don't have direct control of this, so i may not be able to improve the situation immediately, but do hope to get some improvements figured out.
understood and your contribution is appreciated. not that it helps much now, but i'll clarify that i was not a maintainer at the time. that doesn't excuse the lack of commenting since joining, but i am still working to catch up on outstanding issues and PRs, including figuring out some of the ones that were closed by stale bot that shouldn't have been. part of the reason for the delay is that solving this need is a pretty big change to overall behavior, so i've been trying to get my feet under myself with some smaller features first. i do definitely want to solve this need though. i think i currently do lean in the direction of a solution along the lines of #179 so that the updates would be even more immediate, but only when the account-level config has actually been changed. i would love additional feedback if you have some on either approach. |
please be mindful that suggesting that a project is dead is more aggressive than just an innocent question. i recognize that this project has been quiet for a while, especially during the period of time when this PR was opened. however, it is pretty easy to to find recent activity with issues, PRs, and commits to understand that this project is not dead, even though our new maintainers, myself included, have not yet circled back to this PR.
unfortunately, i only became a maintainer recently, so there is an existing backlog of outstanding issues and PRs, some of which have wrongly been closed by the stale bot that we are still working to get caught up on. i do hope to get to the point where responsiveness is improved for new contributions, but available volunteer hours are limited. i do understand the frustration, but also appreciate understanding that maintenance efforts do have limits, especially when trying to catch back up with outstanding desires. |
No worries at all, thanks a lot again for your work and let me know if I
can help any further.
…On Fri, Dec 6, 2019, 4:52 PM Matt Travi ***@***.***> wrote:
My reason for asking if the project is dead
please be mindful that suggesting that a project is dead is more
aggressive than just an innocent question. i recognize that this project
has been quiet for a while, especially during the period of time when this
PR was opened. however, it is pretty easy to to find recent activity with
issues, PRs, and commits to understand that this project is not dead, even
though our new maintainers, myself included, have not yet circled back to
this PR.
one of the most important things to do when maintaining an open source
project with too little time is to give potential new
maintainers/contributors feedback when they open a PR.
unfortunately, i only became a maintainer recently, so there is an
existing backlog of outstanding issues and PRs, some of which have wrongly
been closed by the stale bot that we are still working to get caught up on.
i do hope to get to the point where responsiveness is improved for new
contributions, but available volunteer hours are limited.
i do understand the frustration, but also appreciate understanding that
maintenance efforts do have limits, especially when trying to catch back up
with outstanding desires.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACLS7CPXFFJYLO34ZHN6YRDQXHEBLANCNFSM4HDW4A4A>
.
|
My apologies if my comments come of as aggressive, that is certainly not my intention. Thanks for picking up the mantle, and just know that we are all eagerly awaiting any and all improvements you can make. 😄 |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Bot, please gtfo
…On Fri, Mar 6, 2020, 12:48 AM stale[bot] ***@***.***> wrote:
Is this still relevant? If so, what is blocking it? Is there anything you
can do to help move it forward?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACLS7CKPA5OP3HLB3JDI6IDRGA25DANCNFSM4HDW4A4A>
.
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Bump. Still relevant |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
bad bot |
Ping @travi what do we need to merge this in? 🙇 At the moment, the alternative to this bot, https://github.com/github/safe-settings, is ahead of this one because it doesn't support this feature 😥 |
This changes the behavior of the bot to update the repo config on all commits
We want our
org/.github/.github/settings.yml
to apply to all repos by default, by filtering on only commits that update the.github/settings.yml
files we are unable to do so.Current behavior
.github/settings.yml
org/.github
repo (as probot-config suggests for opt-in/opt-out scenarios)Desired behavior
org/.github
repositoryNotes
The
org/.github
repository config should NOT include the following sectionsMaybe we could even filter them on the bot
Related