@pulumi/github 6.12.0 → 6.12.1-alpha.1770868941
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/emuGroupMapping.d.ts +2 -2
- package/package.json +2 -2
- package/repositoryFile.d.ts +45 -16
- package/repositoryFile.js +11 -6
- package/repositoryFile.js.map +1 -1
package/emuGroupMapping.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
50
50
|
/**
|
|
51
51
|
* ID of the GitHub team.
|
|
52
52
|
*/
|
|
53
|
-
readonly teamId: pulumi.Output<
|
|
53
|
+
readonly teamId: pulumi.Output<number>;
|
|
54
54
|
/**
|
|
55
55
|
* Slug of the GitHub team
|
|
56
56
|
*/
|
|
@@ -80,7 +80,7 @@ export interface EmuGroupMappingState {
|
|
|
80
80
|
/**
|
|
81
81
|
* ID of the GitHub team.
|
|
82
82
|
*/
|
|
83
|
-
teamId?: pulumi.Input<
|
|
83
|
+
teamId?: pulumi.Input<number>;
|
|
84
84
|
/**
|
|
85
85
|
* Slug of the GitHub team
|
|
86
86
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.1-alpha.1770868941",
|
|
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.12.
|
|
26
|
+
"version": "6.12.1-alpha.1770868941"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/repositoryFile.d.ts
CHANGED
|
@@ -3,12 +3,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
5
|
* ### Existing Branch
|
|
6
|
+
*
|
|
6
7
|
* ```typescript
|
|
7
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
8
9
|
* import * as github from "@pulumi/github";
|
|
9
10
|
*
|
|
10
11
|
* const foo = new github.Repository("foo", {
|
|
11
|
-
* name: "
|
|
12
|
+
* name: "example",
|
|
12
13
|
* autoInit: true,
|
|
13
14
|
* });
|
|
14
15
|
* const fooRepositoryFile = new github.RepositoryFile("foo", {
|
|
@@ -24,12 +25,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
25
|
* ```
|
|
25
26
|
*
|
|
26
27
|
* ### Auto Created Branch
|
|
28
|
+
*
|
|
27
29
|
* ```typescript
|
|
28
30
|
* import * as pulumi from "@pulumi/pulumi";
|
|
29
31
|
* import * as github from "@pulumi/github";
|
|
30
32
|
*
|
|
31
33
|
* const foo = new github.Repository("foo", {
|
|
32
|
-
* name: "
|
|
34
|
+
* name: "example",
|
|
33
35
|
* autoInit: true,
|
|
34
36
|
* });
|
|
35
37
|
* const fooRepositoryFile = new github.RepositoryFile("foo", {
|
|
@@ -47,15 +49,16 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
47
49
|
*
|
|
48
50
|
* ## Import
|
|
49
51
|
*
|
|
50
|
-
* Repository files can be imported using a combination of the `repo` and `
|
|
52
|
+
* Repository files can be imported using a combination of the `repo`, `file` and `branch` or empty branch for the default branch, e.g.
|
|
51
53
|
*
|
|
52
54
|
* ```sh
|
|
53
|
-
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example
|
|
55
|
+
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example:.gitignore:feature-branch
|
|
54
56
|
* ```
|
|
55
|
-
*
|
|
57
|
+
*
|
|
58
|
+
* and using default branch:
|
|
56
59
|
*
|
|
57
60
|
* ```sh
|
|
58
|
-
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example
|
|
61
|
+
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example:.gitignore:
|
|
59
62
|
* ```
|
|
60
63
|
*/
|
|
61
64
|
export declare class RepositoryFile extends pulumi.CustomResource {
|
|
@@ -75,22 +78,28 @@ export declare class RepositoryFile extends pulumi.CustomResource {
|
|
|
75
78
|
*/
|
|
76
79
|
static isInstance(obj: any): obj is RepositoryFile;
|
|
77
80
|
/**
|
|
78
|
-
* 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'.
|
|
81
|
+
* **Deprecated** 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'. Use the `github.Branch` resource instead.
|
|
82
|
+
*
|
|
83
|
+
* @deprecated Use `github.Branch` resource instead
|
|
79
84
|
*/
|
|
80
85
|
readonly autocreateBranch: pulumi.Output<boolean | undefined>;
|
|
81
86
|
/**
|
|
82
|
-
* The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.
|
|
87
|
+
* **Deprecated** The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'. Use the `github.Branch` resource instead.
|
|
88
|
+
*
|
|
89
|
+
* @deprecated Use `github.Branch` resource instead
|
|
83
90
|
*/
|
|
84
91
|
readonly autocreateBranchSourceBranch: pulumi.Output<string | undefined>;
|
|
85
92
|
/**
|
|
86
|
-
* 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.
|
|
93
|
+
* **Deprecated** 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. Use the `github.Branch` resource instead.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated Use `github.Branch` resource instead
|
|
87
96
|
*/
|
|
88
97
|
readonly autocreateBranchSourceSha: pulumi.Output<string>;
|
|
89
98
|
/**
|
|
90
99
|
* Git branch (defaults to the repository's default branch).
|
|
91
100
|
* The branch must already exist, it will only be created automatically if 'autocreate_branch' is set true.
|
|
92
101
|
*/
|
|
93
|
-
readonly branch: pulumi.Output<string
|
|
102
|
+
readonly branch: pulumi.Output<string>;
|
|
94
103
|
/**
|
|
95
104
|
* Committer author name to use. **NOTE:** GitHub app users may omit author and email information so GitHub can verify commits as the GitHub App. This maybe useful when a branch protection rule requires signed commits.
|
|
96
105
|
*/
|
|
@@ -127,6 +136,10 @@ export declare class RepositoryFile extends pulumi.CustomResource {
|
|
|
127
136
|
* The repository to create the file in.
|
|
128
137
|
*/
|
|
129
138
|
readonly repository: pulumi.Output<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The ID of the repository.
|
|
141
|
+
*/
|
|
142
|
+
readonly repositoryId: pulumi.Output<number>;
|
|
130
143
|
/**
|
|
131
144
|
* The SHA blob of the file.
|
|
132
145
|
*/
|
|
@@ -145,15 +158,21 @@ export declare class RepositoryFile extends pulumi.CustomResource {
|
|
|
145
158
|
*/
|
|
146
159
|
export interface RepositoryFileState {
|
|
147
160
|
/**
|
|
148
|
-
* 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'.
|
|
161
|
+
* **Deprecated** 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'. Use the `github.Branch` resource instead.
|
|
162
|
+
*
|
|
163
|
+
* @deprecated Use `github.Branch` resource instead
|
|
149
164
|
*/
|
|
150
165
|
autocreateBranch?: pulumi.Input<boolean>;
|
|
151
166
|
/**
|
|
152
|
-
* The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.
|
|
167
|
+
* **Deprecated** The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'. Use the `github.Branch` resource instead.
|
|
168
|
+
*
|
|
169
|
+
* @deprecated Use `github.Branch` resource instead
|
|
153
170
|
*/
|
|
154
171
|
autocreateBranchSourceBranch?: pulumi.Input<string>;
|
|
155
172
|
/**
|
|
156
|
-
* 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.
|
|
173
|
+
* **Deprecated** 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. Use the `github.Branch` resource instead.
|
|
174
|
+
*
|
|
175
|
+
* @deprecated Use `github.Branch` resource instead
|
|
157
176
|
*/
|
|
158
177
|
autocreateBranchSourceSha?: pulumi.Input<string>;
|
|
159
178
|
/**
|
|
@@ -197,6 +216,10 @@ export interface RepositoryFileState {
|
|
|
197
216
|
* The repository to create the file in.
|
|
198
217
|
*/
|
|
199
218
|
repository?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* The ID of the repository.
|
|
221
|
+
*/
|
|
222
|
+
repositoryId?: pulumi.Input<number>;
|
|
200
223
|
/**
|
|
201
224
|
* The SHA blob of the file.
|
|
202
225
|
*/
|
|
@@ -207,15 +230,21 @@ export interface RepositoryFileState {
|
|
|
207
230
|
*/
|
|
208
231
|
export interface RepositoryFileArgs {
|
|
209
232
|
/**
|
|
210
|
-
* 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'.
|
|
233
|
+
* **Deprecated** 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'. Use the `github.Branch` resource instead.
|
|
234
|
+
*
|
|
235
|
+
* @deprecated Use `github.Branch` resource instead
|
|
211
236
|
*/
|
|
212
237
|
autocreateBranch?: pulumi.Input<boolean>;
|
|
213
238
|
/**
|
|
214
|
-
* The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'.
|
|
239
|
+
* **Deprecated** The branch name to start from, if 'autocreate_branch' is set. Defaults to 'main'. Use the `github.Branch` resource instead.
|
|
240
|
+
*
|
|
241
|
+
* @deprecated Use `github.Branch` resource instead
|
|
215
242
|
*/
|
|
216
243
|
autocreateBranchSourceBranch?: pulumi.Input<string>;
|
|
217
244
|
/**
|
|
218
|
-
* 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.
|
|
245
|
+
* **Deprecated** 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. Use the `github.Branch` resource instead.
|
|
246
|
+
*
|
|
247
|
+
* @deprecated Use `github.Branch` resource instead
|
|
219
248
|
*/
|
|
220
249
|
autocreateBranchSourceSha?: pulumi.Input<string>;
|
|
221
250
|
/**
|
package/repositoryFile.js
CHANGED
|
@@ -9,12 +9,13 @@ const utilities = require("./utilities");
|
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
11
|
* ### Existing Branch
|
|
12
|
+
*
|
|
12
13
|
* ```typescript
|
|
13
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
15
|
* import * as github from "@pulumi/github";
|
|
15
16
|
*
|
|
16
17
|
* const foo = new github.Repository("foo", {
|
|
17
|
-
* name: "
|
|
18
|
+
* name: "example",
|
|
18
19
|
* autoInit: true,
|
|
19
20
|
* });
|
|
20
21
|
* const fooRepositoryFile = new github.RepositoryFile("foo", {
|
|
@@ -30,12 +31,13 @@ const utilities = require("./utilities");
|
|
|
30
31
|
* ```
|
|
31
32
|
*
|
|
32
33
|
* ### Auto Created Branch
|
|
34
|
+
*
|
|
33
35
|
* ```typescript
|
|
34
36
|
* import * as pulumi from "@pulumi/pulumi";
|
|
35
37
|
* import * as github from "@pulumi/github";
|
|
36
38
|
*
|
|
37
39
|
* const foo = new github.Repository("foo", {
|
|
38
|
-
* name: "
|
|
40
|
+
* name: "example",
|
|
39
41
|
* autoInit: true,
|
|
40
42
|
* });
|
|
41
43
|
* const fooRepositoryFile = new github.RepositoryFile("foo", {
|
|
@@ -53,15 +55,16 @@ const utilities = require("./utilities");
|
|
|
53
55
|
*
|
|
54
56
|
* ## Import
|
|
55
57
|
*
|
|
56
|
-
* Repository files can be imported using a combination of the `repo` and `
|
|
58
|
+
* Repository files can be imported using a combination of the `repo`, `file` and `branch` or empty branch for the default branch, e.g.
|
|
57
59
|
*
|
|
58
60
|
* ```sh
|
|
59
|
-
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example
|
|
61
|
+
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example:.gitignore:feature-branch
|
|
60
62
|
* ```
|
|
61
|
-
*
|
|
63
|
+
*
|
|
64
|
+
* and using default branch:
|
|
62
65
|
*
|
|
63
66
|
* ```sh
|
|
64
|
-
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example
|
|
67
|
+
* $ pulumi import github:index/repositoryFile:RepositoryFile gitignore example:.gitignore:
|
|
65
68
|
* ```
|
|
66
69
|
*/
|
|
67
70
|
class RepositoryFile extends pulumi.CustomResource {
|
|
@@ -105,6 +108,7 @@ class RepositoryFile extends pulumi.CustomResource {
|
|
|
105
108
|
resourceInputs["overwriteOnCreate"] = state?.overwriteOnCreate;
|
|
106
109
|
resourceInputs["ref"] = state?.ref;
|
|
107
110
|
resourceInputs["repository"] = state?.repository;
|
|
111
|
+
resourceInputs["repositoryId"] = state?.repositoryId;
|
|
108
112
|
resourceInputs["sha"] = state?.sha;
|
|
109
113
|
}
|
|
110
114
|
else {
|
|
@@ -131,6 +135,7 @@ class RepositoryFile extends pulumi.CustomResource {
|
|
|
131
135
|
resourceInputs["repository"] = args?.repository;
|
|
132
136
|
resourceInputs["commitSha"] = undefined /*out*/;
|
|
133
137
|
resourceInputs["ref"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["repositoryId"] = undefined /*out*/;
|
|
134
139
|
resourceInputs["sha"] = undefined /*out*/;
|
|
135
140
|
}
|
|
136
141
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/repositoryFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryFile.js","sourceRoot":"","sources":["../reposit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