@pulumi/github 6.3.0-alpha.1726292206 → 6.3.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/getCollaborators.d.ts +12 -0
- package/getCollaborators.js +1 -0
- package/getCollaborators.js.map +1 -1
- package/getOrganization.d.ts +13 -4
- package/getOrganization.js +1 -0
- package/getOrganization.js.map +1 -1
- package/getRepository.d.ts +2 -0
- package/getRepository.js.map +1 -1
- package/package.json +2 -2
- package/repository.d.ts +1 -5
- package/repository.js +1 -5
- package/repository.js.map +1 -1
- package/repositoryFile.d.ts +62 -3
- package/repositoryFile.js +29 -0
- package/repositoryFile.js.map +1 -1
- package/types/output.d.ts +1 -1
package/getCollaborators.d.ts
CHANGED
|
@@ -28,6 +28,10 @@ export interface GetCollaboratorsArgs {
|
|
|
28
28
|
* The organization that owns the repository.
|
|
29
29
|
*/
|
|
30
30
|
owner: string;
|
|
31
|
+
/**
|
|
32
|
+
* Filter collaborators returned by their permission. Can be one of: `pull`, `triage`, `push`, `maintain`, `admin`. Defaults to not doing any filtering on permission.
|
|
33
|
+
*/
|
|
34
|
+
permission?: string;
|
|
31
35
|
/**
|
|
32
36
|
* The name of the repository.
|
|
33
37
|
*/
|
|
@@ -47,6 +51,10 @@ export interface GetCollaboratorsResult {
|
|
|
47
51
|
*/
|
|
48
52
|
readonly id: string;
|
|
49
53
|
readonly owner: string;
|
|
54
|
+
/**
|
|
55
|
+
* The permission of the collaborator.
|
|
56
|
+
*/
|
|
57
|
+
readonly permission?: string;
|
|
50
58
|
readonly repository: string;
|
|
51
59
|
}
|
|
52
60
|
/**
|
|
@@ -77,6 +85,10 @@ export interface GetCollaboratorsOutputArgs {
|
|
|
77
85
|
* The organization that owns the repository.
|
|
78
86
|
*/
|
|
79
87
|
owner: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Filter collaborators returned by their permission. Can be one of: `pull`, `triage`, `push`, `maintain`, `admin`. Defaults to not doing any filtering on permission.
|
|
90
|
+
*/
|
|
91
|
+
permission?: pulumi.Input<string>;
|
|
80
92
|
/**
|
|
81
93
|
* The name of the repository.
|
|
82
94
|
*/
|
package/getCollaborators.js
CHANGED
|
@@ -25,6 +25,7 @@ function getCollaborators(args, opts) {
|
|
|
25
25
|
return pulumi.runtime.invoke("github:index/getCollaborators:getCollaborators", {
|
|
26
26
|
"affiliation": args.affiliation,
|
|
27
27
|
"owner": args.owner,
|
|
28
|
+
"permission": args.permission,
|
|
28
29
|
"repository": args.repository,
|
|
29
30
|
}, opts);
|
|
30
31
|
}
|
package/getCollaborators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCollaborators.js","sourceRoot":"","sources":["../getCollaborators.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;
|
|
1
|
+
{"version":3,"file":"getCollaborators.js","sourceRoot":"","sources":["../getCollaborators.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IAEpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,4CASC;AA4CD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAA2B;IAChG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
|
package/getOrganization.d.ts
CHANGED
|
@@ -19,13 +19,17 @@ export declare function getOrganization(args: GetOrganizationArgs, opts?: pulumi
|
|
|
19
19
|
*/
|
|
20
20
|
export interface GetOrganizationArgs {
|
|
21
21
|
/**
|
|
22
|
-
* Whether or not to include archived repos in the `repositories` list
|
|
22
|
+
* Whether or not to include archived repos in the `repositories` list. Defaults to `false`.
|
|
23
23
|
*/
|
|
24
24
|
ignoreArchivedRepos?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
26
|
+
* The name of the organization.
|
|
27
27
|
*/
|
|
28
28
|
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Exclude the repos, members and other attributes from the returned result. Defaults to `false`.
|
|
31
|
+
*/
|
|
32
|
+
summaryOnly?: boolean;
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
35
|
* A collection of values returned by getOrganization.
|
|
@@ -134,6 +138,7 @@ export interface GetOrganizationResult {
|
|
|
134
138
|
* Whether secret scanning push protection is automatically enabled for new repositories.
|
|
135
139
|
*/
|
|
136
140
|
readonly secretScanningPushProtectionEnabledForNewRepositories: boolean;
|
|
141
|
+
readonly summaryOnly?: boolean;
|
|
137
142
|
/**
|
|
138
143
|
* Whether two-factor authentication is required for all members of the organization.
|
|
139
144
|
*/
|
|
@@ -169,11 +174,15 @@ export declare function getOrganizationOutput(args: GetOrganizationOutputArgs, o
|
|
|
169
174
|
*/
|
|
170
175
|
export interface GetOrganizationOutputArgs {
|
|
171
176
|
/**
|
|
172
|
-
* Whether or not to include archived repos in the `repositories` list
|
|
177
|
+
* Whether or not to include archived repos in the `repositories` list. Defaults to `false`.
|
|
173
178
|
*/
|
|
174
179
|
ignoreArchivedRepos?: pulumi.Input<boolean>;
|
|
175
180
|
/**
|
|
176
|
-
* The
|
|
181
|
+
* The name of the organization.
|
|
177
182
|
*/
|
|
178
183
|
name: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Exclude the repos, members and other attributes from the returned result. Defaults to `false`.
|
|
186
|
+
*/
|
|
187
|
+
summaryOnly?: pulumi.Input<boolean>;
|
|
179
188
|
}
|
package/getOrganization.js
CHANGED
|
@@ -24,6 +24,7 @@ function getOrganization(args, opts) {
|
|
|
24
24
|
return pulumi.runtime.invoke("github:index/getOrganization:getOrganization", {
|
|
25
25
|
"ignoreArchivedRepos": args.ignoreArchivedRepos,
|
|
26
26
|
"name": args.name,
|
|
27
|
+
"summaryOnly": args.summaryOnly,
|
|
27
28
|
}, opts);
|
|
28
29
|
}
|
|
29
30
|
exports.getOrganization = getOrganization;
|
package/getOrganization.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,MAAM,EAAE,IAAI,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAElF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC;AA6ID;;;;;;;;;;;;;GAaG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
package/getRepository.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export interface GetRepositoryResult {
|
|
|
56
56
|
* Whether the repository allows squash merges.
|
|
57
57
|
*/
|
|
58
58
|
readonly allowSquashMerge: boolean;
|
|
59
|
+
readonly allowUpdateBranch: boolean;
|
|
59
60
|
/**
|
|
60
61
|
* Whether the repository is archived.
|
|
61
62
|
*/
|
|
@@ -64,6 +65,7 @@ export interface GetRepositoryResult {
|
|
|
64
65
|
* The name of the default branch of the repository.
|
|
65
66
|
*/
|
|
66
67
|
readonly defaultBranch: string;
|
|
68
|
+
readonly deleteBranchOnMerge: boolean;
|
|
67
69
|
/**
|
|
68
70
|
* A description of the license.
|
|
69
71
|
*/
|
package/getRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;
|
|
1
|
+
{"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,sCAUC;AA4KD;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "6.3.0
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "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.3.0
|
|
26
|
+
"version": "6.3.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/repository.d.ts
CHANGED
|
@@ -5,11 +5,7 @@ import * as outputs from "./types/output";
|
|
|
5
5
|
* This resource allows you to create and manage repositories within your
|
|
6
6
|
* GitHub organization or personal account.
|
|
7
7
|
*
|
|
8
|
-
* > Note
|
|
9
|
-
*
|
|
10
|
-
* - `allowMergeCommit` (including the related `mergeCommitTitle` and `mergeCommitMessage`)
|
|
11
|
-
* - `allowSquashMerge` (including the related `squashMergeCommitTitle` and `squashMergeCommitMessage`)
|
|
12
|
-
* - `allowRebaseMerge`
|
|
8
|
+
* > **Note** When used with GitHub App authentication, even GET requests must have the `contents:write` permission. Without it, the following arguments will be ignored, leading to unexpected behavior and confusing diffs: `allowMergeCommit`, `allowSquashMerge`, `allowRebaseMerge`, `mergeCommitTitle`, `mergeCommitMessage`, `squashMergeCommitTitle` and `squashMergeCommitMessage`.
|
|
13
9
|
*
|
|
14
10
|
* ## Example Usage
|
|
15
11
|
*
|
package/repository.js
CHANGED
|
@@ -9,11 +9,7 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* This resource allows you to create and manage repositories within your
|
|
10
10
|
* GitHub organization or personal account.
|
|
11
11
|
*
|
|
12
|
-
* > Note
|
|
13
|
-
*
|
|
14
|
-
* - `allowMergeCommit` (including the related `mergeCommitTitle` and `mergeCommitMessage`)
|
|
15
|
-
* - `allowSquashMerge` (including the related `squashMergeCommitTitle` and `squashMergeCommitMessage`)
|
|
16
|
-
* - `allowRebaseMerge`
|
|
12
|
+
* > **Note** When used with GitHub App authentication, even GET requests must have the `contents:write` permission. Without it, the following arguments will be ignored, leading to unexpected behavior and confusing diffs: `allowMergeCommit`, `allowSquashMerge`, `allowRebaseMerge`, `mergeCommitTitle`, `mergeCommitMessage`, `squashMergeCommitTitle` and `squashMergeCommitMessage`.
|
|
17
13
|
*
|
|
18
14
|
* ## Example Usage
|
|
19
15
|
*
|
package/repository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../repository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,G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AAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;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;;AA7TL,gCA8TC;AAhTG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/repositoryFile.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
*
|
|
6
6
|
* ## Example Usage
|
|
7
7
|
*
|
|
8
|
+
* ### Existing Branch
|
|
8
9
|
* ```typescript
|
|
9
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
11
|
* import * as github from "@pulumi/github";
|
|
@@ -25,6 +26,28 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
25
26
|
* });
|
|
26
27
|
* ```
|
|
27
28
|
*
|
|
29
|
+
* ### Auto Created Branch
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as github from "@pulumi/github";
|
|
33
|
+
*
|
|
34
|
+
* const foo = new github.Repository("foo", {
|
|
35
|
+
* name: "tf-acc-test-%s",
|
|
36
|
+
* autoInit: true,
|
|
37
|
+
* });
|
|
38
|
+
* const fooRepositoryFile = new github.RepositoryFile("foo", {
|
|
39
|
+
* repository: foo.name,
|
|
40
|
+
* branch: "does/not/exist",
|
|
41
|
+
* file: ".gitignore",
|
|
42
|
+
* content: "**/*.tfstate",
|
|
43
|
+
* commitMessage: "Managed by Terraform",
|
|
44
|
+
* commitAuthor: "Terraform User",
|
|
45
|
+
* commitEmail: "terraform@example.com",
|
|
46
|
+
* overwriteOnCreate: true,
|
|
47
|
+
* autocreateBranch: true,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
28
51
|
* ## Import
|
|
29
52
|
*
|
|
30
53
|
* Repository files can be imported using a combination of the `repo` and `file`, e.g.
|
|
@@ -54,9 +77,21 @@ export declare class RepositoryFile extends pulumi.CustomResource {
|
|
|
54
77
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
78
|
*/
|
|
56
79
|
static isInstance(obj: any): obj is RepositoryFile;
|
|
80
|
+
/**
|
|
81
|
+
* Automatically create the branch if it could not be found. Defaults to false. Subsequent reads if the branch is deleted will occur from 'autocreate_branch_source_branch'.
|
|
82
|
+
*/
|
|
83
|
+
readonly autocreateBranch: pulumi.Output<boolean | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.
|
|
86
|
+
*/
|
|
87
|
+
readonly autocreateBranchSourceBranch: pulumi.Output<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* The commit hash to start from, if 'autocreate_branch' is set. Defaults to the tip of 'autocreate_branch_source_branch'. If provided, 'autocreate_branch_source_branch' is ignored.
|
|
90
|
+
*/
|
|
91
|
+
readonly autocreateBranchSourceSha: pulumi.Output<string>;
|
|
57
92
|
/**
|
|
58
93
|
* Git branch (defaults to the repository's default branch).
|
|
59
|
-
* The branch must already exist, it will
|
|
94
|
+
* The branch must already exist, it will only be created automatically if 'autocreate_branch' is set true.
|
|
60
95
|
*/
|
|
61
96
|
readonly branch: pulumi.Output<string | undefined>;
|
|
62
97
|
/**
|
|
@@ -112,9 +147,21 @@ export declare class RepositoryFile extends pulumi.CustomResource {
|
|
|
112
147
|
* Input properties used for looking up and filtering RepositoryFile resources.
|
|
113
148
|
*/
|
|
114
149
|
export interface RepositoryFileState {
|
|
150
|
+
/**
|
|
151
|
+
* Automatically create the branch if it could not be found. Defaults to false. Subsequent reads if the branch is deleted will occur from 'autocreate_branch_source_branch'.
|
|
152
|
+
*/
|
|
153
|
+
autocreateBranch?: pulumi.Input<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.
|
|
156
|
+
*/
|
|
157
|
+
autocreateBranchSourceBranch?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The commit hash to start from, if 'autocreate_branch' is set. Defaults to the tip of 'autocreate_branch_source_branch'. If provided, 'autocreate_branch_source_branch' is ignored.
|
|
160
|
+
*/
|
|
161
|
+
autocreateBranchSourceSha?: pulumi.Input<string>;
|
|
115
162
|
/**
|
|
116
163
|
* Git branch (defaults to the repository's default branch).
|
|
117
|
-
* The branch must already exist, it will
|
|
164
|
+
* The branch must already exist, it will only be created automatically if 'autocreate_branch' is set true.
|
|
118
165
|
*/
|
|
119
166
|
branch?: pulumi.Input<string>;
|
|
120
167
|
/**
|
|
@@ -162,9 +209,21 @@ export interface RepositoryFileState {
|
|
|
162
209
|
* The set of arguments for constructing a RepositoryFile resource.
|
|
163
210
|
*/
|
|
164
211
|
export interface RepositoryFileArgs {
|
|
212
|
+
/**
|
|
213
|
+
* Automatically create the branch if it could not be found. Defaults to false. Subsequent reads if the branch is deleted will occur from 'autocreate_branch_source_branch'.
|
|
214
|
+
*/
|
|
215
|
+
autocreateBranch?: pulumi.Input<boolean>;
|
|
216
|
+
/**
|
|
217
|
+
* The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.
|
|
218
|
+
*/
|
|
219
|
+
autocreateBranchSourceBranch?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* The commit hash to start from, if 'autocreate_branch' is set. Defaults to the tip of 'autocreate_branch_source_branch'. If provided, 'autocreate_branch_source_branch' is ignored.
|
|
222
|
+
*/
|
|
223
|
+
autocreateBranchSourceSha?: pulumi.Input<string>;
|
|
165
224
|
/**
|
|
166
225
|
* Git branch (defaults to the repository's default branch).
|
|
167
|
-
* The branch must already exist, it will
|
|
226
|
+
* The branch must already exist, it will only be created automatically if 'autocreate_branch' is set true.
|
|
168
227
|
*/
|
|
169
228
|
branch?: pulumi.Input<string>;
|
|
170
229
|
/**
|
package/repositoryFile.js
CHANGED
|
@@ -11,6 +11,7 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
+
* ### Existing Branch
|
|
14
15
|
* ```typescript
|
|
15
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
17
|
* import * as github from "@pulumi/github";
|
|
@@ -31,6 +32,28 @@ const utilities = require("./utilities");
|
|
|
31
32
|
* });
|
|
32
33
|
* ```
|
|
33
34
|
*
|
|
35
|
+
* ### Auto Created Branch
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as github from "@pulumi/github";
|
|
39
|
+
*
|
|
40
|
+
* const foo = new github.Repository("foo", {
|
|
41
|
+
* name: "tf-acc-test-%s",
|
|
42
|
+
* autoInit: true,
|
|
43
|
+
* });
|
|
44
|
+
* const fooRepositoryFile = new github.RepositoryFile("foo", {
|
|
45
|
+
* repository: foo.name,
|
|
46
|
+
* branch: "does/not/exist",
|
|
47
|
+
* file: ".gitignore",
|
|
48
|
+
* content: "**/*.tfstate",
|
|
49
|
+
* commitMessage: "Managed by Terraform",
|
|
50
|
+
* commitAuthor: "Terraform User",
|
|
51
|
+
* commitEmail: "terraform@example.com",
|
|
52
|
+
* overwriteOnCreate: true,
|
|
53
|
+
* autocreateBranch: true,
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
34
57
|
* ## Import
|
|
35
58
|
*
|
|
36
59
|
* Repository files can be imported using a combination of the `repo` and `file`, e.g.
|
|
@@ -72,6 +95,9 @@ class RepositoryFile extends pulumi.CustomResource {
|
|
|
72
95
|
opts = opts || {};
|
|
73
96
|
if (opts.id) {
|
|
74
97
|
const state = argsOrState;
|
|
98
|
+
resourceInputs["autocreateBranch"] = state ? state.autocreateBranch : undefined;
|
|
99
|
+
resourceInputs["autocreateBranchSourceBranch"] = state ? state.autocreateBranchSourceBranch : undefined;
|
|
100
|
+
resourceInputs["autocreateBranchSourceSha"] = state ? state.autocreateBranchSourceSha : undefined;
|
|
75
101
|
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
76
102
|
resourceInputs["commitAuthor"] = state ? state.commitAuthor : undefined;
|
|
77
103
|
resourceInputs["commitEmail"] = state ? state.commitEmail : undefined;
|
|
@@ -95,6 +121,9 @@ class RepositoryFile extends pulumi.CustomResource {
|
|
|
95
121
|
if ((!args || args.repository === undefined) && !opts.urn) {
|
|
96
122
|
throw new Error("Missing required property 'repository'");
|
|
97
123
|
}
|
|
124
|
+
resourceInputs["autocreateBranch"] = args ? args.autocreateBranch : undefined;
|
|
125
|
+
resourceInputs["autocreateBranchSourceBranch"] = args ? args.autocreateBranchSourceBranch : undefined;
|
|
126
|
+
resourceInputs["autocreateBranchSourceSha"] = args ? args.autocreateBranchSourceSha : undefined;
|
|
98
127
|
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
99
128
|
resourceInputs["commitAuthor"] = args ? args.commitAuthor : undefined;
|
|
100
129
|
resourceInputs["commitEmail"] = args ? args.commitEmail : undefined;
|
package/repositoryFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryFile.js","sourceRoot":"","sources":["../repositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repositoryFile.js","sourceRoot":"","sources":["../repositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EA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AI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,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,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA7IL,wCA8IC;AAhIG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
package/types/output.d.ts
CHANGED
|
@@ -398,7 +398,7 @@ export interface GetCollaboratorsCollaborator {
|
|
|
398
398
|
*/
|
|
399
399
|
organizationsUrl: string;
|
|
400
400
|
/**
|
|
401
|
-
*
|
|
401
|
+
* Filter collaborators returned by their permission. Can be one of: `pull`, `triage`, `push`, `maintain`, `admin`. Defaults to not doing any filtering on permission.
|
|
402
402
|
*/
|
|
403
403
|
permission: string;
|
|
404
404
|
/**
|