-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18b5850
commit 055da67
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |