-
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.
readded old orgs_actions_permissions as deprecated code
- Loading branch information
1 parent
dde3ba2
commit 18b5850
Showing
4 changed files
with
64 additions
and
8 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
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
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" | ||
) | ||
|
||
// GetActionsAllowed gets the actions that are allowed in an organization. | ||
// | ||
// GitHub API docs: https://docs.github.com/en/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-an-organization | ||
// Deprecated: please use `client.Actions.GetActionsAllowed` instead | ||
func (s *OrganizationsService) GetActionsAllowed(ctx context.Context, org string) (*ActionsAllowed, *Response, error) { | ||
s2 := (*ActionsService)(s) | ||
return s2.GetActionsAllowed(ctx, org) | ||
} | ||
|
||
// EditActionsAllowed sets the actions that are allowed in an organization. | ||
// | ||
// GitHub API docs: https://docs.github.com/en/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-an-organization | ||
// Deprecated: please use `client.Actions.EditActionsAllowed` instead | ||
func (s *OrganizationsService) EditActionsAllowed(ctx context.Context, org string, actionsAllowed ActionsAllowed) (*ActionsAllowed, *Response, error) { | ||
s2 := (*ActionsService)(s) | ||
return s2.EditActionsAllowed(ctx, org, actionsAllowed) | ||
} |
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) | ||
} |