diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml index ea5ce456..4b953433 100644 --- a/.goreleaser.prerelease.yml +++ b/.goreleaser.prerelease.yml @@ -24,7 +24,7 @@ builds: - windows - linux ldflags: - - -X github.com/pulumi/pulumi-github/provider/pkg/version.Version={{.Tag}} + - -X github.com/pulumi/pulumi-github/provider/v2/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-github/ changelog: skip: true diff --git a/.goreleaser.yml b/.goreleaser.yml index 097bb8f8..7bad2f03 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,7 +24,7 @@ builds: - windows - linux ldflags: - - -X github.com/pulumi/pulumi-github/provider/pkg/version.Version={{.Tag}} + - -X github.com/pulumi/pulumi-github/provider/v2/pkg/version.Version={{.Tag}} main: ./cmd/pulumi-resource-github/ changelog: skip: true diff --git a/Makefile b/Makefile index 965e551f..9c1ed30c 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ ORG := pulumi PROJECT := github.com/${ORG}/pulumi-${PACK} NODE_MODULE_NAME := @pulumi/${PACK} TF_NAME := ${PACK} -PROVIDER_PATH := provider +PROVIDER_PATH := provider/v2 VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version TFGEN := pulumi-tfgen-${PACK} diff --git a/provider/cmd/pulumi-resource-github/main.go b/provider/cmd/pulumi-resource-github/main.go index 3a8fb595..86e1d64b 100644 --- a/provider/cmd/pulumi-resource-github/main.go +++ b/provider/cmd/pulumi-resource-github/main.go @@ -19,8 +19,8 @@ package main import ( "github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge" - github "github.com/pulumi/pulumi-github/provider" - "github.com/pulumi/pulumi-github/provider/pkg/version" + github "github.com/pulumi/pulumi-github/provider/v2" + "github.com/pulumi/pulumi-github/provider/v2/pkg/version" ) func main() { diff --git a/provider/cmd/pulumi-resource-github/schema.json b/provider/cmd/pulumi-resource-github/schema.json index 9bdb62a2..d2ab9625 100644 --- a/provider/cmd/pulumi-resource-github/schema.json +++ b/provider/cmd/pulumi-resource-github/schema.json @@ -662,7 +662,7 @@ } }, "github:index/branch:Branch": { - "description": "This resource allows you to create and manage branches within your repository.\n\nAdditional constraints can be applied to ensure your branch is created from\nanother branch or commit.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst development = new github.Branch(\"development\", {\n branch: \"development\",\n repository: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ndevelopment = github.Branch(\"development\",\n branch=\"development\",\n repository=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var development = new Github.Branch(\"development\", new Github.BranchArgs\n {\n Branch = \"development\",\n Repository = \"example\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewBranch(ctx, \"development\", \u0026github.BranchArgs{\n\t\t\tBranch: pulumi.String(\"development\"),\n\t\t\tRepository: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage branches within your repository.\n\nAdditional constraints can be applied to ensure your branch is created from\nanother branch or commit.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst development = new github.Branch(\"development\", {\n branch: \"development\",\n repository: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ndevelopment = github.Branch(\"development\",\n branch=\"development\",\n repository=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var development = new Github.Branch(\"development\", new Github.BranchArgs\n {\n Branch = \"development\",\n Repository = \"example\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewBranch(ctx, \"development\", \u0026github.BranchArgs{\n\t\t\tBranch: pulumi.String(\"development\"),\n\t\t\tRepository: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "branch": { "type": "string", @@ -971,7 +971,7 @@ } }, "github:index/membership:Membership": { - "description": "Provides a GitHub membership resource.\n\nThis resource allows you to add/remove users from your organization. When applied,\nan invitation will be sent to the user to become part of the organization. When\ndestroyed, either the invitation will be cancelled or the user will be removed.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a user to the organization\nconst membershipForSomeUser = new github.Membership(\"membership_for_some_user\", {\n role: \"member\",\n username: \"SomeUser\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a user to the organization\nmembership_for_some_user = github.Membership(\"membershipForSomeUser\",\n role=\"member\",\n username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a user to the organization\n var membershipForSomeUser = new Github.Membership(\"membershipForSomeUser\", new Github.MembershipArgs\n {\n Role = \"member\",\n Username = \"SomeUser\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewMembership(ctx, \"membershipForSomeUser\", \u0026github.MembershipArgs{\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a GitHub membership resource.\n\nThis resource allows you to add/remove users from your organization. When applied,\nan invitation will be sent to the user to become part of the organization. When\ndestroyed, either the invitation will be cancelled or the user will be removed.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a user to the organization\nconst membershipForSomeUser = new github.Membership(\"membership_for_some_user\", {\n role: \"member\",\n username: \"SomeUser\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a user to the organization\nmembership_for_some_user = github.Membership(\"membershipForSomeUser\",\n role=\"member\",\n username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a user to the organization\n var membershipForSomeUser = new Github.Membership(\"membershipForSomeUser\", new Github.MembershipArgs\n {\n Role = \"member\",\n Username = \"SomeUser\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewMembership(ctx, \"membershipForSomeUser\", \u0026github.MembershipArgs{\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "etag": { "type": "string" @@ -1021,7 +1021,7 @@ } }, "github:index/organizationBlock:OrganizationBlock": { - "description": "This resource allows you to create and manage blocks for GitHub organizations.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationBlock(\"example\", {\n username: \"paultyng\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationBlock(\"example\", username=\"paultyng\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.OrganizationBlock(\"example\", new Github.OrganizationBlockArgs\n {\n Username = \"paultyng\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewOrganizationBlock(ctx, \"example\", \u0026github.OrganizationBlockArgs{\n\t\t\tUsername: pulumi.String(\"paultyng\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage blocks for GitHub organizations.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.OrganizationBlock(\"example\", {\n username: \"paultyng\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.OrganizationBlock(\"example\", username=\"paultyng\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.OrganizationBlock(\"example\", new Github.OrganizationBlockArgs\n {\n Username = \"paultyng\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewOrganizationBlock(ctx, \"example\", \u0026github.OrganizationBlockArgs{\n\t\t\tUsername: pulumi.String(\"paultyng\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "etag": { "type": "string" @@ -1059,7 +1059,7 @@ } }, "github:index/organizationProject:OrganizationProject": { - "description": "This resource allows you to create and manage projects for GitHub organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst project = new github.OrganizationProject(\"project\", {\n body: \"This is a organization project.\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nproject = github.OrganizationProject(\"project\", body=\"This is a organization project.\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var project = new Github.OrganizationProject(\"project\", new Github.OrganizationProjectArgs\n {\n Body = \"This is a organization project.\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewOrganizationProject(ctx, \"project\", \u0026github.OrganizationProjectArgs{\n\t\t\tBody: pulumi.String(\"This is a organization project.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage projects for GitHub organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst project = new github.OrganizationProject(\"project\", {\n body: \"This is a organization project.\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nproject = github.OrganizationProject(\"project\", body=\"This is a organization project.\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var project = new Github.OrganizationProject(\"project\", new Github.OrganizationProjectArgs\n {\n Body = \"This is a organization project.\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewOrganizationProject(ctx, \"project\", \u0026github.OrganizationProjectArgs{\n\t\t\tBody: pulumi.String(\"This is a organization project.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "body": { "type": "string", @@ -1115,7 +1115,7 @@ } }, "github:index/organizationWebhook:OrganizationWebhook": { - "description": "This resource allows you to create and manage webhooks for GitHub organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst foo = new github.OrganizationWebhook(\"foo\", {\n active: false,\n configuration: {\n contentType: \"form\",\n insecureSsl: false,\n url: \"https://google.de/\",\n },\n events: [\"issues\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nfoo = github.OrganizationWebhook(\"foo\",\n active=False,\n configuration=github.OrganizationWebhookConfigurationArgs(\n content_type=\"form\",\n insecure_ssl=False,\n url=\"https://google.de/\",\n ),\n events=[\"issues\"])\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var foo = new Github.OrganizationWebhook(\"foo\", new Github.OrganizationWebhookArgs\n {\n Active = false,\n Configuration = new Github.Inputs.OrganizationWebhookConfigurationArgs\n {\n ContentType = \"form\",\n InsecureSsl = false,\n Url = \"https://google.de/\",\n },\n Events = \n {\n \"issues\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewOrganizationWebhook(ctx, \"foo\", \u0026github.OrganizationWebhookArgs{\n\t\t\tActive: pulumi.Bool(false),\n\t\t\tConfiguration: \u0026github.OrganizationWebhookConfigurationArgs{\n\t\t\t\tContentType: pulumi.String(\"form\"),\n\t\t\t\tInsecureSsl: pulumi.Bool(false),\n\t\t\t\tUrl: pulumi.String(\"https://google.de/\"),\n\t\t\t},\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"issues\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage webhooks for GitHub organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst foo = new github.OrganizationWebhook(\"foo\", {\n active: false,\n configuration: {\n contentType: \"form\",\n insecureSsl: false,\n url: \"https://google.de/\",\n },\n events: [\"issues\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nfoo = github.OrganizationWebhook(\"foo\",\n active=False,\n configuration=github.OrganizationWebhookConfigurationArgs(\n content_type=\"form\",\n insecure_ssl=False,\n url=\"https://google.de/\",\n ),\n events=[\"issues\"])\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var foo = new Github.OrganizationWebhook(\"foo\", new Github.OrganizationWebhookArgs\n {\n Active = false,\n Configuration = new Github.Inputs.OrganizationWebhookConfigurationArgs\n {\n ContentType = \"form\",\n InsecureSsl = false,\n Url = \"https://google.de/\",\n },\n Events = \n {\n \"issues\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewOrganizationWebhook(ctx, \"foo\", \u0026github.OrganizationWebhookArgs{\n\t\t\tActive: pulumi.Bool(false),\n\t\t\tConfiguration: \u0026github.OrganizationWebhookConfigurationArgs{\n\t\t\t\tContentType: pulumi.String(\"form\"),\n\t\t\t\tInsecureSsl: pulumi.Bool(false),\n\t\t\t\tUrl: pulumi.String(\"https://google.de/\"),\n\t\t\t},\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"issues\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "active": { "type": "boolean", @@ -1195,7 +1195,7 @@ } }, "github:index/projectColumn:ProjectColumn": { - "description": "This resource allows you to create and manage columns for GitHub projects.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst project = new github.OrganizationProject(\"project\", {\n body: \"This is an organization project.\",\n});\nconst column = new github.ProjectColumn(\"column\", {\n projectId: project.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nproject = github.OrganizationProject(\"project\", body=\"This is an organization project.\")\ncolumn = github.ProjectColumn(\"column\", project_id=project.id)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var project = new Github.OrganizationProject(\"project\", new Github.OrganizationProjectArgs\n {\n Body = \"This is an organization project.\",\n });\n var column = new Github.ProjectColumn(\"column\", new Github.ProjectColumnArgs\n {\n ProjectId = project.Id,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproject, err := github.NewOrganizationProject(ctx, \"project\", \u0026github.OrganizationProjectArgs{\n\t\t\tBody: pulumi.String(\"This is an organization project.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewProjectColumn(ctx, \"column\", \u0026github.ProjectColumnArgs{\n\t\t\tProjectId: project.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage columns for GitHub projects.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst project = new github.OrganizationProject(\"project\", {\n body: \"This is an organization project.\",\n});\nconst column = new github.ProjectColumn(\"column\", {\n projectId: project.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nproject = github.OrganizationProject(\"project\", body=\"This is an organization project.\")\ncolumn = github.ProjectColumn(\"column\", project_id=project.id)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var project = new Github.OrganizationProject(\"project\", new Github.OrganizationProjectArgs\n {\n Body = \"This is an organization project.\",\n });\n var column = new Github.ProjectColumn(\"column\", new Github.ProjectColumnArgs\n {\n ProjectId = project.Id,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproject, err := github.NewOrganizationProject(ctx, \"project\", \u0026github.OrganizationProjectArgs{\n\t\t\tBody: pulumi.String(\"This is an organization project.\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewProjectColumn(ctx, \"column\", \u0026github.ProjectColumnArgs{\n\t\t\tProjectId: project.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "etag": { "type": "string" @@ -1246,7 +1246,7 @@ } }, "github:index/repository:Repository": { - "description": "This resource allows you to create and manage repositories within your\nGitHub organization or personal account.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n description: \"My awesome codebase\",\n private: true,\n template: {\n owner: \"github\",\n repository: \"terraform-module-template\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n description=\"My awesome codebase\",\n private=True,\n template=github.RepositoryTemplateArgs(\n owner=\"github\",\n repository=\"terraform-module-template\",\n ))\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.Repository(\"example\", new Github.RepositoryArgs\n {\n Description = \"My awesome codebase\",\n Private = true,\n Template = new Github.Inputs.RepositoryTemplateArgs\n {\n Owner = \"github\",\n Repository = \"terraform-module-template\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t\tPrivate: pulumi.Bool(true),\n\t\t\tTemplate: \u0026github.RepositoryTemplateArgs{\n\t\t\t\tOwner: pulumi.String(\"github\"),\n\t\t\t\tRepository: pulumi.String(\"terraform-module-template\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage repositories within your\nGitHub organization or personal account.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n description: \"My awesome codebase\",\n private: true,\n template: {\n owner: \"github\",\n repository: \"terraform-module-template\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n description=\"My awesome codebase\",\n private=True,\n template=github.RepositoryTemplateArgs(\n owner=\"github\",\n repository=\"terraform-module-template\",\n ))\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.Repository(\"example\", new Github.RepositoryArgs\n {\n Description = \"My awesome codebase\",\n Private = true,\n Template = new Github.Inputs.RepositoryTemplateArgs\n {\n Owner = \"github\",\n Repository = \"terraform-module-template\",\n },\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t\tPrivate: pulumi.Bool(true),\n\t\t\tTemplate: \u0026github.RepositoryTemplateArgs{\n\t\t\t\tOwner: pulumi.String(\"github\"),\n\t\t\t\tRepository: pulumi.String(\"terraform-module-template\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "allowMergeCommit": { "type": "boolean", @@ -1597,7 +1597,7 @@ } }, "github:index/repositoryCollaborator:RepositoryCollaborator": { - "description": "Provides a GitHub repository collaborator resource.\n\nThis resource allows you to add/remove collaborators from repositories in your\norganization or personal account. For organization repositories, collaborators can\nhave explicit (and differing levels of) read, write, or administrator access to \nspecific repositories, without giving the user full organization membership. \nFor personal repositories, collaborators can only be granted write\n(implictly includes read) permission. \n\nWhen applied, an invitation will be sent to the user to become a collaborator\non a repository. When destroyed, either the invitation will be cancelled or the\ncollaborator will be removed from the repository.\n\nFurther documentation on GitHub collaborators:\n\n- [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)\n- [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)\n- [Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a collaborator to a repository\nconst aRepoCollaborator = new github.RepositoryCollaborator(\"a_repo_collaborator\", {\n permission: \"admin\",\n repository: \"our-cool-repo\",\n username: \"SomeUser\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a collaborator to a repository\na_repo_collaborator = github.RepositoryCollaborator(\"aRepoCollaborator\",\n permission=\"admin\",\n repository=\"our-cool-repo\",\n username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a collaborator to a repository\n var aRepoCollaborator = new Github.RepositoryCollaborator(\"aRepoCollaborator\", new Github.RepositoryCollaboratorArgs\n {\n Permission = \"admin\",\n Repository = \"our-cool-repo\",\n Username = \"SomeUser\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepositoryCollaborator(ctx, \"aRepoCollaborator\", \u0026github.RepositoryCollaboratorArgs{\n\t\t\tPermission: pulumi.String(\"admin\"),\n\t\t\tRepository: pulumi.String(\"our-cool-repo\"),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a GitHub repository collaborator resource.\n\nThis resource allows you to add/remove collaborators from repositories in your\norganization or personal account. For organization repositories, collaborators can\nhave explicit (and differing levels of) read, write, or administrator access to \nspecific repositories, without giving the user full organization membership. \nFor personal repositories, collaborators can only be granted write\n(implictly includes read) permission. \n\nWhen applied, an invitation will be sent to the user to become a collaborator\non a repository. When destroyed, either the invitation will be cancelled or the\ncollaborator will be removed from the repository.\n\nFurther documentation on GitHub collaborators:\n\n- [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)\n- [Adding outside collaborators to repositories in your organization](https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/)\n- [Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a collaborator to a repository\nconst aRepoCollaborator = new github.RepositoryCollaborator(\"a_repo_collaborator\", {\n permission: \"admin\",\n repository: \"our-cool-repo\",\n username: \"SomeUser\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a collaborator to a repository\na_repo_collaborator = github.RepositoryCollaborator(\"aRepoCollaborator\",\n permission=\"admin\",\n repository=\"our-cool-repo\",\n username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a collaborator to a repository\n var aRepoCollaborator = new Github.RepositoryCollaborator(\"aRepoCollaborator\", new Github.RepositoryCollaboratorArgs\n {\n Permission = \"admin\",\n Repository = \"our-cool-repo\",\n Username = \"SomeUser\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepositoryCollaborator(ctx, \"aRepoCollaborator\", \u0026github.RepositoryCollaboratorArgs{\n\t\t\tPermission: pulumi.String(\"admin\"),\n\t\t\tRepository: pulumi.String(\"our-cool-repo\"),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "invitationId": { "type": "string", @@ -1663,7 +1663,7 @@ } }, "github:index/repositoryDeployKey:RepositoryDeployKey": { - "description": "Provides a GitHub repository deploy key resource.\n\nA deploy key is an SSH key that is stored on your server and grants\naccess to a single GitHub repository. This key is attached directly to the repository instead of to a personal user\naccount.\n\nThis resource allows you to add/remove repository deploy keys.\n\nFurther documentation on GitHub repository deploy keys:\n- [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a deploy key\nconst exampleRepositoryDeployKey = new github.RepositoryDeployKey(\"example_repository_deploy_key\", {\n key: \"ssh-rsa AAA...\",\n readOnly: false,\n repository: \"test-repo\",\n title: \"Repository test key\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a deploy key\nexample_repository_deploy_key = github.RepositoryDeployKey(\"exampleRepositoryDeployKey\",\n key=\"ssh-rsa AAA...\",\n read_only=False,\n repository=\"test-repo\",\n title=\"Repository test key\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a deploy key\n var exampleRepositoryDeployKey = new Github.RepositoryDeployKey(\"exampleRepositoryDeployKey\", new Github.RepositoryDeployKeyArgs\n {\n Key = \"ssh-rsa AAA...\",\n ReadOnly = false,\n Repository = \"test-repo\",\n Title = \"Repository test key\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepositoryDeployKey(ctx, \"exampleRepositoryDeployKey\", \u0026github.RepositoryDeployKeyArgs{\n\t\t\tKey: pulumi.String(\"ssh-rsa AAA...\"),\n\t\t\tReadOnly: pulumi.Bool(false),\n\t\t\tRepository: pulumi.String(\"test-repo\"),\n\t\t\tTitle: pulumi.String(\"Repository test key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a GitHub repository deploy key resource.\n\nA deploy key is an SSH key that is stored on your server and grants\naccess to a single GitHub repository. This key is attached directly to the repository instead of to a personal user\naccount.\n\nThis resource allows you to add/remove repository deploy keys.\n\nFurther documentation on GitHub repository deploy keys:\n- [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a deploy key\nconst exampleRepositoryDeployKey = new github.RepositoryDeployKey(\"example_repository_deploy_key\", {\n key: \"ssh-rsa AAA...\",\n readOnly: false,\n repository: \"test-repo\",\n title: \"Repository test key\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a deploy key\nexample_repository_deploy_key = github.RepositoryDeployKey(\"exampleRepositoryDeployKey\",\n key=\"ssh-rsa AAA...\",\n read_only=False,\n repository=\"test-repo\",\n title=\"Repository test key\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a deploy key\n var exampleRepositoryDeployKey = new Github.RepositoryDeployKey(\"exampleRepositoryDeployKey\", new Github.RepositoryDeployKeyArgs\n {\n Key = \"ssh-rsa AAA...\",\n ReadOnly = false,\n Repository = \"test-repo\",\n Title = \"Repository test key\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepositoryDeployKey(ctx, \"exampleRepositoryDeployKey\", \u0026github.RepositoryDeployKeyArgs{\n\t\t\tKey: pulumi.String(\"ssh-rsa AAA...\"),\n\t\t\tReadOnly: pulumi.Bool(false),\n\t\t\tRepository: pulumi.String(\"test-repo\"),\n\t\t\tTitle: pulumi.String(\"Repository test key\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "etag": { "type": "string" @@ -1741,7 +1741,7 @@ } }, "github:index/repositoryFile:RepositoryFile": { - "description": "This resource allows you to create and manage files within a\nGitHub repository.\n\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst gitignore = new github.RepositoryFile(\"gitignore\", {\n content: \"**/*.tfstate\",\n file: \".gitignore\",\n repository: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ngitignore = github.RepositoryFile(\"gitignore\",\n content=\"**/*.tfstate\",\n file=\".gitignore\",\n repository=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var gitignore = new Github.RepositoryFile(\"gitignore\", new Github.RepositoryFileArgs\n {\n Content = \"**/*.tfstate\",\n File = \".gitignore\",\n Repository = \"example\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepositoryFile(ctx, \"gitignore\", \u0026github.RepositoryFileArgs{\n\t\t\tContent: pulumi.String(\"**/*.tfstate\"),\n\t\t\tFile: pulumi.String(\".gitignore\"),\n\t\t\tRepository: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage files within a\nGitHub repository.\n\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst gitignore = new github.RepositoryFile(\"gitignore\", {\n content: \"**/*.tfstate\",\n file: \".gitignore\",\n repository: \"example\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ngitignore = github.RepositoryFile(\"gitignore\",\n content=\"**/*.tfstate\",\n file=\".gitignore\",\n repository=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var gitignore = new Github.RepositoryFile(\"gitignore\", new Github.RepositoryFileArgs\n {\n Content = \"**/*.tfstate\",\n File = \".gitignore\",\n Repository = \"example\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewRepositoryFile(ctx, \"gitignore\", \u0026github.RepositoryFileArgs{\n\t\t\tContent: pulumi.String(\"**/*.tfstate\"),\n\t\t\tFile: pulumi.String(\".gitignore\"),\n\t\t\tRepository: pulumi.String(\"example\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "branch": { "type": "string", @@ -1860,7 +1860,7 @@ } }, "github:index/repositoryProject:RepositoryProject": { - "description": "This resource allows you to create and manage projects for GitHub repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n description: \"My awesome codebase\",\n hasProjects: true,\n});\nconst project = new github.RepositoryProject(\"project\", {\n body: \"This is a repository project.\",\n repository: example.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n description=\"My awesome codebase\",\n has_projects=True)\nproject = github.RepositoryProject(\"project\",\n body=\"This is a repository project.\",\n repository=example.name)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.Repository(\"example\", new Github.RepositoryArgs\n {\n Description = \"My awesome codebase\",\n HasProjects = true,\n });\n var project = new Github.RepositoryProject(\"project\", new Github.RepositoryProjectArgs\n {\n Body = \"This is a repository project.\",\n Repository = example.Name,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t\tHasProjects: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryProject(ctx, \"project\", \u0026github.RepositoryProjectArgs{\n\t\t\tBody: pulumi.String(\"This is a repository project.\"),\n\t\t\tRepository: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage projects for GitHub repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.Repository(\"example\", {\n description: \"My awesome codebase\",\n hasProjects: true,\n});\nconst project = new github.RepositoryProject(\"project\", {\n body: \"This is a repository project.\",\n repository: example.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.Repository(\"example\",\n description=\"My awesome codebase\",\n has_projects=True)\nproject = github.RepositoryProject(\"project\",\n body=\"This is a repository project.\",\n repository=example.name)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.Repository(\"example\", new Github.RepositoryArgs\n {\n Description = \"My awesome codebase\",\n HasProjects = true,\n });\n var project = new Github.RepositoryProject(\"project\", new Github.RepositoryProjectArgs\n {\n Body = \"This is a repository project.\",\n Repository = example.Name,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := github.NewRepository(ctx, \"example\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"My awesome codebase\"),\n\t\t\tHasProjects: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryProject(ctx, \"project\", \u0026github.RepositoryProjectArgs{\n\t\t\tBody: pulumi.String(\"This is a repository project.\"),\n\t\t\tRepository: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "body": { "type": "string", @@ -1932,7 +1932,7 @@ } }, "github:index/repositoryWebhook:RepositoryWebhook": { - "description": "This resource allows you to create and manage webhooks for repositories within your\nGitHub organization or personal account.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = new github.Repository(\"repo\", {\n description: \"Terraform acceptance tests\",\n homepageUrl: \"http://example.com/\",\n private: false,\n});\nconst foo = new github.RepositoryWebhook(\"foo\", {\n active: false,\n configuration: {\n contentType: \"form\",\n insecureSsl: false,\n url: \"https://google.de/\",\n },\n events: [\"issues\"],\n repository: repo.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.Repository(\"repo\",\n description=\"Terraform acceptance tests\",\n homepage_url=\"http://example.com/\",\n private=False)\nfoo = github.RepositoryWebhook(\"foo\",\n active=False,\n configuration=github.RepositoryWebhookConfigurationArgs(\n content_type=\"form\",\n insecure_ssl=False,\n url=\"https://google.de/\",\n ),\n events=[\"issues\"],\n repository=repo.name)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var repo = new Github.Repository(\"repo\", new Github.RepositoryArgs\n {\n Description = \"Terraform acceptance tests\",\n HomepageUrl = \"http://example.com/\",\n Private = false,\n });\n var foo = new Github.RepositoryWebhook(\"foo\", new Github.RepositoryWebhookArgs\n {\n Active = false,\n Configuration = new Github.Inputs.RepositoryWebhookConfigurationArgs\n {\n ContentType = \"form\",\n InsecureSsl = false,\n Url = \"https://google.de/\",\n },\n Events = \n {\n \"issues\",\n },\n Repository = repo.Name,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.NewRepository(ctx, \"repo\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"Terraform acceptance tests\"),\n\t\t\tHomepageUrl: pulumi.String(\"http://example.com/\"),\n\t\t\tPrivate: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryWebhook(ctx, \"foo\", \u0026github.RepositoryWebhookArgs{\n\t\t\tActive: pulumi.Bool(false),\n\t\t\tConfiguration: \u0026github.RepositoryWebhookConfigurationArgs{\n\t\t\t\tContentType: pulumi.String(\"form\"),\n\t\t\t\tInsecureSsl: pulumi.Bool(false),\n\t\t\t\tUrl: pulumi.String(\"https://google.de/\"),\n\t\t\t},\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"issues\"),\n\t\t\t},\n\t\t\tRepository: repo.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource allows you to create and manage webhooks for repositories within your\nGitHub organization or personal account.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst repo = new github.Repository(\"repo\", {\n description: \"Terraform acceptance tests\",\n homepageUrl: \"http://example.com/\",\n private: false,\n});\nconst foo = new github.RepositoryWebhook(\"foo\", {\n active: false,\n configuration: {\n contentType: \"form\",\n insecureSsl: false,\n url: \"https://google.de/\",\n },\n events: [\"issues\"],\n repository: repo.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nrepo = github.Repository(\"repo\",\n description=\"Terraform acceptance tests\",\n homepage_url=\"http://example.com/\",\n private=False)\nfoo = github.RepositoryWebhook(\"foo\",\n active=False,\n configuration=github.RepositoryWebhookConfigurationArgs(\n content_type=\"form\",\n insecure_ssl=False,\n url=\"https://google.de/\",\n ),\n events=[\"issues\"],\n repository=repo.name)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var repo = new Github.Repository(\"repo\", new Github.RepositoryArgs\n {\n Description = \"Terraform acceptance tests\",\n HomepageUrl = \"http://example.com/\",\n Private = false,\n });\n var foo = new Github.RepositoryWebhook(\"foo\", new Github.RepositoryWebhookArgs\n {\n Active = false,\n Configuration = new Github.Inputs.RepositoryWebhookConfigurationArgs\n {\n ContentType = \"form\",\n InsecureSsl = false,\n Url = \"https://google.de/\",\n },\n Events = \n {\n \"issues\",\n },\n Repository = repo.Name,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\trepo, err := github.NewRepository(ctx, \"repo\", \u0026github.RepositoryArgs{\n\t\t\tDescription: pulumi.String(\"Terraform acceptance tests\"),\n\t\t\tHomepageUrl: pulumi.String(\"http://example.com/\"),\n\t\t\tPrivate: pulumi.Bool(false),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewRepositoryWebhook(ctx, \"foo\", \u0026github.RepositoryWebhookArgs{\n\t\t\tActive: pulumi.Bool(false),\n\t\t\tConfiguration: \u0026github.RepositoryWebhookConfigurationArgs{\n\t\t\t\tContentType: pulumi.String(\"form\"),\n\t\t\t\tInsecureSsl: pulumi.Bool(false),\n\t\t\t\tUrl: pulumi.String(\"https://google.de/\"),\n\t\t\t},\n\t\t\tEvents: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"issues\"),\n\t\t\t},\n\t\t\tRepository: repo.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "active": { "type": "boolean", @@ -2026,7 +2026,7 @@ } }, "github:index/team:Team": { - "description": "Provides a GitHub team resource.\n\nThis resource allows you to add/remove teams from your organization. When applied,\na new team will be created. When destroyed, that team will be removed.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a team to the organization\nconst someTeam = new github.Team(\"some_team\", {\n description: \"Some cool team\",\n privacy: \"closed\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a team to the organization\nsome_team = github.Team(\"someTeam\",\n description=\"Some cool team\",\n privacy=\"closed\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a team to the organization\n var someTeam = new Github.Team(\"someTeam\", new Github.TeamArgs\n {\n Description = \"Some cool team\",\n Privacy = \"closed\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewTeam(ctx, \"someTeam\", \u0026github.TeamArgs{\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t\tPrivacy: pulumi.String(\"closed\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a GitHub team resource.\n\nThis resource allows you to add/remove teams from your organization. When applied,\na new team will be created. When destroyed, that team will be removed.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a team to the organization\nconst someTeam = new github.Team(\"some_team\", {\n description: \"Some cool team\",\n privacy: \"closed\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a team to the organization\nsome_team = github.Team(\"someTeam\",\n description=\"Some cool team\",\n privacy=\"closed\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a team to the organization\n var someTeam = new Github.Team(\"someTeam\", new Github.TeamArgs\n {\n Description = \"Some cool team\",\n Privacy = \"closed\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewTeam(ctx, \"someTeam\", \u0026github.TeamArgs{\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t\tPrivacy: pulumi.String(\"closed\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "description": { "type": "string", @@ -2125,7 +2125,7 @@ } }, "github:index/teamMembership:TeamMembership": { - "description": "Provides a GitHub team membership resource.\n\nThis resource allows you to add/remove users from teams in your organization. When applied,\nthe user will be added to the team. If the user hasn't accepted their invitation to the\norganization, they won't be part of the team until they do. When\ndestroyed, the user will be removed from the team.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a user to the organization\nconst membershipForSomeUser = new github.Membership(\"membership_for_some_user\", {\n role: \"member\",\n username: \"SomeUser\",\n});\nconst someTeam = new github.Team(\"some_team\", {\n description: \"Some cool team\",\n});\nconst someTeamMembership = new github.TeamMembership(\"some_team_membership\", {\n role: \"member\",\n teamId: someTeam.id,\n username: \"SomeUser\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a user to the organization\nmembership_for_some_user = github.Membership(\"membershipForSomeUser\",\n role=\"member\",\n username=\"SomeUser\")\nsome_team = github.Team(\"someTeam\", description=\"Some cool team\")\nsome_team_membership = github.TeamMembership(\"someTeamMembership\",\n role=\"member\",\n team_id=some_team.id,\n username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a user to the organization\n var membershipForSomeUser = new Github.Membership(\"membershipForSomeUser\", new Github.MembershipArgs\n {\n Role = \"member\",\n Username = \"SomeUser\",\n });\n var someTeam = new Github.Team(\"someTeam\", new Github.TeamArgs\n {\n Description = \"Some cool team\",\n });\n var someTeamMembership = new Github.TeamMembership(\"someTeamMembership\", new Github.TeamMembershipArgs\n {\n Role = \"member\",\n TeamId = someTeam.Id,\n Username = \"SomeUser\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewMembership(ctx, \"membershipForSomeUser\", \u0026github.MembershipArgs{\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeTeam, err := github.NewTeam(ctx, \"someTeam\", \u0026github.TeamArgs{\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamMembership(ctx, \"someTeamMembership\", \u0026github.TeamMembershipArgs{\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t\tTeamId: someTeam.ID(),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a GitHub team membership resource.\n\nThis resource allows you to add/remove users from teams in your organization. When applied,\nthe user will be added to the team. If the user hasn't accepted their invitation to the\norganization, they won't be part of the team until they do. When\ndestroyed, the user will be removed from the team.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a user to the organization\nconst membershipForSomeUser = new github.Membership(\"membership_for_some_user\", {\n role: \"member\",\n username: \"SomeUser\",\n});\nconst someTeam = new github.Team(\"some_team\", {\n description: \"Some cool team\",\n});\nconst someTeamMembership = new github.TeamMembership(\"some_team_membership\", {\n role: \"member\",\n teamId: someTeam.id,\n username: \"SomeUser\",\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a user to the organization\nmembership_for_some_user = github.Membership(\"membershipForSomeUser\",\n role=\"member\",\n username=\"SomeUser\")\nsome_team = github.Team(\"someTeam\", description=\"Some cool team\")\nsome_team_membership = github.TeamMembership(\"someTeamMembership\",\n role=\"member\",\n team_id=some_team.id,\n username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a user to the organization\n var membershipForSomeUser = new Github.Membership(\"membershipForSomeUser\", new Github.MembershipArgs\n {\n Role = \"member\",\n Username = \"SomeUser\",\n });\n var someTeam = new Github.Team(\"someTeam\", new Github.TeamArgs\n {\n Description = \"Some cool team\",\n });\n var someTeamMembership = new Github.TeamMembership(\"someTeamMembership\", new Github.TeamMembershipArgs\n {\n Role = \"member\",\n TeamId = someTeam.Id,\n Username = \"SomeUser\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewMembership(ctx, \"membershipForSomeUser\", \u0026github.MembershipArgs{\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeTeam, err := github.NewTeam(ctx, \"someTeam\", \u0026github.TeamArgs{\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamMembership(ctx, \"someTeamMembership\", \u0026github.TeamMembershipArgs{\n\t\t\tRole: pulumi.String(\"member\"),\n\t\t\tTeamId: someTeam.ID(),\n\t\t\tUsername: pulumi.String(\"SomeUser\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "etag": { "type": "string" @@ -2189,7 +2189,7 @@ } }, "github:index/teamRepository:TeamRepository": { - "description": "This resource manages relationships between teams and repositories\nin your GitHub organization.\n\nCreating this resource grants a particular team permissions on a\nparticular repository.\n\nThe repository and the team must both belong to the same organization\non GitHub. This resource does not actually *create* any repositories;\nto do that, see `github.Repository`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a repository to the team\nconst someTeam = new github.Team(\"some_team\", {\n description: \"Some cool team\",\n});\nconst someRepo = new github.Repository(\"some_repo\", {});\nconst someTeamRepo = new github.TeamRepository(\"some_team_repo\", {\n permission: \"pull\",\n repository: someRepo.name,\n teamId: someTeam.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a repository to the team\nsome_team = github.Team(\"someTeam\", description=\"Some cool team\")\nsome_repo = github.Repository(\"someRepo\")\nsome_team_repo = github.TeamRepository(\"someTeamRepo\",\n permission=\"pull\",\n repository=some_repo.name,\n team_id=some_team.id)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a repository to the team\n var someTeam = new Github.Team(\"someTeam\", new Github.TeamArgs\n {\n Description = \"Some cool team\",\n });\n var someRepo = new Github.Repository(\"someRepo\", new Github.RepositoryArgs\n {\n });\n var someTeamRepo = new Github.TeamRepository(\"someTeamRepo\", new Github.TeamRepositoryArgs\n {\n Permission = \"pull\",\n Repository = someRepo.Name,\n TeamId = someTeam.Id,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsomeTeam, err := github.NewTeam(ctx, \"someTeam\", \u0026github.TeamArgs{\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeRepo, err := github.NewRepository(ctx, \"someRepo\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamRepository(ctx, \"someTeamRepo\", \u0026github.TeamRepositoryArgs{\n\t\t\tPermission: pulumi.String(\"pull\"),\n\t\t\tRepository: someRepo.Name,\n\t\t\tTeamId: someTeam.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "This resource manages relationships between teams and repositories\nin your GitHub organization.\n\nCreating this resource grants a particular team permissions on a\nparticular repository.\n\nThe repository and the team must both belong to the same organization\non GitHub. This resource does not actually *create* any repositories;\nto do that, see `github.Repository`.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\n// Add a repository to the team\nconst someTeam = new github.Team(\"some_team\", {\n description: \"Some cool team\",\n});\nconst someRepo = new github.Repository(\"some_repo\", {});\nconst someTeamRepo = new github.TeamRepository(\"some_team_repo\", {\n permission: \"pull\",\n repository: someRepo.name,\n teamId: someTeam.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\n# Add a repository to the team\nsome_team = github.Team(\"someTeam\", description=\"Some cool team\")\nsome_repo = github.Repository(\"someRepo\")\nsome_team_repo = github.TeamRepository(\"someTeamRepo\",\n permission=\"pull\",\n repository=some_repo.name,\n team_id=some_team.id)\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n // Add a repository to the team\n var someTeam = new Github.Team(\"someTeam\", new Github.TeamArgs\n {\n Description = \"Some cool team\",\n });\n var someRepo = new Github.Repository(\"someRepo\", new Github.RepositoryArgs\n {\n });\n var someTeamRepo = new Github.TeamRepository(\"someTeamRepo\", new Github.TeamRepositoryArgs\n {\n Permission = \"pull\",\n Repository = someRepo.Name,\n TeamId = someTeam.Id,\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsomeTeam, err := github.NewTeam(ctx, \"someTeam\", \u0026github.TeamArgs{\n\t\t\tDescription: pulumi.String(\"Some cool team\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tsomeRepo, err := github.NewRepository(ctx, \"someRepo\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewTeamRepository(ctx, \"someTeamRepo\", \u0026github.TeamRepositoryArgs{\n\t\t\tPermission: pulumi.String(\"pull\"),\n\t\t\tRepository: someRepo.Name,\n\t\t\tTeamId: someTeam.ID(),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "etag": { "type": "string" @@ -2312,7 +2312,7 @@ } }, "github:index/userGpgKey:UserGpgKey": { - "description": "Provides a GitHub user's GPG key resource.\n\nThis resource allows you to add/remove GPG keys from your user account.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.UserGpgKey(\"example\", {\n armoredPublicKey: `-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----`,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.UserGpgKey(\"example\", armored_public_key=\"\"\"-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n\"\"\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.UserGpgKey(\"example\", new Github.UserGpgKeyArgs\n {\n ArmoredPublicKey = @\"-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewUserGpgKey(ctx, \"example\", \u0026github.UserGpgKeyArgs{\n\t\t\tArmoredPublicKey: pulumi.String(fmt.Sprintf(\"%v%v%v\", \"-----BEGIN PGP PUBLIC KEY BLOCK-----\\n\", \"...\\n\", \"-----END PGP PUBLIC KEY BLOCK-----\\n\")),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a GitHub user's GPG key resource.\n\nThis resource allows you to add/remove GPG keys from your user account.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = new github.UserGpgKey(\"example\", {\n armoredPublicKey: `-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----`,\n});\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.UserGpgKey(\"example\", armored_public_key=\"\"\"-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n\"\"\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = new Github.UserGpgKey(\"example\", new Github.UserGpgKeyArgs\n {\n ArmoredPublicKey = @\"-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----\n\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.NewUserGpgKey(ctx, \"example\", \u0026github.UserGpgKeyArgs{\n\t\t\tArmoredPublicKey: pulumi.String(fmt.Sprintf(\"%v%v%v\", \"-----BEGIN PGP PUBLIC KEY BLOCK-----\\n\", \"...\\n\", \"-----END PGP PUBLIC KEY BLOCK-----\\n\")),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "armoredPublicKey": { "type": "string", @@ -2359,7 +2359,7 @@ } }, "github:index/userInvitationAccepter:UserInvitationAccepter": { - "description": "Provides a resource to manage GitHub repository collaborator invitations.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleRepository = new github.Repository(\"example\", {});\nconst exampleRepositoryCollaborator = new github.RepositoryCollaborator(\"example\", {\n permission: \"push\",\n repository: exampleRepository.name,\n username: \"example-username\",\n});\nconst invitee = new github.Provider(\"invitee\", {\n token: var_invitee_token,\n});\nconst exampleUserInvitationAccepter = new github.UserInvitationAccepter(\"example\", {\n invitationId: exampleRepositoryCollaborator.invitationId,\n}, { provider: invitee });\n```\n```python\nimport pulumi\nimport pulumi_github as github\nimport pulumi_pulumi as pulumi\n\nexample_repository = github.Repository(\"exampleRepository\")\nexample_repository_collaborator = github.RepositoryCollaborator(\"exampleRepositoryCollaborator\",\n permission=\"push\",\n repository=example_repository.name,\n username=\"example-username\")\ninvitee = pulumi.providers.Github(\"invitee\", token=var[\"invitee_token\"])\nexample_user_invitation_accepter = github.UserInvitationAccepter(\"exampleUserInvitationAccepter\", invitation_id=example_repository_collaborator.invitation_id,\nopts=ResourceOptions(provider=\"github.invitee\"))\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleRepository = new Github.Repository(\"exampleRepository\", new Github.RepositoryArgs\n {\n });\n var exampleRepositoryCollaborator = new Github.RepositoryCollaborator(\"exampleRepositoryCollaborator\", new Github.RepositoryCollaboratorArgs\n {\n Permission = \"push\",\n Repository = exampleRepository.Name,\n Username = \"example-username\",\n });\n var invitee = new Github.Provider(\"invitee\", new Github.ProviderArgs\n {\n Token = @var.Invitee_token,\n });\n var exampleUserInvitationAccepter = new Github.UserInvitationAccepter(\"exampleUserInvitationAccepter\", new Github.UserInvitationAccepterArgs\n {\n InvitationId = exampleRepositoryCollaborator.InvitationId,\n }, new CustomResourceOptions\n {\n Provider = \"github.invitee\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi-github/sdk/go/github/providers\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleRepository, err := github.NewRepository(ctx, \"exampleRepository\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleRepositoryCollaborator, err := github.NewRepositoryCollaborator(ctx, \"exampleRepositoryCollaborator\", \u0026github.RepositoryCollaboratorArgs{\n\t\t\tPermission: pulumi.String(\"push\"),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tUsername: pulumi.String(\"example-username\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = providers.Newgithub(ctx, \"invitee\", \u0026providers.githubArgs{\n\t\t\tToken: pulumi.Any(_var.Invitee_token),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewUserInvitationAccepter(ctx, \"exampleUserInvitationAccepter\", \u0026github.UserInvitationAccepterArgs{\n\t\t\tInvitationId: exampleRepositoryCollaborator.InvitationId,\n\t\t}, pulumi.Provider(\"github.invitee\"))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Provides a resource to manage GitHub repository collaborator invitations.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst exampleRepository = new github.Repository(\"example\", {});\nconst exampleRepositoryCollaborator = new github.RepositoryCollaborator(\"example\", {\n permission: \"push\",\n repository: exampleRepository.name,\n username: \"example-username\",\n});\nconst invitee = new github.Provider(\"invitee\", {\n token: var_invitee_token,\n});\nconst exampleUserInvitationAccepter = new github.UserInvitationAccepter(\"example\", {\n invitationId: exampleRepositoryCollaborator.invitationId,\n}, { provider: invitee });\n```\n```python\nimport pulumi\nimport pulumi_github as github\nimport pulumi_pulumi as pulumi\n\nexample_repository = github.Repository(\"exampleRepository\")\nexample_repository_collaborator = github.RepositoryCollaborator(\"exampleRepositoryCollaborator\",\n permission=\"push\",\n repository=example_repository.name,\n username=\"example-username\")\ninvitee = pulumi.providers.Github(\"invitee\", token=var[\"invitee_token\"])\nexample_user_invitation_accepter = github.UserInvitationAccepter(\"exampleUserInvitationAccepter\", invitation_id=example_repository_collaborator.invitation_id,\nopts=ResourceOptions(provider=\"github.invitee\"))\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var exampleRepository = new Github.Repository(\"exampleRepository\", new Github.RepositoryArgs\n {\n });\n var exampleRepositoryCollaborator = new Github.RepositoryCollaborator(\"exampleRepositoryCollaborator\", new Github.RepositoryCollaboratorArgs\n {\n Permission = \"push\",\n Repository = exampleRepository.Name,\n Username = \"example-username\",\n });\n var invitee = new Github.Provider(\"invitee\", new Github.ProviderArgs\n {\n Token = @var.Invitee_token,\n });\n var exampleUserInvitationAccepter = new Github.UserInvitationAccepter(\"exampleUserInvitationAccepter\", new Github.UserInvitationAccepterArgs\n {\n InvitationId = exampleRepositoryCollaborator.InvitationId,\n }, new CustomResourceOptions\n {\n Provider = \"github.invitee\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github/providers\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleRepository, err := github.NewRepository(ctx, \"exampleRepository\", nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleRepositoryCollaborator, err := github.NewRepositoryCollaborator(ctx, \"exampleRepositoryCollaborator\", \u0026github.RepositoryCollaboratorArgs{\n\t\t\tPermission: pulumi.String(\"push\"),\n\t\t\tRepository: exampleRepository.Name,\n\t\t\tUsername: pulumi.String(\"example-username\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = providers.Newgithub(ctx, \"invitee\", \u0026providers.githubArgs{\n\t\t\tToken: pulumi.Any(_var.Invitee_token),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = github.NewUserInvitationAccepter(ctx, \"exampleUserInvitationAccepter\", \u0026github.UserInvitationAccepterArgs{\n\t\t\tInvitationId: exampleRepositoryCollaborator.InvitationId,\n\t\t}, pulumi.Provider(\"github.invitee\"))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "properties": { "invitationId": { "type": "string", @@ -2453,7 +2453,7 @@ }, "functions": { "github:index/getActionsPublicKey:getActionsPublicKey": { - "description": "Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.\nNote that the provider `token` must have admin rights to a repository to retrieve it's action public key.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getActionsPublicKey({\n repository: \"example_repo\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_actions_public_key(repository=\"example_repo\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetActionsPublicKey.InvokeAsync(new Github.GetActionsPublicKeyArgs\n {\n Repository = \"example_repo\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetActionsPublicKey(ctx, \u0026github.GetActionsPublicKeyArgs{\n\t\t\tRepository: \"example_repo\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a GitHub Actions public key. This data source is required to be used with other GitHub secrets interactions.\nNote that the provider `token` must have admin rights to a repository to retrieve it's action public key.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getActionsPublicKey({\n repository: \"example_repo\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_actions_public_key(repository=\"example_repo\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetActionsPublicKey.InvokeAsync(new Github.GetActionsPublicKeyArgs\n {\n Repository = \"example_repo\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetActionsPublicKey(ctx, \u0026github.GetActionsPublicKeyArgs{\n\t\t\tRepository: \"example_repo\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getActionsPublicKey.\n", "properties": { @@ -2496,7 +2496,7 @@ } }, "github:index/getBranch:getBranch": { - "description": "Use this data source to retrieve information about a repository branch.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst development = pulumi.output(github.getBranch({\n branch: \"development\",\n repository: \"example\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ndevelopment = github.get_branch(branch=\"development\",\n repository=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var development = Output.Create(Github.GetBranch.InvokeAsync(new Github.GetBranchArgs\n {\n Branch = \"development\",\n Repository = \"example\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.LookupBranch(ctx, \u0026github.LookupBranchArgs{\n\t\t\tBranch: \"development\",\n\t\t\tRepository: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a repository branch.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst development = pulumi.output(github.getBranch({\n branch: \"development\",\n repository: \"example\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ndevelopment = github.get_branch(branch=\"development\",\n repository=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var development = Output.Create(Github.GetBranch.InvokeAsync(new Github.GetBranchArgs\n {\n Branch = \"development\",\n Repository = \"example\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.LookupBranch(ctx, \u0026github.LookupBranchArgs{\n\t\t\tBranch: \"development\",\n\t\t\tRepository: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getBranch.\n", "properties": { @@ -2553,7 +2553,7 @@ } }, "github:index/getCollaborators:getCollaborators": { - "description": "Use this data source to retrieve the collaborators for a given repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getCollaborators({\n owner: \"example_owner\",\n repository: \"example_repository\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_collaborators(owner=\"example_owner\",\n repository=\"example_repository\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetCollaborators.InvokeAsync(new Github.GetCollaboratorsArgs\n {\n Owner = \"example_owner\",\n Repository = \"example_repository\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetCollaborators(ctx, \u0026github.GetCollaboratorsArgs{\n\t\t\tOwner: \"example_owner\",\n\t\t\tRepository: \"example_repository\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve the collaborators for a given repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getCollaborators({\n owner: \"example_owner\",\n repository: \"example_repository\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_collaborators(owner=\"example_owner\",\n repository=\"example_repository\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetCollaborators.InvokeAsync(new Github.GetCollaboratorsArgs\n {\n Owner = \"example_owner\",\n Repository = \"example_repository\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetCollaborators(ctx, \u0026github.GetCollaboratorsArgs{\n\t\t\tOwner: \"example_owner\",\n\t\t\tRepository: \"example_repository\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getCollaborators.\n", "properties": { @@ -2610,7 +2610,7 @@ } }, "github:index/getIpRanges:getIpRanges": { - "description": "Use this data source to retrieve information about GitHub's IP addresses.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getIpRanges({ async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_ip_ranges()\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetIpRanges.InvokeAsync());\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetIpRanges(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about GitHub's IP addresses.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getIpRanges({ async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_ip_ranges()\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetIpRanges.InvokeAsync());\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetIpRanges(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getIpRanges.\n", "properties": { @@ -2658,7 +2658,7 @@ } }, "github:index/getMembership:getMembership": { - "description": "Use this data source to find out if a user is a member of your organization, as well\nas what role they have within it.\nIf the user's membership in the organization is pending their acceptance of an invite,\nthe role they would have once they accept will be returned.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst membershipForSomeUser = pulumi.output(github.getMembership({\n username: \"SomeUser\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nmembership_for_some_user = github.get_membership(username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var membershipForSomeUser = Output.Create(Github.GetMembership.InvokeAsync(new Github.GetMembershipArgs\n {\n Username = \"SomeUser\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.LookupMembership(ctx, \u0026github.LookupMembershipArgs{\n\t\t\tUsername: \"SomeUser\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to find out if a user is a member of your organization, as well\nas what role they have within it.\nIf the user's membership in the organization is pending their acceptance of an invite,\nthe role they would have once they accept will be returned.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst membershipForSomeUser = pulumi.output(github.getMembership({\n username: \"SomeUser\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nmembership_for_some_user = github.get_membership(username=\"SomeUser\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var membershipForSomeUser = Output.Create(Github.GetMembership.InvokeAsync(new Github.GetMembershipArgs\n {\n Username = \"SomeUser\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.LookupMembership(ctx, \u0026github.LookupMembershipArgs{\n\t\t\tUsername: \"SomeUser\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getMembership.\n", "properties": { @@ -2709,7 +2709,7 @@ } }, "github:index/getOrganization:getOrganization": { - "description": "Use this data source to retrieve basic information about a GitHub Organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getOrganization({\n name: \"github\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_organization(name=\"github\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetOrganization.InvokeAsync(new Github.GetOrganizationArgs\n {\n Name = \"github\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetOrganization(ctx, \u0026github.GetOrganizationArgs{\n\t\t\tName: \"github\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve basic information about a GitHub Organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getOrganization({\n name: \"github\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_organization(name=\"github\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetOrganization.InvokeAsync(new Github.GetOrganizationArgs\n {\n Name = \"github\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetOrganization(ctx, \u0026github.GetOrganizationArgs{\n\t\t\tName: \"github\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getOrganization.\n", "properties": { @@ -2758,7 +2758,7 @@ } }, "github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups": { - "description": "Use this data source to retrieve the identity provider (IdP) groups for an organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getOrganizationTeamSyncGroups({ async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_organization_team_sync_groups()\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetOrganizationTeamSyncGroups.InvokeAsync());\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetOrganizationTeamSyncGroups(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve the identity provider (IdP) groups for an organization.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst test = pulumi.output(github.getOrganizationTeamSyncGroups({ async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\ntest = github.get_organization_team_sync_groups()\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var test = Output.Create(Github.GetOrganizationTeamSyncGroups.InvokeAsync());\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetOrganizationTeamSyncGroups(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "outputs": { "description": "A collection of values returned by getOrganizationTeamSyncGroups.\n", "properties": { @@ -2782,7 +2782,7 @@ } }, "github:index/getRelease:getRelease": { - "description": "Use this data source to retrieve information about a GitHub release in a specific repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\nTo retrieve the latest release that is present in a repository:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRelease({\n owner: \"example-owner\",\n repository: \"example-repository\",\n retrieveBy: \"latest\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_release(owner=\"example-owner\",\n repository=\"example-repository\",\n retrieve_by=\"latest\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs\n {\n Owner = \"example-owner\",\n Repository = \"example-repository\",\n RetrieveBy = \"latest\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetRelease(ctx, \u0026github.GetReleaseArgs{\n\t\t\tOwner: \"example-owner\",\n\t\t\tRepository: \"example-repository\",\n\t\t\tRetrieveBy: \"latest\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\nTo retrieve a specific release from a repository based on it's ID:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRelease({\n id: \"12345\",\n owner: \"example-owner\",\n repository: \"example-repository\",\n retrieveBy: \"id\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_release(id=12345,\n owner=\"example-owner\",\n repository=\"example-repository\",\n retrieve_by=\"id\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs\n {\n Id = 12345,\n Owner = \"example-owner\",\n Repository = \"example-repository\",\n RetrieveBy = \"id\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetRelease(ctx, \u0026github.GetReleaseArgs{\n\t\t\tId: 12345,\n\t\t\tOwner: \"example-owner\",\n\t\t\tRepository: \"example-repository\",\n\t\t\tRetrieveBy: \"id\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\nFinally, to retrieve a release based on it's tag:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRelease({\n owner: \"example-owner\",\n releaseTag: \"v1.0.0\",\n repository: \"example-repository\",\n retrieveBy: \"tag\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_release(owner=\"example-owner\",\n release_tag=\"v1.0.0\",\n repository=\"example-repository\",\n retrieve_by=\"tag\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs\n {\n Owner = \"example-owner\",\n ReleaseTag = \"v1.0.0\",\n Repository = \"example-repository\",\n RetrieveBy = \"tag\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"v1.0.0\"\n\t\t_, err := github.GetRelease(ctx, \u0026github.GetReleaseArgs{\n\t\t\tOwner: \"example-owner\",\n\t\t\tReleaseTag: \u0026opt0,\n\t\t\tRepository: \"example-repository\",\n\t\t\tRetrieveBy: \"tag\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a GitHub release in a specific repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\nTo retrieve the latest release that is present in a repository:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRelease({\n owner: \"example-owner\",\n repository: \"example-repository\",\n retrieveBy: \"latest\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_release(owner=\"example-owner\",\n repository=\"example-repository\",\n retrieve_by=\"latest\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs\n {\n Owner = \"example-owner\",\n Repository = \"example-repository\",\n RetrieveBy = \"latest\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetRelease(ctx, \u0026github.GetReleaseArgs{\n\t\t\tOwner: \"example-owner\",\n\t\t\tRepository: \"example-repository\",\n\t\t\tRetrieveBy: \"latest\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\nTo retrieve a specific release from a repository based on it's ID:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRelease({\n id: \"12345\",\n owner: \"example-owner\",\n repository: \"example-repository\",\n retrieveBy: \"id\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_release(id=12345,\n owner=\"example-owner\",\n repository=\"example-repository\",\n retrieve_by=\"id\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs\n {\n Id = 12345,\n Owner = \"example-owner\",\n Repository = \"example-repository\",\n RetrieveBy = \"id\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetRelease(ctx, \u0026github.GetReleaseArgs{\n\t\t\tId: 12345,\n\t\t\tOwner: \"example-owner\",\n\t\t\tRepository: \"example-repository\",\n\t\t\tRetrieveBy: \"id\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n\nFinally, to retrieve a release based on it's tag:\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRelease({\n owner: \"example-owner\",\n releaseTag: \"v1.0.0\",\n repository: \"example-repository\",\n retrieveBy: \"tag\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_release(owner=\"example-owner\",\n release_tag=\"v1.0.0\",\n repository=\"example-repository\",\n retrieve_by=\"tag\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs\n {\n Owner = \"example-owner\",\n ReleaseTag = \"v1.0.0\",\n Repository = \"example-repository\",\n RetrieveBy = \"tag\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"v1.0.0\"\n\t\t_, err := github.GetRelease(ctx, \u0026github.GetReleaseArgs{\n\t\t\tOwner: \"example-owner\",\n\t\t\tReleaseTag: \u0026opt0,\n\t\t\tRepository: \"example-repository\",\n\t\t\tRetrieveBy: \"tag\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getRelease.\n", "properties": { @@ -2914,7 +2914,7 @@ } }, "github:index/getRepositories:getRepositories": { - "description": "\u003e **Note:** The data source will return a maximum of `1000` repositories\n\t[as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).\n\nUse this data source to retrieve a list of GitHub repositories using a search query.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRepositories({\n query: \"org:hashicorp language:Go\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_repositories(query=\"org:hashicorp language:Go\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRepositories.InvokeAsync(new Github.GetRepositoriesArgs\n {\n Query = \"org:hashicorp language:Go\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetRepositories(ctx, \u0026github.GetRepositoriesArgs{\n\t\t\tQuery: \"org:hashicorp language:Go\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "\u003e **Note:** The data source will return a maximum of `1000` repositories\n\t[as documented in official API docs](https://developer.github.com/v3/search/#about-the-search-api).\n\nUse this data source to retrieve a list of GitHub repositories using a search query.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRepositories({\n query: \"org:hashicorp language:Go\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_repositories(query=\"org:hashicorp language:Go\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRepositories.InvokeAsync(new Github.GetRepositoriesArgs\n {\n Query = \"org:hashicorp language:Go\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetRepositories(ctx, \u0026github.GetRepositoriesArgs{\n\t\t\tQuery: \"org:hashicorp language:Go\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getRepositories.\n", "properties": { @@ -2968,7 +2968,7 @@ } }, "github:index/getRepository:getRepository": { - "description": "Use this data source to retrieve information about a GitHub repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRepository({\n fullName: \"hashicorp/terraform\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_repository(full_name=\"hashicorp/terraform\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRepository.InvokeAsync(new Github.GetRepositoryArgs\n {\n FullName = \"hashicorp/terraform\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"hashicorp/terraform\"\n\t\t_, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a GitHub repository.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getRepository({\n fullName: \"hashicorp/terraform\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_repository(full_name=\"hashicorp/terraform\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetRepository.InvokeAsync(new Github.GetRepositoryArgs\n {\n FullName = \"hashicorp/terraform\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\topt0 := \"hashicorp/terraform\"\n\t\t_, err := github.LookupRepository(ctx, \u0026github.LookupRepositoryArgs{\n\t\t\tFullName: \u0026opt0,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getRepository.\n", "properties": { @@ -3106,7 +3106,7 @@ } }, "github:index/getTeam:getTeam": { - "description": "Use this data source to retrieve information about a GitHub team.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getTeam({\n slug: \"example\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_team(slug=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetTeam.InvokeAsync(new Github.GetTeamArgs\n {\n Slug = \"example\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.LookupTeam(ctx, \u0026github.LookupTeamArgs{\n\t\t\tSlug: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a GitHub team.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getTeam({\n slug: \"example\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_team(slug=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetTeam.InvokeAsync(new Github.GetTeamArgs\n {\n Slug = \"example\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.LookupTeam(ctx, \u0026github.LookupTeamArgs{\n\t\t\tSlug: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getTeam.\n", "properties": { @@ -3171,7 +3171,7 @@ } }, "github:index/getUser:getUser": { - "description": "Use this data source to retrieve information about a GitHub user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getUser({\n username: \"example\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_user(username=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetUser.InvokeAsync(new Github.GetUserArgs\n {\n Username = \"example\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", + "description": "Use this data source to retrieve information about a GitHub user.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as github from \"@pulumi/github\";\n\nconst example = pulumi.output(github.getUser({\n username: \"example\",\n}, { async: true }));\n```\n```python\nimport pulumi\nimport pulumi_github as github\n\nexample = github.get_user(username=\"example\")\n```\n```csharp\nusing Pulumi;\nusing Github = Pulumi.Github;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var example = Output.Create(Github.GetUser.InvokeAsync(new Github.GetUserArgs\n {\n Username = \"example\",\n }));\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-github/sdk/v2/go/github\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := github.GetUser(ctx, \u0026github.GetUserArgs{\n\t\t\tUsername: \"example\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { "description": "A collection of arguments for invoking getUser.\n", "properties": { diff --git a/provider/cmd/pulumi-tfgen-github/main.go b/provider/cmd/pulumi-tfgen-github/main.go index 0b198ee8..14de4161 100644 --- a/provider/cmd/pulumi-tfgen-github/main.go +++ b/provider/cmd/pulumi-tfgen-github/main.go @@ -17,8 +17,8 @@ package main import ( "github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfgen" - github "github.com/pulumi/pulumi-github/provider" - "github.com/pulumi/pulumi-github/provider/pkg/version" + github "github.com/pulumi/pulumi-github/provider/v2" + "github.com/pulumi/pulumi-github/provider/v2/pkg/version" ) func main() { diff --git a/provider/go.mod b/provider/go.mod index 99bd886e..345c768e 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,4 +1,4 @@ -module github.com/pulumi/pulumi-github/provider +module github.com/pulumi/pulumi-github/provider/v2 go 1.14 diff --git a/provider/go.sum b/provider/go.sum index b537647a..e4129fd1 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -637,6 +637,9 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= +github.com/pulumi/pulumi-github v1.5.0 h1:6drwtzHqnTYciJ7JF6IZtPAHSpELQgKAxpj6MoJIwfI= +github.com/pulumi/pulumi-github/provider v0.0.0-20200909101800-4b995f6330fd h1:/PC0Pxjqa4GtBDuwSpwqbBEoNdElEx010hc+O7Y6G08= +github.com/pulumi/pulumi-github/provider v0.0.0-20200909101800-4b995f6330fd/go.mod h1:x7CatlDYoGbnlOY1RL2xk6NHCzybvxwLNa+DZ+S1clk= github.com/pulumi/pulumi-terraform-bridge/v2 v2.0.0/go.mod h1:CShKXRvffj8fOwzDfBM8qxEpqfMpLLbEAb6QCtcGeUw= github.com/pulumi/pulumi-terraform-bridge/v2 v2.4.1-0.20200608011815-6feeb51f2d39 h1:8Y0+ZfJpafOyPsxXf+TFLjCEMudDlsl/uv3o1Pg7qWM= github.com/pulumi/pulumi-terraform-bridge/v2 v2.4.1-0.20200608011815-6feeb51f2d39/go.mod h1:GI/1DagEgBD0PJUCt5wmaPLI8cx66IMzLRpy0oeucoo= diff --git a/sdk/go.mod b/sdk/go.mod index 92be1dea..ab047172 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -1,4 +1,4 @@ -module github.com/pulumi/pulumi-github/sdk +module github.com/pulumi/pulumi-github/sdk/v2 go 1.14 diff --git a/sdk/go/github/branch.go b/sdk/go/github/branch.go index 220e0bc5..a84b499a 100644 --- a/sdk/go/github/branch.go +++ b/sdk/go/github/branch.go @@ -21,7 +21,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getActionsPublicKey.go b/sdk/go/github/getActionsPublicKey.go index c2f4f4a3..a4229e2e 100644 --- a/sdk/go/github/getActionsPublicKey.go +++ b/sdk/go/github/getActionsPublicKey.go @@ -16,7 +16,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getBranch.go b/sdk/go/github/getBranch.go index a7e904fd..3cd05a91 100644 --- a/sdk/go/github/getBranch.go +++ b/sdk/go/github/getBranch.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getCollaborators.go b/sdk/go/github/getCollaborators.go index 2f56ba08..b796da35 100644 --- a/sdk/go/github/getCollaborators.go +++ b/sdk/go/github/getCollaborators.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getIpRanges.go b/sdk/go/github/getIpRanges.go index 96632e12..2054d3e4 100644 --- a/sdk/go/github/getIpRanges.go +++ b/sdk/go/github/getIpRanges.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getMembership.go b/sdk/go/github/getMembership.go index e12c0701..c37e3a71 100644 --- a/sdk/go/github/getMembership.go +++ b/sdk/go/github/getMembership.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getOrganization.go b/sdk/go/github/getOrganization.go index 1f75dc4f..2e0fd12f 100644 --- a/sdk/go/github/getOrganization.go +++ b/sdk/go/github/getOrganization.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getOrganizationTeamSyncGroups.go b/sdk/go/github/getOrganizationTeamSyncGroups.go index d9f0bb80..a9b6b865 100644 --- a/sdk/go/github/getOrganizationTeamSyncGroups.go +++ b/sdk/go/github/getOrganizationTeamSyncGroups.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getRelease.go b/sdk/go/github/getRelease.go index 8d83ff4c..c2862259 100644 --- a/sdk/go/github/getRelease.go +++ b/sdk/go/github/getRelease.go @@ -17,7 +17,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // @@ -42,7 +42,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // @@ -68,7 +68,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getRepositories.go b/sdk/go/github/getRepositories.go index 66470a11..401016a7 100644 --- a/sdk/go/github/getRepositories.go +++ b/sdk/go/github/getRepositories.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getRepository.go b/sdk/go/github/getRepository.go index e08d80b5..baac0d02 100644 --- a/sdk/go/github/getRepository.go +++ b/sdk/go/github/getRepository.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getTeam.go b/sdk/go/github/getTeam.go index 217386c3..224ac024 100644 --- a/sdk/go/github/getTeam.go +++ b/sdk/go/github/getTeam.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/getUser.go b/sdk/go/github/getUser.go index c55aac81..d53dce91 100644 --- a/sdk/go/github/getUser.go +++ b/sdk/go/github/getUser.go @@ -15,7 +15,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/membership.go b/sdk/go/github/membership.go index 1090f69a..4eb1935a 100644 --- a/sdk/go/github/membership.go +++ b/sdk/go/github/membership.go @@ -22,7 +22,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/organizationBlock.go b/sdk/go/github/organizationBlock.go index c800147c..ca1b6a83 100644 --- a/sdk/go/github/organizationBlock.go +++ b/sdk/go/github/organizationBlock.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/organizationProject.go b/sdk/go/github/organizationProject.go index 19ef85ef..d0ff2ebb 100644 --- a/sdk/go/github/organizationProject.go +++ b/sdk/go/github/organizationProject.go @@ -17,7 +17,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/organizationWebhook.go b/sdk/go/github/organizationWebhook.go index 6741f1c6..7b399e60 100644 --- a/sdk/go/github/organizationWebhook.go +++ b/sdk/go/github/organizationWebhook.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/projectColumn.go b/sdk/go/github/projectColumn.go index c8ddb581..1ad08177 100644 --- a/sdk/go/github/projectColumn.go +++ b/sdk/go/github/projectColumn.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/repository.go b/sdk/go/github/repository.go index 3a326e91..fe2825a5 100644 --- a/sdk/go/github/repository.go +++ b/sdk/go/github/repository.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/repositoryCollaborator.go b/sdk/go/github/repositoryCollaborator.go index e1714316..d8205881 100644 --- a/sdk/go/github/repositoryCollaborator.go +++ b/sdk/go/github/repositoryCollaborator.go @@ -35,7 +35,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/repositoryDeployKey.go b/sdk/go/github/repositoryDeployKey.go index 36f25a16..ffada134 100644 --- a/sdk/go/github/repositoryDeployKey.go +++ b/sdk/go/github/repositoryDeployKey.go @@ -27,7 +27,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/repositoryFile.go b/sdk/go/github/repositoryFile.go index 2af35403..4332c345 100644 --- a/sdk/go/github/repositoryFile.go +++ b/sdk/go/github/repositoryFile.go @@ -19,7 +19,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/repositoryProject.go b/sdk/go/github/repositoryProject.go index 58f0a0ba..bac7f884 100644 --- a/sdk/go/github/repositoryProject.go +++ b/sdk/go/github/repositoryProject.go @@ -18,7 +18,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/repositoryWebhook.go b/sdk/go/github/repositoryWebhook.go index 23a712ef..b49f4332 100644 --- a/sdk/go/github/repositoryWebhook.go +++ b/sdk/go/github/repositoryWebhook.go @@ -19,7 +19,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/team.go b/sdk/go/github/team.go index 81b24eb1..5d387774 100644 --- a/sdk/go/github/team.go +++ b/sdk/go/github/team.go @@ -20,7 +20,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/teamMembership.go b/sdk/go/github/teamMembership.go index 155b2c2e..30c2ab5a 100644 --- a/sdk/go/github/teamMembership.go +++ b/sdk/go/github/teamMembership.go @@ -23,7 +23,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/teamRepository.go b/sdk/go/github/teamRepository.go index 360e3864..456fff37 100644 --- a/sdk/go/github/teamRepository.go +++ b/sdk/go/github/teamRepository.go @@ -26,7 +26,7 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/userGpgKey.go b/sdk/go/github/userGpgKey.go index 15c3b21e..8ef2ea23 100644 --- a/sdk/go/github/userGpgKey.go +++ b/sdk/go/github/userGpgKey.go @@ -22,7 +22,7 @@ import ( // import ( // "fmt" // -// "github.com/pulumi/pulumi-github/sdk/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) // diff --git a/sdk/go/github/userInvitationAccepter.go b/sdk/go/github/userInvitationAccepter.go index c1801430..da97789e 100644 --- a/sdk/go/github/userInvitationAccepter.go +++ b/sdk/go/github/userInvitationAccepter.go @@ -18,8 +18,8 @@ import ( // package main // // import ( -// "github.com/pulumi/pulumi-github/sdk/go/github" -// "github.com/pulumi/pulumi-github/sdk/go/github/providers" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github" +// "github.com/pulumi/pulumi-github/sdk/v2/go/github/providers" // "github.com/pulumi/pulumi/sdk/v2/go/pulumi" // ) //