pulumi-github 6.12.0__py3-none-any.whl → 6.12.0a1769172728__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. pulumi_github/__init__.py +0 -28
  2. pulumi_github/_inputs.py +19 -324
  3. pulumi_github/actions_environment_secret.py +12 -141
  4. pulumi_github/actions_environment_variable.py +37 -71
  5. pulumi_github/actions_organization_permissions.py +3 -50
  6. pulumi_github/actions_organization_secret.py +55 -164
  7. pulumi_github/actions_organization_secret_repositories.py +28 -44
  8. pulumi_github/actions_organization_secret_repository.py +28 -44
  9. pulumi_github/actions_organization_variable.py +47 -44
  10. pulumi_github/actions_repository_permissions.py +3 -50
  11. pulumi_github/actions_secret.py +41 -176
  12. pulumi_github/actions_variable.py +33 -65
  13. pulumi_github/app_installation_repositories.py +6 -6
  14. pulumi_github/app_installation_repository.py +6 -6
  15. pulumi_github/dependabot_organization_secret.py +59 -128
  16. pulumi_github/dependabot_organization_secret_repositories.py +36 -44
  17. pulumi_github/dependabot_secret.py +41 -154
  18. pulumi_github/emu_group_mapping.py +4 -64
  19. pulumi_github/organization_ruleset.py +17 -11
  20. pulumi_github/outputs.py +13 -234
  21. pulumi_github/pulumi-plugin.json +1 -1
  22. pulumi_github/repository.py +27 -32
  23. pulumi_github/repository_ruleset.py +7 -7
  24. {pulumi_github-6.12.0.dist-info → pulumi_github-6.12.0a1769172728.dist-info}/METADATA +1 -1
  25. {pulumi_github-6.12.0.dist-info → pulumi_github-6.12.0a1769172728.dist-info}/RECORD +27 -31
  26. {pulumi_github-6.12.0.dist-info → pulumi_github-6.12.0a1769172728.dist-info}/WHEEL +1 -1
  27. pulumi_github/actions_organization_variable_repositories.py +0 -262
  28. pulumi_github/actions_organization_variable_repository.py +0 -262
  29. pulumi_github/dependabot_organization_secret_repository.py +0 -262
  30. pulumi_github/get_release_asset.py +0 -370
  31. {pulumi_github-6.12.0.dist-info → pulumi_github-6.12.0a1769172728.dist-info}/top_level.txt +0 -0
pulumi_github/__init__.py CHANGED
@@ -15,8 +15,6 @@ from .actions_organization_secret import *
15
15
  from .actions_organization_secret_repositories import *
16
16
  from .actions_organization_secret_repository import *
17
17
  from .actions_organization_variable import *
18
- from .actions_organization_variable_repositories import *
19
- from .actions_organization_variable_repository import *
20
18
  from .actions_organization_workflow_permissions import *
21
19
  from .actions_repository_access_level import *
22
20
  from .actions_repository_oidc_subject_claim_customization_template import *
@@ -36,7 +34,6 @@ from .codespaces_secret import *
36
34
  from .codespaces_user_secret import *
37
35
  from .dependabot_organization_secret import *
38
36
  from .dependabot_organization_secret_repositories import *
39
- from .dependabot_organization_secret_repository import *
40
37
  from .dependabot_secret import *
41
38
  from .emu_group_mapping import *
42
39
  from .enterprise_actions_permissions import *
@@ -94,7 +91,6 @@ from .get_organization_teams import *
94
91
  from .get_organization_webhooks import *
95
92
  from .get_ref import *
96
93
  from .get_release import *
97
- from .get_release_asset import *
98
94
  from .get_repositories import *
99
95
  from .get_repository import *
100
96
  from .get_repository_autolink_references import *
@@ -250,22 +246,6 @@ _utilities.register(
250
246
  "github:index/actionsOrganizationVariable:ActionsOrganizationVariable": "ActionsOrganizationVariable"
251
247
  }
252
248
  },
253
- {
254
- "pkg": "github",
255
- "mod": "index/actionsOrganizationVariableRepositories",
256
- "fqn": "pulumi_github",
257
- "classes": {
258
- "github:index/actionsOrganizationVariableRepositories:ActionsOrganizationVariableRepositories": "ActionsOrganizationVariableRepositories"
259
- }
260
- },
261
- {
262
- "pkg": "github",
263
- "mod": "index/actionsOrganizationVariableRepository",
264
- "fqn": "pulumi_github",
265
- "classes": {
266
- "github:index/actionsOrganizationVariableRepository:ActionsOrganizationVariableRepository": "ActionsOrganizationVariableRepository"
267
- }
268
- },
269
249
  {
270
250
  "pkg": "github",
271
251
  "mod": "index/actionsOrganizationWorkflowPermissions",
@@ -418,14 +398,6 @@ _utilities.register(
418
398
  "github:index/dependabotOrganizationSecretRepositories:DependabotOrganizationSecretRepositories": "DependabotOrganizationSecretRepositories"
419
399
  }
420
400
  },
421
- {
422
- "pkg": "github",
423
- "mod": "index/dependabotOrganizationSecretRepository",
424
- "fqn": "pulumi_github",
425
- "classes": {
426
- "github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository": "DependabotOrganizationSecretRepository"
427
- }
428
- },
429
401
  {
430
402
  "pkg": "github",
431
403
  "mod": "index/dependabotSecret",
pulumi_github/_inputs.py CHANGED
@@ -77,10 +77,6 @@ __all__ = [
77
77
  'OrganizationRulesetRulesMaxFileSizeArgsDict',
78
78
  'OrganizationRulesetRulesPullRequestArgs',
79
79
  'OrganizationRulesetRulesPullRequestArgsDict',
80
- 'OrganizationRulesetRulesPullRequestRequiredReviewerArgs',
81
- 'OrganizationRulesetRulesPullRequestRequiredReviewerArgsDict',
82
- 'OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgs',
83
- 'OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgsDict',
84
80
  'OrganizationRulesetRulesRequiredCodeScanningArgs',
85
81
  'OrganizationRulesetRulesRequiredCodeScanningArgsDict',
86
82
  'OrganizationRulesetRulesRequiredCodeScanningRequiredCodeScanningToolArgs',
@@ -143,10 +139,6 @@ __all__ = [
143
139
  'RepositoryRulesetRulesMergeQueueArgsDict',
144
140
  'RepositoryRulesetRulesPullRequestArgs',
145
141
  'RepositoryRulesetRulesPullRequestArgsDict',
146
- 'RepositoryRulesetRulesPullRequestRequiredReviewerArgs',
147
- 'RepositoryRulesetRulesPullRequestRequiredReviewerArgsDict',
148
- 'RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgs',
149
- 'RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgsDict',
150
142
  'RepositoryRulesetRulesRequiredCodeScanningArgs',
151
143
  'RepositoryRulesetRulesRequiredCodeScanningArgsDict',
152
144
  'RepositoryRulesetRulesRequiredCodeScanningRequiredCodeScanningToolArgs',
@@ -1531,7 +1523,7 @@ if not MYPY:
1531
1523
  """
1532
1524
  actor_id: NotRequired[pulumi.Input[_builtins.int]]
1533
1525
  """
1534
- (Number) The ID of the actor that can bypass a ruleset. Some actor types such as `DeployKey` do not have an ID.
1526
+ (Number) The ID of the actor that can bypass a ruleset.
1535
1527
  """
1536
1528
  elif False:
1537
1529
  OrganizationRulesetBypassActorArgsDict: TypeAlias = Mapping[str, Any]
@@ -1550,7 +1542,7 @@ class OrganizationRulesetBypassActorArgs:
1550
1542
 
1551
1543
  - `OrganizationAdmin` > `1`
1552
1544
  - `RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
1553
- :param pulumi.Input[_builtins.int] actor_id: (Number) The ID of the actor that can bypass a ruleset. Some actor types such as `DeployKey` do not have an ID.
1545
+ :param pulumi.Input[_builtins.int] actor_id: (Number) The ID of the actor that can bypass a ruleset.
1554
1546
  """
1555
1547
  pulumi.set(__self__, "actor_type", actor_type)
1556
1548
  pulumi.set(__self__, "bypass_mode", bypass_mode)
@@ -1590,7 +1582,7 @@ class OrganizationRulesetBypassActorArgs:
1590
1582
  @pulumi.getter(name="actorId")
1591
1583
  def actor_id(self) -> Optional[pulumi.Input[_builtins.int]]:
1592
1584
  """
1593
- (Number) The ID of the actor that can bypass a ruleset. Some actor types such as `DeployKey` do not have an ID.
1585
+ (Number) The ID of the actor that can bypass a ruleset.
1594
1586
  """
1595
1587
  return pulumi.get(self, "actor_id")
1596
1588
 
@@ -1601,9 +1593,9 @@ class OrganizationRulesetBypassActorArgs:
1601
1593
 
1602
1594
  if not MYPY:
1603
1595
  class OrganizationRulesetConditionsArgsDict(TypedDict):
1604
- ref_name: NotRequired[pulumi.Input['OrganizationRulesetConditionsRefNameArgsDict']]
1596
+ ref_name: pulumi.Input['OrganizationRulesetConditionsRefNameArgsDict']
1605
1597
  """
1606
- (Block List, Max: 1) Required for `branch` and `tag` targets. Must NOT be set for `push` targets. (see below for nested schema)
1598
+ (Block List, Min: 1, Max: 1) (see below for nested schema)
1607
1599
  """
1608
1600
  repository_ids: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]
1609
1601
  """
@@ -1614,8 +1606,6 @@ if not MYPY:
1614
1606
  Conflicts with `repository_id`. (see below for nested schema)
1615
1607
 
1616
1608
  One of `repository_id` and `repository_name` must be set for the rule to target any repositories.
1617
-
1618
- > **Note:** For `push` targets, do not include `ref_name` in conditions. Push rulesets operate on file content, not on refs.
1619
1609
  """
1620
1610
  elif False:
1621
1611
  OrganizationRulesetConditionsArgsDict: TypeAlias = Mapping[str, Any]
@@ -1623,20 +1613,17 @@ elif False:
1623
1613
  @pulumi.input_type
1624
1614
  class OrganizationRulesetConditionsArgs:
1625
1615
  def __init__(__self__, *,
1626
- ref_name: Optional[pulumi.Input['OrganizationRulesetConditionsRefNameArgs']] = None,
1616
+ ref_name: pulumi.Input['OrganizationRulesetConditionsRefNameArgs'],
1627
1617
  repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
1628
1618
  repository_name: Optional[pulumi.Input['OrganizationRulesetConditionsRepositoryNameArgs']] = None):
1629
1619
  """
1630
- :param pulumi.Input['OrganizationRulesetConditionsRefNameArgs'] ref_name: (Block List, Max: 1) Required for `branch` and `tag` targets. Must NOT be set for `push` targets. (see below for nested schema)
1620
+ :param pulumi.Input['OrganizationRulesetConditionsRefNameArgs'] ref_name: (Block List, Min: 1, Max: 1) (see below for nested schema)
1631
1621
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] repository_ids: The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. Conflicts with `repository_name`.
1632
1622
  :param pulumi.Input['OrganizationRulesetConditionsRepositoryNameArgs'] repository_name: Conflicts with `repository_id`. (see below for nested schema)
1633
1623
 
1634
1624
  One of `repository_id` and `repository_name` must be set for the rule to target any repositories.
1635
-
1636
- > **Note:** For `push` targets, do not include `ref_name` in conditions. Push rulesets operate on file content, not on refs.
1637
1625
  """
1638
- if ref_name is not None:
1639
- pulumi.set(__self__, "ref_name", ref_name)
1626
+ pulumi.set(__self__, "ref_name", ref_name)
1640
1627
  if repository_ids is not None:
1641
1628
  pulumi.set(__self__, "repository_ids", repository_ids)
1642
1629
  if repository_name is not None:
@@ -1644,14 +1631,14 @@ class OrganizationRulesetConditionsArgs:
1644
1631
 
1645
1632
  @_builtins.property
1646
1633
  @pulumi.getter(name="refName")
1647
- def ref_name(self) -> Optional[pulumi.Input['OrganizationRulesetConditionsRefNameArgs']]:
1634
+ def ref_name(self) -> pulumi.Input['OrganizationRulesetConditionsRefNameArgs']:
1648
1635
  """
1649
- (Block List, Max: 1) Required for `branch` and `tag` targets. Must NOT be set for `push` targets. (see below for nested schema)
1636
+ (Block List, Min: 1, Max: 1) (see below for nested schema)
1650
1637
  """
1651
1638
  return pulumi.get(self, "ref_name")
1652
1639
 
1653
1640
  @ref_name.setter
1654
- def ref_name(self, value: Optional[pulumi.Input['OrganizationRulesetConditionsRefNameArgs']]):
1641
+ def ref_name(self, value: pulumi.Input['OrganizationRulesetConditionsRefNameArgs']):
1655
1642
  pulumi.set(self, "ref_name", value)
1656
1643
 
1657
1644
  @_builtins.property
@@ -1673,8 +1660,6 @@ class OrganizationRulesetConditionsArgs:
1673
1660
  Conflicts with `repository_id`. (see below for nested schema)
1674
1661
 
1675
1662
  One of `repository_id` and `repository_name` must be set for the rule to target any repositories.
1676
-
1677
- > **Note:** For `push` targets, do not include `ref_name` in conditions. Push rulesets operate on file content, not on refs.
1678
1663
  """
1679
1664
  return pulumi.get(self, "repository_name")
1680
1665
 
@@ -2777,10 +2762,6 @@ if not MYPY:
2777
2762
  """
2778
2763
  All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
2779
2764
  """
2780
- required_reviewers: NotRequired[pulumi.Input[Sequence[pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerArgsDict']]]]
2781
- """
2782
- Require specific reviewers to approve pull requests targeting matching branches. Note: This feature is in beta and subject to change.
2783
- """
2784
2765
  elif False:
2785
2766
  OrganizationRulesetRulesPullRequestArgsDict: TypeAlias = Mapping[str, Any]
2786
2767
 
@@ -2792,8 +2773,7 @@ class OrganizationRulesetRulesPullRequestArgs:
2792
2773
  require_code_owner_review: Optional[pulumi.Input[_builtins.bool]] = None,
2793
2774
  require_last_push_approval: Optional[pulumi.Input[_builtins.bool]] = None,
2794
2775
  required_approving_review_count: Optional[pulumi.Input[_builtins.int]] = None,
2795
- required_review_thread_resolution: Optional[pulumi.Input[_builtins.bool]] = None,
2796
- required_reviewers: Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerArgs']]]] = None):
2776
+ required_review_thread_resolution: Optional[pulumi.Input[_builtins.bool]] = None):
2797
2777
  """
2798
2778
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] allowed_merge_methods: Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.
2799
2779
  :param pulumi.Input[_builtins.bool] dismiss_stale_reviews_on_push: New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`.
@@ -2801,7 +2781,6 @@ class OrganizationRulesetRulesPullRequestArgs:
2801
2781
  :param pulumi.Input[_builtins.bool] require_last_push_approval: Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`.
2802
2782
  :param pulumi.Input[_builtins.int] required_approving_review_count: The number of approving reviews that are required before a pull request can be merged. Defaults to `0`.
2803
2783
  :param pulumi.Input[_builtins.bool] required_review_thread_resolution: All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
2804
- :param pulumi.Input[Sequence[pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerArgs']]] required_reviewers: Require specific reviewers to approve pull requests targeting matching branches. Note: This feature is in beta and subject to change.
2805
2784
  """
2806
2785
  if allowed_merge_methods is not None:
2807
2786
  pulumi.set(__self__, "allowed_merge_methods", allowed_merge_methods)
@@ -2815,8 +2794,6 @@ class OrganizationRulesetRulesPullRequestArgs:
2815
2794
  pulumi.set(__self__, "required_approving_review_count", required_approving_review_count)
2816
2795
  if required_review_thread_resolution is not None:
2817
2796
  pulumi.set(__self__, "required_review_thread_resolution", required_review_thread_resolution)
2818
- if required_reviewers is not None:
2819
- pulumi.set(__self__, "required_reviewers", required_reviewers)
2820
2797
 
2821
2798
  @_builtins.property
2822
2799
  @pulumi.getter(name="allowedMergeMethods")
@@ -2890,137 +2867,6 @@ class OrganizationRulesetRulesPullRequestArgs:
2890
2867
  def required_review_thread_resolution(self, value: Optional[pulumi.Input[_builtins.bool]]):
2891
2868
  pulumi.set(self, "required_review_thread_resolution", value)
2892
2869
 
2893
- @_builtins.property
2894
- @pulumi.getter(name="requiredReviewers")
2895
- def required_reviewers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerArgs']]]]:
2896
- """
2897
- Require specific reviewers to approve pull requests targeting matching branches. Note: This feature is in beta and subject to change.
2898
- """
2899
- return pulumi.get(self, "required_reviewers")
2900
-
2901
- @required_reviewers.setter
2902
- def required_reviewers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerArgs']]]]):
2903
- pulumi.set(self, "required_reviewers", value)
2904
-
2905
-
2906
- if not MYPY:
2907
- class OrganizationRulesetRulesPullRequestRequiredReviewerArgsDict(TypedDict):
2908
- file_patterns: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]
2909
- """
2910
- File patterns (fnmatch syntax) that this reviewer must approve.
2911
- """
2912
- minimum_approvals: pulumi.Input[_builtins.int]
2913
- """
2914
- Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
2915
- """
2916
- reviewer: pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgsDict']
2917
- """
2918
- The reviewer that must review matching files.
2919
- """
2920
- elif False:
2921
- OrganizationRulesetRulesPullRequestRequiredReviewerArgsDict: TypeAlias = Mapping[str, Any]
2922
-
2923
- @pulumi.input_type
2924
- class OrganizationRulesetRulesPullRequestRequiredReviewerArgs:
2925
- def __init__(__self__, *,
2926
- file_patterns: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
2927
- minimum_approvals: pulumi.Input[_builtins.int],
2928
- reviewer: pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgs']):
2929
- """
2930
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] file_patterns: File patterns (fnmatch syntax) that this reviewer must approve.
2931
- :param pulumi.Input[_builtins.int] minimum_approvals: Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
2932
- :param pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgs'] reviewer: The reviewer that must review matching files.
2933
- """
2934
- pulumi.set(__self__, "file_patterns", file_patterns)
2935
- pulumi.set(__self__, "minimum_approvals", minimum_approvals)
2936
- pulumi.set(__self__, "reviewer", reviewer)
2937
-
2938
- @_builtins.property
2939
- @pulumi.getter(name="filePatterns")
2940
- def file_patterns(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
2941
- """
2942
- File patterns (fnmatch syntax) that this reviewer must approve.
2943
- """
2944
- return pulumi.get(self, "file_patterns")
2945
-
2946
- @file_patterns.setter
2947
- def file_patterns(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
2948
- pulumi.set(self, "file_patterns", value)
2949
-
2950
- @_builtins.property
2951
- @pulumi.getter(name="minimumApprovals")
2952
- def minimum_approvals(self) -> pulumi.Input[_builtins.int]:
2953
- """
2954
- Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
2955
- """
2956
- return pulumi.get(self, "minimum_approvals")
2957
-
2958
- @minimum_approvals.setter
2959
- def minimum_approvals(self, value: pulumi.Input[_builtins.int]):
2960
- pulumi.set(self, "minimum_approvals", value)
2961
-
2962
- @_builtins.property
2963
- @pulumi.getter
2964
- def reviewer(self) -> pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgs']:
2965
- """
2966
- The reviewer that must review matching files.
2967
- """
2968
- return pulumi.get(self, "reviewer")
2969
-
2970
- @reviewer.setter
2971
- def reviewer(self, value: pulumi.Input['OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgs']):
2972
- pulumi.set(self, "reviewer", value)
2973
-
2974
-
2975
- if not MYPY:
2976
- class OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgsDict(TypedDict):
2977
- id: pulumi.Input[_builtins.int]
2978
- """
2979
- The ID of the reviewer that must review.
2980
- """
2981
- type: pulumi.Input[_builtins.str]
2982
- """
2983
- The type of reviewer. Currently only `Team` is supported.
2984
- """
2985
- elif False:
2986
- OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgsDict: TypeAlias = Mapping[str, Any]
2987
-
2988
- @pulumi.input_type
2989
- class OrganizationRulesetRulesPullRequestRequiredReviewerReviewerArgs:
2990
- def __init__(__self__, *,
2991
- id: pulumi.Input[_builtins.int],
2992
- type: pulumi.Input[_builtins.str]):
2993
- """
2994
- :param pulumi.Input[_builtins.int] id: The ID of the reviewer that must review.
2995
- :param pulumi.Input[_builtins.str] type: The type of reviewer. Currently only `Team` is supported.
2996
- """
2997
- pulumi.set(__self__, "id", id)
2998
- pulumi.set(__self__, "type", type)
2999
-
3000
- @_builtins.property
3001
- @pulumi.getter
3002
- def id(self) -> pulumi.Input[_builtins.int]:
3003
- """
3004
- The ID of the reviewer that must review.
3005
- """
3006
- return pulumi.get(self, "id")
3007
-
3008
- @id.setter
3009
- def id(self, value: pulumi.Input[_builtins.int]):
3010
- pulumi.set(self, "id", value)
3011
-
3012
- @_builtins.property
3013
- @pulumi.getter
3014
- def type(self) -> pulumi.Input[_builtins.str]:
3015
- """
3016
- The type of reviewer. Currently only `Team` is supported.
3017
- """
3018
- return pulumi.get(self, "type")
3019
-
3020
- @type.setter
3021
- def type(self, value: pulumi.Input[_builtins.str]):
3022
- pulumi.set(self, "type", value)
3023
-
3024
2870
 
3025
2871
  if not MYPY:
3026
2872
  class OrganizationRulesetRulesRequiredCodeScanningArgsDict(TypedDict):
@@ -4075,7 +3921,7 @@ if not MYPY:
4075
3921
  """
4076
3922
  actor_id: NotRequired[pulumi.Input[_builtins.int]]
4077
3923
  """
4078
- (Number) The ID of the actor that can bypass a ruleset. If `actor_type` is `Integration`, `actor_id` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app). Some actor types such as `DeployKey` do not have an ID.
3924
+ The ID of the actor that can bypass a ruleset. If `actor_type` is `Integration`, `actor_id` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app)
4079
3925
  """
4080
3926
  elif False:
4081
3927
  RepositoryRulesetBypassActorArgsDict: TypeAlias = Mapping[str, Any]
@@ -4094,7 +3940,7 @@ class RepositoryRulesetBypassActorArgs:
4094
3940
 
4095
3941
  - `OrganizationAdmin` > `1`
4096
3942
  - `RepositoryRole` (This is the actor type, the following are the base repository roles and their associated IDs.)
4097
- :param pulumi.Input[_builtins.int] actor_id: (Number) The ID of the actor that can bypass a ruleset. If `actor_type` is `Integration`, `actor_id` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app). Some actor types such as `DeployKey` do not have an ID.
3943
+ :param pulumi.Input[_builtins.int] actor_id: The ID of the actor that can bypass a ruleset. If `actor_type` is `Integration`, `actor_id` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app)
4098
3944
  """
4099
3945
  pulumi.set(__self__, "actor_type", actor_type)
4100
3946
  pulumi.set(__self__, "bypass_mode", bypass_mode)
@@ -4134,7 +3980,7 @@ class RepositoryRulesetBypassActorArgs:
4134
3980
  @pulumi.getter(name="actorId")
4135
3981
  def actor_id(self) -> Optional[pulumi.Input[_builtins.int]]:
4136
3982
  """
4137
- (Number) The ID of the actor that can bypass a ruleset. If `actor_type` is `Integration`, `actor_id` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app). Some actor types such as `DeployKey` do not have an ID.
3983
+ The ID of the actor that can bypass a ruleset. If `actor_type` is `Integration`, `actor_id` is a GitHub App ID. App ID can be obtained by following instructions from the [Get an App API docs](https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-app)
4138
3984
  """
4139
3985
  return pulumi.get(self, "actor_id")
4140
3986
 
@@ -4147,9 +3993,7 @@ if not MYPY:
4147
3993
  class RepositoryRulesetConditionsArgsDict(TypedDict):
4148
3994
  ref_name: pulumi.Input['RepositoryRulesetConditionsRefNameArgsDict']
4149
3995
  """
4150
- (Block List, Max: 1) Required for `branch` and `tag` targets. Must NOT be set for `push` targets. (see below for nested schema)
4151
-
4152
- > **Note:** For `push` targets, do not include `ref_name` in conditions. Push rulesets operate on file content, not on refs. The `conditions` block is optional for push targets.
3996
+ (Block List, Min: 1, Max: 1) (see below for nested schema)
4153
3997
  """
4154
3998
  elif False:
4155
3999
  RepositoryRulesetConditionsArgsDict: TypeAlias = Mapping[str, Any]
@@ -4159,9 +4003,7 @@ class RepositoryRulesetConditionsArgs:
4159
4003
  def __init__(__self__, *,
4160
4004
  ref_name: pulumi.Input['RepositoryRulesetConditionsRefNameArgs']):
4161
4005
  """
4162
- :param pulumi.Input['RepositoryRulesetConditionsRefNameArgs'] ref_name: (Block List, Max: 1) Required for `branch` and `tag` targets. Must NOT be set for `push` targets. (see below for nested schema)
4163
-
4164
- > **Note:** For `push` targets, do not include `ref_name` in conditions. Push rulesets operate on file content, not on refs. The `conditions` block is optional for push targets.
4006
+ :param pulumi.Input['RepositoryRulesetConditionsRefNameArgs'] ref_name: (Block List, Min: 1, Max: 1) (see below for nested schema)
4165
4007
  """
4166
4008
  pulumi.set(__self__, "ref_name", ref_name)
4167
4009
 
@@ -4169,9 +4011,7 @@ class RepositoryRulesetConditionsArgs:
4169
4011
  @pulumi.getter(name="refName")
4170
4012
  def ref_name(self) -> pulumi.Input['RepositoryRulesetConditionsRefNameArgs']:
4171
4013
  """
4172
- (Block List, Max: 1) Required for `branch` and `tag` targets. Must NOT be set for `push` targets. (see below for nested schema)
4173
-
4174
- > **Note:** For `push` targets, do not include `ref_name` in conditions. Push rulesets operate on file content, not on refs. The `conditions` block is optional for push targets.
4014
+ (Block List, Min: 1, Max: 1) (see below for nested schema)
4175
4015
  """
4176
4016
  return pulumi.get(self, "ref_name")
4177
4017
 
@@ -5396,10 +5236,6 @@ if not MYPY:
5396
5236
  """
5397
5237
  All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
5398
5238
  """
5399
- required_reviewers: NotRequired[pulumi.Input[Sequence[pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerArgsDict']]]]
5400
- """
5401
- Require specific reviewers to approve pull requests targeting matching branches. Note: This feature is in beta and subject to change.
5402
- """
5403
5239
  elif False:
5404
5240
  RepositoryRulesetRulesPullRequestArgsDict: TypeAlias = Mapping[str, Any]
5405
5241
 
@@ -5411,8 +5247,7 @@ class RepositoryRulesetRulesPullRequestArgs:
5411
5247
  require_code_owner_review: Optional[pulumi.Input[_builtins.bool]] = None,
5412
5248
  require_last_push_approval: Optional[pulumi.Input[_builtins.bool]] = None,
5413
5249
  required_approving_review_count: Optional[pulumi.Input[_builtins.int]] = None,
5414
- required_review_thread_resolution: Optional[pulumi.Input[_builtins.bool]] = None,
5415
- required_reviewers: Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerArgs']]]] = None):
5250
+ required_review_thread_resolution: Optional[pulumi.Input[_builtins.bool]] = None):
5416
5251
  """
5417
5252
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] allowed_merge_methods: Array of allowed merge methods. Allowed values include `merge`, `squash`, and `rebase`. At least one option must be enabled.
5418
5253
  :param pulumi.Input[_builtins.bool] dismiss_stale_reviews_on_push: New, reviewable commits pushed will dismiss previous pull request review approvals. Defaults to `false`.
@@ -5420,7 +5255,6 @@ class RepositoryRulesetRulesPullRequestArgs:
5420
5255
  :param pulumi.Input[_builtins.bool] require_last_push_approval: Whether the most recent reviewable push must be approved by someone other than the person who pushed it. Defaults to `false`.
5421
5256
  :param pulumi.Input[_builtins.int] required_approving_review_count: The number of approving reviews that are required before a pull request can be merged. Defaults to `0`.
5422
5257
  :param pulumi.Input[_builtins.bool] required_review_thread_resolution: All conversations on code must be resolved before a pull request can be merged. Defaults to `false`.
5423
- :param pulumi.Input[Sequence[pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerArgs']]] required_reviewers: Require specific reviewers to approve pull requests targeting matching branches. Note: This feature is in beta and subject to change.
5424
5258
  """
5425
5259
  if allowed_merge_methods is not None:
5426
5260
  pulumi.set(__self__, "allowed_merge_methods", allowed_merge_methods)
@@ -5434,8 +5268,6 @@ class RepositoryRulesetRulesPullRequestArgs:
5434
5268
  pulumi.set(__self__, "required_approving_review_count", required_approving_review_count)
5435
5269
  if required_review_thread_resolution is not None:
5436
5270
  pulumi.set(__self__, "required_review_thread_resolution", required_review_thread_resolution)
5437
- if required_reviewers is not None:
5438
- pulumi.set(__self__, "required_reviewers", required_reviewers)
5439
5271
 
5440
5272
  @_builtins.property
5441
5273
  @pulumi.getter(name="allowedMergeMethods")
@@ -5509,137 +5341,6 @@ class RepositoryRulesetRulesPullRequestArgs:
5509
5341
  def required_review_thread_resolution(self, value: Optional[pulumi.Input[_builtins.bool]]):
5510
5342
  pulumi.set(self, "required_review_thread_resolution", value)
5511
5343
 
5512
- @_builtins.property
5513
- @pulumi.getter(name="requiredReviewers")
5514
- def required_reviewers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerArgs']]]]:
5515
- """
5516
- Require specific reviewers to approve pull requests targeting matching branches. Note: This feature is in beta and subject to change.
5517
- """
5518
- return pulumi.get(self, "required_reviewers")
5519
-
5520
- @required_reviewers.setter
5521
- def required_reviewers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerArgs']]]]):
5522
- pulumi.set(self, "required_reviewers", value)
5523
-
5524
-
5525
- if not MYPY:
5526
- class RepositoryRulesetRulesPullRequestRequiredReviewerArgsDict(TypedDict):
5527
- file_patterns: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]
5528
- """
5529
- File patterns (fnmatch syntax) that this reviewer must approve.
5530
- """
5531
- minimum_approvals: pulumi.Input[_builtins.int]
5532
- """
5533
- Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
5534
- """
5535
- reviewer: pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgsDict']
5536
- """
5537
- The reviewer that must review matching files.
5538
- """
5539
- elif False:
5540
- RepositoryRulesetRulesPullRequestRequiredReviewerArgsDict: TypeAlias = Mapping[str, Any]
5541
-
5542
- @pulumi.input_type
5543
- class RepositoryRulesetRulesPullRequestRequiredReviewerArgs:
5544
- def __init__(__self__, *,
5545
- file_patterns: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
5546
- minimum_approvals: pulumi.Input[_builtins.int],
5547
- reviewer: pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgs']):
5548
- """
5549
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] file_patterns: File patterns (fnmatch syntax) that this reviewer must approve.
5550
- :param pulumi.Input[_builtins.int] minimum_approvals: Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
5551
- :param pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgs'] reviewer: The reviewer that must review matching files.
5552
- """
5553
- pulumi.set(__self__, "file_patterns", file_patterns)
5554
- pulumi.set(__self__, "minimum_approvals", minimum_approvals)
5555
- pulumi.set(__self__, "reviewer", reviewer)
5556
-
5557
- @_builtins.property
5558
- @pulumi.getter(name="filePatterns")
5559
- def file_patterns(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
5560
- """
5561
- File patterns (fnmatch syntax) that this reviewer must approve.
5562
- """
5563
- return pulumi.get(self, "file_patterns")
5564
-
5565
- @file_patterns.setter
5566
- def file_patterns(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
5567
- pulumi.set(self, "file_patterns", value)
5568
-
5569
- @_builtins.property
5570
- @pulumi.getter(name="minimumApprovals")
5571
- def minimum_approvals(self) -> pulumi.Input[_builtins.int]:
5572
- """
5573
- Minimum number of approvals required from this reviewer. Set to 0 to make approval optional.
5574
- """
5575
- return pulumi.get(self, "minimum_approvals")
5576
-
5577
- @minimum_approvals.setter
5578
- def minimum_approvals(self, value: pulumi.Input[_builtins.int]):
5579
- pulumi.set(self, "minimum_approvals", value)
5580
-
5581
- @_builtins.property
5582
- @pulumi.getter
5583
- def reviewer(self) -> pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgs']:
5584
- """
5585
- The reviewer that must review matching files.
5586
- """
5587
- return pulumi.get(self, "reviewer")
5588
-
5589
- @reviewer.setter
5590
- def reviewer(self, value: pulumi.Input['RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgs']):
5591
- pulumi.set(self, "reviewer", value)
5592
-
5593
-
5594
- if not MYPY:
5595
- class RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgsDict(TypedDict):
5596
- id: pulumi.Input[_builtins.int]
5597
- """
5598
- The ID of the reviewer that must review.
5599
- """
5600
- type: pulumi.Input[_builtins.str]
5601
- """
5602
- The type of reviewer. Currently only `Team` is supported.
5603
- """
5604
- elif False:
5605
- RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgsDict: TypeAlias = Mapping[str, Any]
5606
-
5607
- @pulumi.input_type
5608
- class RepositoryRulesetRulesPullRequestRequiredReviewerReviewerArgs:
5609
- def __init__(__self__, *,
5610
- id: pulumi.Input[_builtins.int],
5611
- type: pulumi.Input[_builtins.str]):
5612
- """
5613
- :param pulumi.Input[_builtins.int] id: The ID of the reviewer that must review.
5614
- :param pulumi.Input[_builtins.str] type: The type of reviewer. Currently only `Team` is supported.
5615
- """
5616
- pulumi.set(__self__, "id", id)
5617
- pulumi.set(__self__, "type", type)
5618
-
5619
- @_builtins.property
5620
- @pulumi.getter
5621
- def id(self) -> pulumi.Input[_builtins.int]:
5622
- """
5623
- The ID of the reviewer that must review.
5624
- """
5625
- return pulumi.get(self, "id")
5626
-
5627
- @id.setter
5628
- def id(self, value: pulumi.Input[_builtins.int]):
5629
- pulumi.set(self, "id", value)
5630
-
5631
- @_builtins.property
5632
- @pulumi.getter
5633
- def type(self) -> pulumi.Input[_builtins.str]:
5634
- """
5635
- The type of reviewer. Currently only `Team` is supported.
5636
- """
5637
- return pulumi.get(self, "type")
5638
-
5639
- @type.setter
5640
- def type(self, value: pulumi.Input[_builtins.str]):
5641
- pulumi.set(self, "type", value)
5642
-
5643
5344
 
5644
5345
  if not MYPY:
5645
5346
  class RepositoryRulesetRulesRequiredCodeScanningArgsDict(TypedDict):
@@ -6315,8 +6016,6 @@ if not MYPY:
6315
6016
  include_all_branches: NotRequired[pulumi.Input[_builtins.bool]]
6316
6017
  """
6317
6018
  Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).
6318
-
6319
- > **Note on `internal` visibility with templates**: When creating a repository from a template with `visibility = "internal"`, the provider uses a two-step process due to GitHub API limitations. The template creation API only supports a `private` boolean parameter. Therefore, repositories with `visibility = "internal"` are initially created as private and then immediately updated to internal visibility. This ensures internal repositories are never exposed publicly during creation.
6320
6019
  """
6321
6020
  elif False:
6322
6021
  RepositoryTemplateArgsDict: TypeAlias = Mapping[str, Any]
@@ -6331,8 +6030,6 @@ class RepositoryTemplateArgs:
6331
6030
  :param pulumi.Input[_builtins.str] owner: The GitHub organization or user the template repository is owned by.
6332
6031
  :param pulumi.Input[_builtins.str] repository: The name of the template repository.
6333
6032
  :param pulumi.Input[_builtins.bool] include_all_branches: Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).
6334
-
6335
- > **Note on `internal` visibility with templates**: When creating a repository from a template with `visibility = "internal"`, the provider uses a two-step process due to GitHub API limitations. The template creation API only supports a `private` boolean parameter. Therefore, repositories with `visibility = "internal"` are initially created as private and then immediately updated to internal visibility. This ensures internal repositories are never exposed publicly during creation.
6336
6033
  """
6337
6034
  pulumi.set(__self__, "owner", owner)
6338
6035
  pulumi.set(__self__, "repository", repository)
@@ -6368,8 +6065,6 @@ class RepositoryTemplateArgs:
6368
6065
  def include_all_branches(self) -> Optional[pulumi.Input[_builtins.bool]]:
6369
6066
  """
6370
6067
  Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).
6371
-
6372
- > **Note on `internal` visibility with templates**: When creating a repository from a template with `visibility = "internal"`, the provider uses a two-step process due to GitHub API limitations. The template creation API only supports a `private` boolean parameter. Therefore, repositories with `visibility = "internal"` are initially created as private and then immediately updated to internal visibility. This ensures internal repositories are never exposed publicly during creation.
6373
6068
  """
6374
6069
  return pulumi.get(self, "include_all_branches")
6375
6070