@pulumi/github 5.26.0-alpha.1705643777 → 5.26.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/github",
3
- "version": "v5.26.0-alpha.1705643777+e763d42d",
3
+ "version": "v5.26.0",
4
4
  "description": "A Pulumi package for creating and managing github cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -81,7 +81,7 @@ export declare class RepositoryFile extends pulumi.CustomResource {
81
81
  */
82
82
  readonly file: pulumi.Output<string>;
83
83
  /**
84
- * Enable overwriting existing files
84
+ * Enable overwriting existing files. If set to `true` it will overwrite an existing file with the same name. If set to `false` it will fail if there is an existing file with the same name.
85
85
  */
86
86
  readonly overwriteOnCreate: pulumi.Output<boolean | undefined>;
87
87
  /**
@@ -139,7 +139,7 @@ export interface RepositoryFileState {
139
139
  */
140
140
  file?: pulumi.Input<string>;
141
141
  /**
142
- * Enable overwriting existing files
142
+ * Enable overwriting existing files. If set to `true` it will overwrite an existing file with the same name. If set to `false` it will fail if there is an existing file with the same name.
143
143
  */
144
144
  overwriteOnCreate?: pulumi.Input<boolean>;
145
145
  /**
@@ -185,7 +185,7 @@ export interface RepositoryFileArgs {
185
185
  */
186
186
  file: pulumi.Input<string>;
187
187
  /**
188
- * Enable overwriting existing files
188
+ * Enable overwriting existing files. If set to `true` it will overwrite an existing file with the same name. If set to `false` it will fail if there is an existing file with the same name.
189
189
  */
190
190
  overwriteOnCreate?: pulumi.Input<boolean>;
191
191
  /**
package/types/input.d.ts CHANGED
@@ -68,6 +68,11 @@ export interface BranchProtectionRequiredPullRequestReview {
68
68
  export interface BranchProtectionRequiredStatusCheck {
69
69
  /**
70
70
  * The list of status checks to require in order to merge into this branch. No status checks are required by default.
71
+ *
72
+ * > Note: This attribute can contain multiple string patterns.
73
+ * If specified, usual value is the [job name](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname). Otherwise, the [job id](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname) is defaulted to.
74
+ * For workflows that use matrixes, append the matrix name to the value using the following pattern `(<matrix_value>[, <matrix_value>])`. Matrixes should be specified based on the order of matrix properties in the workflow file. See GitHub Documentation for more information.
75
+ * For workflows that use reusable workflows, the pattern is `<initial_workflow.jobs.job.[name/id]> / <reused-workflow.jobs.job.[name/id]>`. This can extend multiple levels.
71
76
  */
72
77
  contexts?: pulumi.Input<pulumi.Input<string>[]>;
73
78
  /**
@@ -132,6 +137,11 @@ export interface BranchProtectionV3RequiredStatusChecks {
132
137
  /**
133
138
  * [**DEPRECATED**] (Optional) The list of status checks to require in order to merge into this branch. No status checks are required by default.
134
139
  *
140
+ * > Note: This attribute can contain multiple string patterns.
141
+ * If specified, usual value is the [job name](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname). Otherwise, the [job id](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname) is defaulted to.
142
+ * For workflows that use matrixes, append the matrix name to the value using the following pattern `(<matrix_value>[, <matrix_value>])`. Matrixes should be specified based on the order of matrix properties in the workflow file. See GitHub Documentation for more information.
143
+ * For workflows that use reusable workflows, the pattern is `<initial_workflow.jobs.job.[name/id]> / <reused-workflow.jobs.job.[name/id]>`. This can extend multiple levels.
144
+ *
135
145
  * @deprecated GitHub is deprecating the use of `contexts`. Use a `checks` array instead.
136
146
  */
137
147
  contexts?: pulumi.Input<pulumi.Input<string>[]>;
@@ -277,6 +287,10 @@ export interface OrganizationRulesetRules {
277
287
  * (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema)
278
288
  */
279
289
  requiredStatusChecks?: pulumi.Input<inputs.OrganizationRulesetRulesRequiredStatusChecks>;
290
+ /**
291
+ * (Block List, Max: 1) Define which Actions workflows must pass before changes can be merged into a branch matching the rule. Multiple workflows can be specified. (see below for nested schema)
292
+ */
293
+ requiredWorkflows?: pulumi.Input<inputs.OrganizationRulesetRulesRequiredWorkflows>;
280
294
  /**
281
295
  * (Block List, Max: 1) Parameters to be used for the tagNamePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branchNamePattern` as it only applies to rulesets with target `tag`. (see below for nested schema)
282
296
  */
@@ -400,6 +414,26 @@ export interface OrganizationRulesetRulesRequiredStatusChecksRequiredCheck {
400
414
  */
401
415
  integrationId?: pulumi.Input<number>;
402
416
  }
417
+ export interface OrganizationRulesetRulesRequiredWorkflows {
418
+ /**
419
+ * (Block Set, Min: 1) Actions workflows that are required. Multiple can be defined. (see below for nested schema)
420
+ */
421
+ requiredWorkflows: pulumi.Input<pulumi.Input<inputs.OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflow>[]>;
422
+ }
423
+ export interface OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflow {
424
+ /**
425
+ * (String) The path to the YAML definition file of the workflow.
426
+ */
427
+ path: pulumi.Input<string>;
428
+ /**
429
+ * (String) The optional ref from which to fetch the workflow. Defaults to `master`.
430
+ */
431
+ ref?: pulumi.Input<string>;
432
+ /**
433
+ * The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. Conflicts with `repositoryName`.
434
+ */
435
+ repositoryId: pulumi.Input<number>;
436
+ }
403
437
  export interface OrganizationRulesetRulesTagNamePattern {
404
438
  /**
405
439
  * (String) The name of the ruleset.
package/types/output.d.ts CHANGED
@@ -67,6 +67,11 @@ export interface BranchProtectionRequiredPullRequestReview {
67
67
  export interface BranchProtectionRequiredStatusCheck {
68
68
  /**
69
69
  * The list of status checks to require in order to merge into this branch. No status checks are required by default.
70
+ *
71
+ * > Note: This attribute can contain multiple string patterns.
72
+ * If specified, usual value is the [job name](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname). Otherwise, the [job id](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname) is defaulted to.
73
+ * For workflows that use matrixes, append the matrix name to the value using the following pattern `(<matrix_value>[, <matrix_value>])`. Matrixes should be specified based on the order of matrix properties in the workflow file. See GitHub Documentation for more information.
74
+ * For workflows that use reusable workflows, the pattern is `<initial_workflow.jobs.job.[name/id]> / <reused-workflow.jobs.job.[name/id]>`. This can extend multiple levels.
70
75
  */
71
76
  contexts?: string[];
72
77
  /**
@@ -131,6 +136,11 @@ export interface BranchProtectionV3RequiredStatusChecks {
131
136
  /**
132
137
  * [**DEPRECATED**] (Optional) The list of status checks to require in order to merge into this branch. No status checks are required by default.
133
138
  *
139
+ * > Note: This attribute can contain multiple string patterns.
140
+ * If specified, usual value is the [job name](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname). Otherwise, the [job id](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idname) is defaulted to.
141
+ * For workflows that use matrixes, append the matrix name to the value using the following pattern `(<matrix_value>[, <matrix_value>])`. Matrixes should be specified based on the order of matrix properties in the workflow file. See GitHub Documentation for more information.
142
+ * For workflows that use reusable workflows, the pattern is `<initial_workflow.jobs.job.[name/id]> / <reused-workflow.jobs.job.[name/id]>`. This can extend multiple levels.
143
+ *
134
144
  * @deprecated GitHub is deprecating the use of `contexts`. Use a `checks` array instead.
135
145
  */
136
146
  contexts?: string[];
@@ -1031,6 +1041,10 @@ export interface OrganizationRulesetRules {
1031
1041
  * (Block List, Max: 1) Choose which status checks must pass before branches can be merged into a branch that matches this rule. When enabled, commits must first be pushed to another branch, then merged or pushed directly to a branch that matches this rule after status checks have passed. (see below for nested schema)
1032
1042
  */
1033
1043
  requiredStatusChecks?: outputs.OrganizationRulesetRulesRequiredStatusChecks;
1044
+ /**
1045
+ * (Block List, Max: 1) Define which Actions workflows must pass before changes can be merged into a branch matching the rule. Multiple workflows can be specified. (see below for nested schema)
1046
+ */
1047
+ requiredWorkflows?: outputs.OrganizationRulesetRulesRequiredWorkflows;
1034
1048
  /**
1035
1049
  * (Block List, Max: 1) Parameters to be used for the tagNamePattern rule. This rule only applies to repositories within an enterprise, it cannot be applied to repositories owned by individuals or regular organizations. Conflicts with `branchNamePattern` as it only applies to rulesets with target `tag`. (see below for nested schema)
1036
1050
  */
@@ -1154,6 +1168,26 @@ export interface OrganizationRulesetRulesRequiredStatusChecksRequiredCheck {
1154
1168
  */
1155
1169
  integrationId?: number;
1156
1170
  }
1171
+ export interface OrganizationRulesetRulesRequiredWorkflows {
1172
+ /**
1173
+ * (Block Set, Min: 1) Actions workflows that are required. Multiple can be defined. (see below for nested schema)
1174
+ */
1175
+ requiredWorkflows: outputs.OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflow[];
1176
+ }
1177
+ export interface OrganizationRulesetRulesRequiredWorkflowsRequiredWorkflow {
1178
+ /**
1179
+ * (String) The path to the YAML definition file of the workflow.
1180
+ */
1181
+ path: string;
1182
+ /**
1183
+ * (String) The optional ref from which to fetch the workflow. Defaults to `master`.
1184
+ */
1185
+ ref?: string;
1186
+ /**
1187
+ * The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass. Conflicts with `repositoryName`.
1188
+ */
1189
+ repositoryId: number;
1190
+ }
1157
1191
  export interface OrganizationRulesetRulesTagNamePattern {
1158
1192
  /**
1159
1193
  * (String) The name of the ruleset.