app icon indicating copy to clipboard operation
app copied to clipboard

document behavior of settings in .github repository

Open gr2m opened this issue 4 years ago • 5 comments

Problem Description

By creating a .github/settings.yml file in my central .github repository, I expected the settings would be applied to all repositories in the same organization

What is actually happening

The settings are only applied to the .github repository.

What is the expected behavior

The behavior is fine as is, I'd just suggest we document it

gr2m avatar Dec 16 '20 23:12 gr2m

Please document this!

Based on the documentation here: https://github.com/probot/settings#inheritance

Inheritance

This app uses probot-config. This means you can inherit settings from another repo, and only override what you want to change.

And the documentation here: https://github.com/probot/probot-config#an-opt-out-pattern

An opt-out pattern

Alternatively, you may want to default to the config in your .github project and occasionally opt-out. Example:

  # octocat/.github:.github/test.yaml
  shared1: Will be inherited by repo1 and not repo2

  # octocat/repo1:.github/test.yaml <-- missing!
  # Uses octocat/.github:test.yaml instead

  # octocat/repo3:.github/test.yaml <-- either empty or populated
  # Will not inherit shared1, since no _extends field is specified

I expected to be able to create a single <org>/.github repo and have the settings applied to all repositories.

How would we go about getting inheritance to work?

GitHub
Pull Requests for GitHub repository settings. Contribute to probot/settings development by creating an account on GitHub.
GitHub
A Probot extension to easily share configs between repositories. - probot/probot-config

tchupp avatar Mar 12 '21 22:03 tchupp

@tchupp: did you try to contribute the documentation by opening a pull-request with your suggestion?

electriquo avatar Aug 03 '21 15:08 electriquo

My comment was more of a question than a suggestion 😬 I'm curious what the expected behavior is, and how we might go about getting opt-out inheritance to work with an organization. I'm happy to make a PR to update docs once I have some direction 😁

tchupp avatar Aug 13 '21 19:08 tchupp

Has anyone figured this out yet?

ChipWolf avatar Apr 01 '22 12:04 ChipWolf

Duplicate of #95

LayZeeDK avatar May 15 '22 20:05 LayZeeDK