OrganizationVariable¶
-
class
github.OrganizationVariable.
OrganizationVariable
¶ This class represents a org level GitHub variable. The reference can be found here https://docs.github.com/en/rest/actions/variables
-
visibility
¶ Type: string
-
edit
(value: str, visibility: str = 'all') → bool¶ Calls: Parameters: - variable_name – string
- value – string
- visibility – string
Return type: bool
-
add_repo
(repo: github.Repository.Repository) → bool¶ Calls: ‘PUT {org_url}/actions/variables/{variable_name} <https://docs.github.com/en/rest/actions/variables#add-selected-repository-to-an-organization-secret>`_ Parameters: repo – github.Repository.Repository Return type: bool
-
remove_repo
(repo: github.Repository.Repository) → bool¶ Calls: ‘DELETE {org_url}/actions/variables/{variable_name} <https://docs.github.com/en/rest/actions/variables#add-selected-repository-to-an-organization-secret>`_ Parameters: repo – github.Repository.Repository Return type: bool
-