Skip to content

Commit

Permalink
Support allow_public_repo on github group config (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Oct 3, 2023
1 parent aa047e8 commit 22de028
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runner_manager/clients/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def update_self_hosted_runner_group_for_org(
) -> Response[RunnerGroup]:
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}"

json = data.dict(exclude_unset=True) if data else None
# exclude id from data
json = data.dict(exclude_unset=True, exclude={"id"}) if data else None

headers = {"X-GitHub-Api-Version": self._REST_API_VERSION, **(headers or {})}

Expand Down
1 change: 1 addition & 0 deletions runner_manager/models/runner_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def create_github_group(self, github: GitHub) -> GitHubRunnerGroup:
data = GitHubRunnerGroup(
name=self.name,
default=self.default,
allows_public_repositories=self.allows_public_repositories,
)
if self.id is None:
group = github.rest.actions.create_self_hosted_runner_group_for_org(
Expand Down

0 comments on commit 22de028

Please sign in to comment.