@pulumi/github 5.26.0 → 5.27.0-alpha.1706307199

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.
@@ -39,7 +39,7 @@ import * as pulumi from "@pulumi/pulumi";
39
39
  *
40
40
  * ## Import
41
41
  *
42
- * This resource does not support importing. If you'd like to help contribute it, please visit our [GitHub page](https://github.com/integrations/terraform-provider-github)!
42
+ * This resource does not support importing. If you'd like to help contribute it, please visit our GitHub page!
43
43
  */
44
44
  export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
45
45
  /**
@@ -45,7 +45,7 @@ const utilities = require("./utilities");
45
45
  *
46
46
  * ## Import
47
47
  *
48
- * This resource does not support importing. If you'd like to help contribute it, please visit our [GitHub page](https://github.com/integrations/terraform-provider-github)!
48
+ * This resource does not support importing. If you'd like to help contribute it, please visit our GitHub page!
49
49
  */
50
50
  class ActionsEnvironmentSecret extends pulumi.CustomResource {
51
51
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/github",
3
- "version": "v5.26.0",
3
+ "version": "v5.27.0-alpha.1706307199+9f2331a1",
4
4
  "description": "A Pulumi package for creating and managing github cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -1,4 +1,36 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a resource to manage GitHub repository collaborator invitations.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as github from "@pulumi/github";
10
+ *
11
+ * const exampleRepository = new github.Repository("exampleRepository", {});
12
+ * const exampleRepositoryCollaborator = new github.RepositoryCollaborator("exampleRepositoryCollaborator", {
13
+ * repository: exampleRepository.name,
14
+ * username: "example-username",
15
+ * permission: "push",
16
+ * });
17
+ * const invitee = new github.Provider("invitee", {token: _var.invitee_token});
18
+ * const exampleUserInvitationAccepter = new github.UserInvitationAccepter("exampleUserInvitationAccepter", {invitationId: exampleRepositoryCollaborator.invitationId}, {
19
+ * provider: "github.invitee",
20
+ * });
21
+ * ```
22
+ * ## Allowing empty invitation IDs
23
+ *
24
+ * Set `allowEmptyId` when using `forEach` over a list of `github_repository_collaborator.invitation_id`'s.
25
+ *
26
+ * This allows applying a module again when a new `github.RepositoryCollaborator` resource is added to the `forEach` loop.
27
+ * This is needed as the `github_repository_collaborator.invitation_id` will be empty after a state refresh when the invitation has been accepted.
28
+ *
29
+ * Note that when an invitation is accepted manually or by another tool between a state refresh and a `pulumi up` using that refreshed state,
30
+ * the plan will contain the invitation ID, but the apply will receive an HTTP 404 from the API since the invitation has already been accepted.
31
+ *
32
+ * This is tracked in #1157.
33
+ */
2
34
  export declare class UserInvitationAccepter extends pulumi.CustomResource {
3
35
  /**
4
36
  * Get an existing UserInvitationAccepter resource's state with the given name, ID, and optional extra
@@ -5,6 +5,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.UserInvitationAccepter = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a resource to manage GitHub repository collaborator invitations.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as github from "@pulumi/github";
16
+ *
17
+ * const exampleRepository = new github.Repository("exampleRepository", {});
18
+ * const exampleRepositoryCollaborator = new github.RepositoryCollaborator("exampleRepositoryCollaborator", {
19
+ * repository: exampleRepository.name,
20
+ * username: "example-username",
21
+ * permission: "push",
22
+ * });
23
+ * const invitee = new github.Provider("invitee", {token: _var.invitee_token});
24
+ * const exampleUserInvitationAccepter = new github.UserInvitationAccepter("exampleUserInvitationAccepter", {invitationId: exampleRepositoryCollaborator.invitationId}, {
25
+ * provider: "github.invitee",
26
+ * });
27
+ * ```
28
+ * ## Allowing empty invitation IDs
29
+ *
30
+ * Set `allowEmptyId` when using `forEach` over a list of `github_repository_collaborator.invitation_id`'s.
31
+ *
32
+ * This allows applying a module again when a new `github.RepositoryCollaborator` resource is added to the `forEach` loop.
33
+ * This is needed as the `github_repository_collaborator.invitation_id` will be empty after a state refresh when the invitation has been accepted.
34
+ *
35
+ * Note that when an invitation is accepted manually or by another tool between a state refresh and a `pulumi up` using that refreshed state,
36
+ * the plan will contain the invitation ID, but the apply will receive an HTTP 404 from the API since the invitation has already been accepted.
37
+ *
38
+ * This is tracked in #1157.
39
+ */
8
40
  class UserInvitationAccepter extends pulumi.CustomResource {
9
41
  /**
10
42
  * Get an existing UserInvitationAccepter resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"userInvitationAccepter.js","sourceRoot":"","sources":["../userInvitationAccepter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAsE,EAAE,IAAmC;QACjI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsD,CAAC;YACrE,cAAc,CAAC,cAAc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