Skip to content

Commit

Permalink
file typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RickleAndMortimer committed Sep 26, 2023
1 parent 18b5850 commit 055da67
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions github/orgs_actions_permissions.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2021 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package github

import (
"context"
)

// GetActionsPermissions gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.
//
// GitHub API docs: https://docs.github.com/en/rest/actions/permissions#get-github-actions-permissions-for-an-organization
// Deprecated: please use `client.Actions.GetActionsPermissions` instead
func (s *OrganizationsService) GetActionsPermissions(ctx context.Context, org string) (*ActionsPermissions, *Response, error) {
s2 := (*ActionsService)(s)
return s2.GetActionsPermissions(ctx, org)
}

// EditActionsPermissions sets the permissions policy for repositories and allowed actions in an organization.
//
// GitHub API docs: https://docs.github.com/en/rest/actions/permissions#set-github-actions-permissions-for-an-organization
// Deprecated: please use `client.Actions.EditActionsPermissions` instead
func (s *OrganizationsService) EditActionsPermissions(ctx context.Context, org string, actionsPermissions ActionsPermissions) (*ActionsPermissions, *Response, error) {
s2 := (*ActionsService)(s)
return s2.EditActionsPermissions(ctx, org, actionsPermissions)
}

0 comments on commit 055da67

Please sign in to comment.