Skip to content

Commit

Permalink
fix: update schema descriptions for added, removed and modified
Browse files Browse the repository at this point in the history
… files in `commits` (#695)

* fix: update schema descriptions for `added`, `removed` and `modified` files in `commits`

This PR applies the changes detected in #691 to the schemas. They
were automatically applied to the examples, but I forgot to make
the manual schema changes.

* fix: update type descriptions for `added`, `removed` and `modified` files in `commits`
  • Loading branch information
timrogers committed Aug 11, 2022
1 parent 5d5bb3c commit aed7be2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions payload-schemas/api.github.com/common/commit.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@
"added": {
"type": "array",
"items": { "type": "string" },
"description": "An array of files added in the commit."
"description": "An array of files added in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were added."
},
"modified": {
"type": "array",
"items": { "type": "string" },
"description": "An array of files modified by the commit."
"description": "An array of files modified by the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were modified."
},
"removed": {
"type": "array",
"items": { "type": "string" },
"description": "An array of files removed in the commit."
"description": "An array of files removed in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were removed."
}
},
"additionalProperties": false,
Expand Down
6 changes: 3 additions & 3 deletions payload-types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5780,15 +5780,15 @@ export interface Commit {
author: Committer;
committer: Committer;
/**
* An array of files added in the commit.
* An array of files added in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were added.
*/
added: string[];
/**
* An array of files modified by the commit.
* An array of files modified by the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were modified.
*/
modified: string[];
/**
* An array of files removed in the commit.
* An array of files removed in the commit. For extremely large commits where GitHub is unable to calculate this list in a timely manner, this may be empty even if files were removed.
*/
removed: string[];
}
Expand Down

0 comments on commit aed7be2

Please sign in to comment.