organization-workflows icon indicating copy to clipboard operation
organization-workflows copied to clipboard

Feature Request - Add an option to include too in organization-workflows-settings.yml

Open vikas027 opened this issue 4 years ago • 2 comments

At the moment, at the time of installing the app, we can choose which repositories to choose and then optionally exclude them in organization-workflows-settings.yml.

It would be great if we can have an include (like below) option too in organization-workflows-settings.yml so that we can give the app full access to all repositories and then manage the include and exclude list from the .github repo itself.

workflows_repository: our-organization-workflows
include_workflows_repository: false
include:
  repositories:
  - 'my-repo'
exclude:
  repositories:
  - '*'

This will help us to manage the central workflows using the git repository itself i.e. devs will not need access to the organization to make changes to the installed app.

vikas027 avatar Sep 16 '21 14:09 vikas027

Hi @vikas027. Thank you for your suggestion. How do you envision these two being combined? i.e. what if a repository is included in both the include and the exclude list?

SvanBoxel avatar Sep 24 '21 08:09 SvanBoxel

What if a repository is included in both the include and the exclude list?

Hey @SvanBoxel , Thanks for looking into this. Well, if we have if the same repo in both include and and exclude, one could take precedence over the other. I'd recommend include to have a higher priority than exclude so that one could exclude all and include only a few (as in my use case above). What do you think?

vikas027 avatar Sep 25 '21 00:09 vikas027