Gerrit for Chromium
Gerrit for Chromium · Acciones GPT
Gerrit for Chromium Plugin API
GET /api/v1.0.0/changes/{change-id}/messageslistChangeMessagesGET /api/v1.0.0/changes/queryChangesGET /api/v1.0.0/changes/{change-id}/revisions/{revision-id}/files/{file-id}/diffgetDiffGET /api/v1.0.0/changes/{change-id}/revisions/{revision-id}/fileslistFiles
Esquema original API
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Gerrit for Chromium Plugin API"
},
"tags": [
{
"name": "language",
"description": "en"
}
],
"servers": [
{
"url": "https://chatgpt.gerrit.ai.moda",
"description": "Production environment"
}
],
"components": {
"schemas": {},
"parameters": {}
},
"paths": {
"/api/v1.0.0/changes/{change-id}/messages": {
"get": {
"operationId": "listChangeMessages",
"parameters": [
{
"schema": {
"type": "string",
"examples": [
"I4b6f37f89ed2fd5e94ec054f2ad5eb43f5c4a610"
]
},
"required": true,
"name": "change-id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Lists all the messages of a change including detailed account information.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "YH-egE"
},
"author": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"real_author": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"date": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"message": {
"type": "string",
"example": "Uploaded patch set 1."
},
"accounts_in_message": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
}
},
"tag": {
"type": "string",
"example": "review-tag"
},
"_revision_number": {
"type": "number",
"example": 1
}
},
"required": [
"id",
"date",
"message",
"_revision_number"
],
"description": "The ChangeMessageInfo entity contains information about a message attached to a change."
}
}
}
}
},
"404": {
"description": "The change-id does not exist.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "Unexpected internal server error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status_code": {
"type": "number",
"description": "Original error code.",
"example": 504
},
"message": {
"type": "string"
}
}
}
}
}
}
}
}
},
"/api/v1.0.0/changes/": {
"get": {
"operationId": "queryChanges",
"parameters": [
{
"schema": {
"type": "string",
"description": "The query to search for changes.",
"examples": [
"status:open",
"status:merged",
"status:abandoned",
"is:watched is:open",
"is:starred",
"has:draft",
"has:edit",
"is:visible",
"status:open project:Foo",
"project:chromium/src",
"project:v8/v8",
"Brendon Tiszka",
"owner:tiszka@chromium.org",
"bug:1452019"
]
},
"required": true,
"name": "q",
"in": "query"
},
{
"schema": {
"type": "string",
"default": "10",
"description": "The maximum number of changes to return.",
"example": "10"
},
"required": false,
"name": "n",
"in": "query"
},
{
"schema": {
"type": "array",
"items": {
"type": "string",
"enum": [
"LABELS",
"DETAILED_LABELS",
"SUBMIT_REQUIREMENTS",
"CURRENT_REVISION",
"ALL_REVISIONS",
"DOWNLOAD_COMMANDS",
"CURRENT_COMMIT",
"ALL_COMMITS",
"CURRENT_FILES",
"ALL_FILES",
"DETAILED_ACCOUNTS",
"REVIEWER_UPDATES",
"MESSAGES",
"CURRENT_ACTIONS",
"CHANGE_ACTIONS",
"REVIEWED",
"SKIP_DIFFSTAT",
"SUBMITTABLE",
"WEB_LINKS",
"CHECK",
"COMMIT_FOOTERS",
"PUSH_CERTIFICATES",
"TRACKING_IDS",
"CUSTOM_KEYED_VALUES",
"STAR",
"PARENTS"
]
},
"default": [
"CURRENT_REVISION"
],
"description": "An anonymous set of options."
},
"required": false,
"style": "form",
"explode": true,
"name": "o",
"in": "query"
}
],
"responses": {
"200": {
"description": "Query for open changes of watched projects.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The format is \"'<project>~<_number>'\". 'project' and '_number' are URL encoded."
},
"triplet_id": {
"type": "string",
"description": "This is NOT the revision-id.",
"example": "'<project>~<branch>~<Change-Id>"
},
"project": {
"type": "string",
"description": "The name of the project."
},
"branch": {
"type": "string",
"description": "The name of the branch. The refs/heads/ prefix is omitted."
},
"topic": {
"type": "string",
"description": "The topic to which this change belongs."
},
"attention_set": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"account": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"last_update": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"reason": {
"type": "string",
"example": "reason <GERRIT_ACCOUNT_18419>"
},
"reason_account": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
}
},
"required": [
"account",
"last_update",
"reason",
"reason_account"
]
},
"description": "The map that maps account IDs to AttentionSetInfo of that account. Those are all accounts that are currently in the attention set."
},
"removed_from_attention_set": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"account": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"last_update": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"reason": {
"type": "string",
"example": "reason <GERRIT_ACCOUNT_18419>"
},
"reason_account": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
}
},
"required": [
"account",
"last_update",
"reason",
"reason_account"
]
},
"description": "The map that maps account IDs to AttentionSetInfo of that account. Those are all accounts that were in the attention set but were removed. The AttentionSetInfo is the latest and most recent removal of the account from the attention set."
},
"hashtags": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of hashtags that are set on the change."
},
"custom_keyed_values": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "value"
},
"description": "A map that maps custom keys to custom values that are tied to a specific change, both in the form of strings. Only set if custom keyed values are requested."
},
"change_id": {
"type": "string",
"description": "The Change-Id of the change."
},
"change-id": {
"type": "string",
"description": "The Change-Id of the change."
},
"subject": {
"type": "string",
"description": "The subject of the change (header line of the commit message)."
},
"status": {
"type": "string",
"examples": [
"NEW",
"MERGED",
"ABANDONED"
]
},
"created": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"updated": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"submitted": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"submitter": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The user who submitted the change, as an AccountInfo entity."
},
"starred": {
"type": "boolean",
"description": "Whether the calling user has starred this change. Only set if requested."
},
"reviewed": {
"type": "boolean",
"description": "Whether the change was reviewed by the calling user. Only set if reviewed is requested."
},
"submit_type": {
"type": "string",
"description": "Defines the submit action aka submit type aka submit strategy that Gerrit should use to integrate changes into the target branch when they are submitted."
},
"mergeable": {
"type": "boolean",
"description": "Whether the change is mergeable. Only set for open changes if change.mergeabilityComputationBehavior is API_REF_UPDATED_AND_CHANGE_REINDEX."
},
"submittable": {
"type": "boolean",
"description": "Whether the change has been approved by the project submit rules. Only set if requested."
},
"insertions": {
"type": "number",
"description": "Number of inserted lines."
},
"deletions": {
"type": "number",
"description": "Number of deleted lines."
},
"total_comment_count": {
"type": "number",
"description": "Total number of inline comments across all patch sets. Not set if the current change index doesn’t have the data."
},
"unresolved_comment_count": {
"type": "number",
"description": "Number of unresolved inline comment threads across all patch sets. Not set if the current change index doesn’t have the data."
},
"_number": {
"type": "number",
"description": "The change number."
},
"owner": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The owner of the change as an AccountInfo entity."
},
"actions": {
"type": "object",
"properties": {
"method": {
"type": "string",
"examples": [
"POST",
"PUT",
"DELETE"
]
},
"label": {
"type": "string",
"description": "Short title to display to a user describing the action."
},
"title": {
"type": "string",
"description": "Longer text to display describing the action. "
},
"enabled": {
"type": "boolean",
"description": "If true the action is permitted at this time and the caller is likely allowed to execute it."
},
"enabled_options": {
"type": "array",
"items": {
"type": "string",
"examples": [
"rebase",
"rebase:chain"
]
}
}
},
"required": [
"enabled_options"
],
"description": "Actions the caller might be able to perform on this revision. The information is a map of view name to ActionInfo entities."
},
"submit_records": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rule_name": {
"type": "string",
"description": "The name of the submit rule that created this submit record."
},
"status": {
"type": "string",
"examples": [
"OK",
"NOT_READY",
"CLOSED",
"FORCED",
"RULE_ERROR"
]
},
"labels": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"description": "The label name."
},
"status": {
"type": "string",
"description": "The label status.",
"examples": [
"OK",
"REJECT",
"MAY",
"NEED",
"IMPOSSIBLE"
]
},
"appliedBy": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The account that applied the vote to the label."
}
},
"required": [
"label",
"status",
"appliedBy"
]
}
},
"requirements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"type": "string",
"examples": [
"OK",
"NOT_READY",
"RULE_ERROR"
]
},
"fallback_text": {
"type": "string",
"description": "A human readable reason."
},
"type": {
"type": "string",
"description": "Alphanumerical (plus hyphens or underscores) string to identify what the requirement is and why it was triggered."
}
},
"required": [
"status",
"fallback_text",
"type"
]
}
},
"error_message": {
"type": "string",
"description": "The error message if the status is RULE_ERROR."
}
},
"required": [
"rule_name",
"status",
"labels"
]
},
"description": "List of the SubmitRecordInfo containing the submit records for the change at the latest patchset."
},
"requirements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"type": "string",
"examples": [
"OK",
"NOT_READY",
"RULE_ERROR"
]
},
"fallback_text": {
"type": "string",
"description": "A human readable reason."
},
"type": {
"type": "string",
"description": "Alphanumerical (plus hyphens or underscores) string to identify what the requirement is and why it was triggered."
}
},
"required": [
"status",
"fallback_text",
"type"
]
},
"description": "List of the requirements to be met before this change can be submitted. This field is deprecated in favour of submit_requirements."
},
"submit_requirements": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the submit requirement."
},
"description": {
"type": "string",
"description": "The description of the submit requirement."
},
"status": {
"type": "string",
"examples": [
"SATISFIED",
"UNSATISFIED",
"OVERRIDDEN",
"NOT_APPLICABLE",
"ERROR",
"FORCED"
]
},
"is_legacy": {
"type": "boolean",
"description": "f true, this submit requirement result was created from a legacy SubmitRecord."
},
"applicability_expression_result": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "The submit requirement expression as a string."
},
"fulfilled": {
"type": "boolean",
"description": "True if the submit requirement is fulfilled for the change."
},
"status": {
"type": "string",
"examples": [
"PASS",
"FAIL",
"ERROR",
"NOT_EVALUATED"
]
},
"passing_atoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The atoms that passed the evaluation of the submit requirement expression."
},
"failing_atoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The atoms that failed the evaluation of the submit requirement expression."
},
"error_message": {
"type": "string",
"description": "error message describing why it failed."
}
},
"required": [
"fulfilled",
"status"
],
"description": "The SubmitRequirementExpressionInfo describes the result of evaluating a single submit requirement expression, for example label:code-review=+2."
},
"submittability_expression_result": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "The submit requirement expression as a string."
},
"fulfilled": {
"type": "boolean",
"description": "True if the submit requirement is fulfilled for the change."
},
"status": {
"type": "string",
"examples": [
"PASS",
"FAIL",
"ERROR",
"NOT_EVALUATED"
]
},
"passing_atoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The atoms that passed the evaluation of the submit requirement expression."
},
"failing_atoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The atoms that failed the evaluation of the submit requirement expression."
},
"error_message": {
"type": "string",
"description": "error message describing why it failed."
}
},
"required": [
"fulfilled",
"status"
],
"description": "The SubmitRequirementExpressionInfo describes the result of evaluating a single submit requirement expression, for example label:code-review=+2."
},
"override_expression_result": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "The submit requirement expression as a string."
},
"fulfilled": {
"type": "boolean",
"description": "True if the submit requirement is fulfilled for the change."
},
"status": {
"type": "string",
"examples": [
"PASS",
"FAIL",
"ERROR",
"NOT_EVALUATED"
]
},
"passing_atoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The atoms that passed the evaluation of the submit requirement expression."
},
"failing_atoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "The atoms that failed the evaluation of the submit requirement expression."
},
"error_message": {
"type": "string",
"description": "error message describing why it failed."
}
},
"required": [
"fulfilled",
"status"
],
"description": "The SubmitRequirementExpressionInfo describes the result of evaluating a single submit requirement expression, for example label:code-review=+2."
}
},
"required": [
"name",
"status",
"is_legacy",
"submittability_expression_result"
]
},
"description": "List of the SubmitRequirementResultInfo containing the evaluated submit requirements for the change. Only set if SUBMIT_REQUIREMENTS is requested."
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"optional": {
"type": "boolean",
"description": "If true, the label is optional."
},
"description": {
"type": "string",
"description": "The description of the label."
},
"approved": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"rejected": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"recommended": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"disliked": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"blocking": {
"type": "boolean",
"description": "If true, the label blocks submit operation."
},
"value": {
"type": "number",
"description": "The voting value of the user who recommended/disliked this label on the change."
},
"default_value": {
"type": "number",
"description": "The default voting value of the label."
},
"votes": {
"type": "array",
"items": {
"type": "number"
},
"description": "A list of integers containing the vote values applied to this label at the latest patchset."
},
"all": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "The vote that the user has given for the label."
},
"permitted_voting_range": {
"type": "object",
"properties": {
"min": {
"type": "number",
"description": "The minimum voting value."
},
"max": {
"type": "number",
"description": "The maximum voting value."
}
},
"required": [
"min",
"max"
]
},
"date": {
"type": "string",
"description": "The time and date describing when the approval was made."
},
"tag": {
"type": "string",
"description": "Value of the tag field from ReviewInput set while posting the review."
},
"post_submit": {
"type": "boolean",
"description": "If true, this vote was made after the change was submitted."
}
}
}
},
"values": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "value description"
}
}
}
},
"description": "The labels of the change as a map that maps the label names to LabelInfo entries. Only set if labels or detailed labels are requested."
},
"permitted_labels": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"optional": {
"type": "boolean",
"description": "If true, the label is optional."
},
"description": {
"type": "string",
"description": "The description of the label."
},
"approved": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"rejected": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"recommended": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"disliked": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"blocking": {
"type": "boolean",
"description": "If true, the label blocks submit operation."
},
"value": {
"type": "number",
"description": "The voting value of the user who recommended/disliked this label on the change."
},
"default_value": {
"type": "number",
"description": "The default voting value of the label."
},
"votes": {
"type": "array",
"items": {
"type": "number"
},
"description": "A list of integers containing the vote values applied to this label at the latest patchset."
},
"all": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "The vote that the user has given for the label."
},
"permitted_voting_range": {
"type": "object",
"properties": {
"min": {
"type": "number",
"description": "The minimum voting value."
},
"max": {
"type": "number",
"description": "The maximum voting value."
}
},
"required": [
"min",
"max"
]
},
"date": {
"type": "string",
"description": "The time and date describing when the approval was made."
},
"tag": {
"type": "string",
"description": "Value of the tag field from ReviewInput set while posting the review."
},
"post_submit": {
"type": "boolean",
"description": "If true, this vote was made after the change was submitted."
}
}
}
},
"values": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "value description"
}
}
}
},
"description": "A map of the permitted labels that maps a label name to the list of values that are allowed for that label. Only set if detailed labels are requested."
},
"removable_labels": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"description": "A map of the removable labels that maps a label name to the map of values and reviewers ( AccountInfo entities) that are allowed to be removed from the change. Only set if labels or detailed labels are requested."
},
"reviewers": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
}
},
"description": "The reviewers as a map that maps a reviewer state to a list of AccountInfo entities. Only set if labels or detailed labels are requested."
},
"pending_reviewers": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
}
},
"description": "Updates to reviewers that have been made while the change was in the WIP state. Only present on WIP changes and only if there are pending reviewer updates to report. These are reviewers who have not yet been notified about being added to or removed from the change."
},
"reviewer_updates": {
"type": "object",
"properties": {
"updated": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"updated_by": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The account which modified state of the reviewer in question as AccountInfo entity."
},
"reviewer": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The reviewer account added or removed from the change as an AccountInfo entity."
},
"state": {
"type": "string",
"examples": [
"REVIEWER",
"CC",
"REMOVED"
]
}
},
"required": [
"updated",
"updated_by",
"reviewer",
"state"
],
"description": "Updates to reviewers set for the change as ReviewerUpdateInfo entities. Only set if reviewer updates are requested."
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"example": "YH-egE"
},
"author": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"real_author": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
},
"date": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"message": {
"type": "string",
"example": "Uploaded patch set 1."
},
"accounts_in_message": {
"type": "array",
"items": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
}
}
},
"tag": {
"type": "string",
"example": "review-tag"
},
"_revision_number": {
"type": "number",
"example": 1
}
},
"required": [
"id",
"date",
"message",
"_revision_number"
],
"description": "The ChangeMessageInfo entity contains information about a message attached to a change."
},
"description": "Messages associated with the change as a list of ChangeMessageInfo entities. Only set if messages are requested."
},
"current_revision": {
"type": "string",
"description": "The commit ID of the current patch set of this change. Only set if the current revision is requested or if all revisions are requested."
},
"revision-id": {
"type": "string",
"description": "The commit ID of the current patch set of this change. Only set if the current revision is requested or if all revisions are requested."
},
"revisions": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"examples": [
"REWORK",
"TRIVIAL_REBASE",
"MERGE_FIRST_PARENT_UPDATE",
"NO_CODE_CHANGE",
"NO_CHANGE"
]
},
"_number": {
"type": "number",
"description": "The patch set number, or edit if the patch set is an edit."
},
"created": {
"type": "string",
"example": "2021-09-11 04:23:33.000000000"
},
"uploader": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The uploader of the patch set as an AccountInfo entity."
},
"real_uploader": {
"type": "object",
"properties": {
"_account_id": {
"type": "number",
"example": 1000096
},
"name": {
"type": "string",
"example": "John Doe"
},
"display_name": {
"type": "string",
"example": "John D."
},
"email": {
"type": "string",
"example": "john.doe@gerrit.email.ai.moda"
},
"secondary_emails": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"alternate.john.doe@gerrit.email.ai.moda"
]
},
"username": {
"type": "string",
"example": "jdoe"
},
"avatars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"height": {
"type": "number"
},
"width": {
"type": "number"
}
},
"required": [
"url",
"height",
"width"
]
}
},
"_more_accounts": {
"type": "boolean",
"example": false
},
"status": {
"type": "string",
"example": "Online"
},
"inactive": {
"type": "boolean",
"example": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"example": [
"SERVICE_USER"
]
}
},
"description": "The real uploader of the patch set as an AccountInfo entity. Only set if the upload was done on behalf of another user."
},
"ref": {
"type": "string",
"description": "The Git reference for the patch set."
},
"fetch": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The URL of the project."
},
"ref": {
"type": "string",
"description": "The ref of the patch set."
},
"commands": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "commands"
},
"description": "The download commands for this patch set as a map that maps the command names to the commands. Only set if download commands are requested."
}
},
"required": [
"url",
"ref"
]
},
"description": "Information about how to fetch this patch set. The fetch information is provided as a map that maps the protocol name (“git”, “http”, “ssh”) to FetchInfo entities. This information is only included if a plugin implementing the download commands interface is installed."
},
"commit": {
"type": "object",
"properties": {
"commit": {
"type": "string",
"description": "The commit ID. Not set if included in a RevisionInfo entity that is contained in a map which has the commit ID as key."
},
"parents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"commit": {
"type": "string"
},
"subject": {
"type": "string"
}
},
"required": [
"commit",
"subject"
]
},
"description": "The parent commits of this commit as a list of CommitInfo entities. In each parent only the commit and subject fields are populated."
},
"author": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the person."
},
"email": {
"type": "string",
"description": "The email address of the person."
},
"date": {
"type": "string",
"example": "yyyy-mm-dd hh:mm:ss.fffffffff"
},
"tz": {
"type": "number",
"description": "The timezone offset from UTC of when this identity was constructed."
}
},
"required": [
"name",
"email",
"date",
"tz"
],
"description": "The author of the commit as a GitPersonInfo entity."
},
"committer": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the person."
},
"email": {
"type": "string",
"description": "The email address of the person."
},
"date": {
"type": "string",
"example": "yyyy-mm-dd hh:mm:ss.fffffffff"
},
"tz": {
"type": "number",
"description": "The timezone offset from UTC of when this identity was constructed."
}
},
"required": [
"name",
"email",
"date",
"tz"
],
"description": "The committer of the commit as a GitPersonInfo entity."
},
"subject": {
"type": "string",
"description": "The subject of the commit (header line of the commit message)."
},
"message": {
"type": "string",
"description": "The commit message."
},
"web_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The text to be linkified."
},
"tooltip": {
"type": "string",
"description": "Tooltip to show when hovering over the link. Using \"Open in $NAME_OF_EXTERNAL_TOOL\" is a good option here."
},
"url": {
"type": "string",
"description": "The link URL."
},
"image_url": {
"type": "string",
"description": "URL to the icon of the link."
}
},
"required": [
"name",
"url"
]
},
"description": "Links to the patch set in external sites as a list of WebLinkInfo entities."
},
"resolve_conflicts_web_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The text to be linkified."
},
"tooltip": {
"type": "string",
"description": "Tooltip to show when hovering over the link. Using \"Open in $NAME_OF_EXTERNAL_TOOL\" is a good option here."
},
"url": {
"type": "string",
"description": "The link URL."
},
"image_url": {
"type": "string",
"description": "URL to the icon of the link."
}
},
"required": [
"name",
"url"
]
},
"description": "Links to the commit in external sites for resolving conflicts as a list of WebLinkInfo entities."
}
},
"required": [
"parents",
"author",
"committer",
"subject",
"message"
],
"description": "The commit of the patch set as a CommitInfo entity."
},
"parents_data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"branch_name": {
"type": "string",
"description": "Name of the target branch into which the parent commit is merged."
},
"commit_id": {
"type": "string",
"description": "The commit SHA-1 of the parent commit, or null if the current commit is root."
},
"is_merged_in_target_branch": {
"type": "boolean",
"description": "Set to true if the parent commit is merged into the target branch."
},
"change_id": {
"type": "string",
"description": "If the parent commit is a patch-set of another gerrit change, this field will hold the change ID of the parent change. Otherwise, will be null."
},
"change_number": {
"type": "number",
"description": "If the parent commit is a patch-set of another gerrit change, this field will hold the change number of the parent change. Otherwise, will be null."
},
"patch_set_number": {
"type": "number",
"description": "If the parent commit is a patch-set of another gerrit change, this field will hold the patch-set number of the parent change. Otherwise, will be null."
},
"change_status": {
"type": "string",
"description": "If the parent commit is a patch-set of another gerrit change, this field will hold the change status of the parent change. Otherwise, will be null."
}
}
},
"description": "The parent commits of this patch-set commit as a list of ParentInfo entities. In each parent, we include the target branch name if the parent is a merged commit in the target branch. Otherwise, we include the change and patch-set numbers of the parent change. Only set if the PARENTS option is set."
},
"branch": {
"type": "string",
"description": "The name of the target branch that this revision is set to be merged into. Note that if the change is moved with the Move Change endpoint, this field can be different for different patchsets. For example, if the change is moved and a new patchset is uploaded afterwards, the RevisionInfo of the previous patchset will contain the old branch, but the newer patchset will contain the new branch."
},
"files": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"status": {
"type": "string",
"examples": [
"A",
"D",
"R",
"C",
"W"
]
},
"binary": {
"type": "boolean",
"description": "Whether the file is binary."
},
"old_path": {
"type": "string",
"description": "The old file path. Only set if the file was renamed or copied."
},
"lines_inserted": {
"type": "number",
"description": "The number of inserted lines. Not set for binary files or if no lines were inserted. An empty last line is not included in the count and hence this number can differ by one from details provided in DiffInfo."
},
"lines_deleted": {
"type": "number",
"description": "The number of deleted lines. Not set for binary files or if no lines were deleted. An empty last line is not included in the count and hence this number can differ by one from details provided in DiffInfo."
},
"size_delta": {
"type": "number",
"description": "Number of bytes by which the file size increased/decreased."
},
"size": {
"type": "number",
"description": "The size of the file in bytes."
},
"old_mode": {
"type": "number",
"description": "File mode in octal (e.g. 100644) at the old commit. The first three digits indicate the file type and the last three digits contain the file permission bits. For added files, this field will not be present."
},
"new_mode": {
"type": "number",
"description": "File mode in octal (e.g. 100644) at the new commit. The first three digits indicate the file type and the last three digits contain the file permission bits. For deleted files, this field will not be present."
}
}
},
"description": "The files of the patch set as a map that maps the file names to FileInfo entities. Only set if CURRENT_FILES or ALL_FILES option is requested."
},
"actions": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"method": {
"type": "string",
"examples": [
"POST",
"PUT",
"DELETE"
]
},
"label": {
"type": "string",
"description": "Short title to display to a user describing the action."
},
"title": {
"type": "string",
"description": "Longer text to display describing the action. "
},
"enabled": {
"type": "boolean",
"description": "If true the action is permitted at this time and the caller is likely allowed to execute it."
},
"enabled_options": {
"type": "array",
"items": {
"type": "string",
"examples": [
"rebase",
"rebase:chain"
]
}
}
},
"required": [
"enabled_options"
]
},
"description": "Actions the caller might be able to perform on this revision. The information is a map of view name to ActionInfo entities."
},
"reviewed": {
"type": "string",
"description": "Indicates whether the caller is authenticated and has commented on the current revision. Only set if REVIEWED option is requested."
},
"commit_with_footers": {
"type": "string",
"description": "If the COMMIT_FOOTERS option is requested and this is the current patch set, contains the full commit message with Gerrit-specific commit footers, as if this revision were submitted using the Cherry Pick submit type."
},
"push_certificate": {
"type": "object",
"properties": {
"certificate": {
"type": "string",
"description": "Signed certificate payload and GPG signature block."
},
"key": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The 8-char hex GPG key ID."
},
"fingerprint": {
"type": "string",
"description": "The 8-char hex GPG key ID."
},
"user_ids": {
"type": "string",
"description": "OpenPGP User IDs associated with the public key."
},
"key": {
"type": "string",
"description": "ASCII armored public key material."
},
"status": {
"type": "string",
"description": "The result of server-side checks on the key; one of BAD, OK, or TRUSTED. BAD keys have serious problems and should not be used. If a key is OK, inspecting only that key found no problems, but the system does not fully trust the key’s origin. A `TRUSTED key is valid, and the system knows enough about the key and its origin to trust it."
},
"problems": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of human-readable problem strings found in the course of checking whether the key is valid and trusted."
}
},
"description": "Information about the key that signed the push, along with any problems found while checking the signature or the key itself, as a GpgKeyInfo entity."
}
},
"required": [
"key"
],
"description": "If the PUSH_CERTIFICATES option is requested, contains the push certificate provided by the user when uploading this patch set as a PushCertificateInfo entity. This field is always set if the option is requested; if no push certificate was provided, it is set to an empty object."
},
"description": {
"type": "string",
"description": "The description of this patchset, as displayed in the patchset selector menu. May be null if no description is set."
}
},
"required": [
"kind",
"_number",
"created",
"ref",
"fetch"
]
},
"description": "All patch sets of this change as a map that maps the commit ID of the patch set to a RevisionInfo entity. Only set if the current revision is requested (in which case it will only contain a key for the current revision) or if all revisions are requested."
},
"meta_rev_id": {
"type": "string",
"description": "The SHA-1 of the NoteDb meta ref."
},
"tracking_ids": {
"type": "array",
"items": {
"type": "object",
"properties": {
"system": {
"type": "string",
"description": "The name of the external tracking system."
},
"id": {
"type": "string",
"description": "The tracking id."
}
},
"required": [
"system",
"id"
]
},
"description": "A list of TrackingIdInfo entities describing references to external tracking systems. Only set if tracking ids are requested."
},
"_more_changes": {
"type": "boolean",
"description": "Whether the query would deliver more results if not limited. Only set on the last change that is returned."
},
"problems": {
"type": "array",
"items": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Plaintext message describing the problem with the change."
},
"status": {
"type": "string",
"description": "The status of fixing the problem (FIXED, FIX_FAILED). Only set if a fix was attempted."
},
"outcome": {
"type": "string",
"description": "If status is set, an additional plaintext message describing the outcome of the fix."
}
},
"required": [
"message"
]
},
"description": "A list of ProblemInfo entities describing potential problems with this change. Only set if CHECK is set."
},
"is_private": {
"type": "boolean",
"description": "When present, change is marked as private."
},
"work_in_progress": {
"type": "boolean",
"description": "When present, change is marked as work in progress."
},
"has_review_started": {
"type": "boolean",
"description": "When present, change has been marked Ready at some point in time."
},
"revert_of": {
"type": "number",
"description": "The change number of the change that this change reverts."
},
"submission_id": {
"type": "string",
"description": "ID of the submission of this change. Only set if the status is MERGED. This ID is equal to the change number of the change that triggered the submission. If the change that triggered the submission also has a topic, it will be \"<id>-<topic>\" of the change that triggered the submission. The callers must not rely on the format of the submission ID."
},
"cherry_pick_of_change": {
"type": "number",
"description": "The change number of the change that this change was cherry-picked from. Only set if the cherry-pick has been done through the Gerrit REST API (and not if a cherry-picked commit was pushed)."
},
"cherry_pick_of_patch_set": {
"type": "number",
"description": "The patchset number of the change that this change was cherry-picked from. Only set if the cherry-pick has been done through the Gerrit REST API (and not if a cherry-picked commit was pushed)."
},
"contains_git_conflicts": {
"type": "boolean",
"description": "Whether the change contains conflicts. If true, some of the file contents of the change contain git conflict markers to indicate the conflicts. Only set if this change info is returned in response to a request that creates a new change or patch set and conflicts are allowed. In particular this field is only populated if the change info is returned by one of the following REST endpoints: Create Change, Create Merge Patch Set For Change, Cherry Pick Revision, Cherry Pick Commit, Rebase Change"
}
},
"required": [
"id",
"triplet_id",
"project",
"branch",
"change_id",
"change-id",
"subject",
"status",
"created",
"updated",
"insertions",
"deletions",
"_number",
"owner"
]
}
}
}
}
},
"404": {
"description": "No changes found!",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "Unexpected internal server error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status_code": {
"type": "number",
"description": "Original error code.",
"example": 504
},
"message": {
"type": "string"
}
}
}
}
}
}
}
}
},
"/api/v1.0.0/changes/{change-id}/revisions/{revision-id}/files/{file-id}/diff": {
"get": {
"operationId": "getDiff",
"parameters": [
{
"schema": {
"type": "string",
"description": "You MUST URI encoded this field",
"examples": [
"Ie8dd1b6547c6a291a1adc1bb4b768917f8a7840f",
"chromium%2Fsrc~4482214"
]
},
"required": true,
"name": "change-id",
"in": "path"
},
{
"schema": {
"type": "string",
"examples": [
"bee4c4f04034bd412130f25f5cb089d3e67f6bd3",
"current",
"bee4c4f0",
"1",
"edit",
"0"
]
},
"required": true,
"name": "revision-id",
"in": "path"
},
{
"schema": {
"type": "string",
"description": "You MUST URI encoded this field. i.e. you can use tools%2Fclang%2Fscripts%2Fpackage.py, but NOT tools/clang/scripts/package.py",
"examples": [
"tools%2Fclang%2Fscripts%2Fpackage.py"
]
},
"required": true,
"name": "file-id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Query for open changes of watched projects.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"meta_a": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the file."
},
"content_type": {
"type": "string",
"description": "The content type of the file. For the commit message and merge list the value is text/x-gerrit-commit-message and text/x-gerrit-merge-list respectively. For git links the value is x-git/gitlink. For symlinks the value is x-git/symlink. For regular files the value is the file mime type (e.g. text/x-java, text/x-c++src, etc…)."
},
"lines": {
"type": "number",
"description": "The total number of lines in the file."
},
"web_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The text to be linkified."
},
"tooltip": {
"type": "string",
"description": "Tooltip to show when hovering over the link. Using \"Open in $NAME_OF_EXTERNAL_TOOL\" is a good option here."
},
"url": {
"type": "string",
"description": "The link URL."
},
"image_url": {
"type": "string",
"description": "URL to the icon of the link."
}
},
"required": [
"name",
"url"
]
},
"description": "Links to the file in external sites as a list of WebLinkInfo entries."
}
},
"required": [
"name",
"content_type",
"lines"
],
"description": "Meta information about the file on side A as a DiffFileMetaInfo entity."
},
"meta_b": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the file."
},
"content_type": {
"type": "string",
"description": "The content type of the file. For the commit message and merge list the value is text/x-gerrit-commit-message and text/x-gerrit-merge-list respectively. For git links the value is x-git/gitlink. For symlinks the value is x-git/symlink. For regular files the value is the file mime type (e.g. text/x-java, text/x-c++src, etc…)."
},
"lines": {
"type": "number",
"description": "The total number of lines in the file."
},
"web_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The text to be linkified."
},
"tooltip": {
"type": "string",
"description": "Tooltip to show when hovering over the link. Using \"Open in $NAME_OF_EXTERNAL_TOOL\" is a good option here."
},
"url": {
"type": "string",
"description": "The link URL."
},
"image_url": {
"type": "string",
"description": "URL to the icon of the link."
}
},
"required": [
"name",
"url"
]
},
"description": "Links to the file in external sites as a list of WebLinkInfo entries."
}
},
"required": [
"name",
"content_type",
"lines"
],
"description": "Meta information about the file on side B as a DiffFileMetaInfo entity."
},
"change_type": {
"type": "string",
"description": "The type of change that was performed on the file.",
"examples": [
"ADDED",
"MODIFIED",
"DELETED",
"RENAMED",
"COPIED",
"REWRITE"
]
},
"intraline_status": {
"type": "string",
"examples": [
"OK",
"ERROR",
"TIMEOUT"
]
},
"diff_header": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of strings representing the patch set diff header."
},
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"a": {
"type": "string",
"description": "Content only in the file on side A (deleted in B)."
},
"a_truncated": {
"type": "boolean",
"description": "Whether the content is truncated due to size limitations."
},
"b": {
"type": "string",
"description": "Content only in the file on side B (added in B)."
},
"b_truncated": {
"type": "boolean",
"description": "Whether the content is truncated due to size limitations."
},
"ab": {
"type": "string",
"description": "Content in the file on both sides (unchanged)."
},
"ab_truncated": {
"type": "boolean",
"description": "Whether the content is truncated due to size limitations."
},
"edit_a": {
"type": "object",
"properties": {},
"description": "Text sections deleted from side A as a DiffIntralineInfo entity."
},
"edit_b": {
"type": "object",
"properties": {},
"description": "Text sections inserted in side B as a DiffIntralineInfo entity."
},
"due_to_rebase": {
"type": "boolean",
"description": "Indicates whether this entry was introduced by a rebase."
},
"due_to_move": {
"type": "boolean",
"description": "Indicates whether this entry was introduced by a move operation."
},
"skip": {
"type": "number",
"description": "count of lines skipped on both sides when the file is too large to include all common lines."
},
"common": {
"type": "boolean",
"description": "Set to true if the region is common according to the requested ignore-whitespace parameter, but a and b contain differing amounts of whitespace. When present and true a and b are used instead of ab."
}
}
},
"description": "A list of DiffContent entities representing the file content."
},
"web_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The text to be linkified."
},
"tooltip": {
"type": "string",
"description": "Tooltip to show when hovering over the link. Using \"Open in $NAME_OF_EXTERNAL_TOOL\" is a good option here."
},
"url": {
"type": "string",
"description": "The link URL."
},
"image_url": {
"type": "string",
"description": "URL to the icon of the link."
},
"show_on_side_by_side_diff_view": {
"type": "boolean",
"description": "Whether the web link should be shown on the side-by-side diff screen."
},
"show_on_unified_diff_view": {
"type": "boolean",
"description": "Whether the web link should be shown on the unified diff screen."
}
},
"required": [
"name",
"url",
"show_on_side_by_side_diff_view",
"show_on_unified_diff_view"
]
},
"description": "Links to the file diff in external sites as a list of DiffWebLinkInfo entries."
},
"edit_web_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The text to be linkified."
},
"tooltip": {
"type": "string",
"description": "Tooltip to show when hovering over the link. Using \"Open in $NAME_OF_EXTERNAL_TOOL\" is a good option here."
},
"url": {
"type": "string",
"description": "The link URL."
},
"image_url": {
"type": "string",
"description": "URL to the icon of the link."
}
},
"required": [
"name",
"url"
]
},
"description": "Links to edit the file in external sites as a list of WebLinkInfo entries."
},
"binary": {
"type": "boolean",
"description": "Whether the file is binary."
}
},
"required": [
"change_type",
"diff_header",
"content"
]
}
}
}
},
"308": {
"description": "Redirected from an invalid URL.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"404": {
"description": "No diff from the revision found!",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "Unexpected internal server error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status_code": {
"type": "number",
"description": "Original error code.",
"example": 504
},
"message": {
"type": "string"
}
}
}
}
}
}
}
}
},
"/api/v1.0.0/changes/{change-id}/revisions/{revision-id}/files": {
"get": {
"operationId": "listFiles",
"parameters": [
{
"schema": {
"type": "string",
"description": "You MUST URI encoded this field",
"examples": [
"Ie8dd1b6547c6a291a1adc1bb4b768917f8a7840f",
"chromium%2Fsrc~4482214"
]
},
"required": true,
"name": "change-id",
"in": "path"
},
{
"schema": {
"type": "string",
"examples": [
"bee4c4f04034bd412130f25f5cb089d3e67f6bd3",
"current",
"bee4c4f0",
"1",
"edit",
"0"
]
},
"required": true,
"name": "revision-id",
"in": "path"
}
],
"responses": {
"200": {
"description": "Query to list files that were MODIFIED/ADDED/DELETED in a revision.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"file_1.txt": {
"type": "object",
"properties": {
"status": {
"type": "string",
"examples": [
"A",
"D",
"R",
"C",
"W"
]
},
"binary": {
"type": "boolean",
"description": "Whether the file is binary."
},
"old_path": {
"type": "string",
"description": "The old file path. Only set if the file was renamed or copied."
},
"lines_inserted": {
"type": "number",
"description": "The number of inserted lines. Not set for binary files or if no lines were inserted. An empty last line is not included in the count and hence this number can differ by one from details provided in DiffInfo."
},
"lines_deleted": {
"type": "number",
"description": "The number of deleted lines. Not set for binary files or if no lines were deleted. An empty last line is not included in the count and hence this number can differ by one from details provided in DiffInfo."
},
"size_delta": {
"type": "number",
"description": "Number of bytes by which the file size increased/decreased."
},
"size": {
"type": "number",
"description": "The size of the file in bytes."
},
"old_mode": {
"type": "number",
"description": "File mode in octal (e.g. 100644) at the old commit. The first three digits indicate the file type and the last three digits contain the file permission bits. For added files, this field will not be present."
},
"new_mode": {
"type": "number",
"description": "File mode in octal (e.g. 100644) at the new commit. The first three digits indicate the file type and the last three digits contain the file permission bits. For deleted files, this field will not be present."
}
}
},
"file_2.py": {
"type": "object",
"properties": {
"status": {
"type": "string",
"examples": [
"A",
"D",
"R",
"C",
"W"
]
},
"binary": {
"type": "boolean",
"description": "Whether the file is binary."
},
"old_path": {
"type": "string",
"description": "The old file path. Only set if the file was renamed or copied."
},
"lines_inserted": {
"type": "number",
"description": "The number of inserted lines. Not set for binary files or if no lines were inserted. An empty last line is not included in the count and hence this number can differ by one from details provided in DiffInfo."
},
"lines_deleted": {
"type": "number",
"description": "The number of deleted lines. Not set for binary files or if no lines were deleted. An empty last line is not included in the count and hence this number can differ by one from details provided in DiffInfo."
},
"size_delta": {
"type": "number",
"description": "Number of bytes by which the file size increased/decreased."
},
"size": {
"type": "number",
"description": "The size of the file in bytes."
},
"old_mode": {
"type": "number",
"description": "File mode in octal (e.g. 100644) at the old commit. The first three digits indicate the file type and the last three digits contain the file permission bits. For added files, this field will not be present."
},
"new_mode": {
"type": "number",
"description": "File mode in octal (e.g. 100644) at the new commit. The first three digits indicate the file type and the last three digits contain the file permission bits. For deleted files, this field will not be present."
}
}
}
},
"required": [
"file_1.txt",
"file_2.py"
],
"description": "The key is the file path, the value is the file info. In our example we only return two files, but this can be any number of files."
}
}
}
},
"404": {
"description": "No files that were MODIFIED/ADDED/DELETED in a revision found!",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "Unexpected internal server error.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status_code": {
"type": "number",
"description": "Original error code.",
"example": 504
},
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}