---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/events-ref/pull-request-comment-create.md
  - https://sourcecraft.dev/portal/docs/ru/events-ref/pull-request-comment-create.md
  - href: https://sourcecraft.dev/portal/docs/en/events-ref/pull-request-comment-create.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/en/llms.txt?revision=r21771061
    rel: describedby
title: pull_request_comment.create
description: |-
  PullRequestCommentCreate event - represents creation of a pull request comment

  **CI execution_ref:** Pull request source branch.
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt?revision=r21771061


# pull_request_comment.create

PullRequestCommentCreate event - represents creation of a pull request comment

**CI execution_ref:** Pull request source branch.

**can-trigger-ci:** `true`

<a id="payload"></a>

REQUEST BODY SCHEMA: **application/json**
required

#|
|| **Field** | **Description** ||
|| [header](#header) | _object (Common header included in all public events)_ ||
|| [repository](#repository) | _object (Repository)_ ||
|| [pull_request](#pull-request) | _object (PullRequest)_ ||
|| [comment](#comment) | _object (PullRequestComment)_ ||
|| `is_thread` | _boolean (Whether this is a top-level thread (not a reply))_ ||
|| `is_published` | _boolean (Whether the comment was published (visible) or draft)_ ||
|#

## header {#header}

#|
|| **Field** | **Description** ||
|| `id` | _string (Unique identifier for this event instance)_ ||
|| `type` | _string (Event type)_ ||
|| `occurred_at` | _string &lt;date-time&gt; (When the event occurred)_ ||
|| `aggregate_id` | _string (ID of the primary entity this event is about)_ ||
|| `aggregate_type` | _string (Type of the primary entity (derived from event\_type))_ ||
|| [metadata](#header-metadata) | _object (Public metadata)_ ||
|| `organization_id` | _string (Organization context)_ ||
|| `repository_id` | _string (Repository context)_ ||
|| [triggered_by](#header-triggered-by) | _object (UserEmbedded)_ ||
|| `correlation_id` | _string_
Correlation ID for tracking event chains back to the original request.
Uses request_id from the originating gRPC/HTTP request when available,
falls back to trace_id or the root event's ID. ||
|| `causation_id` | _string_
Causation ID is the ID of the event that directly caused this event.
Empty for root events (events triggered directly by user actions).
Used to reconstruct the event tree within a correlation chain. ||
|#

### header.metadata {#header-metadata}

#|
|| **Field** | **Description** ||
|| `property name*`
additional property | _string_ ||
|#

### header.triggered_by {#header-triggered-by}

#|
|| **Field** | **Description** ||
|| `id` | _string (Id will contain "&lt;external-user&gt;" if user is external)_ ||
|| `slug` | _string (Slug will contain "&lt;external-user&gt;" if user is external)_ ||
|#

## repository {#repository}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `name` | _string_
Deprecated: obsolete, prefer using slug. Will be removed in future API iterations. ||
|| `default_branch` | _string_ ||
|| [organization](#repository-organization) | _object (OrganizationEmbedded)_ ||
|| `slug` | _string_ ||
|| `template_type` | _string (RepoTemplate)_

Enum: `"not_a_template"` `"organizational"` `"system"` ||
|| `is_empty` | _boolean_ ||
|| `description` | _string_ ||
|| `visibility` | _string (Repository.Visibility)_

Enum: `"public"` `"internal"` `"private"` ||
|| [logo](#repository-logo) | _object (Image)_ ||
|| [clone_url](#repository-clone-url) | _object (CloneURL)_ ||
|| `web_url` | _string_ ||
|| [links](#repository-links) | _Array of objects (Link)_ ||
|| [counters](#repository-counters) | _object (RepositoryCounters)_ ||
|| `last_updated` | _string &lt;date-time&gt;_ ||
|| [language](#repository-language) | _object (Language)_ ||
|| [parent](#repository-parent) | _object (RepositoryEmbedded)_ ||
|| [migration_source](#repository-migration-source) | _object (MigrationSource)_ ||
|| [project](#repository-project) | _object (ProjectEmbedded)_ ||
|| [rating](#repository-rating) | _object (RepositoryRating)_
Aggregated rating information for a repository. ||
|| [settings](#repository-settings) | _object (RepositorySettings)_ ||
|#

### repository.organization {#repository-organization}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|#

### repository.logo {#repository-logo}

#|
|| **Field** | **Description** ||
|| `url` | _string_ ||
|#

### repository.clone_url {#repository-clone-url}

#|
|| **Field** | **Description** ||
|| `https` | _string_ ||
|| `ssh` | _string_ ||
|#

### repository.links {#repository-links}

#|
|| **Field** | **Description** ||
|| `link` | _string_ ||
|| `type` | _string (Link.LinkType)_

Enum: `"default"` `"social_network"` `"homepage"` `"email"` `"telegram"` ||
|#

### repository.counters {#repository-counters}

#|
|| **Field** | **Description** ||
|| `forks` | _string &lt;uint64&gt;_ ||
|| `pull_requests` | _string &lt;uint64&gt;_ ||
|| `issues` | _string &lt;uint64&gt;_ ||
|| `tags` | _string &lt;uint64&gt;_ ||
|| `branches` | _string &lt;uint64&gt;_ ||
|#

### repository.language {#repository-language}

#|
|| **Field** | **Description** ||
|| `name` | _string_ ||
|| `color` | _string_ ||
|#

### repository.parent {#repository-parent}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|| [organization](#repository-parent-organization) | _object (OrganizationEmbedded)_ ||
|#

#### repository.parent.organization {#repository-parent-organization}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|#

### repository.migration_source {#repository-migration-source}

#|
|| **Field** | **Description** ||
|| `url` | _string_ ||
|| `domain` | _string_ ||
|#

### repository.project {#repository-project}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|#

### repository.rating {#repository-rating}

#|
|| **Field** | **Description** ||
|| `value` | _number &lt;double&gt;_
Current repository rating value. ||
|| `percentile` | _number &lt;double&gt;_
Repository percentile among rated repositories. Omitted while percentile data is unavailable. ||
|| [reaction_counts](#repository-rating-reaction-counts) | _Array of objects (RepositoryRatingReactionCount)_
Reaction counters grouped by reaction type. ||
|#

#### repository.rating.reaction_counts {#repository-rating-reaction-counts}

#|
|| **Field** | **Description** ||
|| `type` | _string (RepositoryRatingReaction.Type)_
 - none: Remove the current user's rating reaction.
 - positive_low: A low positive rating reaction. Corresponds to Like in the SourceCraft interface.
 - positive_medium: A medium positive rating reaction. Corresponds to Heart in the SourceCraft interface.
 - positive_high: A high positive rating reaction. Corresponds to Diamond in the SourceCraft interface.

Enum: `"none"` `"positive_low"` `"positive_medium"` `"positive_high"` ||
|| `count` | _string &lt;uint64&gt;_ ||
|#

### repository.settings {#repository-settings}

#|
|| **Field** | **Description** ||
|| `allow_external_contributions` | _boolean_
Whether authenticated users without organization or repository access can contribute to a public repository.
Has no effect on non-public repositories. ||
|#

## pull_request {#pull-request}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|| [author](#pull-request-author) | _object (UserEmbedded)_ ||
|| [updated_by](#pull-request-updated-by) | _object (UserEmbedded)_ ||
|| `title` | _string_ ||
|| `description` | _string_ ||
|| [repository](#pull-request-repository) | _object (RepositoryEmbedded)_ ||
|| [merge_info](#pull-request-merge-info) | _object (MergeInfo)_ ||
|| `source_branch` | _string (Deprecated, use `source` instead)_ ||
|| `target_branch` | _string (Deprecated, use `target` instead)_ ||
|| `status` | _string (PullRequest.Status)_

Enum: `"draft"` `"open"` `"discarded"` `"merging"` `"merged"` ||
|| `created_at` | _string &lt;date-time&gt;_ ||
|| `updated_at` | _string &lt;date-time&gt;_ ||
|| [labels](#pull-request-labels) | _Array of objects (LabelEmbedded)_ ||
|| [source](#pull-request-source) | _object (PullRequestBranch)_ ||
|| [target](#pull-request-target) | _object (PullRequestBranch)_ ||
|#

### pull_request.author {#pull-request-author}

#|
|| **Field** | **Description** ||
|| `id` | _string (Id will contain "&lt;external-user&gt;" if user is external)_ ||
|| `slug` | _string (Slug will contain "&lt;external-user&gt;" if user is external)_ ||
|#

### pull_request.updated_by {#pull-request-updated-by}

#|
|| **Field** | **Description** ||
|| `id` | _string (Id will contain "&lt;external-user&gt;" if user is external)_ ||
|| `slug` | _string (Slug will contain "&lt;external-user&gt;" if user is external)_ ||
|#

### pull_request.repository {#pull-request-repository}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|| [organization](#pull-request-repository-organization) | _object (OrganizationEmbedded)_ ||
|#

#### pull_request.repository.organization {#pull-request-repository-organization}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|#

### pull_request.merge_info {#pull-request-merge-info}

#|
|| **Field** | **Description** ||
|| [merger](#pull-request-merge-info-merger) | _object (UserEmbedded)_ ||
|| [merge_parameters](#pull-request-merge-info-merge-parameters) | _object (MergeParameters)_ ||
|| `target_commit_hash` | _string_ ||
|| `error` | _string (filled after merge)_ ||
|| `merge_commit_hash` | _string (filled after merge)_ ||
|#

#### pull_request.merge_info.merger {#pull-request-merge-info-merger}

#|
|| **Field** | **Description** ||
|| `id` | _string (Id will contain "&lt;external-user&gt;" if user is external)_ ||
|| `slug` | _string (Slug will contain "&lt;external-user&gt;" if user is external)_ ||
|#

#### pull_request.merge_info.merge_parameters {#pull-request-merge-info-merge-parameters}

#|
|| **Field** | **Description** ||
|| `rebase` | _boolean_ ||
|| `squash` | _boolean_ ||
|#

### pull_request.labels {#pull-request-labels}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `slug` | _string_ ||
|| `name` | _string_ ||
|| `color` | _string_ ||
|#

### pull_request.source {#pull-request-source}

#|
|| **Field** | **Description** ||
|| `label` | _string ("org/repo:branch-name")_ ||
|| `ref` | _string (branch name)_ ||
|| `sha` | _string (commit SHA (hex))_ ||
|#

### pull_request.target {#pull-request-target}

#|
|| **Field** | **Description** ||
|| `label` | _string ("org/repo:branch-name")_ ||
|| `ref` | _string (branch name)_ ||
|| `sha` | _string (commit SHA (hex))_ ||
|#

## comment {#comment}

#|
|| **Field** | **Description** ||
|| `id` | _string_ ||
|| `body` | _string_ ||
|| `parent_id` | _string_ ||
|| [author](#comment-author) | _object (UserEmbedded)_ ||
|| [updated_by](#comment-updated-by) | _object (UserEmbedded)_ ||
|| `created_at` | _string &lt;date-time&gt;_ ||
|| `updated_at` | _string &lt;date-time&gt;_ ||
|| `is_deleted` | _boolean_ ||
|| [reactions](#comment-reactions) | _object_ ||
|| [anchor](#comment-anchor) | _object (Anchor)_ ||
|| `need_resolution` | _boolean_
Deprecated: use resolution_state instead. ||
|| `is_resolved` | _boolean_
Deprecated: use resolution_state instead. ||
|| `is_published` | _boolean_ ||
|| `is_outdated` | _boolean_ ||
|| `type` | _string (PullRequestComment.Type)_

Enum: `"default"` `"appsec"` ||
|| `iteration` | _string &lt;uint64&gt;_ ||
|| `resolution_state` | _string (ResolutionState)_
Resolution state for pull request comments.
Transition from `no_resolution_needed` directly to `resolved` is not allowed:
set to `awaiting_resolution` first, then resolve.

Enum: `"no_resolution_needed"` `"awaiting_resolution"` `"resolved"` ||
|#

### comment.author {#comment-author}

#|
|| **Field** | **Description** ||
|| `id` | _string (Id will contain "&lt;external-user&gt;" if user is external)_ ||
|| `slug` | _string (Slug will contain "&lt;external-user&gt;" if user is external)_ ||
|#

### comment.updated_by {#comment-updated-by}

#|
|| **Field** | **Description** ||
|| `id` | _string (Id will contain "&lt;external-user&gt;" if user is external)_ ||
|| `slug` | _string (Slug will contain "&lt;external-user&gt;" if user is external)_ ||
|#

### comment.reactions {#comment-reactions}

#|
|| **Field** | **Description** ||
|| [property name*](#comment-reactions-additional-property)
additional property | _object (ReactionCount)_ ||
|#

#### comment.reactions.additional-property {#comment-reactions-additional-property}

#|
|| **Field** | **Description** ||
|| `count` | _integer &lt;int32&gt;_ ||
|| `self_react` | _boolean_ ||
|#

### comment.anchor {#comment-anchor}

#|
|| **Field** | **Description** ||
|| `path` | _string_ ||
|| [position](#comment-anchor-position) | _object (DiffPos)_ ||
|| [hunk](#comment-anchor-hunk) | _object (Hunk represent transformation that will modify region
in left side from\_start:from\_start+from\_count into region
in right side to\_start:to\_count)_ ||
|#

#### comment.anchor.position {#comment-anchor-position}

#|
|| **Field** | **Description** ||
|| `from` | _integer &lt;int32&gt;_
Start of commented region, line number (1-based). ||
|| `to` | _integer &lt;int32&gt;_
End of commented region, line number (1-based). ||
|| `side` | _string (Side)_

Enum: `"target"` `"source"` ||
|| `outdated` | _boolean_
Indicates whether commented region has changed after initial comment publishing. ||
|#

#### comment.anchor.hunk {#comment-anchor-hunk}

#|
|| **Field** | **Description** ||
|| `from_start` | _integer &lt;int32&gt;_ ||
|| `from_count` | _integer &lt;int32&gt;_ ||
|| `to_start` | _integer &lt;int32&gt;_ ||
|| `to_count` | _integer &lt;int32&gt;_ ||
|| `patch` | _string_ ||
|#

{% cut "Request samples" %}

```json
{
  "$ref": "#/components/schemas/PullRequestCommentCreate",
  "components": {
    "schemas": {
      "PullRequestCommentCreate": {
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/EventHeader"
          },
          "repository": {
            "$ref": "#/components/schemas/Repository"
          },
          "pull_request": {
            "$ref": "#/components/schemas/PullRequest"
          },
          "comment": {
            "$ref": "#/components/schemas/PullRequestComment"
          },
          "is_thread": {
            "type": "boolean",
            "title": "Whether this is a top-level thread (not a reply)"
          },
          "is_published": {
            "type": "boolean",
            "title": "Whether the comment was published (visible) or draft"
          }
        },
        "title": "PullRequestCommentCreate event - represents creation of a pull request comment"
      },
      "EventHeader": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Unique identifier for this event instance"
          },
          "type": {
            "type": "string",
            "title": "Event type"
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "title": "When the event occurred"
          },
          "aggregate_id": {
            "type": "string",
            "title": "ID of the primary entity this event is about"
          },
          "aggregate_type": {
            "type": "string",
            "title": "Type of the primary entity (derived from event_type)"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "title": "Public metadata"
          },
          "organization_id": {
            "type": "string",
            "title": "Organization context"
          },
          "repository_id": {
            "type": "string",
            "title": "Repository context"
          },
          "triggered_by": {
            "$ref": "#/components/schemas/UserEmbedded"
          },
          "correlation_id": {
            "type": "string",
            "description": "Correlation ID for tracking event chains back to the original request.\nUses request_id from the originating gRPC/HTTP request when available,\nfalls back to trace_id or the root event's ID."
          },
          "causation_id": {
            "type": "string",
            "description": "Causation ID is the ID of the event that directly caused this event.\nEmpty for root events (events triggered directly by user actions).\nUsed to reconstruct the event tree within a correlation chain."
          }
        },
        "title": "Common header included in all public events"
      },
      "UserEmbedded": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Id will contain \"<external-user>\" if user is external"
          },
          "slug": {
            "type": "string",
            "title": "Slug will contain \"<external-user>\" if user is external"
          }
        }
      },
      "Repository": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Deprecated: obsolete, prefer using slug. Will be removed in future API iterations."
          },
          "default_branch": {
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/OrganizationEmbedded"
          },
          "slug": {
            "type": "string"
          },
          "template_type": {
            "$ref": "#/components/schemas/RepoTemplate"
          },
          "is_empty": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "visibility": {
            "$ref": "#/components/schemas/Repository.Visibility"
          },
          "logo": {
            "$ref": "#/components/schemas/Image"
          },
          "clone_url": {
            "$ref": "#/components/schemas/CloneURL"
          },
          "web_url": {
            "type": "string"
          },
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Link"
            }
          },
          "counters": {
            "$ref": "#/components/schemas/RepositoryCounters"
          },
          "last_updated": {
            "type": "string",
            "format": "date-time"
          },
          "language": {
            "$ref": "#/components/schemas/Language"
          },
          "parent": {
            "$ref": "#/components/schemas/RepositoryEmbedded"
          },
          "migration_source": {
            "$ref": "#/components/schemas/MigrationSource"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectEmbedded"
          },
          "rating": {
            "$ref": "#/components/schemas/RepositoryRating"
          },
          "settings": {
            "$ref": "#/components/schemas/RepositorySettings"
          }
        }
      },
      "OrganizationEmbedded": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      },
      "RepoTemplate": {
        "type": "string",
        "enum": [
          "not_a_template",
          "organizational",
          "system"
        ]
      },
      "Repository.Visibility": {
        "type": "string",
        "enum": [
          "public",
          "internal",
          "private"
        ]
      },
      "Image": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          }
        }
      },
      "CloneURL": {
        "type": "object",
        "properties": {
          "https": {
            "type": "string"
          },
          "ssh": {
            "type": "string"
          }
        }
      },
      "Link": {
        "type": "object",
        "properties": {
          "link": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/Link.LinkType"
          }
        }
      },
      "Link.LinkType": {
        "type": "string",
        "enum": [
          "default",
          "social_network",
          "homepage",
          "email",
          "telegram"
        ]
      },
      "RepositoryCounters": {
        "type": "object",
        "properties": {
          "forks": {
            "type": "string",
            "format": "uint64"
          },
          "pull_requests": {
            "type": "string",
            "format": "uint64"
          },
          "issues": {
            "type": "string",
            "format": "uint64"
          },
          "tags": {
            "type": "string",
            "format": "uint64"
          },
          "branches": {
            "type": "string",
            "format": "uint64"
          }
        }
      },
      "Language": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string"
          }
        }
      },
      "RepositoryEmbedded": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "organization": {
            "$ref": "#/components/schemas/OrganizationEmbedded"
          }
        }
      },
      "MigrationSource": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          }
        }
      },
      "ProjectEmbedded": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      },
      "RepositoryRating": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "format": "double",
            "description": "Current repository rating value."
          },
          "percentile": {
            "type": "number",
            "format": "double",
            "description": "Repository percentile among rated repositories. Omitted while percentile data is unavailable."
          },
          "reaction_counts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepositoryRatingReactionCount"
            },
            "description": "Reaction counters grouped by reaction type."
          }
        },
        "description": "Aggregated rating information for a repository."
      },
      "RepositoryRatingReactionCount": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/RepositoryRatingReaction.Type"
          },
          "count": {
            "type": "string",
            "format": "uint64"
          }
        },
        "description": "Number of rating reactions of a particular type."
      },
      "RepositoryRatingReaction.Type": {
        "type": "string",
        "enum": [
          "none",
          "positive_low",
          "positive_medium",
          "positive_high"
        ],
        "description": " - none: Remove the current user's rating reaction.\n - positive_low: A low positive rating reaction. Corresponds to Like in the SourceCraft interface.\n - positive_medium: A medium positive rating reaction. Corresponds to Heart in the SourceCraft interface.\n - positive_high: A high positive rating reaction. Corresponds to Diamond in the SourceCraft interface."
      },
      "RepositorySettings": {
        "type": "object",
        "properties": {
          "allow_external_contributions": {
            "type": "boolean",
            "description": "Whether authenticated users without organization or repository access can contribute to a public repository.\nHas no effect on non-public repositories."
          }
        }
      },
      "PullRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "author": {
            "$ref": "#/components/schemas/UserEmbedded"
          },
          "updated_by": {
            "$ref": "#/components/schemas/UserEmbedded"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "repository": {
            "$ref": "#/components/schemas/RepositoryEmbedded"
          },
          "merge_info": {
            "$ref": "#/components/schemas/MergeInfo"
          },
          "source_branch": {
            "type": "string",
            "title": "Deprecated, use `source` instead"
          },
          "target_branch": {
            "type": "string",
            "title": "Deprecated, use `target` instead"
          },
          "status": {
            "$ref": "#/components/schemas/PullRequest.Status"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LabelEmbedded"
            }
          },
          "source": {
            "$ref": "#/components/schemas/PullRequestBranch"
          },
          "target": {
            "$ref": "#/components/schemas/PullRequestBranch"
          }
        }
      },
      "MergeInfo": {
        "type": "object",
        "properties": {
          "merger": {
            "$ref": "#/components/schemas/UserEmbedded"
          },
          "merge_parameters": {
            "$ref": "#/components/schemas/MergeParameters"
          },
          "target_commit_hash": {
            "type": "string"
          },
          "error": {
            "type": "string",
            "title": "filled after merge"
          },
          "merge_commit_hash": {
            "type": "string",
            "title": "filled after merge"
          }
        }
      },
      "MergeParameters": {
        "type": "object",
        "properties": {
          "rebase": {
            "type": "boolean"
          },
          "squash": {
            "type": "boolean"
          }
        }
      },
      "PullRequest.Status": {
        "type": "string",
        "enum": [
          "draft",
          "open",
          "discarded",
          "merging",
          "merged"
        ]
      },
      "LabelEmbedded": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string"
          }
        }
      },
      "PullRequestBranch": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "title": "\"org/repo:branch-name\""
          },
          "ref": {
            "type": "string",
            "title": "branch name"
          },
          "sha": {
            "type": "string",
            "title": "commit SHA (hex)"
          }
        }
      },
      "PullRequestComment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "parent_id": {
            "type": "string"
          },
          "author": {
            "$ref": "#/components/schemas/UserEmbedded"
          },
          "updated_by": {
            "$ref": "#/components/schemas/UserEmbedded"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          },
          "is_deleted": {
            "type": "boolean"
          },
          "reactions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/ReactionCount"
            }
          },
          "anchor": {
            "$ref": "#/components/schemas/Anchor"
          },
          "need_resolution": {
            "type": "boolean",
            "description": "Deprecated: use resolution_state instead."
          },
          "is_resolved": {
            "type": "boolean",
            "description": "Deprecated: use resolution_state instead."
          },
          "is_published": {
            "type": "boolean"
          },
          "is_outdated": {
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/PullRequestComment.Type"
          },
          "iteration": {
            "type": "string",
            "format": "uint64"
          },
          "resolution_state": {
            "$ref": "#/components/schemas/ResolutionState"
          }
        }
      },
      "ReactionCount": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "self_react": {
            "type": "boolean"
          }
        }
      },
      "Anchor": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "position": {
            "$ref": "#/components/schemas/DiffPos"
          },
          "hunk": {
            "$ref": "#/components/schemas/Hunk"
          }
        }
      },
      "DiffPos": {
        "type": "object",
        "properties": {
          "from": {
            "type": "integer",
            "format": "int32",
            "description": "Start of commented region, line number (1-based)."
          },
          "to": {
            "type": "integer",
            "format": "int32",
            "description": "End of commented region, line number (1-based)."
          },
          "side": {
            "$ref": "#/components/schemas/Side"
          },
          "outdated": {
            "type": "boolean",
            "description": "Indicates whether commented region has changed after initial comment publishing."
          }
        }
      },
      "Side": {
        "type": "string",
        "enum": [
          "target",
          "source"
        ]
      },
      "Hunk": {
        "type": "object",
        "properties": {
          "from_start": {
            "type": "integer",
            "format": "int32"
          },
          "from_count": {
            "type": "integer",
            "format": "int32"
          },
          "to_start": {
            "type": "integer",
            "format": "int32"
          },
          "to_count": {
            "type": "integer",
            "format": "int32"
          },
          "patch": {
            "type": "string"
          }
        },
        "title": "Hunk represent transformation that will modify region\nin left side from_start:from_start+from_count into region\nin right side to_start:to_count"
      },
      "PullRequestComment.Type": {
        "type": "string",
        "enum": [
          "default",
          "appsec"
        ]
      },
      "ResolutionState": {
        "type": "string",
        "enum": [
          "no_resolution_needed",
          "awaiting_resolution",
          "resolved"
        ],
        "description": "Resolution state for pull request comments.\nTransition from `no_resolution_needed` directly to `resolved` is not allowed:\nset to `awaiting_resolution` first, then resolve."
      }
    }
  }
}
```

{% endcut %}
