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

Ability to use a common org-wide yaml config? #227

Closed
aaronsteers opened this issue Jan 20, 2023 · 4 comments
Closed

Ability to use a common org-wide yaml config? #227

aaronsteers opened this issue Jan 20, 2023 · 4 comments

Comments

@aaronsteers
Copy link

aaronsteers commented Jan 20, 2023

Hello! We've been using this app happily for quite a while now and we want to expand to have it enabled on all repos in our org.

Would it be possible for the GitHub App to look for org-wide config defaults in a specific repo within the org?

So the decision tree would then be:

  1. If the repo has a semantic.yml file, use it.
  2. Else if the org has a centrally available semantic.yml file, use it.
  3. Else, use the GitHub App defaults.
@Ezard
Copy link
Owner

Ezard commented Jan 20, 2023

Hey @aaronsteers!

I think that this should already be supported, based on Probot's docs here

So you'd create a new repo within the org that's called .github and put the config in the .github/semantic.yml directory, as usual. This should follow the decision tree that you listed above, although I haven't tested this myself so if it doesn't work as expected then let me know and I'll look into it further :)

@aaronsteers
Copy link
Author

aaronsteers commented Jan 20, 2023

Very cool! We'll try this out and report back. Thanks, @Ezard

UPDATE: WIP here:

@Ezard
Copy link
Owner

Ezard commented Feb 2, 2023

@aaronsteers did everything work as expected for you?

@aaronsteers
Copy link
Author

aaronsteers commented Feb 2, 2023

It worked great! Thank you! 🙏

Solution was as easy as putting the config file in a repo called .github.

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

No branches or pull requests

2 participants