You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/d/github_installation.html.markdown
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,29 +15,29 @@ Use this data source to get information about the Github App Installation.
15
15
16
16
```hcl
17
17
data "tfe_github_app_installation" "gha_installation" {
18
-
installation_id = 12345
18
+
installation_id = 12345678
19
19
}
20
20
```
21
21
22
22
### Finding a Github App Installation by its name
23
23
24
24
```hcl
25
25
data "tfe_github_app_installation" "gha_installation" {
26
-
name = "installation_name"
26
+
name = "github_username_or_organization"
27
27
}
28
28
```
29
29
30
30
## Argument Reference
31
31
32
-
The following arguments are supported. At least one of `name`, `installation_id` must be set.
32
+
The following arguments are supported. At least one of `name`, `installation_id` must be set.
33
+
34
+
*`installation_id` - (Optional) ID of the Github Installation. The installation ID can be found in the URL slug when visiting the installation's configuration page, e.g `https://github.com/settings/installations/12345678`.
35
+
*`name` - (Optional) Name of the Github user or organization account that installed the app.
33
36
34
-
*`installation_id` - (Optional) ID of the Github Installation as shown in Github.
35
-
*`name` - (Optional) Name of the Github Installation as shown in Github.
36
-
37
37
Must be one of: `installation_id` or `name`.
38
38
39
39
## Attributes Reference
40
40
41
41
In addition to all arguments above, the following attributes are exported:
42
42
43
-
*`id` - The internal ID of the Github Installation. This is different from the `installation_id`.
43
+
*`id` - The internal ID of the Github Installation. This is different from the `installation_id`.
0 commit comments