@pulumi/github 6.9.0-alpha.1762841019 → 6.9.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/actionsEnvironmentSecret.d.ts +3 -1
- package/actionsEnvironmentSecret.js +3 -1
- package/actionsEnvironmentSecret.js.map +1 -1
- package/branch.d.ts +4 -0
- package/branch.js +1 -1
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +1 -0
- package/branchDefault.js +1 -1
- package/branchDefault.js.map +1 -1
- package/config/vars.d.ts +4 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/getActionsEnvironmentPublicKey.d.ts +80 -0
- package/getActionsEnvironmentPublicKey.js +56 -0
- package/getActionsEnvironmentPublicKey.js.map +1 -0
- package/getOrganizationCustomRole.d.ts +2 -2
- package/getOrganizationCustomRole.js +2 -2
- package/index.d.ts +6 -0
- package/index.js +13 -5
- package/index.js.map +1 -1
- package/issueLabel.d.ts +3 -0
- package/issueLabel.js +3 -1
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +0 -11
- package/issueLabels.js +0 -11
- package/issueLabels.js.map +1 -1
- package/organizationCustomRole.d.ts +1 -1
- package/organizationCustomRole.js +1 -1
- package/organizationRuleset.d.ts +40 -3
- package/organizationRuleset.js +37 -0
- package/organizationRuleset.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +4 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/repository.d.ts +52 -0
- package/repository.js +22 -1
- package/repository.js.map +1 -1
- package/repositoryCollaborator.d.ts +0 -25
- package/repositoryCollaborator.js +0 -25
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +0 -25
- package/repositoryCollaborators.js +0 -25
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.d.ts +1 -1
- package/repositoryCustomProperty.js +1 -1
- package/repositoryDeployKey.d.ts +0 -11
- package/repositoryDeployKey.js +0 -11
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.d.ts +4 -0
- package/repositoryDeploymentBranchPolicy.js +1 -1
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryFile.d.ts +0 -3
- package/repositoryFile.js +0 -3
- package/repositoryFile.js.map +1 -1
- package/repositoryProject.d.ts +1 -0
- package/repositoryProject.js +1 -1
- package/repositoryProject.js.map +1 -1
- package/repositoryRuleset.d.ts +3 -0
- package/repositoryRuleset.js +3 -0
- package/repositoryRuleset.js.map +1 -1
- package/repositoryWebhook.d.ts +1 -3
- package/repositoryWebhook.js +1 -4
- package/repositoryWebhook.js.map +1 -1
- package/teamRepository.d.ts +0 -16
- package/teamRepository.js +0 -16
- package/teamRepository.js.map +1 -1
- package/types/input.d.ts +51 -1
- package/types/output.d.ts +51 -1
- package/workflowRepositoryPermissions.d.ts +98 -0
- package/workflowRepositoryPermissions.js +82 -0
- package/workflowRepositoryPermissions.js.map +1 -0
package/issueLabel.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* This resource will first check if the label exists, and then issue an update,
|
|
14
14
|
* otherwise it will create.
|
|
15
15
|
*
|
|
16
|
+
* > **Note:** When a repository is archived, Pulumi will skip deletion of issue labels to avoid API errors, as archived repositories are read-only. The labels will be removed from Pulumi state without attempting to delete them from GitHub.
|
|
17
|
+
*
|
|
16
18
|
* ## Example Usage
|
|
17
19
|
*
|
|
18
20
|
* ```typescript
|
|
@@ -119,6 +121,7 @@ export interface IssueLabelArgs {
|
|
|
119
121
|
* A short description of the label.
|
|
120
122
|
*/
|
|
121
123
|
description?: pulumi.Input<string>;
|
|
124
|
+
etag?: pulumi.Input<string>;
|
|
122
125
|
/**
|
|
123
126
|
* The name of the label.
|
|
124
127
|
*/
|
package/issueLabel.js
CHANGED
|
@@ -19,6 +19,8 @@ const utilities = require("./utilities");
|
|
|
19
19
|
* This resource will first check if the label exists, and then issue an update,
|
|
20
20
|
* otherwise it will create.
|
|
21
21
|
*
|
|
22
|
+
* > **Note:** When a repository is archived, Pulumi will skip deletion of issue labels to avoid API errors, as archived repositories are read-only. The labels will be removed from Pulumi state without attempting to delete them from GitHub.
|
|
23
|
+
*
|
|
22
24
|
* ## Example Usage
|
|
23
25
|
*
|
|
24
26
|
* ```typescript
|
|
@@ -86,9 +88,9 @@ class IssueLabel extends pulumi.CustomResource {
|
|
|
86
88
|
}
|
|
87
89
|
resourceInputs["color"] = args?.color;
|
|
88
90
|
resourceInputs["description"] = args?.description;
|
|
91
|
+
resourceInputs["etag"] = args?.etag;
|
|
89
92
|
resourceInputs["name"] = args?.name;
|
|
90
93
|
resourceInputs["repository"] = args?.repository;
|
|
91
|
-
resourceInputs["etag"] = undefined /*out*/;
|
|
92
94
|
resourceInputs["url"] = undefined /*out*/;
|
|
93
95
|
}
|
|
94
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/issueLabel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"issueLabel.js","sourceRoot":"","sources":["../issueLabel.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IA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C,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAtFL,gCAuFC;AAzEG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/issueLabels.d.ts
CHANGED
|
@@ -2,17 +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
|
-
* Provides GitHub issue labels resource.
|
|
6
|
-
*
|
|
7
|
-
* This resource allows you to create and manage issue labels within your
|
|
8
|
-
* GitHub organization.
|
|
9
|
-
*
|
|
10
|
-
* > Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be.
|
|
11
|
-
*
|
|
12
|
-
* This resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead.
|
|
13
|
-
*
|
|
14
|
-
* If you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.
|
|
15
|
-
*
|
|
16
5
|
* ## Example Usage
|
|
17
6
|
*
|
|
18
7
|
* ```typescript
|
package/issueLabels.js
CHANGED
|
@@ -6,17 +6,6 @@ exports.IssueLabels = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides GitHub issue labels resource.
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to create and manage issue labels within your
|
|
12
|
-
* GitHub organization.
|
|
13
|
-
*
|
|
14
|
-
* > Note: github.IssueLabels cannot be used in conjunction with github.IssueLabel or they will fight over what your policy should be.
|
|
15
|
-
*
|
|
16
|
-
* This resource is authoritative. For adding a label to a repo in a non-authoritative manner, use github.IssueLabel instead.
|
|
17
|
-
*
|
|
18
|
-
* If you change the case of a label's name, its' color, or description, this resource will edit the existing label to match the new values. However, if you change the name of a label, this resource will create a new label with the new name and delete the old label. Beware that this will remove the label from any issues it was previously attached to.
|
|
19
|
-
*
|
|
20
9
|
* ## Example Usage
|
|
21
10
|
*
|
|
22
11
|
* ```typescript
|
package/issueLabels.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issueLabels.js","sourceRoot":"","sources":["../issueLabels.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"issueLabels.js","sourceRoot":"","sources":["../issueLabels.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA9DL,kCA+DC;AAjDG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* > **Note:** This resource is deprecated, please use the `
|
|
3
|
+
* > **Note:** This resource is deprecated, please use the `github.OrganizationRepositoryRole` resource instead.
|
|
4
4
|
*
|
|
5
5
|
* This resource allows you to create and manage custom roles in a GitHub Organization for use in repositories.
|
|
6
6
|
*
|
|
@@ -6,7 +6,7 @@ exports.OrganizationCustomRole = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* > **Note:** This resource is deprecated, please use the `
|
|
9
|
+
* > **Note:** This resource is deprecated, please use the `github.OrganizationRepositoryRole` resource instead.
|
|
10
10
|
*
|
|
11
11
|
* This resource allows you to create and manage custom roles in a GitHub Organization for use in repositories.
|
|
12
12
|
*
|
package/organizationRuleset.d.ts
CHANGED
|
@@ -49,6 +49,43 @@ import * as outputs from "./types/output";
|
|
|
49
49
|
* },
|
|
50
50
|
* },
|
|
51
51
|
* });
|
|
52
|
+
* // Example with push ruleset
|
|
53
|
+
* const examplePush = new github.OrganizationRuleset("example_push", {
|
|
54
|
+
* name: "example_push",
|
|
55
|
+
* target: "push",
|
|
56
|
+
* enforcement: "active",
|
|
57
|
+
* conditions: {
|
|
58
|
+
* refName: {
|
|
59
|
+
* includes: ["~ALL"],
|
|
60
|
+
* excludes: [],
|
|
61
|
+
* },
|
|
62
|
+
* repositoryName: {
|
|
63
|
+
* includes: ["~ALL"],
|
|
64
|
+
* excludes: [],
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* rules: {
|
|
68
|
+
* filePathRestriction: {
|
|
69
|
+
* restrictedFilePaths: [
|
|
70
|
+
* ".github/workflows/*",
|
|
71
|
+
* "*.env",
|
|
72
|
+
* ],
|
|
73
|
+
* },
|
|
74
|
+
* maxFileSize: {
|
|
75
|
+
* maxFileSize: 104857600,
|
|
76
|
+
* },
|
|
77
|
+
* maxFilePathLength: {
|
|
78
|
+
* maxFilePathLength: 255,
|
|
79
|
+
* },
|
|
80
|
+
* fileExtensionRestriction: {
|
|
81
|
+
* restrictedFileExtensions: [
|
|
82
|
+
* "*.exe",
|
|
83
|
+
* "*.dll",
|
|
84
|
+
* "*.so",
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* });
|
|
52
89
|
* ```
|
|
53
90
|
*
|
|
54
91
|
* ## Import
|
|
@@ -108,7 +145,7 @@ export declare class OrganizationRuleset extends pulumi.CustomResource {
|
|
|
108
145
|
*/
|
|
109
146
|
readonly rulesetId: pulumi.Output<number>;
|
|
110
147
|
/**
|
|
111
|
-
* (String) Possible values are `branch` and `
|
|
148
|
+
* (String) Possible values are `branch`, `tag` and `push`.
|
|
112
149
|
*/
|
|
113
150
|
readonly target: pulumi.Output<string>;
|
|
114
151
|
/**
|
|
@@ -157,7 +194,7 @@ export interface OrganizationRulesetState {
|
|
|
157
194
|
*/
|
|
158
195
|
rulesetId?: pulumi.Input<number>;
|
|
159
196
|
/**
|
|
160
|
-
* (String) Possible values are `branch` and `
|
|
197
|
+
* (String) Possible values are `branch`, `tag` and `push`.
|
|
161
198
|
*/
|
|
162
199
|
target?: pulumi.Input<string>;
|
|
163
200
|
}
|
|
@@ -186,7 +223,7 @@ export interface OrganizationRulesetArgs {
|
|
|
186
223
|
*/
|
|
187
224
|
rules: pulumi.Input<inputs.OrganizationRulesetRules>;
|
|
188
225
|
/**
|
|
189
|
-
* (String) Possible values are `branch` and `
|
|
226
|
+
* (String) Possible values are `branch`, `tag` and `push`.
|
|
190
227
|
*/
|
|
191
228
|
target: pulumi.Input<string>;
|
|
192
229
|
}
|
package/organizationRuleset.js
CHANGED
|
@@ -53,6 +53,43 @@ const utilities = require("./utilities");
|
|
|
53
53
|
* },
|
|
54
54
|
* },
|
|
55
55
|
* });
|
|
56
|
+
* // Example with push ruleset
|
|
57
|
+
* const examplePush = new github.OrganizationRuleset("example_push", {
|
|
58
|
+
* name: "example_push",
|
|
59
|
+
* target: "push",
|
|
60
|
+
* enforcement: "active",
|
|
61
|
+
* conditions: {
|
|
62
|
+
* refName: {
|
|
63
|
+
* includes: ["~ALL"],
|
|
64
|
+
* excludes: [],
|
|
65
|
+
* },
|
|
66
|
+
* repositoryName: {
|
|
67
|
+
* includes: ["~ALL"],
|
|
68
|
+
* excludes: [],
|
|
69
|
+
* },
|
|
70
|
+
* },
|
|
71
|
+
* rules: {
|
|
72
|
+
* filePathRestriction: {
|
|
73
|
+
* restrictedFilePaths: [
|
|
74
|
+
* ".github/workflows/*",
|
|
75
|
+
* "*.env",
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
78
|
+
* maxFileSize: {
|
|
79
|
+
* maxFileSize: 104857600,
|
|
80
|
+
* },
|
|
81
|
+
* maxFilePathLength: {
|
|
82
|
+
* maxFilePathLength: 255,
|
|
83
|
+
* },
|
|
84
|
+
* fileExtensionRestriction: {
|
|
85
|
+
* restrictedFileExtensions: [
|
|
86
|
+
* "*.exe",
|
|
87
|
+
* "*.dll",
|
|
88
|
+
* "*.so",
|
|
89
|
+
* ],
|
|
90
|
+
* },
|
|
91
|
+
* },
|
|
92
|
+
* });
|
|
56
93
|
* ```
|
|
57
94
|
*
|
|
58
95
|
* ## Import
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationRuleset.js","sourceRoot":"","sources":["../organizationRuleset.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"organizationRuleset.js","sourceRoot":"","sources":["../organizationRuleset.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,K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A Pulumi package for creating and managing github cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "github",
|
|
26
|
-
"version": "6.9.0
|
|
26
|
+
"version": "6.9.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/provider.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export interface ProviderArgs {
|
|
|
59
59
|
* Enable `insecure` mode for testing purposes
|
|
60
60
|
*/
|
|
61
61
|
insecure?: pulumi.Input<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* Number of items per page for paginationDefaults to 100
|
|
64
|
+
*/
|
|
65
|
+
maxPerPage?: pulumi.Input<number>;
|
|
62
66
|
/**
|
|
63
67
|
* Number of times to retry a request after receiving an error status codeDefaults to 3
|
|
64
68
|
*/
|
package/provider.js
CHANGED
|
@@ -36,6 +36,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
36
36
|
resourceInputs["appAuth"] = pulumi.output(args?.appAuth).apply(JSON.stringify);
|
|
37
37
|
resourceInputs["baseUrl"] = (args?.baseUrl) ?? (utilities.getEnv("GITHUB_BASE_URL") || "https://api.github.com/");
|
|
38
38
|
resourceInputs["insecure"] = pulumi.output(args?.insecure).apply(JSON.stringify);
|
|
39
|
+
resourceInputs["maxPerPage"] = pulumi.output(args?.maxPerPage).apply(JSON.stringify);
|
|
39
40
|
resourceInputs["maxRetries"] = pulumi.output(args?.maxRetries).apply(JSON.stringify);
|
|
40
41
|
resourceInputs["organization"] = args?.organization;
|
|
41
42
|
resourceInputs["owner"] = args?.owner;
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QA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AAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,eAAe;QACX,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE;YAClE,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;;AAxEL,4BAyEC;AAxEG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
|
package/repository.d.ts
CHANGED
|
@@ -44,6 +44,21 @@ import * as outputs from "./types/output";
|
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*
|
|
47
|
+
* ### With Repository Forking
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as github from "@pulumi/github";
|
|
52
|
+
*
|
|
53
|
+
* const forkedRepo = new github.Repository("forked_repo", {
|
|
54
|
+
* name: "forked-repository",
|
|
55
|
+
* description: "This is a fork of another repository",
|
|
56
|
+
* fork: true,
|
|
57
|
+
* sourceOwner: "some-org",
|
|
58
|
+
* sourceRepo: "original-repository",
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
47
62
|
* ## Import
|
|
48
63
|
*
|
|
49
64
|
* Repositories can be imported using the `name`, e.g.
|
|
@@ -117,6 +132,10 @@ export declare class Repository extends pulumi.CustomResource {
|
|
|
117
132
|
*/
|
|
118
133
|
readonly description: pulumi.Output<string | undefined>;
|
|
119
134
|
readonly etag: pulumi.Output<string>;
|
|
135
|
+
/**
|
|
136
|
+
* Set to `true` to create a fork of an existing repository. When set to `true`, both `sourceOwner` and `sourceRepo` must also be specified.
|
|
137
|
+
*/
|
|
138
|
+
readonly fork: pulumi.Output<boolean | undefined>;
|
|
120
139
|
/**
|
|
121
140
|
* A string of the form "orgname/reponame".
|
|
122
141
|
*/
|
|
@@ -214,6 +233,14 @@ export declare class Repository extends pulumi.CustomResource {
|
|
|
214
233
|
* The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details.
|
|
215
234
|
*/
|
|
216
235
|
readonly securityAndAnalysis: pulumi.Output<outputs.RepositorySecurityAndAnalysis>;
|
|
236
|
+
/**
|
|
237
|
+
* The GitHub username or organization that owns the repository being forked. Required when `fork` is `true`.
|
|
238
|
+
*/
|
|
239
|
+
readonly sourceOwner: pulumi.Output<string | undefined>;
|
|
240
|
+
/**
|
|
241
|
+
* The name of the repository to fork. Required when `fork` is `true`.
|
|
242
|
+
*/
|
|
243
|
+
readonly sourceRepo: pulumi.Output<string | undefined>;
|
|
217
244
|
/**
|
|
218
245
|
* Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message. Applicable only if `allowSquashMerge` is `true`.
|
|
219
246
|
*/
|
|
@@ -312,6 +339,10 @@ export interface RepositoryState {
|
|
|
312
339
|
*/
|
|
313
340
|
description?: pulumi.Input<string>;
|
|
314
341
|
etag?: pulumi.Input<string>;
|
|
342
|
+
/**
|
|
343
|
+
* Set to `true` to create a fork of an existing repository. When set to `true`, both `sourceOwner` and `sourceRepo` must also be specified.
|
|
344
|
+
*/
|
|
345
|
+
fork?: pulumi.Input<boolean>;
|
|
315
346
|
/**
|
|
316
347
|
* A string of the form "orgname/reponame".
|
|
317
348
|
*/
|
|
@@ -409,6 +440,14 @@ export interface RepositoryState {
|
|
|
409
440
|
* The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details.
|
|
410
441
|
*/
|
|
411
442
|
securityAndAnalysis?: pulumi.Input<inputs.RepositorySecurityAndAnalysis>;
|
|
443
|
+
/**
|
|
444
|
+
* The GitHub username or organization that owns the repository being forked. Required when `fork` is `true`.
|
|
445
|
+
*/
|
|
446
|
+
sourceOwner?: pulumi.Input<string>;
|
|
447
|
+
/**
|
|
448
|
+
* The name of the repository to fork. Required when `fork` is `true`.
|
|
449
|
+
*/
|
|
450
|
+
sourceRepo?: pulumi.Input<string>;
|
|
412
451
|
/**
|
|
413
452
|
* Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message. Applicable only if `allowSquashMerge` is `true`.
|
|
414
453
|
*/
|
|
@@ -498,6 +537,11 @@ export interface RepositoryArgs {
|
|
|
498
537
|
* A description of the repository.
|
|
499
538
|
*/
|
|
500
539
|
description?: pulumi.Input<string>;
|
|
540
|
+
etag?: pulumi.Input<string>;
|
|
541
|
+
/**
|
|
542
|
+
* Set to `true` to create a fork of an existing repository. When set to `true`, both `sourceOwner` and `sourceRepo` must also be specified.
|
|
543
|
+
*/
|
|
544
|
+
fork?: pulumi.Input<boolean>;
|
|
501
545
|
/**
|
|
502
546
|
* Use the [name of the template](https://github.com/github/gitignore) without the extension. For example, "Haskell".
|
|
503
547
|
*/
|
|
@@ -567,6 +611,14 @@ export interface RepositoryArgs {
|
|
|
567
611
|
* The repository's [security and analysis](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository) configuration. See Security and Analysis Configuration below for details.
|
|
568
612
|
*/
|
|
569
613
|
securityAndAnalysis?: pulumi.Input<inputs.RepositorySecurityAndAnalysis>;
|
|
614
|
+
/**
|
|
615
|
+
* The GitHub username or organization that owns the repository being forked. Required when `fork` is `true`.
|
|
616
|
+
*/
|
|
617
|
+
sourceOwner?: pulumi.Input<string>;
|
|
618
|
+
/**
|
|
619
|
+
* The name of the repository to fork. Required when `fork` is `true`.
|
|
620
|
+
*/
|
|
621
|
+
sourceRepo?: pulumi.Input<string>;
|
|
570
622
|
/**
|
|
571
623
|
* Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message. Applicable only if `allowSquashMerge` is `true`.
|
|
572
624
|
*/
|
package/repository.js
CHANGED
|
@@ -48,6 +48,21 @@ const utilities = require("./utilities");
|
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
|
+
* ### With Repository Forking
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as github from "@pulumi/github";
|
|
56
|
+
*
|
|
57
|
+
* const forkedRepo = new github.Repository("forked_repo", {
|
|
58
|
+
* name: "forked-repository",
|
|
59
|
+
* description: "This is a fork of another repository",
|
|
60
|
+
* fork: true,
|
|
61
|
+
* sourceOwner: "some-org",
|
|
62
|
+
* sourceRepo: "original-repository",
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
51
66
|
* ## Import
|
|
52
67
|
*
|
|
53
68
|
* Repositories can be imported using the `name`, e.g.
|
|
@@ -96,6 +111,7 @@ class Repository extends pulumi.CustomResource {
|
|
|
96
111
|
resourceInputs["deleteBranchOnMerge"] = state?.deleteBranchOnMerge;
|
|
97
112
|
resourceInputs["description"] = state?.description;
|
|
98
113
|
resourceInputs["etag"] = state?.etag;
|
|
114
|
+
resourceInputs["fork"] = state?.fork;
|
|
99
115
|
resourceInputs["fullName"] = state?.fullName;
|
|
100
116
|
resourceInputs["gitCloneUrl"] = state?.gitCloneUrl;
|
|
101
117
|
resourceInputs["gitignoreTemplate"] = state?.gitignoreTemplate;
|
|
@@ -119,6 +135,8 @@ class Repository extends pulumi.CustomResource {
|
|
|
119
135
|
resourceInputs["private"] = state?.private;
|
|
120
136
|
resourceInputs["repoId"] = state?.repoId;
|
|
121
137
|
resourceInputs["securityAndAnalysis"] = state?.securityAndAnalysis;
|
|
138
|
+
resourceInputs["sourceOwner"] = state?.sourceOwner;
|
|
139
|
+
resourceInputs["sourceRepo"] = state?.sourceRepo;
|
|
122
140
|
resourceInputs["squashMergeCommitMessage"] = state?.squashMergeCommitMessage;
|
|
123
141
|
resourceInputs["squashMergeCommitTitle"] = state?.squashMergeCommitTitle;
|
|
124
142
|
resourceInputs["sshCloneUrl"] = state?.sshCloneUrl;
|
|
@@ -142,6 +160,8 @@ class Repository extends pulumi.CustomResource {
|
|
|
142
160
|
resourceInputs["defaultBranch"] = args?.defaultBranch;
|
|
143
161
|
resourceInputs["deleteBranchOnMerge"] = args?.deleteBranchOnMerge;
|
|
144
162
|
resourceInputs["description"] = args?.description;
|
|
163
|
+
resourceInputs["etag"] = args?.etag;
|
|
164
|
+
resourceInputs["fork"] = args?.fork;
|
|
145
165
|
resourceInputs["gitignoreTemplate"] = args?.gitignoreTemplate;
|
|
146
166
|
resourceInputs["hasDiscussions"] = args?.hasDiscussions;
|
|
147
167
|
resourceInputs["hasDownloads"] = args?.hasDownloads;
|
|
@@ -158,6 +178,8 @@ class Repository extends pulumi.CustomResource {
|
|
|
158
178
|
resourceInputs["pages"] = args?.pages;
|
|
159
179
|
resourceInputs["private"] = args?.private;
|
|
160
180
|
resourceInputs["securityAndAnalysis"] = args?.securityAndAnalysis;
|
|
181
|
+
resourceInputs["sourceOwner"] = args?.sourceOwner;
|
|
182
|
+
resourceInputs["sourceRepo"] = args?.sourceRepo;
|
|
161
183
|
resourceInputs["squashMergeCommitMessage"] = args?.squashMergeCommitMessage;
|
|
162
184
|
resourceInputs["squashMergeCommitTitle"] = args?.squashMergeCommitTitle;
|
|
163
185
|
resourceInputs["template"] = args?.template;
|
|
@@ -165,7 +187,6 @@ class Repository extends pulumi.CustomResource {
|
|
|
165
187
|
resourceInputs["visibility"] = args?.visibility;
|
|
166
188
|
resourceInputs["vulnerabilityAlerts"] = args?.vulnerabilityAlerts;
|
|
167
189
|
resourceInputs["webCommitSignoffRequired"] = args?.webCommitSignoffRequired;
|
|
168
|
-
resourceInputs["etag"] = undefined /*out*/;
|
|
169
190
|
resourceInputs["fullName"] = undefined /*out*/;
|
|
170
191
|
resourceInputs["gitCloneUrl"] = undefined /*out*/;
|
|
171
192
|
resourceInputs["htmlUrl"] = undefined /*out*/;
|
package/repository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA6MD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,kBAAkB,CAAC,G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|
|
2
2
|
/**
|
|
3
|
-
* Provides a GitHub repository collaborator resource.
|
|
4
|
-
*
|
|
5
|
-
* > Note: github.RepositoryCollaborator cannot be used in conjunction with github.RepositoryCollaborators or
|
|
6
|
-
* they will fight over what your policy should be.
|
|
7
|
-
*
|
|
8
|
-
* This resource allows you to add/remove collaborators from repositories in your
|
|
9
|
-
* organization or personal account. For organization repositories, collaborators can
|
|
10
|
-
* have explicit (and differing levels of) read, write, or administrator access to
|
|
11
|
-
* specific repositories, without giving the user full organization membership.
|
|
12
|
-
* For personal repositories, collaborators can only be granted write
|
|
13
|
-
* (implicitly includes read) permission.
|
|
14
|
-
*
|
|
15
|
-
* When applied, an invitation will be sent to the user to become a collaborator
|
|
16
|
-
* on a repository. When destroyed, either the invitation will be cancelled or the
|
|
17
|
-
* collaborator will be removed from the repository.
|
|
18
|
-
*
|
|
19
|
-
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators
|
|
20
|
-
* instead.
|
|
21
|
-
*
|
|
22
|
-
* Further documentation on GitHub collaborators:
|
|
23
|
-
*
|
|
24
|
-
* - [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories)
|
|
25
|
-
* - [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)
|
|
26
|
-
* - [Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)
|
|
27
|
-
*
|
|
28
3
|
* ## Example Usage
|
|
29
4
|
*
|
|
30
5
|
* ```typescript
|
|
@@ -6,31 +6,6 @@ exports.RepositoryCollaborator = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a GitHub repository collaborator resource.
|
|
10
|
-
*
|
|
11
|
-
* > Note: github.RepositoryCollaborator cannot be used in conjunction with github.RepositoryCollaborators or
|
|
12
|
-
* they will fight over what your policy should be.
|
|
13
|
-
*
|
|
14
|
-
* This resource allows you to add/remove collaborators from repositories in your
|
|
15
|
-
* organization or personal account. For organization repositories, collaborators can
|
|
16
|
-
* have explicit (and differing levels of) read, write, or administrator access to
|
|
17
|
-
* specific repositories, without giving the user full organization membership.
|
|
18
|
-
* For personal repositories, collaborators can only be granted write
|
|
19
|
-
* (implicitly includes read) permission.
|
|
20
|
-
*
|
|
21
|
-
* When applied, an invitation will be sent to the user to become a collaborator
|
|
22
|
-
* on a repository. When destroyed, either the invitation will be cancelled or the
|
|
23
|
-
* collaborator will be removed from the repository.
|
|
24
|
-
*
|
|
25
|
-
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators
|
|
26
|
-
* instead.
|
|
27
|
-
*
|
|
28
|
-
* Further documentation on GitHub collaborators:
|
|
29
|
-
*
|
|
30
|
-
* - [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories)
|
|
31
|
-
* - [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)
|
|
32
|
-
* - [Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)
|
|
33
|
-
*
|
|
34
9
|
* ## Example Usage
|
|
35
10
|
*
|
|
36
11
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryCollaborator.js","sourceRoot":"","sources":["../repositoryCollaborator.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repositoryCollaborator.js","sourceRoot":"","sources":["../repositoryCollaborator.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG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,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,EAAE,yBAAyB,CAAC;YAC9E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AAvFL,wDAwFC;AA1EG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
|
|
@@ -2,31 +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
|
-
* Provides a GitHub repository collaborators resource.
|
|
6
|
-
*
|
|
7
|
-
* > Note: github.RepositoryCollaborators cannot be used in conjunction with github.RepositoryCollaborator and
|
|
8
|
-
* github.TeamRepository or they will fight over what your policy should be.
|
|
9
|
-
*
|
|
10
|
-
* This resource allows you to manage all collaborators for repositories in your
|
|
11
|
-
* organization or personal account. For organization repositories, collaborators can
|
|
12
|
-
* have explicit (and differing levels of) read, write, or administrator access to
|
|
13
|
-
* specific repositories, without giving the user full organization membership.
|
|
14
|
-
* For personal repositories, collaborators can only be granted write
|
|
15
|
-
* (implicitly includes read) permission.
|
|
16
|
-
*
|
|
17
|
-
* When applied, an invitation will be sent to the user to become a collaborators
|
|
18
|
-
* on a repository. When destroyed, either the invitation will be cancelled or the
|
|
19
|
-
* collaborators will be removed from the repository.
|
|
20
|
-
*
|
|
21
|
-
* This resource is authoritative. For adding a collaborator to a repo in a non-authoritative manner, use
|
|
22
|
-
* github.RepositoryCollaborator instead.
|
|
23
|
-
*
|
|
24
|
-
* Further documentation on GitHub collaborators:
|
|
25
|
-
*
|
|
26
|
-
* - [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories)
|
|
27
|
-
* - [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)
|
|
28
|
-
* - [Converting an organization member to an outside collaborators](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)
|
|
29
|
-
*
|
|
30
5
|
* ## Example Usage
|
|
31
6
|
*
|
|
32
7
|
* ```typescript
|
|
@@ -6,31 +6,6 @@ exports.RepositoryCollaborators = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a GitHub repository collaborators resource.
|
|
10
|
-
*
|
|
11
|
-
* > Note: github.RepositoryCollaborators cannot be used in conjunction with github.RepositoryCollaborator and
|
|
12
|
-
* github.TeamRepository or they will fight over what your policy should be.
|
|
13
|
-
*
|
|
14
|
-
* This resource allows you to manage all collaborators for repositories in your
|
|
15
|
-
* organization or personal account. For organization repositories, collaborators can
|
|
16
|
-
* have explicit (and differing levels of) read, write, or administrator access to
|
|
17
|
-
* specific repositories, without giving the user full organization membership.
|
|
18
|
-
* For personal repositories, collaborators can only be granted write
|
|
19
|
-
* (implicitly includes read) permission.
|
|
20
|
-
*
|
|
21
|
-
* When applied, an invitation will be sent to the user to become a collaborators
|
|
22
|
-
* on a repository. When destroyed, either the invitation will be cancelled or the
|
|
23
|
-
* collaborators will be removed from the repository.
|
|
24
|
-
*
|
|
25
|
-
* This resource is authoritative. For adding a collaborator to a repo in a non-authoritative manner, use
|
|
26
|
-
* github.RepositoryCollaborator instead.
|
|
27
|
-
*
|
|
28
|
-
* Further documentation on GitHub collaborators:
|
|
29
|
-
*
|
|
30
|
-
* - [Adding outside collaborators to your personal repositories](https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/managing-access-to-your-personal-repositories)
|
|
31
|
-
* - [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)
|
|
32
|
-
* - [Converting an organization member to an outside collaborators](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)
|
|
33
|
-
*
|
|
34
9
|
* ## Example Usage
|
|
35
10
|
*
|
|
36
11
|
* ```typescript
|