-
Notifications
You must be signed in to change notification settings - Fork 26
Support for special .github repository #1
Comments
👍 I think this would be a great option for larger orgs, where the |
I also love this idea |
I'm a fan of these ideas. In addition to the benefit for larger orgs, there are also projects that largely act as mirrors, where it is undesirable to change the upstream repo just to configure an app the runs on the mirror. For 2, is the idea that all configs would, by default, extend org/.github? (That would make sense to me) |
How will single file permissions work when a config file extends from the |
For example, the Accessing the config in the Lines 44 to 74 in def82e6
It looks like you can access the config files regardless of the single file permission if the repository is public, so the single file permission likely comes into play for private repos, though I'm not able to test that part 😋. It seems we would need to request read-only access to repository contents just to read the config files, or we would need to require that the This is easy to control in internal/self-deployed apps, but can lead to confusion during the use of a hosted app that works with probot-config. Config file access could be explained in the README, so any app using probot-config can link to it from their own config/docs. |
I think this issue can be closed, but I would suggest to create a follow up issue regarding @dessant comment
My assumption is that if the |
Are we planning on cutting a release for this change? |
I think it makes more sense to make even the .github repo require Basically revert #6 (which seems to have not thought about private repos) and add in a fallback for anyone depending on #6 functionality temporarily. |
@bkeepers Should we open another issue then given that this does not work well for private repos? |
@nesl247, yes, though we could just document the limitation instead of reverting. |
I've opened #13 to discuss it. |
One of the ideas a few people have been kicking around in the @probot community and within GitHub is the idea of treating a repository named
.github
as a special org-wide configuration repository.probot/stale#106 switches the stale app to using this extension to start experimenting with this idea, and I created https://github.com/probot/.github to store the configs.
I also wanted to propose some changes to this extension that would treat
.github
uniquely:If a user does
_extends: .github
, then read the file out of the root of that repository instead of a.github
directory within that repository. For example, right now I had to put the configs in https://github.com/probot/.github/tree/master/.github to make it work.Maybe even consider also looking in
.github
automatically. This will double the number of API requests for looking up config files, but would make make the.github
repository a convention across probot apps.Thoughts?
cc @JasonEtco @hiimbex
The text was updated successfully, but these errors were encountered: