@pulumi/github 5.21.0-alpha.1697089493 → 5.21.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/branchProtection.d.ts
CHANGED
|
@@ -2,10 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* Protects a GitHub branch.
|
|
6
|
-
*
|
|
7
|
-
* This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
|
|
8
|
-
*
|
|
9
5
|
* ## Example Usage
|
|
10
6
|
*
|
|
11
7
|
* ```typescript
|
package/branchProtection.js
CHANGED
|
@@ -6,10 +6,6 @@ exports.BranchProtection = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Protects a GitHub branch.
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to configure branch protection for repositories in your organization. When applied, the branch will be protected from forced pushes and deletion. Additional constraints, such as required status checks or restrictions on users, teams, and apps, can also be configured.
|
|
12
|
-
*
|
|
13
9
|
* ## Example Usage
|
|
14
10
|
*
|
|
15
11
|
* ```typescript
|
package/branchProtection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchProtection.js","sourceRoot":"","sources":["../branchProtection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,CAAC,SAAS,CAAC;YACxG,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,CAAC;YAClG,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;SACzF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAzIL,4CA0IC;AA5HG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ import * as outputs from "./types/output";
|
|
|
36
36
|
* // Add collaborators to a repository
|
|
37
37
|
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
38
38
|
* const someRepo = new github.Repository("someRepo", {});
|
|
39
|
-
* const
|
|
39
|
+
* const someRepoCollaborators = new github.RepositoryCollaborators("someRepoCollaborators", {
|
|
40
40
|
* repository: someRepo.name,
|
|
41
41
|
* users: [{
|
|
42
42
|
* permission: "admin",
|
|
@@ -89,7 +89,7 @@ export declare class RepositoryCollaborators extends pulumi.CustomResource {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly teams: pulumi.Output<outputs.RepositoryCollaboratorsTeam[] | undefined>;
|
|
91
91
|
/**
|
|
92
|
-
* List of
|
|
92
|
+
* List of users
|
|
93
93
|
*/
|
|
94
94
|
readonly users: pulumi.Output<outputs.RepositoryCollaboratorsUser[] | undefined>;
|
|
95
95
|
/**
|
|
@@ -121,7 +121,7 @@ export interface RepositoryCollaboratorsState {
|
|
|
121
121
|
*/
|
|
122
122
|
teams?: pulumi.Input<pulumi.Input<inputs.RepositoryCollaboratorsTeam>[]>;
|
|
123
123
|
/**
|
|
124
|
-
* List of
|
|
124
|
+
* List of users
|
|
125
125
|
*/
|
|
126
126
|
users?: pulumi.Input<pulumi.Input<inputs.RepositoryCollaboratorsUser>[]>;
|
|
127
127
|
}
|
|
@@ -138,7 +138,7 @@ export interface RepositoryCollaboratorsArgs {
|
|
|
138
138
|
*/
|
|
139
139
|
teams?: pulumi.Input<pulumi.Input<inputs.RepositoryCollaboratorsTeam>[]>;
|
|
140
140
|
/**
|
|
141
|
-
* List of
|
|
141
|
+
* List of users
|
|
142
142
|
*/
|
|
143
143
|
users?: pulumi.Input<pulumi.Input<inputs.RepositoryCollaboratorsUser>[]>;
|
|
144
144
|
}
|
|
@@ -40,7 +40,7 @@ const utilities = require("./utilities");
|
|
|
40
40
|
* // Add collaborators to a repository
|
|
41
41
|
* const someTeam = new github.Team("someTeam", {description: "Some cool team"});
|
|
42
42
|
* const someRepo = new github.Repository("someRepo", {});
|
|
43
|
-
* const
|
|
43
|
+
* const someRepoCollaborators = new github.RepositoryCollaborators("someRepoCollaborators", {
|
|
44
44
|
* repository: someRepo.name,
|
|
45
45
|
* users: [{
|
|
46
46
|
* permission: "admin",
|
package/types/input.d.ts
CHANGED
|
@@ -429,6 +429,9 @@ export interface RepositoryCollaboratorsUser {
|
|
|
429
429
|
* Must be `push` for personal repositories. Defaults to `push`.
|
|
430
430
|
*/
|
|
431
431
|
permission?: pulumi.Input<string>;
|
|
432
|
+
/**
|
|
433
|
+
* The user to add to the repository as a collaborator.
|
|
434
|
+
*/
|
|
432
435
|
username: pulumi.Input<string>;
|
|
433
436
|
}
|
|
434
437
|
export interface RepositoryEnvironmentDeploymentBranchPolicy {
|
package/types/output.d.ts
CHANGED
|
@@ -1072,6 +1072,9 @@ export interface RepositoryCollaboratorsUser {
|
|
|
1072
1072
|
* Must be `push` for personal repositories. Defaults to `push`.
|
|
1073
1073
|
*/
|
|
1074
1074
|
permission?: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* The user to add to the repository as a collaborator.
|
|
1077
|
+
*/
|
|
1075
1078
|
username: string;
|
|
1076
1079
|
}
|
|
1077
1080
|
export interface RepositoryEnvironmentDeploymentBranchPolicy {
|