Skip to content

Commit 22de028

Browse files
authored
Support allow_public_repo on github group config (#437)
1 parent aa047e8 commit 22de028

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

runner_manager/clients/github.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def update_self_hosted_runner_group_for_org(
146146
) -> Response[RunnerGroup]:
147147
url = f"/orgs/{org}/actions/runner-groups/{runner_group_id}"
148148

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

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

runner_manager/models/runner_group.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def create_github_group(self, github: GitHub) -> GitHubRunnerGroup:
224224
data = GitHubRunnerGroup(
225225
name=self.name,
226226
default=self.default,
227+
allows_public_repositories=self.allows_public_repositories,
227228
)
228229
if self.id is None:
229230
group = github.rest.actions.create_self_hosted_runner_group_for_org(

0 commit comments

Comments
 (0)