@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713
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/README.md +1 -1
- package/actionsEnvironmentSecret.d.ts +0 -105
- package/actionsEnvironmentSecret.js +0 -48
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +0 -72
- package/actionsOrganizationPermissions.js +0 -36
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +0 -110
- package/actionsOrganizationSecret.js +0 -50
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +0 -47
- package/actionsOrganizationSecretRepositories.js +0 -29
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRunnerGroup.d.ts +0 -88
- package/actionsRunnerGroup.js +0 -25
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +0 -70
- package/actionsSecret.js +0 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepository.d.ts +0 -54
- package/appInstallationRepository.js +0 -36
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +0 -92
- package/branch.js +0 -38
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +0 -53
- package/branchDefault.js +0 -35
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +3 -155
- package/branchProtection.js +0 -53
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +0 -138
- package/branchProtectionV3.js +0 -66
- package/branchProtectionV3.js.map +1 -1
- package/emuGroupMapping.d.ts +0 -41
- package/emuGroupMapping.js +0 -23
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +13 -0
- package/getActionsOrganizationSecrets.js +16 -0
- package/getActionsOrganizationSecrets.js.map +1 -0
- package/getActionsPublicKey.d.ts +0 -27
- package/getActionsPublicKey.js +0 -15
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsSecrets.d.ts +30 -0
- package/getActionsSecrets.js +24 -0
- package/getActionsSecrets.js.map +1 -0
- package/getBranch.d.ts +0 -36
- package/getBranch.js +0 -15
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +0 -36
- package/getCollaborators.js +0 -15
- package/getCollaborators.js.map +1 -1
- package/getExternalGroups.d.ts +0 -17
- package/getExternalGroups.js +0 -14
- package/getExternalGroups.js.map +1 -1
- package/getIpRanges.d.ts +0 -84
- package/getIpRanges.js +0 -12
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +0 -38
- package/getMembership.js +0 -17
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +0 -38
- package/getOrganization.js +0 -14
- package/getOrganization.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +0 -15
- package/getOrganizationTeamSyncGroups.js +0 -12
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +0 -38
- package/getOrganizationTeams.js +0 -25
- package/getOrganizationTeams.js.map +1 -1
- package/getRef.d.ts +0 -33
- package/getRef.js +0 -15
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +0 -121
- package/getRelease.js +0 -46
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +0 -29
- package/getRepositories.js +0 -17
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +0 -132
- package/getRepository.js +0 -14
- package/getRepository.js.map +1 -1
- package/getRepositoryFile.d.ts +0 -55
- package/getRepositoryFile.js +0 -17
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +0 -46
- package/getRepositoryMilestone.js +0 -16
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +0 -75
- package/getRepositoryPullRequest.js +0 -15
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +0 -72
- package/getRepositoryPullRequests.js +0 -18
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +30 -0
- package/getRepositoryTeams.js +24 -0
- package/getRepositoryTeams.js.map +1 -0
- package/getTeam.d.ts +0 -47
- package/getTeam.js +0 -14
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +0 -45
- package/getTree.js +0 -24
- package/getTree.js.map +1 -1
- package/getUser.d.ts +0 -87
- package/getUser.js +0 -21
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +0 -37
- package/getUsers.js +0 -22
- package/getUsers.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/issue.d.ts +6 -117
- package/issue.js +0 -63
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +0 -64
- package/issueLabel.js +0 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +0 -49
- package/membership.js +0 -28
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +0 -23
- package/organizationBlock.js +0 -14
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +0 -38
- package/organizationProject.js +0 -14
- package/organizationProject.js.map +1 -1
- package/organizationWebhook.d.ts +0 -63
- package/organizationWebhook.js +0 -30
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +0 -87
- package/projectCard.js +0 -51
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +0 -31
- package/projectColumn.js +0 -13
- package/projectColumn.js.map +1 -1
- package/repository.d.ts +3 -377
- package/repository.js +0 -47
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +6 -40
- package/repositoryAutolinkReference.js +0 -28
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +0 -90
- package/repositoryCollaborator.js +0 -42
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +0 -71
- package/repositoryDeployKey.js +0 -35
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +0 -61
- package/repositoryEnvironment.js +0 -34
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +28 -68
- package/repositoryFile.js +0 -37
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +3 -81
- package/repositoryMilestone.js +0 -27
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +0 -52
- package/repositoryProject.js +0 -19
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +4 -127
- package/repositoryPullRequest.js +0 -18
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +44 -0
- package/repositoryTagProtection.js +59 -0
- package/repositoryTagProtection.js.map +1 -0
- package/repositoryWebhook.d.ts +0 -79
- package/repositoryWebhook.js +0 -37
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +0 -100
- package/team.js +0 -27
- package/team.js.map +1 -1
- package/teamMembers.d.ts +0 -58
- package/teamMembers.js +0 -40
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +0 -67
- package/teamMembership.js +0 -37
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +3 -59
- package/teamRepository.js +0 -35
- package/teamRepository.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +0 -36
- package/teamSyncGroupMapping.js +0 -15
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +0 -86
- package/types/output.d.ts +16 -237
- package/userGpgKey.d.ts +0 -40
- package/userGpgKey.js +0 -22
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +0 -30
- package/userInvitationAccepter.js +0 -21
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +0 -50
- package/userSshKey.js +0 -26
- package/userSshKey.js.map +1 -1
|
@@ -1,32 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* This resource allows you to create and manage an autolink reference for a single repository.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as github from "@pulumi/github";
|
|
10
|
-
*
|
|
11
|
-
* const repo = new github.Repository("repo", {
|
|
12
|
-
* description: "GitHub repo managed by Terraform",
|
|
13
|
-
* "private": false,
|
|
14
|
-
* });
|
|
15
|
-
* const auto = new github.RepositoryAutolinkReference("auto", {
|
|
16
|
-
* repository: repo.name,
|
|
17
|
-
* keyPrefix: "TICKET-",
|
|
18
|
-
* targetUrlTemplate: "https://hello.there/TICKET?query=<num>",
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* ## Import
|
|
23
|
-
*
|
|
24
|
-
* Autolink references can be imported using the `name` of the repository, combined with the `id` of the autolink reference and a `/` character for separating components, e.g.
|
|
25
|
-
*
|
|
26
|
-
* ```sh
|
|
27
|
-
* $ pulumi import github:index/repositoryAutolinkReference:RepositoryAutolinkReference auto oof/123
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
2
|
export declare class RepositoryAutolinkReference extends pulumi.CustomResource {
|
|
31
3
|
/**
|
|
32
4
|
* Get an existing RepositoryAutolinkReference resource's state with the given name, ID, and optional extra
|
|
@@ -43,16 +15,13 @@ export declare class RepositoryAutolinkReference extends pulumi.CustomResource {
|
|
|
43
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
16
|
*/
|
|
45
17
|
static isInstance(obj: any): obj is RepositoryAutolinkReference;
|
|
46
|
-
/**
|
|
47
|
-
* An etag representing the autolink reference object.
|
|
48
|
-
*/
|
|
49
18
|
readonly etag: pulumi.Output<string>;
|
|
50
19
|
/**
|
|
51
|
-
* This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit
|
|
20
|
+
* This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit
|
|
52
21
|
*/
|
|
53
22
|
readonly keyPrefix: pulumi.Output<string>;
|
|
54
23
|
/**
|
|
55
|
-
* The repository
|
|
24
|
+
* The repository name
|
|
56
25
|
*/
|
|
57
26
|
readonly repository: pulumi.Output<string>;
|
|
58
27
|
/**
|
|
@@ -72,16 +41,13 @@ export declare class RepositoryAutolinkReference extends pulumi.CustomResource {
|
|
|
72
41
|
* Input properties used for looking up and filtering RepositoryAutolinkReference resources.
|
|
73
42
|
*/
|
|
74
43
|
export interface RepositoryAutolinkReferenceState {
|
|
75
|
-
/**
|
|
76
|
-
* An etag representing the autolink reference object.
|
|
77
|
-
*/
|
|
78
44
|
etag?: pulumi.Input<string>;
|
|
79
45
|
/**
|
|
80
|
-
* This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit
|
|
46
|
+
* This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit
|
|
81
47
|
*/
|
|
82
48
|
keyPrefix?: pulumi.Input<string>;
|
|
83
49
|
/**
|
|
84
|
-
* The repository
|
|
50
|
+
* The repository name
|
|
85
51
|
*/
|
|
86
52
|
repository?: pulumi.Input<string>;
|
|
87
53
|
/**
|
|
@@ -94,11 +60,11 @@ export interface RepositoryAutolinkReferenceState {
|
|
|
94
60
|
*/
|
|
95
61
|
export interface RepositoryAutolinkReferenceArgs {
|
|
96
62
|
/**
|
|
97
|
-
* This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit
|
|
63
|
+
* This prefix appended by a number will generate a link any time it is found in an issue, pull request, or commit
|
|
98
64
|
*/
|
|
99
65
|
keyPrefix: pulumi.Input<string>;
|
|
100
66
|
/**
|
|
101
|
-
* The repository
|
|
67
|
+
* The repository name
|
|
102
68
|
*/
|
|
103
69
|
repository: pulumi.Input<string>;
|
|
104
70
|
/**
|
|
@@ -5,34 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryAutolinkReference = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* This resource allows you to create and manage an autolink reference for a single repository.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as github from "@pulumi/github";
|
|
16
|
-
*
|
|
17
|
-
* const repo = new github.Repository("repo", {
|
|
18
|
-
* description: "GitHub repo managed by Terraform",
|
|
19
|
-
* "private": false,
|
|
20
|
-
* });
|
|
21
|
-
* const auto = new github.RepositoryAutolinkReference("auto", {
|
|
22
|
-
* repository: repo.name,
|
|
23
|
-
* keyPrefix: "TICKET-",
|
|
24
|
-
* targetUrlTemplate: "https://hello.there/TICKET?query=<num>",
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* ## Import
|
|
29
|
-
*
|
|
30
|
-
* Autolink references can be imported using the `name` of the repository, combined with the `id` of the autolink reference and a `/` character for separating components, e.g.
|
|
31
|
-
*
|
|
32
|
-
* ```sh
|
|
33
|
-
* $ pulumi import github:index/repositoryAutolinkReference:RepositoryAutolinkReference auto oof/123
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
8
|
class RepositoryAutolinkReference extends pulumi.CustomResource {
|
|
37
9
|
constructor(name, argsOrState, opts) {
|
|
38
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryAutolinkReference.js","sourceRoot":"","sources":["../repositoryAutolinkReference.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repositoryAutolinkReference.js","sourceRoot":"","sources":["../repositoryAutolinkReference.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAkDlE,YAAY,IAAY,EAAE,WAAgF,EAAE,IAAmC;QAC3I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IA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CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;IA5ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,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,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;;AA1BL,kEA8EC;AAhEG,gBAAgB;AACO,wCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -1,46 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a GitHub repository collaborator resource.
|
|
4
|
-
*
|
|
5
|
-
* This resource allows you to add/remove collaborators from repositories in your
|
|
6
|
-
* organization or personal account. For organization repositories, collaborators can
|
|
7
|
-
* have explicit (and differing levels of) read, write, or administrator access to
|
|
8
|
-
* specific repositories, without giving the user full organization membership.
|
|
9
|
-
* For personal repositories, collaborators can only be granted write
|
|
10
|
-
* (implictly includes read) permission.
|
|
11
|
-
*
|
|
12
|
-
* When applied, an invitation will be sent to the user to become a collaborator
|
|
13
|
-
* on a repository. When destroyed, either the invitation will be cancelled or the
|
|
14
|
-
* collaborator will be removed from the repository.
|
|
15
|
-
*
|
|
16
|
-
* Further documentation on GitHub collaborators:
|
|
17
|
-
*
|
|
18
|
-
* - [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)
|
|
19
|
-
* - [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)
|
|
20
|
-
* - [Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)
|
|
21
|
-
*
|
|
22
|
-
* ## Example Usage
|
|
23
|
-
*
|
|
24
|
-
* ```typescript
|
|
25
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
-
* import * as github from "@pulumi/github";
|
|
27
|
-
*
|
|
28
|
-
* // Add a collaborator to a repository
|
|
29
|
-
* const aRepoCollaborator = new github.RepositoryCollaborator("a_repo_collaborator", {
|
|
30
|
-
* permission: "admin",
|
|
31
|
-
* repository: "our-cool-repo",
|
|
32
|
-
* username: "SomeUser",
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* ## Import
|
|
37
|
-
*
|
|
38
|
-
* GitHub Repository Collaborators can be imported using an ID made up of `repository:username`, e.g.
|
|
39
|
-
*
|
|
40
|
-
* ```sh
|
|
41
|
-
* $ pulumi import github:index/repositoryCollaborator:RepositoryCollaborator collaborator terraform:someuser
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
2
|
export declare class RepositoryCollaborator extends pulumi.CustomResource {
|
|
45
3
|
/**
|
|
46
4
|
* Get an existing RepositoryCollaborator resource's state with the given name, ID, and optional extra
|
|
@@ -57,27 +15,10 @@ export declare class RepositoryCollaborator extends pulumi.CustomResource {
|
|
|
57
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
16
|
*/
|
|
59
17
|
static isInstance(obj: any): obj is RepositoryCollaborator;
|
|
60
|
-
/**
|
|
61
|
-
* ID of the invitation to be used in `github.UserInvitationAccepter`
|
|
62
|
-
*/
|
|
63
18
|
readonly invitationId: pulumi.Output<string>;
|
|
64
|
-
/**
|
|
65
|
-
* The permission of the outside collaborator for the repository.
|
|
66
|
-
* Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories.
|
|
67
|
-
* Must be `push` for personal repositories. Defaults to `push`.
|
|
68
|
-
*/
|
|
69
19
|
readonly permission: pulumi.Output<string | undefined>;
|
|
70
|
-
/**
|
|
71
|
-
* Suppress plan diffs for `triage` and `maintain`. Defaults to `false`.
|
|
72
|
-
*/
|
|
73
20
|
readonly permissionDiffSuppression: pulumi.Output<boolean | undefined>;
|
|
74
|
-
/**
|
|
75
|
-
* The GitHub repository
|
|
76
|
-
*/
|
|
77
21
|
readonly repository: pulumi.Output<string>;
|
|
78
|
-
/**
|
|
79
|
-
* The user to add to the repository as a collaborator.
|
|
80
|
-
*/
|
|
81
22
|
readonly username: pulumi.Output<string>;
|
|
82
23
|
/**
|
|
83
24
|
* Create a RepositoryCollaborator resource with the given unique name, arguments, and options.
|
|
@@ -92,49 +33,18 @@ export declare class RepositoryCollaborator extends pulumi.CustomResource {
|
|
|
92
33
|
* Input properties used for looking up and filtering RepositoryCollaborator resources.
|
|
93
34
|
*/
|
|
94
35
|
export interface RepositoryCollaboratorState {
|
|
95
|
-
/**
|
|
96
|
-
* ID of the invitation to be used in `github.UserInvitationAccepter`
|
|
97
|
-
*/
|
|
98
36
|
invitationId?: pulumi.Input<string>;
|
|
99
|
-
/**
|
|
100
|
-
* The permission of the outside collaborator for the repository.
|
|
101
|
-
* Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories.
|
|
102
|
-
* Must be `push` for personal repositories. Defaults to `push`.
|
|
103
|
-
*/
|
|
104
37
|
permission?: pulumi.Input<string>;
|
|
105
|
-
/**
|
|
106
|
-
* Suppress plan diffs for `triage` and `maintain`. Defaults to `false`.
|
|
107
|
-
*/
|
|
108
38
|
permissionDiffSuppression?: pulumi.Input<boolean>;
|
|
109
|
-
/**
|
|
110
|
-
* The GitHub repository
|
|
111
|
-
*/
|
|
112
39
|
repository?: pulumi.Input<string>;
|
|
113
|
-
/**
|
|
114
|
-
* The user to add to the repository as a collaborator.
|
|
115
|
-
*/
|
|
116
40
|
username?: pulumi.Input<string>;
|
|
117
41
|
}
|
|
118
42
|
/**
|
|
119
43
|
* The set of arguments for constructing a RepositoryCollaborator resource.
|
|
120
44
|
*/
|
|
121
45
|
export interface RepositoryCollaboratorArgs {
|
|
122
|
-
/**
|
|
123
|
-
* The permission of the outside collaborator for the repository.
|
|
124
|
-
* Must be one of `pull`, `push`, `maintain`, `triage` or `admin` for organization-owned repositories.
|
|
125
|
-
* Must be `push` for personal repositories. Defaults to `push`.
|
|
126
|
-
*/
|
|
127
46
|
permission?: pulumi.Input<string>;
|
|
128
|
-
/**
|
|
129
|
-
* Suppress plan diffs for `triage` and `maintain`. Defaults to `false`.
|
|
130
|
-
*/
|
|
131
47
|
permissionDiffSuppression?: pulumi.Input<boolean>;
|
|
132
|
-
/**
|
|
133
|
-
* The GitHub repository
|
|
134
|
-
*/
|
|
135
48
|
repository: pulumi.Input<string>;
|
|
136
|
-
/**
|
|
137
|
-
* The user to add to the repository as a collaborator.
|
|
138
|
-
*/
|
|
139
49
|
username: pulumi.Input<string>;
|
|
140
50
|
}
|
|
@@ -5,48 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryCollaborator = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a GitHub repository collaborator resource.
|
|
10
|
-
*
|
|
11
|
-
* This resource allows you to add/remove collaborators from repositories in your
|
|
12
|
-
* organization or personal account. For organization repositories, collaborators can
|
|
13
|
-
* have explicit (and differing levels of) read, write, or administrator access to
|
|
14
|
-
* specific repositories, without giving the user full organization membership.
|
|
15
|
-
* For personal repositories, collaborators can only be granted write
|
|
16
|
-
* (implictly includes read) permission.
|
|
17
|
-
*
|
|
18
|
-
* When applied, an invitation will be sent to the user to become a collaborator
|
|
19
|
-
* on a repository. When destroyed, either the invitation will be cancelled or the
|
|
20
|
-
* collaborator will be removed from the repository.
|
|
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
|
-
* ## Example Usage
|
|
29
|
-
*
|
|
30
|
-
* ```typescript
|
|
31
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
-
* import * as github from "@pulumi/github";
|
|
33
|
-
*
|
|
34
|
-
* // Add a collaborator to a repository
|
|
35
|
-
* const aRepoCollaborator = new github.RepositoryCollaborator("a_repo_collaborator", {
|
|
36
|
-
* permission: "admin",
|
|
37
|
-
* repository: "our-cool-repo",
|
|
38
|
-
* username: "SomeUser",
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* ## Import
|
|
43
|
-
*
|
|
44
|
-
* GitHub Repository Collaborators can be imported using an ID made up of `repository:username`, e.g.
|
|
45
|
-
*
|
|
46
|
-
* ```sh
|
|
47
|
-
* $ pulumi import github:index/repositoryCollaborator:RepositoryCollaborator collaborator terraform:someuser
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
8
|
class RepositoryCollaborator extends pulumi.CustomResource {
|
|
51
9
|
constructor(name, argsOrState, opts) {
|
|
52
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryCollaborator.js","sourceRoot":"","sources":["../repositoryCollaborator.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repositoryCollaborator.js","sourceRoot":"","sources":["../repositoryCollaborator.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IA0C7D,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,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,2BAA2B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClG,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,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,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;;AA1BL,wDAqEC;AAvDG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
|
package/repositoryDeployKey.d.ts
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a GitHub repository deploy key resource.
|
|
4
|
-
*
|
|
5
|
-
* A deploy key is an SSH key that is stored on your server and grants
|
|
6
|
-
* access to a single GitHub repository. This key is attached directly to the repository instead of to a personal user
|
|
7
|
-
* account.
|
|
8
|
-
*
|
|
9
|
-
* This resource allows you to add/remove repository deploy keys.
|
|
10
|
-
*
|
|
11
|
-
* Further documentation on GitHub repository deploy keys:
|
|
12
|
-
* - [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)
|
|
13
|
-
*
|
|
14
|
-
* ## Example Usage
|
|
15
|
-
*
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as github from "@pulumi/github";
|
|
19
|
-
*
|
|
20
|
-
* // Add a deploy key
|
|
21
|
-
* const exampleRepositoryDeployKey = new github.RepositoryDeployKey("example_repository_deploy_key", {
|
|
22
|
-
* key: "ssh-rsa AAA...",
|
|
23
|
-
* readOnly: false,
|
|
24
|
-
* repository: "test-repo",
|
|
25
|
-
* title: "Repository test key",
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Import
|
|
30
|
-
*
|
|
31
|
-
* Repository deploy keys can be imported using a colon-separated pair of repository name and GitHub's key id. The latter can be obtained by GitHub's SDKs and API.
|
|
32
|
-
*
|
|
33
|
-
* ```sh
|
|
34
|
-
* $ pulumi import github:index/repositoryDeployKey:RepositoryDeployKey foo test-repo:23824728
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
2
|
export declare class RepositoryDeployKey extends pulumi.CustomResource {
|
|
38
3
|
/**
|
|
39
4
|
* Get an existing RepositoryDeployKey resource's state with the given name, ID, and optional extra
|
|
@@ -51,21 +16,9 @@ export declare class RepositoryDeployKey extends pulumi.CustomResource {
|
|
|
51
16
|
*/
|
|
52
17
|
static isInstance(obj: any): obj is RepositoryDeployKey;
|
|
53
18
|
readonly etag: pulumi.Output<string>;
|
|
54
|
-
/**
|
|
55
|
-
* A SSH key.
|
|
56
|
-
*/
|
|
57
19
|
readonly key: pulumi.Output<string>;
|
|
58
|
-
/**
|
|
59
|
-
* A boolean qualifying the key to be either read only or read/write.
|
|
60
|
-
*/
|
|
61
20
|
readonly readOnly: pulumi.Output<boolean | undefined>;
|
|
62
|
-
/**
|
|
63
|
-
* Name of the GitHub repository.
|
|
64
|
-
*/
|
|
65
21
|
readonly repository: pulumi.Output<string>;
|
|
66
|
-
/**
|
|
67
|
-
* A title.
|
|
68
|
-
*/
|
|
69
22
|
readonly title: pulumi.Output<string>;
|
|
70
23
|
/**
|
|
71
24
|
* Create a RepositoryDeployKey resource with the given unique name, arguments, and options.
|
|
@@ -81,41 +34,17 @@ export declare class RepositoryDeployKey extends pulumi.CustomResource {
|
|
|
81
34
|
*/
|
|
82
35
|
export interface RepositoryDeployKeyState {
|
|
83
36
|
etag?: pulumi.Input<string>;
|
|
84
|
-
/**
|
|
85
|
-
* A SSH key.
|
|
86
|
-
*/
|
|
87
37
|
key?: pulumi.Input<string>;
|
|
88
|
-
/**
|
|
89
|
-
* A boolean qualifying the key to be either read only or read/write.
|
|
90
|
-
*/
|
|
91
38
|
readOnly?: pulumi.Input<boolean>;
|
|
92
|
-
/**
|
|
93
|
-
* Name of the GitHub repository.
|
|
94
|
-
*/
|
|
95
39
|
repository?: pulumi.Input<string>;
|
|
96
|
-
/**
|
|
97
|
-
* A title.
|
|
98
|
-
*/
|
|
99
40
|
title?: pulumi.Input<string>;
|
|
100
41
|
}
|
|
101
42
|
/**
|
|
102
43
|
* The set of arguments for constructing a RepositoryDeployKey resource.
|
|
103
44
|
*/
|
|
104
45
|
export interface RepositoryDeployKeyArgs {
|
|
105
|
-
/**
|
|
106
|
-
* A SSH key.
|
|
107
|
-
*/
|
|
108
46
|
key: pulumi.Input<string>;
|
|
109
|
-
/**
|
|
110
|
-
* A boolean qualifying the key to be either read only or read/write.
|
|
111
|
-
*/
|
|
112
47
|
readOnly?: pulumi.Input<boolean>;
|
|
113
|
-
/**
|
|
114
|
-
* Name of the GitHub repository.
|
|
115
|
-
*/
|
|
116
48
|
repository: pulumi.Input<string>;
|
|
117
|
-
/**
|
|
118
|
-
* A title.
|
|
119
|
-
*/
|
|
120
49
|
title: pulumi.Input<string>;
|
|
121
50
|
}
|
package/repositoryDeployKey.js
CHANGED
|
@@ -5,41 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryDeployKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a GitHub repository deploy key resource.
|
|
10
|
-
*
|
|
11
|
-
* A deploy key is an SSH key that is stored on your server and grants
|
|
12
|
-
* access to a single GitHub repository. This key is attached directly to the repository instead of to a personal user
|
|
13
|
-
* account.
|
|
14
|
-
*
|
|
15
|
-
* This resource allows you to add/remove repository deploy keys.
|
|
16
|
-
*
|
|
17
|
-
* Further documentation on GitHub repository deploy keys:
|
|
18
|
-
* - [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)
|
|
19
|
-
*
|
|
20
|
-
* ## Example Usage
|
|
21
|
-
*
|
|
22
|
-
* ```typescript
|
|
23
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
-
* import * as github from "@pulumi/github";
|
|
25
|
-
*
|
|
26
|
-
* // Add a deploy key
|
|
27
|
-
* const exampleRepositoryDeployKey = new github.RepositoryDeployKey("example_repository_deploy_key", {
|
|
28
|
-
* key: "ssh-rsa AAA...",
|
|
29
|
-
* readOnly: false,
|
|
30
|
-
* repository: "test-repo",
|
|
31
|
-
* title: "Repository test key",
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Import
|
|
36
|
-
*
|
|
37
|
-
* Repository deploy keys can be imported using a colon-separated pair of repository name and GitHub's key id. The latter can be obtained by GitHub's SDKs and API.
|
|
38
|
-
*
|
|
39
|
-
* ```sh
|
|
40
|
-
* $ pulumi import github:index/repositoryDeployKey:RepositoryDeployKey foo test-repo:23824728
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
8
|
class RepositoryDeployKey extends pulumi.CustomResource {
|
|
44
9
|
constructor(name, argsOrState, opts) {
|
|
45
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryDeployKey.js","sourceRoot":"","sources":["../repositoryDeployKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repositoryDeployKey.js","sourceRoot":"","sources":["../repositoryDeployKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IA0C1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,MAAM,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IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAwEC;AA1DG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
|
@@ -1,39 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* This resource allows you to create and manage environments for a GitHub repository.
|
|
5
|
-
*
|
|
6
|
-
* ## Example Usage
|
|
7
|
-
*
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
-
* import * as github from "@pulumi/github";
|
|
11
|
-
*
|
|
12
|
-
* const current = github.getUser({
|
|
13
|
-
* username: "",
|
|
14
|
-
* });
|
|
15
|
-
* const exampleRepository = new github.Repository("exampleRepository", {description: "My awesome codebase"});
|
|
16
|
-
* const exampleRepositoryEnvironment = new github.RepositoryEnvironment("exampleRepositoryEnvironment", {
|
|
17
|
-
* environment: "example",
|
|
18
|
-
* repository: exampleRepository.name,
|
|
19
|
-
* reviewers: [{
|
|
20
|
-
* users: [current.then(current => current.id)],
|
|
21
|
-
* }],
|
|
22
|
-
* deploymentBranchPolicy: {
|
|
23
|
-
* protectedBranches: true,
|
|
24
|
-
* customBranchPolicies: false,
|
|
25
|
-
* },
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Import
|
|
30
|
-
*
|
|
31
|
-
* GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
|
|
32
|
-
*
|
|
33
|
-
* ```sh
|
|
34
|
-
* $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
3
|
export declare class RepositoryEnvironment extends pulumi.CustomResource {
|
|
38
4
|
/**
|
|
39
5
|
* Get an existing RepositoryEnvironment resource's state with the given name, ID, and optional extra
|
|
@@ -51,18 +17,9 @@ export declare class RepositoryEnvironment extends pulumi.CustomResource {
|
|
|
51
17
|
*/
|
|
52
18
|
static isInstance(obj: any): obj is RepositoryEnvironment;
|
|
53
19
|
readonly deploymentBranchPolicy: pulumi.Output<outputs.RepositoryEnvironmentDeploymentBranchPolicy | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* The name of the environment.
|
|
56
|
-
*/
|
|
57
20
|
readonly environment: pulumi.Output<string>;
|
|
58
|
-
/**
|
|
59
|
-
* The repository of the environment.
|
|
60
|
-
*/
|
|
61
21
|
readonly repository: pulumi.Output<string>;
|
|
62
22
|
readonly reviewers: pulumi.Output<outputs.RepositoryEnvironmentReviewer[] | undefined>;
|
|
63
|
-
/**
|
|
64
|
-
* Amount of time to delay a job after the job is initially triggered.
|
|
65
|
-
*/
|
|
66
23
|
readonly waitTimer: pulumi.Output<number | undefined>;
|
|
67
24
|
/**
|
|
68
25
|
* Create a RepositoryEnvironment resource with the given unique name, arguments, and options.
|
|
@@ -78,18 +35,9 @@ export declare class RepositoryEnvironment extends pulumi.CustomResource {
|
|
|
78
35
|
*/
|
|
79
36
|
export interface RepositoryEnvironmentState {
|
|
80
37
|
deploymentBranchPolicy?: pulumi.Input<inputs.RepositoryEnvironmentDeploymentBranchPolicy>;
|
|
81
|
-
/**
|
|
82
|
-
* The name of the environment.
|
|
83
|
-
*/
|
|
84
38
|
environment?: pulumi.Input<string>;
|
|
85
|
-
/**
|
|
86
|
-
* The repository of the environment.
|
|
87
|
-
*/
|
|
88
39
|
repository?: pulumi.Input<string>;
|
|
89
40
|
reviewers?: pulumi.Input<pulumi.Input<inputs.RepositoryEnvironmentReviewer>[]>;
|
|
90
|
-
/**
|
|
91
|
-
* Amount of time to delay a job after the job is initially triggered.
|
|
92
|
-
*/
|
|
93
41
|
waitTimer?: pulumi.Input<number>;
|
|
94
42
|
}
|
|
95
43
|
/**
|
|
@@ -97,17 +45,8 @@ export interface RepositoryEnvironmentState {
|
|
|
97
45
|
*/
|
|
98
46
|
export interface RepositoryEnvironmentArgs {
|
|
99
47
|
deploymentBranchPolicy?: pulumi.Input<inputs.RepositoryEnvironmentDeploymentBranchPolicy>;
|
|
100
|
-
/**
|
|
101
|
-
* The name of the environment.
|
|
102
|
-
*/
|
|
103
48
|
environment: pulumi.Input<string>;
|
|
104
|
-
/**
|
|
105
|
-
* The repository of the environment.
|
|
106
|
-
*/
|
|
107
49
|
repository: pulumi.Input<string>;
|
|
108
50
|
reviewers?: pulumi.Input<pulumi.Input<inputs.RepositoryEnvironmentReviewer>[]>;
|
|
109
|
-
/**
|
|
110
|
-
* Amount of time to delay a job after the job is initially triggered.
|
|
111
|
-
*/
|
|
112
51
|
waitTimer?: pulumi.Input<number>;
|
|
113
52
|
}
|
package/repositoryEnvironment.js
CHANGED
|
@@ -5,40 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryEnvironment = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* This resource allows you to create and manage environments for a GitHub repository.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as github from "@pulumi/github";
|
|
16
|
-
*
|
|
17
|
-
* const current = github.getUser({
|
|
18
|
-
* username: "",
|
|
19
|
-
* });
|
|
20
|
-
* const exampleRepository = new github.Repository("exampleRepository", {description: "My awesome codebase"});
|
|
21
|
-
* const exampleRepositoryEnvironment = new github.RepositoryEnvironment("exampleRepositoryEnvironment", {
|
|
22
|
-
* environment: "example",
|
|
23
|
-
* repository: exampleRepository.name,
|
|
24
|
-
* reviewers: [{
|
|
25
|
-
* users: [current.then(current => current.id)],
|
|
26
|
-
* }],
|
|
27
|
-
* deploymentBranchPolicy: {
|
|
28
|
-
* protectedBranches: true,
|
|
29
|
-
* customBranchPolicies: false,
|
|
30
|
-
* },
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* ## Import
|
|
35
|
-
*
|
|
36
|
-
* GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
|
|
37
|
-
*
|
|
38
|
-
* ```sh
|
|
39
|
-
* $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
8
|
class RepositoryEnvironment extends pulumi.CustomResource {
|
|
43
9
|
constructor(name, argsOrState, opts) {
|
|
44
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryEnvironment.js","sourceRoot":"","sources":["../repositoryEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"repositoryEnvironment.js","sourceRoot":"","sources":["../repositoryEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IA0C5D,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;aAAM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