Skip to content

Support managing team access to organization repositories #452

@heurtematte

Description

@heurtematte

Otterdog supports team creation, and extending it to manage team access to repositories would be highly beneficial for larger organizations.

Api doc: https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#add-or-update-team-repository-permissions

Proposition based on existing doc and API format https://api.github.com/orgs/ORG/teams/TEAM_SLUG/repos/OWNER/REPO :

orgs.newOrg('OtterdogTest') {
  ...
  teams+: [
    orgs.newTeam('committers') {
      description: "The project committers",
      privacy: "visible",
      repositories+: {
        "test-repo": {
           permission: "push"
         }
      },
    },
  ],
  ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions