File Comments

A FileComment is a comment attached to a file by a user.

Resource Schema

Required

PropertyDescription
body
String
Comment body.
path
String
File path.

Read Only

PropertyDescription
id
Int64
File Comment ID
reactions
Dynamic
Reactions to this comment.

Example Resource

resource "files_file_comment" "example_file_comment" {
  body = "What a great file!"
  path = "path"
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# File Comments can be imported by specifying the id and path.
terraform import files_file_comment.example_file_comment 1,path

Data Source Schema

Required

PropertyDescription
id
Int64
File Comment ID
path
String
File path.

Read Only

PropertyDescription
body
String
Comment body.
reactions
Dynamic
Reactions to this comment.

Example Data Source

data "files_file_comment" "example_file_comment" {
  id   = 1
  path = "path"
}