Skip to content

Commit

Permalink
fix(typescript): fix type for labels parameter in `.issues.{add,set…
Browse files Browse the repository at this point in the history
…}Labels()` (#419)
  • Loading branch information
octokitbot authored Aug 31, 2021
1 parent 5161dd2 commit 601df7e
Show file tree
Hide file tree
Showing 10 changed files with 116 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/ghe-220.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ octokit.issues.lock({owner, repo, issue_number, lock_reason});
octokit.issues.removeAllLabels({owner, repo, issue_number});
octokit.issues.removeAssignees({owner, repo, issue_number, assignees});
octokit.issues.removeLabel({owner, repo, issue_number, name});
octokit.issues.setLabels({owner, repo, issue_number});
octokit.issues.setLabels({owner, repo, issue_number, labels});
octokit.issues.unlock({owner, repo, issue_number});
octokit.issues.update({owner, repo, issue_number, title, body, assignee, state, milestone, labels, assignees});
octokit.issues.updateComment({owner, repo, comment_id, body});
Expand Down
2 changes: 1 addition & 1 deletion docs/ghe-221.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ octokit.issues.lock({owner, repo, issue_number, lock_reason});
octokit.issues.removeAllLabels({owner, repo, issue_number});
octokit.issues.removeAssignees({owner, repo, issue_number, assignees});
octokit.issues.removeLabel({owner, repo, issue_number, name});
octokit.issues.setLabels({owner, repo, issue_number});
octokit.issues.setLabels({owner, repo, issue_number, labels});
octokit.issues.unlock({owner, repo, issue_number});
octokit.issues.update({owner, repo, issue_number, title, body, assignee, state, milestone, labels, assignees});
octokit.issues.updateComment({owner, repo, comment_id, body});
Expand Down
2 changes: 1 addition & 1 deletion docs/ghe-222.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ octokit.issues.lock({owner, repo, issue_number, lock_reason});
octokit.issues.removeAllLabels({owner, repo, issue_number});
octokit.issues.removeAssignees({owner, repo, issue_number, assignees});
octokit.issues.removeLabel({owner, repo, issue_number, name});
octokit.issues.setLabels({owner, repo, issue_number});
octokit.issues.setLabels({owner, repo, issue_number, labels});
octokit.issues.unlock({owner, repo, issue_number});
octokit.issues.update({owner, repo, issue_number, title, body, assignee, state, milestone, labels, assignees});
octokit.issues.updateComment({owner, repo, comment_id, body});
Expand Down
2 changes: 1 addition & 1 deletion docs/ghe-30.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ octokit.issues.lock({owner, repo, issue_number, lock_reason});
octokit.issues.removeAllLabels({owner, repo, issue_number});
octokit.issues.removeAssignees({owner, repo, issue_number, assignees});
octokit.issues.removeLabel({owner, repo, issue_number, name});
octokit.issues.setLabels({owner, repo, issue_number});
octokit.issues.setLabels({owner, repo, issue_number, labels});
octokit.issues.unlock({owner, repo, issue_number});
octokit.issues.update({owner, repo, issue_number, title, body, assignee, state, milestone, labels, assignees});
octokit.issues.updateComment({owner, repo, comment_id, body});
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "MIT",
"dependencies": {
"@octokit/types": "^6.25.0"
"@octokit/types": "^6.26.0"
},
"peerDependencies": {
"@octokit/core": ">=3"
Expand Down
26 changes: 26 additions & 0 deletions scripts/update-endpoints/generated/ghe220-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -14145,6 +14145,32 @@
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels",
"description": "",
"in": "BODY",
"type": "object[]",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels[].name",
"description": "",
"in": "BODY",
"type": "string",
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
}
],
"responses": [
Expand Down
26 changes: 26 additions & 0 deletions scripts/update-endpoints/generated/ghe221-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -14145,6 +14145,32 @@
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels",
"description": "",
"in": "BODY",
"type": "object[]",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels[].name",
"description": "",
"in": "BODY",
"type": "string",
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
}
],
"responses": [
Expand Down
26 changes: 26 additions & 0 deletions scripts/update-endpoints/generated/ghe222-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -17883,6 +17883,32 @@
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels",
"description": "",
"in": "BODY",
"type": "object[]",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels[].name",
"description": "",
"in": "BODY",
"type": "string",
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
}
],
"responses": [
Expand Down
26 changes: 26 additions & 0 deletions scripts/update-endpoints/generated/ghe30-endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -19762,6 +19762,32 @@
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels",
"description": "",
"in": "BODY",
"type": "object[]",
"required": false,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
},
{
"name": "labels[].name",
"description": "",
"in": "BODY",
"type": "string",
"required": true,
"enum": null,
"allowNull": false,
"mapToData": null,
"validation": null,
"alias": null,
"deprecated": null
}
],
"responses": [
Expand Down

0 comments on commit 601df7e

Please sign in to comment.