Skip to content

Setting teams in the global settings.yml wipes out all teams in all repos in the whole org #432

@justinmchase

Description

@justinmchase

Problem Description

I went to add a team to all repos, by setting one team in the settings.yml file into the teams section it wiped out all of the teams in all the repos in the whole org, except for those who also had suborgs and/or individual repo files.

What is actually happening

It calculates changes for the settings.yml to affect all repos, for each repo it calculates it should have only that one team.

What is the expected behavior

I would expect any repo affected by a change to the settings.yml file should have additive changes only. If it also has a suborg and/or repo file then it could be definitive but with only the settings file being applied it should be additive.

Optionally, there needs to be a way to define the behavior for teams such as:

teams:
  add: 
    - name: global-security-team
      permission: read

Error output, if available

N/A

Context

Are you using the hosted instance of probot/settings or running your own?

my own

If running your own instance, are you using it with github.com or GitHub Enterprise?

enterprise

Version of probot/settings

2.0.21-rc.8

Version of GitHub Enterprise

not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions