Forgejo · Schema

Comment

Comment represents a comment on a commit or issue

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Properties

Name Type Description
assets array The attachments to the comment
body string The body of the comment
created_at string The time of the comment's creation
html_url string The HTML URL of the comment
id integer The identifier of the comment
issue_url string The HTML URL of the issue if the comment is posted on an issue, else empty string
original_author string The original author that posted the comment if it was not posted locally, else empty string
original_author_id integer The ID of the original author that posted the comment if it was not posted locally, else 0
pull_request_url string The HTML URL of the pull request if the comment is posted on a pull request, else empty string
updated_at string The time of the comment's update
user object
View JSON Schema on GitHub

JSON Schema

comment.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Comment",
  "description": "Comment represents a comment on a commit or issue",
  "type": "object",
  "properties": {
    "assets": {
      "description": "The attachments to the comment",
      "type": "array",
      "items": {
        "$ref": "#/definitions/Attachment"
      },
      "x-go-name": "Attachments"
    },
    "body": {
      "description": "The body of the comment",
      "type": "string",
      "x-go-name": "Body"
    },
    "created_at": {
      "description": "The time of the comment's creation",
      "type": "string",
      "format": "date-time",
      "x-go-name": "Created"
    },
    "html_url": {
      "description": "The HTML URL of the comment",
      "type": "string",
      "x-go-name": "HTMLURL"
    },
    "id": {
      "description": "The identifier of the comment",
      "type": "integer",
      "format": "int64",
      "x-go-name": "ID"
    },
    "issue_url": {
      "description": "The HTML URL of the issue if the comment is posted on an issue, else empty string",
      "type": "string",
      "x-go-name": "IssueURL"
    },
    "original_author": {
      "description": "The original author that posted the comment if it was not posted locally, else empty string",
      "type": "string",
      "x-go-name": "OriginalAuthor"
    },
    "original_author_id": {
      "description": "The ID of the original author that posted the comment if it was not posted locally, else 0",
      "type": "integer",
      "format": "int64",
      "x-go-name": "OriginalAuthorID"
    },
    "pull_request_url": {
      "description": "The HTML URL of the pull request if the comment is posted on a pull request, else empty string",
      "type": "string",
      "x-go-name": "PRURL"
    },
    "updated_at": {
      "description": "The time of the comment's update",
      "type": "string",
      "format": "date-time",
      "x-go-name": "Updated"
    },
    "user": {
      "$ref": "#/definitions/User"
    }
  },
  "x-go-package": "forgejo.org/modules/structs"
}