pulumi-github 6.11.0a1768455780__py3-none-any.whl → 6.11.0a1768966924__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.
- pulumi_github/__init__.py +9 -0
- pulumi_github/_inputs.py +203 -15
- pulumi_github/actions_environment_variable.py +4 -4
- pulumi_github/actions_organization_workflow_permissions.py +320 -0
- pulumi_github/emu_group_mapping.py +4 -8
- pulumi_github/get_ip_ranges.py +3 -0
- pulumi_github/get_repository.py +17 -2
- pulumi_github/get_team.py +29 -13
- pulumi_github/outputs.py +170 -12
- pulumi_github/pulumi-plugin.json +1 -1
- pulumi_github/repository.py +67 -7
- pulumi_github/repository_custom_property.py +2 -2
- pulumi_github/repository_environment.py +11 -11
- pulumi_github/repository_environment_deployment_policy.py +4 -4
- pulumi_github/team.py +70 -21
- {pulumi_github-6.11.0a1768455780.dist-info → pulumi_github-6.11.0a1768966924.dist-info}/METADATA +1 -1
- {pulumi_github-6.11.0a1768455780.dist-info → pulumi_github-6.11.0a1768966924.dist-info}/RECORD +19 -18
- {pulumi_github-6.11.0a1768455780.dist-info → pulumi_github-6.11.0a1768966924.dist-info}/WHEEL +0 -0
- {pulumi_github-6.11.0a1768455780.dist-info → pulumi_github-6.11.0a1768966924.dist-info}/top_level.txt +0 -0
pulumi_github/repository.py
CHANGED
|
@@ -22,6 +22,7 @@ __all__ = ['RepositoryArgs', 'Repository']
|
|
|
22
22
|
class RepositoryArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
24
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
26
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
26
27
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
27
28
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -62,6 +63,7 @@ class RepositoryArgs:
|
|
|
62
63
|
"""
|
|
63
64
|
The set of arguments for constructing a Repository resource.
|
|
64
65
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
66
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
65
67
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
66
68
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
67
69
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -77,7 +79,7 @@ class RepositoryArgs:
|
|
|
77
79
|
:param pulumi.Input[_builtins.str] fork: Set to `true` to create a fork of an existing repository. When set to `true`, both `source_owner` and `source_repo` must also be specified.
|
|
78
80
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
79
81
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
80
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
82
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
81
83
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
82
84
|
on the repository.
|
|
83
85
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
@@ -106,6 +108,8 @@ class RepositoryArgs:
|
|
|
106
108
|
"""
|
|
107
109
|
if allow_auto_merge is not None:
|
|
108
110
|
pulumi.set(__self__, "allow_auto_merge", allow_auto_merge)
|
|
111
|
+
if allow_forking is not None:
|
|
112
|
+
pulumi.set(__self__, "allow_forking", allow_forking)
|
|
109
113
|
if allow_merge_commit is not None:
|
|
110
114
|
pulumi.set(__self__, "allow_merge_commit", allow_merge_commit)
|
|
111
115
|
if allow_rebase_merge is not None:
|
|
@@ -137,6 +141,9 @@ class RepositoryArgs:
|
|
|
137
141
|
pulumi.set(__self__, "gitignore_template", gitignore_template)
|
|
138
142
|
if has_discussions is not None:
|
|
139
143
|
pulumi.set(__self__, "has_discussions", has_discussions)
|
|
144
|
+
if has_downloads is not None:
|
|
145
|
+
warnings.warn("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""", DeprecationWarning)
|
|
146
|
+
pulumi.log.warn("""has_downloads is deprecated: This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
140
147
|
if has_downloads is not None:
|
|
141
148
|
pulumi.set(__self__, "has_downloads", has_downloads)
|
|
142
149
|
if has_issues is not None:
|
|
@@ -199,6 +206,18 @@ class RepositoryArgs:
|
|
|
199
206
|
def allow_auto_merge(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
200
207
|
pulumi.set(self, "allow_auto_merge", value)
|
|
201
208
|
|
|
209
|
+
@_builtins.property
|
|
210
|
+
@pulumi.getter(name="allowForking")
|
|
211
|
+
def allow_forking(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
212
|
+
"""
|
|
213
|
+
Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
214
|
+
"""
|
|
215
|
+
return pulumi.get(self, "allow_forking")
|
|
216
|
+
|
|
217
|
+
@allow_forking.setter
|
|
218
|
+
def allow_forking(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
219
|
+
pulumi.set(self, "allow_forking", value)
|
|
220
|
+
|
|
202
221
|
@_builtins.property
|
|
203
222
|
@pulumi.getter(name="allowMergeCommit")
|
|
204
223
|
def allow_merge_commit(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -369,9 +388,10 @@ class RepositoryArgs:
|
|
|
369
388
|
|
|
370
389
|
@_builtins.property
|
|
371
390
|
@pulumi.getter(name="hasDownloads")
|
|
391
|
+
@_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
372
392
|
def has_downloads(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
373
393
|
"""
|
|
374
|
-
Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
394
|
+
(Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
375
395
|
"""
|
|
376
396
|
return pulumi.get(self, "has_downloads")
|
|
377
397
|
|
|
@@ -652,6 +672,7 @@ class RepositoryArgs:
|
|
|
652
672
|
class _RepositoryState:
|
|
653
673
|
def __init__(__self__, *,
|
|
654
674
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
675
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
655
676
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
656
677
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
657
678
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -701,6 +722,7 @@ class _RepositoryState:
|
|
|
701
722
|
"""
|
|
702
723
|
Input properties used for looking up and filtering Repository resources.
|
|
703
724
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
725
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
704
726
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
705
727
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
706
728
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -718,7 +740,7 @@ class _RepositoryState:
|
|
|
718
740
|
:param pulumi.Input[_builtins.str] git_clone_url: URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
719
741
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
720
742
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
721
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
743
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
722
744
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
723
745
|
on the repository.
|
|
724
746
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
@@ -754,6 +776,8 @@ class _RepositoryState:
|
|
|
754
776
|
"""
|
|
755
777
|
if allow_auto_merge is not None:
|
|
756
778
|
pulumi.set(__self__, "allow_auto_merge", allow_auto_merge)
|
|
779
|
+
if allow_forking is not None:
|
|
780
|
+
pulumi.set(__self__, "allow_forking", allow_forking)
|
|
757
781
|
if allow_merge_commit is not None:
|
|
758
782
|
pulumi.set(__self__, "allow_merge_commit", allow_merge_commit)
|
|
759
783
|
if allow_rebase_merge is not None:
|
|
@@ -789,6 +813,9 @@ class _RepositoryState:
|
|
|
789
813
|
pulumi.set(__self__, "gitignore_template", gitignore_template)
|
|
790
814
|
if has_discussions is not None:
|
|
791
815
|
pulumi.set(__self__, "has_discussions", has_discussions)
|
|
816
|
+
if has_downloads is not None:
|
|
817
|
+
warnings.warn("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""", DeprecationWarning)
|
|
818
|
+
pulumi.log.warn("""has_downloads is deprecated: This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
792
819
|
if has_downloads is not None:
|
|
793
820
|
pulumi.set(__self__, "has_downloads", has_downloads)
|
|
794
821
|
if has_issues is not None:
|
|
@@ -865,6 +892,18 @@ class _RepositoryState:
|
|
|
865
892
|
def allow_auto_merge(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
866
893
|
pulumi.set(self, "allow_auto_merge", value)
|
|
867
894
|
|
|
895
|
+
@_builtins.property
|
|
896
|
+
@pulumi.getter(name="allowForking")
|
|
897
|
+
def allow_forking(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
898
|
+
"""
|
|
899
|
+
Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
900
|
+
"""
|
|
901
|
+
return pulumi.get(self, "allow_forking")
|
|
902
|
+
|
|
903
|
+
@allow_forking.setter
|
|
904
|
+
def allow_forking(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
905
|
+
pulumi.set(self, "allow_forking", value)
|
|
906
|
+
|
|
868
907
|
@_builtins.property
|
|
869
908
|
@pulumi.getter(name="allowMergeCommit")
|
|
870
909
|
def allow_merge_commit(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
@@ -1059,9 +1098,10 @@ class _RepositoryState:
|
|
|
1059
1098
|
|
|
1060
1099
|
@_builtins.property
|
|
1061
1100
|
@pulumi.getter(name="hasDownloads")
|
|
1101
|
+
@_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
1062
1102
|
def has_downloads(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
1063
1103
|
"""
|
|
1064
|
-
Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
1104
|
+
(Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
1065
1105
|
"""
|
|
1066
1106
|
return pulumi.get(self, "has_downloads")
|
|
1067
1107
|
|
|
@@ -1429,6 +1469,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1429
1469
|
resource_name: str,
|
|
1430
1470
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1431
1471
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1472
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1432
1473
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1433
1474
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1434
1475
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1526,6 +1567,8 @@ class Repository(pulumi.CustomResource):
|
|
|
1526
1567
|
|
|
1527
1568
|
Repositories can be imported using the `name`, e.g.
|
|
1528
1569
|
|
|
1570
|
+
text
|
|
1571
|
+
|
|
1529
1572
|
```sh
|
|
1530
1573
|
$ pulumi import github:index/repository:Repository terraform terraform
|
|
1531
1574
|
```
|
|
@@ -1533,6 +1576,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1533
1576
|
:param str resource_name: The name of the resource.
|
|
1534
1577
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1535
1578
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
1579
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
1536
1580
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
1537
1581
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
1538
1582
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -1548,7 +1592,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1548
1592
|
:param pulumi.Input[_builtins.str] fork: Set to `true` to create a fork of an existing repository. When set to `true`, both `source_owner` and `source_repo` must also be specified.
|
|
1549
1593
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
1550
1594
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
1551
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
1595
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
1552
1596
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
1553
1597
|
on the repository.
|
|
1554
1598
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
@@ -1640,6 +1684,8 @@ class Repository(pulumi.CustomResource):
|
|
|
1640
1684
|
|
|
1641
1685
|
Repositories can be imported using the `name`, e.g.
|
|
1642
1686
|
|
|
1687
|
+
text
|
|
1688
|
+
|
|
1643
1689
|
```sh
|
|
1644
1690
|
$ pulumi import github:index/repository:Repository terraform terraform
|
|
1645
1691
|
```
|
|
@@ -1660,6 +1706,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1660
1706
|
resource_name: str,
|
|
1661
1707
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1662
1708
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1709
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1663
1710
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1664
1711
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1665
1712
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1707,6 +1754,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1707
1754
|
__props__ = RepositoryArgs.__new__(RepositoryArgs)
|
|
1708
1755
|
|
|
1709
1756
|
__props__.__dict__["allow_auto_merge"] = allow_auto_merge
|
|
1757
|
+
__props__.__dict__["allow_forking"] = allow_forking
|
|
1710
1758
|
__props__.__dict__["allow_merge_commit"] = allow_merge_commit
|
|
1711
1759
|
__props__.__dict__["allow_rebase_merge"] = allow_rebase_merge
|
|
1712
1760
|
__props__.__dict__["allow_squash_merge"] = allow_squash_merge
|
|
@@ -1764,6 +1812,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1764
1812
|
id: pulumi.Input[str],
|
|
1765
1813
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1766
1814
|
allow_auto_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1815
|
+
allow_forking: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1767
1816
|
allow_merge_commit: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1768
1817
|
allow_rebase_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1769
1818
|
allow_squash_merge: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1818,6 +1867,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1818
1867
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1819
1868
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1820
1869
|
:param pulumi.Input[_builtins.bool] allow_auto_merge: Set to `true` to allow auto-merging pull requests on the repository.
|
|
1870
|
+
:param pulumi.Input[_builtins.bool] allow_forking: Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
1821
1871
|
:param pulumi.Input[_builtins.bool] allow_merge_commit: Set to `false` to disable merge commits on the repository.
|
|
1822
1872
|
:param pulumi.Input[_builtins.bool] allow_rebase_merge: Set to `false` to disable rebase merges on the repository.
|
|
1823
1873
|
:param pulumi.Input[_builtins.bool] allow_squash_merge: Set to `false` to disable squash merges on the repository.
|
|
@@ -1835,7 +1885,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1835
1885
|
:param pulumi.Input[_builtins.str] git_clone_url: URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
|
|
1836
1886
|
:param pulumi.Input[_builtins.str] gitignore_template: Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
1837
1887
|
:param pulumi.Input[_builtins.bool] has_discussions: Set to `true` to enable GitHub Discussions on the repository. Defaults to `false`.
|
|
1838
|
-
:param pulumi.Input[_builtins.bool] has_downloads: Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
1888
|
+
:param pulumi.Input[_builtins.bool] has_downloads: (Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
1839
1889
|
:param pulumi.Input[_builtins.bool] has_issues: Set to `true` to enable the GitHub Issues features
|
|
1840
1890
|
on the repository.
|
|
1841
1891
|
:param pulumi.Input[_builtins.bool] has_projects: Set to `true` to enable the GitHub Projects features on the repository. Per the GitHub [documentation](https://developer.github.com/v3/repos/#create) when in an organization that has disabled repository projects it will default to `false` and will otherwise default to `true`. If you specify `true` when it has been disabled it will return an error.
|
|
@@ -1874,6 +1924,7 @@ class Repository(pulumi.CustomResource):
|
|
|
1874
1924
|
__props__ = _RepositoryState.__new__(_RepositoryState)
|
|
1875
1925
|
|
|
1876
1926
|
__props__.__dict__["allow_auto_merge"] = allow_auto_merge
|
|
1927
|
+
__props__.__dict__["allow_forking"] = allow_forking
|
|
1877
1928
|
__props__.__dict__["allow_merge_commit"] = allow_merge_commit
|
|
1878
1929
|
__props__.__dict__["allow_rebase_merge"] = allow_rebase_merge
|
|
1879
1930
|
__props__.__dict__["allow_squash_merge"] = allow_squash_merge
|
|
@@ -1930,6 +1981,14 @@ class Repository(pulumi.CustomResource):
|
|
|
1930
1981
|
"""
|
|
1931
1982
|
return pulumi.get(self, "allow_auto_merge")
|
|
1932
1983
|
|
|
1984
|
+
@_builtins.property
|
|
1985
|
+
@pulumi.getter(name="allowForking")
|
|
1986
|
+
def allow_forking(self) -> pulumi.Output[_builtins.bool]:
|
|
1987
|
+
"""
|
|
1988
|
+
Set to `true` to allow private forking on the repository; this is only relevant if the repository is owned by an organization and is private or internal.
|
|
1989
|
+
"""
|
|
1990
|
+
return pulumi.get(self, "allow_forking")
|
|
1991
|
+
|
|
1933
1992
|
@_builtins.property
|
|
1934
1993
|
@pulumi.getter(name="allowMergeCommit")
|
|
1935
1994
|
def allow_merge_commit(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
@@ -2060,9 +2119,10 @@ class Repository(pulumi.CustomResource):
|
|
|
2060
2119
|
|
|
2061
2120
|
@_builtins.property
|
|
2062
2121
|
@pulumi.getter(name="hasDownloads")
|
|
2122
|
+
@_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
|
|
2063
2123
|
def has_downloads(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
2064
2124
|
"""
|
|
2065
|
-
Set to `true` to enable the (deprecated) downloads features on the repository.
|
|
2125
|
+
(Optional) Set to `true` to enable the (deprecated) downloads features on the repository. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
|
|
2066
2126
|
"""
|
|
2067
2127
|
return pulumi.get(self, "has_downloads")
|
|
2068
2128
|
|
|
@@ -190,7 +190,7 @@ class RepositoryCustomProperty(pulumi.CustomResource):
|
|
|
190
190
|
|
|
191
191
|
## Import
|
|
192
192
|
|
|
193
|
-
GitHub Repository Custom Property can be imported using an ID made up of a
|
|
193
|
+
GitHub Repository Custom Property can be imported using an ID made up of a combination of the names of the organization, repository, custom property separated by a `:` character, e.g.
|
|
194
194
|
|
|
195
195
|
```sh
|
|
196
196
|
$ pulumi import github:index/repositoryCustomProperty:RepositoryCustomProperty example organization-name:repo-name:custom-property-name
|
|
@@ -232,7 +232,7 @@ class RepositoryCustomProperty(pulumi.CustomResource):
|
|
|
232
232
|
|
|
233
233
|
## Import
|
|
234
234
|
|
|
235
|
-
GitHub Repository Custom Property can be imported using an ID made up of a
|
|
235
|
+
GitHub Repository Custom Property can be imported using an ID made up of a combination of the names of the organization, repository, custom property separated by a `:` character, e.g.
|
|
236
236
|
|
|
237
237
|
```sh
|
|
238
238
|
$ pulumi import github:index/repositoryCustomProperty:RepositoryCustomProperty example organization-name:repo-name:custom-property-name
|
|
@@ -32,7 +32,7 @@ class RepositoryEnvironmentArgs:
|
|
|
32
32
|
The set of arguments for constructing a RepositoryEnvironment resource.
|
|
33
33
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
34
34
|
:param pulumi.Input[_builtins.str] repository: The repository of the environment.
|
|
35
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
35
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
36
36
|
:param pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs'] deployment_branch_policy: The deployment branch policy configuration
|
|
37
37
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
38
38
|
:param pulumi.Input[Sequence[pulumi.Input['RepositoryEnvironmentReviewerArgs']]] reviewers: The environment reviewers configuration.
|
|
@@ -79,7 +79,7 @@ class RepositoryEnvironmentArgs:
|
|
|
79
79
|
@pulumi.getter(name="canAdminsBypass")
|
|
80
80
|
def can_admins_bypass(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
81
81
|
"""
|
|
82
|
-
Can repository admins bypass the environment protections.
|
|
82
|
+
Can repository admins bypass the environment protections. Defaults to `true`.
|
|
83
83
|
"""
|
|
84
84
|
return pulumi.get(self, "can_admins_bypass")
|
|
85
85
|
|
|
@@ -148,7 +148,7 @@ class _RepositoryEnvironmentState:
|
|
|
148
148
|
wait_timer: Optional[pulumi.Input[_builtins.int]] = None):
|
|
149
149
|
"""
|
|
150
150
|
Input properties used for looking up and filtering RepositoryEnvironment resources.
|
|
151
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
151
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
152
152
|
:param pulumi.Input['RepositoryEnvironmentDeploymentBranchPolicyArgs'] deployment_branch_policy: The deployment branch policy configuration
|
|
153
153
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
154
154
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
@@ -175,7 +175,7 @@ class _RepositoryEnvironmentState:
|
|
|
175
175
|
@pulumi.getter(name="canAdminsBypass")
|
|
176
176
|
def can_admins_bypass(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
177
177
|
"""
|
|
178
|
-
Can repository admins bypass the environment protections.
|
|
178
|
+
Can repository admins bypass the environment protections. Defaults to `true`.
|
|
179
179
|
"""
|
|
180
180
|
return pulumi.get(self, "can_admins_bypass")
|
|
181
181
|
|
|
@@ -298,15 +298,15 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
298
298
|
|
|
299
299
|
## Import
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
This resource can be imported using an ID made of the repository name, and environment name (any `:` in the name need to be escaped as `??`) separated by a `:`.
|
|
302
302
|
|
|
303
303
|
```sh
|
|
304
|
-
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment
|
|
304
|
+
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment example myrepo:myenv
|
|
305
305
|
```
|
|
306
306
|
|
|
307
307
|
:param str resource_name: The name of the resource.
|
|
308
308
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
309
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
309
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
310
310
|
:param pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']] deployment_branch_policy: The deployment branch policy configuration
|
|
311
311
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
312
312
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
@@ -348,10 +348,10 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
348
348
|
|
|
349
349
|
## Import
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
This resource can be imported using an ID made of the repository name, and environment name (any `:` in the name need to be escaped as `??`) separated by a `:`.
|
|
352
352
|
|
|
353
353
|
```sh
|
|
354
|
-
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment
|
|
354
|
+
$ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment example myrepo:myenv
|
|
355
355
|
```
|
|
356
356
|
|
|
357
357
|
:param str resource_name: The name of the resource.
|
|
@@ -420,7 +420,7 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
420
420
|
:param str resource_name: The unique name of the resulting resource.
|
|
421
421
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
422
422
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
423
|
-
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections.
|
|
423
|
+
:param pulumi.Input[_builtins.bool] can_admins_bypass: Can repository admins bypass the environment protections. Defaults to `true`.
|
|
424
424
|
:param pulumi.Input[Union['RepositoryEnvironmentDeploymentBranchPolicyArgs', 'RepositoryEnvironmentDeploymentBranchPolicyArgsDict']] deployment_branch_policy: The deployment branch policy configuration
|
|
425
425
|
:param pulumi.Input[_builtins.str] environment: The name of the environment.
|
|
426
426
|
:param pulumi.Input[_builtins.bool] prevent_self_review: Whether or not a user who created the job is prevented from approving their own job. Defaults to `false`.
|
|
@@ -445,7 +445,7 @@ class RepositoryEnvironment(pulumi.CustomResource):
|
|
|
445
445
|
@pulumi.getter(name="canAdminsBypass")
|
|
446
446
|
def can_admins_bypass(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
447
447
|
"""
|
|
448
|
-
Can repository admins bypass the environment protections.
|
|
448
|
+
Can repository admins bypass the environment protections. Defaults to `true`.
|
|
449
449
|
"""
|
|
450
450
|
return pulumi.get(self, "can_admins_bypass")
|
|
451
451
|
|
|
@@ -226,10 +226,10 @@ class RepositoryEnvironmentDeploymentPolicy(pulumi.CustomResource):
|
|
|
226
226
|
|
|
227
227
|
## Import
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
This resource can be imported using an ID made of the repository name, environment name (any `:` in the name need to be escaped as `??`), and deployment policy ID all separated by a `:`.
|
|
230
230
|
|
|
231
231
|
```sh
|
|
232
|
-
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy
|
|
232
|
+
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy example myrepo:myenv:123456
|
|
233
233
|
```
|
|
234
234
|
|
|
235
235
|
:param str resource_name: The name of the resource.
|
|
@@ -302,10 +302,10 @@ class RepositoryEnvironmentDeploymentPolicy(pulumi.CustomResource):
|
|
|
302
302
|
|
|
303
303
|
## Import
|
|
304
304
|
|
|
305
|
-
|
|
305
|
+
This resource can be imported using an ID made of the repository name, environment name (any `:` in the name need to be escaped as `??`), and deployment policy ID all separated by a `:`.
|
|
306
306
|
|
|
307
307
|
```sh
|
|
308
|
-
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy
|
|
308
|
+
$ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy example myrepo:myenv:123456
|
|
309
309
|
```
|
|
310
310
|
|
|
311
311
|
:param str resource_name: The name of the resource.
|