@pulumi/github 5.7.0-alpha.1680747500 → 5.7.0
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.
- package/actionsRunnerGroup.d.ts +10 -2
- package/actionsRunnerGroup.js +2 -2
- package/actionsRunnerGroup.js.map +1 -1
- package/branchProtectionV3.d.ts +5 -0
- package/branchProtectionV3.js +5 -0
- package/branchProtectionV3.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +32 -0
- package/getActionsOrganizationPublicKey.js +26 -0
- package/getActionsOrganizationPublicKey.js.map +1 -0
- package/getDependabotOrganizationPublicKey.d.ts +32 -0
- package/getDependabotOrganizationPublicKey.js +26 -0
- package/getDependabotOrganizationPublicKey.js.map +1 -0
- package/getOrganization.d.ts +10 -2
- package/getOrganization.js.map +1 -1
- package/getRepositoryFile.d.ts +8 -4
- package/getRepositoryFile.js.map +1 -1
- package/getSshKeys.d.ts +27 -0
- package/getSshKeys.js +25 -0
- package/getSshKeys.js.map +1 -0
- package/getUsers.d.ts +4 -0
- package/getUsers.js.map +1 -1
- package/index.d.ts +9 -0
- package/index.js +14 -3
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/repositoryAutolinkReference.d.ts +2 -4
- package/repositoryAutolinkReference.js +2 -4
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +7 -1
- package/repositoryCollaborator.js +7 -1
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +144 -0
- package/repositoryCollaborators.js +114 -0
- package/repositoryCollaborators.js.map +1 -0
- package/repositoryFile.d.ts +12 -4
- package/repositoryFile.js +3 -1
- package/repositoryFile.js.map +1 -1
- package/teamRepository.d.ts +6 -0
- package/teamRepository.js +6 -0
- package/teamRepository.js.map +1 -1
- package/types/input.d.ts +36 -0
- package/types/output.d.ts +36 -0
package/teamRepository.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* > Note: github.TeamRepository cannot be used in conjunction with github.RepositoryCollaborators or
|
|
4
|
+
* they will fight over what your policy should be.
|
|
5
|
+
*
|
|
3
6
|
* This resource manages relationships between teams and repositories
|
|
4
7
|
* in your GitHub organization.
|
|
5
8
|
*
|
|
@@ -10,6 +13,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
13
|
* on GitHub. This resource does not actually *create* any repositories;
|
|
11
14
|
* to do that, see `github.Repository`.
|
|
12
15
|
*
|
|
16
|
+
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators
|
|
17
|
+
* instead.
|
|
18
|
+
*
|
|
13
19
|
* ## Example Usage
|
|
14
20
|
*
|
|
15
21
|
* ```typescript
|
package/teamRepository.js
CHANGED
|
@@ -6,6 +6,9 @@ exports.TeamRepository = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* > Note: github.TeamRepository cannot be used in conjunction with github.RepositoryCollaborators or
|
|
10
|
+
* they will fight over what your policy should be.
|
|
11
|
+
*
|
|
9
12
|
* This resource manages relationships between teams and repositories
|
|
10
13
|
* in your GitHub organization.
|
|
11
14
|
*
|
|
@@ -16,6 +19,9 @@ const utilities = require("./utilities");
|
|
|
16
19
|
* on GitHub. This resource does not actually *create* any repositories;
|
|
17
20
|
* to do that, see `github.Repository`.
|
|
18
21
|
*
|
|
22
|
+
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators
|
|
23
|
+
* instead.
|
|
24
|
+
*
|
|
19
25
|
* ## Example Usage
|
|
20
26
|
*
|
|
21
27
|
* ```typescript
|
package/teamRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamRepository.js","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;A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
|
strict?: pulumi.Input<boolean>;
|
|
77
77
|
}
|
|
78
78
|
export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
79
|
+
/**
|
|
80
|
+
* Allow specific users, teams, or apps to bypass pull request requirements. See Bypass Pull Request Allowances below for details.
|
|
81
|
+
*/
|
|
82
|
+
bypassPullRequestAllowances?: pulumi.Input<inputs.BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowances>;
|
|
79
83
|
/**
|
|
80
84
|
* Dismiss approved reviews automatically when a new commit is pushed. Defaults to `false`.
|
|
81
85
|
*/
|
|
@@ -102,6 +106,20 @@ export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
|
102
106
|
*/
|
|
103
107
|
requiredApprovingReviewCount?: pulumi.Input<number>;
|
|
104
108
|
}
|
|
109
|
+
export interface BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowances {
|
|
110
|
+
/**
|
|
111
|
+
* The list of app slugs allowed to bypass pull request requirements.
|
|
112
|
+
*/
|
|
113
|
+
apps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
|
+
/**
|
|
115
|
+
* The list of team slugs allowed to bypass pull request requirements.
|
|
116
|
+
*/
|
|
117
|
+
teams?: pulumi.Input<pulumi.Input<string>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* The list of user logins allowed to bypass pull request requirements.
|
|
120
|
+
*/
|
|
121
|
+
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
122
|
+
}
|
|
105
123
|
export interface BranchProtectionV3RequiredStatusChecks {
|
|
106
124
|
/**
|
|
107
125
|
* The list of status checks to require in order to merge into this branch. No status checks are required by default. Checks should be strings containing the context and appId like so "context:app_id".
|
|
@@ -151,6 +169,24 @@ export interface ProviderAppAuth {
|
|
|
151
169
|
installationId: pulumi.Input<string>;
|
|
152
170
|
pemFile: pulumi.Input<string>;
|
|
153
171
|
}
|
|
172
|
+
export interface RepositoryCollaboratorsTeam {
|
|
173
|
+
/**
|
|
174
|
+
* The permission of the outside collaborators for the repository.
|
|
175
|
+
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
176
|
+
* Must be `push` for personal repositories. Defaults to `push`.
|
|
177
|
+
*/
|
|
178
|
+
permission?: pulumi.Input<string>;
|
|
179
|
+
teamId: pulumi.Input<string>;
|
|
180
|
+
}
|
|
181
|
+
export interface RepositoryCollaboratorsUser {
|
|
182
|
+
/**
|
|
183
|
+
* The permission of the outside collaborators for the repository.
|
|
184
|
+
* Must be one of `pull`, `push`, `maintain`, `triage` or `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organization for organization-owned repositories.
|
|
185
|
+
* Must be `push` for personal repositories. Defaults to `push`.
|
|
186
|
+
*/
|
|
187
|
+
permission?: pulumi.Input<string>;
|
|
188
|
+
username: pulumi.Input<string>;
|
|
189
|
+
}
|
|
154
190
|
export interface RepositoryEnvironmentDeploymentBranchPolicy {
|
|
155
191
|
/**
|
|
156
192
|
* Whether only branches that match the specified name patterns can deploy to this environment.
|
package/types/output.d.ts
CHANGED
|
@@ -75,6 +75,10 @@ export interface BranchProtectionRequiredStatusCheck {
|
|
|
75
75
|
strict?: boolean;
|
|
76
76
|
}
|
|
77
77
|
export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
78
|
+
/**
|
|
79
|
+
* Allow specific users, teams, or apps to bypass pull request requirements. See Bypass Pull Request Allowances below for details.
|
|
80
|
+
*/
|
|
81
|
+
bypassPullRequestAllowances?: outputs.BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowances;
|
|
78
82
|
/**
|
|
79
83
|
* Dismiss approved reviews automatically when a new commit is pushed. Defaults to `false`.
|
|
80
84
|
*/
|
|
@@ -101,6 +105,20 @@ export interface BranchProtectionV3RequiredPullRequestReviews {
|
|
|
101
105
|
*/
|
|
102
106
|
requiredApprovingReviewCount?: number;
|
|
103
107
|
}
|
|
108
|
+
export interface BranchProtectionV3RequiredPullRequestReviewsBypassPullRequestAllowances {
|
|
109
|
+
/**
|
|
110
|
+
* The list of app slugs allowed to bypass pull request requirements.
|
|
111
|
+
*/
|
|
112
|
+
apps?: string[];
|
|
113
|
+
/**
|
|
114
|
+
* The list of team slugs allowed to bypass pull request requirements.
|
|
115
|
+
*/
|
|
116
|
+
teams?: string[];
|
|
117
|
+
/**
|
|
118
|
+
* The list of user logins allowed to bypass pull request requirements.
|
|
119
|
+
*/
|
|
120
|
+
users?: string[];
|
|
121
|
+
}
|
|
104
122
|
export interface BranchProtectionV3RequiredStatusChecks {
|
|
105
123
|
/**
|
|
106
124
|
* The list of status checks to require in order to merge into this branch. No status checks are required by default. Checks should be strings containing the context and appId like so "context:app_id".
|
|
@@ -661,6 +679,24 @@ export interface OrganizationWebhookConfiguration {
|
|
|
661
679
|
*/
|
|
662
680
|
url: string;
|
|
663
681
|
}
|
|
682
|
+
export interface RepositoryCollaboratorsTeam {
|
|
683
|
+
/**
|
|
684
|
+
* The permission of the outside collaborators for the repository.
|
|
685
|
+
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
686
|
+
* Must be `push` for personal repositories. Defaults to `push`.
|
|
687
|
+
*/
|
|
688
|
+
permission?: string;
|
|
689
|
+
teamId: string;
|
|
690
|
+
}
|
|
691
|
+
export interface RepositoryCollaboratorsUser {
|
|
692
|
+
/**
|
|
693
|
+
* The permission of the outside collaborators for the repository.
|
|
694
|
+
* Must be one of `pull`, `push`, `maintain`, `triage` or `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organization for organization-owned repositories.
|
|
695
|
+
* Must be `push` for personal repositories. Defaults to `push`.
|
|
696
|
+
*/
|
|
697
|
+
permission?: string;
|
|
698
|
+
username: string;
|
|
699
|
+
}
|
|
664
700
|
export interface RepositoryEnvironmentDeploymentBranchPolicy {
|
|
665
701
|
/**
|
|
666
702
|
* Whether only branches that match the specified name patterns can deploy to this environment.
|