Skip to content

Commit

Permalink
issue integrations#1332: support workflow restrictions in github_acti…
Browse files Browse the repository at this point in the history
…ons_runner_group
  • Loading branch information
bob-bins authored and bob-bins committed Nov 7, 2022
1 parent f7da074 commit b0194f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion github/resource_github_actions_runner_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func resourceGithubActionsRunnerGroupCreate(d *schema.ResourceData, meta interfa
d.Set("selected_repositories_url", runnerGroup.GetSelectedRepositoriesURL())
d.Set("visibility", runnerGroup.GetVisibility())
d.Set("selected_repository_ids", selectedRepositoryIDs) // Note: runnerGroup has no method to get selected repository IDs
d.Set("restricted_to_workflows", runnerGroup.GetRestrictedToWorkflows())
d.Set("selected_workflows", runnerGroup.GetSelectedWorkflows())

return resourceGithubActionsRunnerGroupRead(d, meta)
}
Expand Down Expand Up @@ -165,7 +167,9 @@ func resourceGithubActionsRunnerGroupRead(d *schema.ResourceData, meta interface
d.Set("runners_url", runnerGroup.GetRunnersURL())
d.Set("selected_repositories_url", runnerGroup.GetSelectedRepositoriesURL())
d.Set("visibility", runnerGroup.GetVisibility())

d.Set("restricted_to_workflows", runnerGroup.GetRestrictedToWorkflows())
d.Set("selected_workflows", runnerGroup.GetSelectedWorkflows())

selectedRepositoryIDs := []int64{}
options := github.ListOptions{
PerPage: maxPerPage,
Expand Down

0 comments on commit b0194f6

Please sign in to comment.