Skip to content

Commit 3e700f6

Browse files
committed
Merge branch 'drivetopurchase-master'
2 parents 5a75be8 + 575e4e9 commit 3e700f6

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

Diff for: README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ The following attributes are exported:
9595
# Create a project
9696
resource "sentry_project" "default" {
9797
organization = "my-organization"
98-
team = "my-team"
99-
name = "Web App"
100-
slug = "web-app"
98+
team = "my-team"
99+
name = "Web App"
100+
slug = "web-app"
101+
platform = "javascript"
101102
}
102103
```
103104

@@ -109,6 +110,7 @@ The following arguments are supported:
109110
* `team` - (Required) The slug of the team the project should be created for.
110111
* `name` - (Required) The human readable name for the project.
111112
* `slug` - (Optional) The unique URL slug for this project. If this is not provided a slug is automatically generated based on the name.
113+
* `platform` - (Optional) The integration platform.
112114

113115
##### Attributes Reference
114116

Diff for: sentry/resource_sentry_project.go

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ func resourceSentryProject() *schema.Resource {
4141
Description: "The optional slug for this project",
4242
Computed: true,
4343
},
44+
"platform": {
45+
Type: schema.TypeString,
46+
Optional: true,
47+
Description: "The optional platform for this project",
48+
Computed: true,
49+
},
4450
"project_id": {
4551
Type: schema.TypeString,
4652
Computed: true,
@@ -119,6 +125,7 @@ func resourceSentryProjectRead(d *schema.ResourceData, meta interface{}) error {
119125
d.Set("team", proj.Team.Slug)
120126
d.Set("name", proj.Name)
121127
d.Set("slug", proj.Slug)
128+
d.Set("platform", proj.Platform)
122129
d.Set("project_id", proj.ID)
123130
d.Set("is_public", proj.IsPublic)
124131
d.Set("color", proj.Color)
@@ -142,6 +149,11 @@ func resourceSentryProjectUpdate(d *schema.ResourceData, meta interface{}) error
142149
Slug: d.Get("slug").(string),
143150
}
144151

152+
platform := d.Get("platform").(string)
153+
if platform != "" {
154+
params.Platform = platform
155+
}
156+
145157
if v, ok := d.GetOk("digests_min_delay"); ok {
146158
params.DigestsMinDelay = Int(v.(int))
147159
}

0 commit comments

Comments
 (0)