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

Add methods to add and remove repos for actions on org level #1997

Merged
merged 3 commits into from
Jul 15, 2021

Commits on Jul 14, 2021

  1. Add methods to add and remove repos for actions on org level

    This commit adds the abillity to add one or more repositories to the
    list of enabled repositories for github actions on org level.
    It also adds the abillity to remove them from this list.
    With this change we can now enable and disable repos to use github actions on org level.
    
    The used endpoints for this are:
    https://docs.github.com/en/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization
    https://docs.github.com/en/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization
    FloThinksPi committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    3bfa53a View commit details
    Browse the repository at this point in the history
  2. Apply review suggestions of new methods to manage repos for actions o…

    …n org level
    
    Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
    FloThinksPi and gmlewis committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    6a10404 View commit details
    Browse the repository at this point in the history
  3. Move AddEnabledReposInOrg to SetEnabledReposInOrg

    Switch from Add to Set in method name since the behaviour is to set the
    list of enabled repos absolutely.
    
    As a replacement added the real AddEnabledReposInOrg by implementing:
    https://docs.github.com/en/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization
    which adds just a single entry to the list.
    FloThinksPi committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    8351b36 View commit details
    Browse the repository at this point in the history