Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions docs/data-sources/app.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---
page_title: "github_app (Data Source) - GitHub"
subcategory: ""
description: |-
Get information about an app.
---

# github_app (Data Source)

Use this data source to retrieve information about an app.
Get information about an app.

## Example Usage

Expand All @@ -16,18 +17,16 @@ data "github_app" "foobar" {
}
```

## Argument Reference
<!-- schema generated by tfplugindocs -->
## Schema

The following arguments are supported:
### Required

- `slug` - (Required) The URL-friendly name of your GitHub App.
- `slug` (String) The URL-friendly name of your GitHub App.

## Attribute Reference
### Read-Only

The following additional attributes are exported:

- `description` - The app's description.

- `name` - The app's full name.

- `node_id` - The Node ID of the app.
- `description` (String) The app's description.
- `id` (String) The ID of the app.
- `name` (String) The app's full name.
- `node_id` (String) The Node ID of the app.
26 changes: 18 additions & 8 deletions github/data_source_github_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,33 @@ import (
func dataSourceGithubApp() *schema.Resource {
return &schema.Resource{
ReadContext: dataSourceGithubAppRead,
Description: "Get information about an app.",

Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
Description: "The ID of the app.",
},
"slug": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
Description: "The URL-friendly name of your GitHub App.",
},
"description": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
Description: "The app's description.",
},
"name": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
Description: "The app's full name.",
},
"node_id": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
Description: "The Node ID of the app.",
},
},
}
Expand Down
7 changes: 3 additions & 4 deletions templates/data-sources.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ description: |-

{{ .Description | trimspace }}

{{ if .HasExamples -}}
## Example Usage

{{- range .ExampleFiles }}
{{- if .HasExamples }}

## Example Usage
{{ range .ExampleFiles }}
{{ tffile . }}
{{- end }}
{{- end }}
Expand Down
29 changes: 0 additions & 29 deletions templates/data-sources/app.md.tmpl

This file was deleted.