diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js index b0ea009ae..aaed8b793 100644 --- a/node_modules/@actions/core/lib/command.js +++ b/node_modules/@actions/core/lib/command.js @@ -34,13 +34,20 @@ class Command { let cmdStr = CMD_STRING + this.command; if (this.properties && Object.keys(this.properties).length > 0) { cmdStr += ' '; + let first = true; for (const key in this.properties) { if (this.properties.hasOwnProperty(key)) { const val = this.properties[key]; if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } // safely append the val - avoid blowing up when attempting to // call .replace() if message is not a string for some reason - cmdStr += `${key}=${escape(`${val || ''}`)},`; + cmdStr += `${key}=${escape(`${val || ''}`)}`; } } } diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map index 918ab25b5..7904e2250 100644 --- a/node_modules/@actions/core/lib/command.js.map +++ b/node_modules/@actions/core/lib/command.js.map @@ -1 +1 @@ -{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;AAAA,yBAAwB;AAQxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAe;IAEf,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,8DAA8D;wBAC9D,6DAA6D;wBAC7D,MAAM,IAAI,GAAG,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,IAAI,EAAE,EAAE,CAAC,GAAG,CAAA;qBAC9C;iBACF;aACF;SACF;QAED,MAAM,IAAI,UAAU,CAAA;QAEpB,kEAAkE;QAClE,6DAA6D;QAC7D,MAAM,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAA;QACvC,MAAM,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;QAE7B,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,SAAS,MAAM,CAAC,CAAS;IACvB,OAAO,CAAC;SACL,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file +{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;AAAA,yBAAwB;AAQxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAe;IAEf,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,8DAA8D;wBAC9D,6DAA6D;wBAC7D,MAAM,IAAI,GAAG,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE,CAAA;qBAC7C;iBACF;aACF;SACF;QAED,MAAM,IAAI,UAAU,CAAA;QAEpB,kEAAkE;QAClE,6DAA6D;QAC7D,MAAM,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAA;QACvC,MAAM,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;QAE7B,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,SAAS,MAAM,CAAC,CAAS;IACvB,OAAO,CAAC;SACL,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index dc6b44c4f..01e25e6f7 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,36 +1,33 @@ { - "_args": [ - [ - "@actions/core@1.2.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@actions/core@1.2.0", - "_id": "@actions/core@1.2.0", + "_from": "@actions/core@^1.2.1", + "_id": "@actions/core@1.2.1", "_inBundle": false, - "_integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw==", + "_integrity": "sha512-xD+CQd9p4lU7ZfRqmUcbJpqR+Ss51rJRVeXMyOLrZQImN9/8Sy/BEUBnHO/UKD3z03R686PVTLfEPmkropGuLw==", "_location": "/@actions/core", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@actions/core@1.2.0", + "raw": "@actions/core@^1.2.1", "name": "@actions/core", "escapedName": "@actions%2fcore", "scope": "@actions", - "rawSpec": "1.2.0", + "rawSpec": "^1.2.1", "saveSpec": null, - "fetchSpec": "1.2.0" + "fetchSpec": "^1.2.1" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz", - "_spec": "1.2.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.1.tgz", + "_shasum": "867e92da94d80f743e6e0503c668af832465080a", + "_spec": "@actions/core@^1.2.1", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Actions core lib", "devDependencies": { "@types/node": "^12.0.2" @@ -60,8 +57,10 @@ "directory": "packages/core" }, "scripts": { + "audit-moderate": "npm install && npm audit --audit-level=moderate", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "version": "1.2.0" + "types": "lib/core.d.ts", + "version": "1.2.1" } diff --git a/node_modules/@actions/exec/README.md b/node_modules/@actions/exec/README.md index 7897ba5ad..53a6bf524 100644 --- a/node_modules/@actions/exec/README.md +++ b/node_modules/@actions/exec/README.md @@ -4,7 +4,7 @@ #### Basic -You can use this package to execute your tools on the command line in a cross platform way: +You can use this package to execute tools in a cross platform way: ```js const exec = require('@actions/exec'); diff --git a/node_modules/@actions/exec/lib/toolrunner.js.map b/node_modules/@actions/exec/lib/toolrunner.js.map index 41a1a39a0..5aac70d29 100644 --- a/node_modules/@actions/exec/lib/toolrunner.js.map +++ b/node_modules/@actions/exec/lib/toolrunner.js.map @@ -1 +1 @@ -{"version":3,"file":"toolrunner.js","sourceRoot":"","sources":["../src/toolrunner.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yBAAwB;AACxB,iCAAgC;AAChC,uCAAsC;AACtC,6BAA4B;AAG5B,kCAAiC;AACjC,kDAAiD;AAEjD,sDAAsD;AAEtD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,YAAY;IACjD,YAAY,QAAgB,EAAE,IAAe,EAAE,OAAwB;QACrE,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;IAC9B,CAAC;IAMO,MAAM,CAAC,OAAe;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE;YAC1D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;SACtC;IACH,CAAC;IAEO,iBAAiB,CACvB,OAAuB,EACvB,QAAkB;QAElB,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAA;QACzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QACxC,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAA,CAAC,0CAA0C;QAChF,IAAI,UAAU,EAAE;YACd,qBAAqB;YACrB,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,GAAG,IAAI,QAAQ,CAAA;gBACf,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;oBACpB,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;iBACf;aACF;YACD,qBAAqB;iBAChB,IAAI,OAAO,CAAC,wBAAwB,EAAE;gBACzC,GAAG,IAAI,IAAI,QAAQ,GAAG,CAAA;gBACtB,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;oBACpB,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;iBACf;aACF;YACD,oBAAoB;iBACf;gBACH,GAAG,IAAI,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAA;gBACzC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;oBACpB,GAAG,IAAI,IAAI,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAA;iBACzC;aACF;SACF;aAAM;YACL,qEAAqE;YACrE,sEAAsE;YACtE,wCAAwC;YACxC,GAAG,IAAI,QAAQ,CAAA;YACf,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;gBACpB,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;aACf;SACF;QAED,OAAO,GAAG,CAAA;IACZ,CAAC;IAEO,kBAAkB,CACxB,IAAY,EACZ,SAAiB,EACjB,MAA8B;QAE9B,IAAI;YACF,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;YACnC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;YAEzB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;gBACb,MAAM,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;gBAC9B,MAAM,CAAC,IAAI,CAAC,CAAA;gBAEZ,6BAA6B;gBAC7B,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBAClC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;aACtB;YAED,SAAS,GAAG,CAAC,CAAA;SACd;QAAC,OAAO,GAAG,EAAE;YACZ,kEAAkE;YAClE,IAAI,CAAC,MAAM,CAAC,4CAA4C,GAAG,EAAE,CAAC,CAAA;SAC/D;IACH,CAAC;IAEO,iBAAiB;QACvB,IAAI,UAAU,EAAE;YACd,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,SAAS,CAAA;aAC3C;SACF;QAED,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAEO,aAAa,CAAC,OAAuB;QAC3C,IAAI,UAAU,EAAE;YACd,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,IAAI,OAAO,GAAG,aAAa,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAA;gBACpE,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE;oBACzB,OAAO,IAAI,GAAG,CAAA;oBACd,OAAO,IAAI,OAAO,CAAC,wBAAwB;wBACzC,CAAC,CAAC,CAAC;wBACH,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAA;iBAChC;gBAED,OAAO,IAAI,GAAG,CAAA;gBACd,OAAO,CAAC,OAAO,CAAC,CAAA;aACjB;SACF;QAED,OAAO,IAAI,CAAC,IAAI,CAAA;IAClB,CAAC;IAEO,SAAS,CAAC,GAAW,EAAE,GAAW;QACxC,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;IAC1B,CAAC;IAEO,UAAU;QAChB,MAAM,aAAa,GAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAA;QACzD,OAAO,CACL,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;YACrC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CACtC,CAAA;IACH,CAAC;IAEO,mBAAmB,CAAC,GAAW;QACrC,8DAA8D;QAC9D,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE;YACtB,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;SAChC;QAED,6EAA6E;QAC7E,4EAA4E;QAC5E,uBAAuB;QACvB,EAAE;QACF,0EAA0E;QAC1E,4HAA4H;QAE5H,4BAA4B;QAC5B,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,IAAI,CAAA;SACZ;QAED,+CAA+C;QAC/C,MAAM,eAAe,GAAG;YACtB,GAAG;YACH,IAAI;YACJ,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;SACJ,CAAA;QACD,IAAI,WAAW,GAAG,KAAK,CAAA;QACvB,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE;YACtB,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE;gBACzC,WAAW,GAAG,IAAI,CAAA;gBAClB,MAAK;aACN;SACF;QAED,qCAAqC;QACrC,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,GAAG,CAAA;SACX;QAED,mFAAmF;QACnF,EAAE;QACF,+BAA+B;QAC/B,EAAE;QACF,qCAAqC;QACrC,EAAE;QACF,mGAAmG;QACnG,oDAAoD;QACpD,EAAE;QACF,sGAAsG;QACtG,oCAAoC;QACpC,sCAAsC;QACtC,wDAAwD;QACxD,kCAAkC;QAClC,yFAAyF;QACzF,4DAA4D;QAC5D,sCAAsC;QACtC,EAAE;QACF,6CAA6C;QAC7C,6CAA6C;QAC7C,+CAA+C;QAC/C,iDAAiD;QACjD,8CAA8C;QAC9C,EAAE;QACF,gGAAgG;QAChG,gEAAgE;QAChE,EAAE;QACF,iGAAiG;QACjG,kGAAkG;QAClG,EAAE;QACF,6FAA6F;QAC7F,wDAAwD;QACxD,EAAE;QACF,oGAAoG;QACpG,mGAAmG;QACnG,eAAe;QACf,EAAE;QACF,sGAAsG;QACtG,sGAAsG;QACtG,EAAE;QACF,gGAAgG;QAChG,kGAAkG;QAClG,oGAAoG;QACpG,0BAA0B;QAC1B,EAAE;QACF,iGAAiG;QACjG,uCAAuC;QACvC,IAAI,OAAO,GAAG,GAAG,CAAA;QACjB,IAAI,QAAQ,GAAG,IAAI,CAAA;QACnB,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACnC,6BAA6B;YAC7B,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;YACrB,IAAI,QAAQ,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBACnC,OAAO,IAAI,IAAI,CAAA,CAAC,mBAAmB;aACpC;iBAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE;gBAC7B,QAAQ,GAAG,IAAI,CAAA;gBACf,OAAO,IAAI,GAAG,CAAA,CAAC,mBAAmB;aACnC;iBAAM;gBACL,QAAQ,GAAG,KAAK,CAAA;aACjB;SACF;QAED,OAAO,IAAI,GAAG,CAAA;QACd,OAAO,OAAO;aACX,KAAK,CAAC,EAAE,CAAC;aACT,OAAO,EAAE;aACT,IAAI,CAAC,EAAE,CAAC,CAAA;IACb,CAAC;IAEO,cAAc,CAAC,GAAW;QAChC,iFAAiF;QACjF,qFAAqF;QACrF,WAAW;QACX,EAAE;QACF,qFAAqF;QACrF,uFAAuF;QACvF,2DAA2D;QAC3D,EAAE;QACF,gFAAgF;QAChF,EAAE;QACF,oFAAoF;QACpF,gFAAgF;QAChF,kFAAkF;QAClF,mFAAmF;QACnF,kFAAkF;QAClF,gEAAgE;QAChE,EAAE;QACF,kFAAkF;QAClF,2DAA2D;QAC3D,EAAE;QACF,kFAAkF;QAClF,gFAAgF;QAChF,mFAAmF;QACnF,8EAA8E;QAC9E,+EAA+E;QAC/E,oFAAoF;QACpF,wBAAwB;QAExB,IAAI,CAAC,GAAG,EAAE;YACR,2CAA2C;YAC3C,OAAO,IAAI,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACnE,sBAAsB;YACtB,OAAO,GAAG,CAAA;SACX;QAED,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC7C,+DAA+D;YAC/D,sCAAsC;YACtC,OAAO,IAAI,GAAG,GAAG,CAAA;SAClB;QAED,yBAAyB;QACzB,wBAAwB;QACxB,2BAA2B;QAC3B,yBAAyB;QACzB,6BAA6B;QAC7B,wBAAwB;QACxB,wBAAwB;QACxB,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;QACzB,6BAA6B;QAC7B,0BAA0B;QAC1B,+BAA+B;QAC/B,yBAAyB;QACzB,sFAAsF;QACtF,gGAAgG;QAChG,IAAI,OAAO,GAAG,GAAG,CAAA;QACjB,IAAI,QAAQ,GAAG,IAAI,CAAA;QACnB,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACnC,6BAA6B;YAC7B,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;YACrB,IAAI,QAAQ,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBACnC,OAAO,IAAI,IAAI,CAAA;aAChB;iBAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE;gBAC7B,QAAQ,GAAG,IAAI,CAAA;gBACf,OAAO,IAAI,IAAI,CAAA;aAChB;iBAAM;gBACL,QAAQ,GAAG,KAAK,CAAA;aACjB;SACF;QAED,OAAO,IAAI,GAAG,CAAA;QACd,OAAO,OAAO;aACX,KAAK,CAAC,EAAE,CAAC;aACT,OAAO,EAAE;aACT,IAAI,CAAC,EAAE,CAAC,CAAA;IACb,CAAC;IAEO,iBAAiB,CAAC,OAAwB;QAChD,OAAO,GAAG,OAAO,IAAoB,EAAE,CAAA;QACvC,MAAM,MAAM,GAAmC;YAC7C,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE;YACjC,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG;YAC/B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK;YAC/B,wBAAwB,EAAE,OAAO,CAAC,wBAAwB,IAAI,KAAK;YACnE,YAAY,EAAE,OAAO,CAAC,YAAY,IAAI,KAAK;YAC3C,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,IAAI,KAAK;YACnD,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;SAC9B,CAAA;QACD,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAqB,OAAO,CAAC,MAAM,CAAA;QACvE,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAqB,OAAO,CAAC,MAAM,CAAA;QACvE,OAAO,MAAM,CAAA;IACf,CAAC;IAEO,gBAAgB,CACtB,OAAuB,EACvB,QAAgB;QAEhB,OAAO,GAAG,OAAO,IAAoB,EAAE,CAAA;QACvC,MAAM,MAAM,GAAuB,EAAE,CAAA;QACrC,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACxB,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACxB,MAAM,CAAC,0BAA0B,CAAC;YAChC,OAAO,CAAC,wBAAwB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;QACvD,IAAI,OAAO,CAAC,wBAAwB,EAAE;YACpC,MAAM,CAAC,KAAK,GAAG,IAAI,QAAQ,GAAG,CAAA;SAC/B;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;OAQG;IACG,IAAI;;YACR,qEAAqE;YACrE,IACE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;gBAC/B,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;oBAC1B,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAC/C;gBACA,wFAAwF;gBACxF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAC1B,OAAO,CAAC,GAAG,EAAE,EACb,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EACjC,IAAI,CAAC,QAAQ,CACd,CAAA;aACF;YAED,iEAAiE;YACjE,qEAAqE;YACrE,IAAI,CAAC,QAAQ,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;YAEnD,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBAC7C,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;gBAC1C,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;gBACzB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE;oBAC3B,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;iBACzB;gBAED,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;gBAC3D,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,cAAc,CAAC,SAAS,EAAE;oBACtD,cAAc,CAAC,SAAS,CAAC,KAAK,CAC5B,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAChD,CAAA;iBACF;gBAED,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;gBAC1D,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,OAAe,EAAE,EAAE;oBACpC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;gBACtB,CAAC,CAAC,CAAA;gBAEF,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAA;gBACzC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CACpB,QAAQ,EACR,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,EAClC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAC9C,CAAA;gBAED,MAAM,SAAS,GAAG,EAAE,CAAA;gBACpB,IAAI,EAAE,CAAC,MAAM,EAAE;oBACb,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;wBACpC,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE;4BAC3D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;yBACpC;wBAED,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,cAAc,CAAC,SAAS,EAAE;4BACtD,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;yBACrC;wBAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAY,EAAE,EAAE;4BACxD,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE;gCAC5D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;6BACrC;wBACH,CAAC,CAAC,CAAA;oBACJ,CAAC,CAAC,CAAA;iBACH;gBAED,MAAM,SAAS,GAAG,EAAE,CAAA;gBACpB,IAAI,EAAE,CAAC,MAAM,EAAE;oBACb,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;wBACpC,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;wBAC1B,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE;4BAC3D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;yBACpC;wBAED,IACE,CAAC,cAAc,CAAC,MAAM;4BACtB,cAAc,CAAC,SAAS;4BACxB,cAAc,CAAC,SAAS,EACxB;4BACA,MAAM,CAAC,GAAG,cAAc,CAAC,YAAY;gCACnC,CAAC,CAAC,cAAc,CAAC,SAAS;gCAC1B,CAAC,CAAC,cAAc,CAAC,SAAS,CAAA;4BAC5B,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;yBACd;wBAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAY,EAAE,EAAE;4BACxD,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE;gCAC5D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;6BACrC;wBACH,CAAC,CAAC,CAAA;oBACJ,CAAC,CAAC,CAAA;iBACH;gBAED,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;oBAC5B,KAAK,CAAC,YAAY,GAAG,GAAG,CAAC,OAAO,CAAA;oBAChC,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,KAAK,CAAC,aAAa,EAAE,CAAA;gBACvB,CAAC,CAAC,CAAA;gBAEF,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;oBAC7B,KAAK,CAAC,eAAe,GAAG,IAAI,CAAA;oBAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,IAAI,CAAC,MAAM,CAAC,aAAa,IAAI,wBAAwB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAA;oBACtE,KAAK,CAAC,aAAa,EAAE,CAAA;gBACvB,CAAC,CAAC,CAAA;gBAEF,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE;oBAC9B,KAAK,CAAC,eAAe,GAAG,IAAI,CAAA;oBAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,IAAI,CAAC,MAAM,CAAC,uCAAuC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAA;oBACpE,KAAK,CAAC,aAAa,EAAE,CAAA;gBACvB,CAAC,CAAC,CAAA;gBAEF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAY,EAAE,QAAgB,EAAE,EAAE;oBAClD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;wBACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;qBAChC;oBAED,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;wBACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;qBAChC;oBAED,EAAE,CAAC,kBAAkB,EAAE,CAAA;oBAEvB,IAAI,KAAK,EAAE;wBACT,MAAM,CAAC,KAAK,CAAC,CAAA;qBACd;yBAAM;wBACL,OAAO,CAAC,QAAQ,CAAC,CAAA;qBAClB;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAhgBD,gCAggBC;AAED;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,SAAiB;IAChD,MAAM,IAAI,GAAa,EAAE,CAAA;IAEzB,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,IAAI,OAAO,GAAG,KAAK,CAAA;IACnB,IAAI,GAAG,GAAG,EAAE,CAAA;IAEZ,SAAS,MAAM,CAAC,CAAS;QACvB,gCAAgC;QAChC,IAAI,OAAO,IAAI,CAAC,KAAK,GAAG,EAAE;YACxB,GAAG,IAAI,IAAI,CAAA;SACZ;QAED,GAAG,IAAI,CAAC,CAAA;QACR,OAAO,GAAG,KAAK,CAAA;IACjB,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;QAE7B,IAAI,CAAC,KAAK,GAAG,EAAE;YACb,IAAI,CAAC,OAAO,EAAE;gBACZ,QAAQ,GAAG,CAAC,QAAQ,CAAA;aACrB;iBAAM;gBACL,MAAM,CAAC,CAAC,CAAC,CAAA;aACV;YACD,SAAQ;SACT;QAED,IAAI,CAAC,KAAK,IAAI,IAAI,OAAO,EAAE;YACzB,MAAM,CAAC,CAAC,CAAC,CAAA;YACT,SAAQ;SACT;QAED,IAAI,CAAC,KAAK,IAAI,IAAI,QAAQ,EAAE;YAC1B,OAAO,GAAG,IAAI,CAAA;YACd,SAAQ;SACT;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;YAC1B,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;gBAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACd,GAAG,GAAG,EAAE,CAAA;aACT;YACD,SAAQ;SACT;QAED,MAAM,CAAC,CAAC,CAAC,CAAA;KACV;IAED,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;QAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;KACtB;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AAvDD,4CAuDC;AAED,MAAM,SAAU,SAAQ,MAAM,CAAC,YAAY;IACzC,YAAY,OAAuB,EAAE,QAAgB;QACnD,KAAK,EAAE,CAAA;QAaT,kBAAa,GAAY,KAAK,CAAA,CAAC,4DAA4D;QAC3F,iBAAY,GAAW,EAAE,CAAA;QACzB,oBAAe,GAAW,CAAC,CAAA;QAC3B,kBAAa,GAAY,KAAK,CAAA,CAAC,wCAAwC;QACvE,kBAAa,GAAY,KAAK,CAAA,CAAC,uCAAuC;QAC9D,UAAK,GAAG,KAAK,CAAA,CAAC,aAAa;QAC3B,SAAI,GAAY,KAAK,CAAA;QAErB,YAAO,GAAwB,IAAI,CAAA;QAnBzC,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;SAC9C;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;SAC3B;IACH,CAAC;IAaD,aAAa;QACX,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,OAAM;SACP;QAED,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,CAAC,UAAU,EAAE,CAAA;SAClB;aAAM,IAAI,IAAI,CAAC,aAAa,EAAE;YAC7B,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;SACrE;IACH,CAAC;IAEO,MAAM,CAAC,OAAe;QAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC7B,CAAC;IAEO,UAAU;QAChB,sCAAsC;QACtC,IAAI,KAAwB,CAAA;QAC5B,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,KAAK,GAAG,IAAI,KAAK,CACf,8DACE,IAAI,CAAC,QACP,4DACE,IAAI,CAAC,YACP,EAAE,CACH,CAAA;aACF;iBAAM,IAAI,IAAI,CAAC,eAAe,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;gBACvE,KAAK,GAAG,IAAI,KAAK,CACf,gBAAgB,IAAI,CAAC,QAAQ,2BAC3B,IAAI,CAAC,eACP,EAAE,CACH,CAAA;aACF;iBAAM,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;gBAC1D,KAAK,GAAG,IAAI,KAAK,CACf,gBACE,IAAI,CAAC,QACP,sEAAsE,CACvE,CAAA;aACF;SACF;QAED,oBAAoB;QACpB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;SACpB;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,CAAA;IAChD,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,KAAgB;QAC3C,IAAI,KAAK,CAAC,IAAI,EAAE;YACd,OAAM;SACP;QAED,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,EAAE;YAC/C,MAAM,OAAO,GAAG,0CAA0C,KAAK,CAAC,KAAK;gBACnE,IAAI,4CACJ,KAAK,CAAC,QACR,0FAA0F,CAAA;YAC1F,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;SACtB;QAED,KAAK,CAAC,UAAU,EAAE,CAAA;IACpB,CAAC;CACF"} \ No newline at end of file +{"version":3,"file":"toolrunner.js","sourceRoot":"","sources":["../src/toolrunner.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yBAAwB;AACxB,iCAAgC;AAChC,uCAAsC;AACtC,6BAA4B;AAG5B,kCAAiC;AACjC,kDAAiD;AAEjD,sDAAsD;AAEtD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,YAAY;IACjD,YAAY,QAAgB,EAAE,IAAe,EAAE,OAAwB;QACrE,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;IAC9B,CAAC;IAMO,MAAM,CAAC,OAAe;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE;YAC1D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;SACtC;IACH,CAAC;IAEO,iBAAiB,CACvB,OAAuB,EACvB,QAAkB;QAElB,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAA;QACzC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QACxC,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAA,CAAC,0CAA0C;QAChF,IAAI,UAAU,EAAE;YACd,qBAAqB;YACrB,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,GAAG,IAAI,QAAQ,CAAA;gBACf,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;oBACpB,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;iBACf;aACF;YACD,qBAAqB;iBAChB,IAAI,OAAO,CAAC,wBAAwB,EAAE;gBACzC,GAAG,IAAI,IAAI,QAAQ,GAAG,CAAA;gBACtB,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;oBACpB,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;iBACf;aACF;YACD,oBAAoB;iBACf;gBACH,GAAG,IAAI,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAA;gBACzC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;oBACpB,GAAG,IAAI,IAAI,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAA;iBACzC;aACF;SACF;aAAM;YACL,qEAAqE;YACrE,sEAAsE;YACtE,wCAAwC;YACxC,GAAG,IAAI,QAAQ,CAAA;YACf,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;gBACpB,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;aACf;SACF;QAED,OAAO,GAAG,CAAA;IACZ,CAAC;IAEO,kBAAkB,CACxB,IAAY,EACZ,SAAiB,EACjB,MAA8B;QAE9B,IAAI;YACF,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;YACnC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;YAEzB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;gBACb,MAAM,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;gBAC9B,MAAM,CAAC,IAAI,CAAC,CAAA;gBAEZ,6BAA6B;gBAC7B,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBAClC,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;aACtB;YAED,SAAS,GAAG,CAAC,CAAA;SACd;QAAC,OAAO,GAAG,EAAE;YACZ,kEAAkE;YAClE,IAAI,CAAC,MAAM,CAAC,4CAA4C,GAAG,EAAE,CAAC,CAAA;SAC/D;IACH,CAAC;IAEO,iBAAiB;QACvB,IAAI,UAAU,EAAE;YACd,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,SAAS,CAAA;aAC3C;SACF;QAED,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAEO,aAAa,CAAC,OAAuB;QAC3C,IAAI,UAAU,EAAE;YACd,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;gBACrB,IAAI,OAAO,GAAG,aAAa,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAA;gBACpE,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE;oBACzB,OAAO,IAAI,GAAG,CAAA;oBACd,OAAO,IAAI,OAAO,CAAC,wBAAwB;wBACzC,CAAC,CAAC,CAAC;wBACH,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAA;iBAChC;gBAED,OAAO,IAAI,GAAG,CAAA;gBACd,OAAO,CAAC,OAAO,CAAC,CAAA;aACjB;SACF;QAED,OAAO,IAAI,CAAC,IAAI,CAAA;IAClB,CAAC;IAEO,SAAS,CAAC,GAAW,EAAE,GAAW;QACxC,OAAO,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;IAC1B,CAAC;IAEO,UAAU;QAChB,MAAM,aAAa,GAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAA;QACzD,OAAO,CACL,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;YACrC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CACtC,CAAA;IACH,CAAC;IAEO,mBAAmB,CAAC,GAAW;QACrC,8DAA8D;QAC9D,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE;YACtB,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;SAChC;QAED,6EAA6E;QAC7E,4EAA4E;QAC5E,uBAAuB;QACvB,EAAE;QACF,0EAA0E;QAC1E,4HAA4H;QAE5H,4BAA4B;QAC5B,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,IAAI,CAAA;SACZ;QAED,+CAA+C;QAC/C,MAAM,eAAe,GAAG;YACtB,GAAG;YACH,IAAI;YACJ,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;YACH,GAAG;SACJ,CAAA;QACD,IAAI,WAAW,GAAG,KAAK,CAAA;QACvB,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE;YACtB,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,EAAE;gBACzC,WAAW,GAAG,IAAI,CAAA;gBAClB,MAAK;aACN;SACF;QAED,qCAAqC;QACrC,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,GAAG,CAAA;SACX;QAED,mFAAmF;QACnF,EAAE;QACF,+BAA+B;QAC/B,EAAE;QACF,qCAAqC;QACrC,EAAE;QACF,mGAAmG;QACnG,oDAAoD;QACpD,EAAE;QACF,sGAAsG;QACtG,oCAAoC;QACpC,sCAAsC;QACtC,wDAAwD;QACxD,kCAAkC;QAClC,yFAAyF;QACzF,4DAA4D;QAC5D,sCAAsC;QACtC,EAAE;QACF,6CAA6C;QAC7C,6CAA6C;QAC7C,+CAA+C;QAC/C,iDAAiD;QACjD,8CAA8C;QAC9C,EAAE;QACF,gGAAgG;QAChG,gEAAgE;QAChE,EAAE;QACF,iGAAiG;QACjG,kGAAkG;QAClG,EAAE;QACF,6FAA6F;QAC7F,wDAAwD;QACxD,EAAE;QACF,oGAAoG;QACpG,mGAAmG;QACnG,eAAe;QACf,EAAE;QACF,sGAAsG;QACtG,sGAAsG;QACtG,EAAE;QACF,gGAAgG;QAChG,kGAAkG;QAClG,oGAAoG;QACpG,0BAA0B;QAC1B,EAAE;QACF,iGAAiG;QACjG,uCAAuC;QACvC,IAAI,OAAO,GAAG,GAAG,CAAA;QACjB,IAAI,QAAQ,GAAG,IAAI,CAAA;QACnB,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACnC,6BAA6B;YAC7B,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;YACrB,IAAI,QAAQ,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBACnC,OAAO,IAAI,IAAI,CAAA,CAAC,mBAAmB;aACpC;iBAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE;gBAC7B,QAAQ,GAAG,IAAI,CAAA;gBACf,OAAO,IAAI,GAAG,CAAA,CAAC,mBAAmB;aACnC;iBAAM;gBACL,QAAQ,GAAG,KAAK,CAAA;aACjB;SACF;QAED,OAAO,IAAI,GAAG,CAAA;QACd,OAAO,OAAO;aACX,KAAK,CAAC,EAAE,CAAC;aACT,OAAO,EAAE;aACT,IAAI,CAAC,EAAE,CAAC,CAAA;IACb,CAAC;IAEO,cAAc,CAAC,GAAW;QAChC,iFAAiF;QACjF,qFAAqF;QACrF,WAAW;QACX,EAAE;QACF,qFAAqF;QACrF,uFAAuF;QACvF,2DAA2D;QAC3D,EAAE;QACF,gFAAgF;QAChF,EAAE;QACF,oFAAoF;QACpF,gFAAgF;QAChF,kFAAkF;QAClF,mFAAmF;QACnF,kFAAkF;QAClF,gEAAgE;QAChE,EAAE;QACF,kFAAkF;QAClF,2DAA2D;QAC3D,EAAE;QACF,kFAAkF;QAClF,gFAAgF;QAChF,mFAAmF;QACnF,8EAA8E;QAC9E,+EAA+E;QAC/E,oFAAoF;QACpF,wBAAwB;QAExB,IAAI,CAAC,GAAG,EAAE;YACR,2CAA2C;YAC3C,OAAO,IAAI,CAAA;SACZ;QAED,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACnE,sBAAsB;YACtB,OAAO,GAAG,CAAA;SACX;QAED,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAC7C,+DAA+D;YAC/D,sCAAsC;YACtC,OAAO,IAAI,GAAG,GAAG,CAAA;SAClB;QAED,yBAAyB;QACzB,wBAAwB;QACxB,2BAA2B;QAC3B,yBAAyB;QACzB,6BAA6B;QAC7B,wBAAwB;QACxB,wBAAwB;QACxB,yBAAyB;QACzB,yBAAyB;QACzB,yBAAyB;QACzB,6BAA6B;QAC7B,0BAA0B;QAC1B,+BAA+B;QAC/B,yBAAyB;QACzB,sFAAsF;QACtF,gGAAgG;QAChG,IAAI,OAAO,GAAG,GAAG,CAAA;QACjB,IAAI,QAAQ,GAAG,IAAI,CAAA;QACnB,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YACnC,6BAA6B;YAC7B,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;YACrB,IAAI,QAAQ,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBACnC,OAAO,IAAI,IAAI,CAAA;aAChB;iBAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE;gBAC7B,QAAQ,GAAG,IAAI,CAAA;gBACf,OAAO,IAAI,IAAI,CAAA;aAChB;iBAAM;gBACL,QAAQ,GAAG,KAAK,CAAA;aACjB;SACF;QAED,OAAO,IAAI,GAAG,CAAA;QACd,OAAO,OAAO;aACX,KAAK,CAAC,EAAE,CAAC;aACT,OAAO,EAAE;aACT,IAAI,CAAC,EAAE,CAAC,CAAA;IACb,CAAC;IAEO,iBAAiB,CAAC,OAAwB;QAChD,OAAO,GAAG,OAAO,IAAoB,EAAE,CAAA;QACvC,MAAM,MAAM,GAAmC;YAC7C,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE;YACjC,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG;YAC/B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,KAAK;YAC/B,wBAAwB,EAAE,OAAO,CAAC,wBAAwB,IAAI,KAAK;YACnE,YAAY,EAAE,OAAO,CAAC,YAAY,IAAI,KAAK;YAC3C,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,IAAI,KAAK;YACnD,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;SAC9B,CAAA;QACD,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAqB,OAAO,CAAC,MAAM,CAAA;QACvE,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,IAAqB,OAAO,CAAC,MAAM,CAAA;QACvE,OAAO,MAAM,CAAA;IACf,CAAC;IAEO,gBAAgB,CACtB,OAAuB,EACvB,QAAgB;QAEhB,OAAO,GAAG,OAAO,IAAoB,EAAE,CAAA;QACvC,MAAM,MAAM,GAAuB,EAAE,CAAA;QACrC,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACxB,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACxB,MAAM,CAAC,0BAA0B,CAAC;YAChC,OAAO,CAAC,wBAAwB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;QACvD,IAAI,OAAO,CAAC,wBAAwB,EAAE;YACpC,MAAM,CAAC,KAAK,GAAG,IAAI,QAAQ,GAAG,CAAA;SAC/B;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;OAQG;IACG,IAAI;;YACR,qEAAqE;YACrE,IACE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;gBAC/B,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC;oBAC1B,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAC/C;gBACA,wFAAwF;gBACxF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAC1B,OAAO,CAAC,GAAG,EAAE,EACb,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,EACjC,IAAI,CAAC,QAAQ,CACd,CAAA;aACF;YAED,iEAAiE;YACjE,qEAAqE;YACrE,IAAI,CAAC,QAAQ,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;YAEnD,OAAO,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBAC7C,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;gBAC1C,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;gBACzB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE;oBAC3B,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;iBACzB;gBAED,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;gBAC3D,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,cAAc,CAAC,SAAS,EAAE;oBACtD,cAAc,CAAC,SAAS,CAAC,KAAK,CAC5B,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAChD,CAAA;iBACF;gBAED,MAAM,KAAK,GAAG,IAAI,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;gBAC1D,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,OAAe,EAAE,EAAE;oBACpC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;gBACtB,CAAC,CAAC,CAAA;gBAEF,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAA;gBACzC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CACpB,QAAQ,EACR,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,EAClC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAC9C,CAAA;gBAED,MAAM,SAAS,GAAG,EAAE,CAAA;gBACpB,IAAI,EAAE,CAAC,MAAM,EAAE;oBACb,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;wBACpC,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE;4BAC3D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;yBACpC;wBAED,IAAI,CAAC,cAAc,CAAC,MAAM,IAAI,cAAc,CAAC,SAAS,EAAE;4BACtD,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;yBACrC;wBAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAY,EAAE,EAAE;4BACxD,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE;gCAC5D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;6BACrC;wBACH,CAAC,CAAC,CAAA;oBACJ,CAAC,CAAC,CAAA;iBACH;gBAED,MAAM,SAAS,GAAG,EAAE,CAAA;gBACpB,IAAI,EAAE,CAAC,MAAM,EAAE;oBACb,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;wBACpC,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;wBAC1B,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE;4BAC3D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;yBACpC;wBAED,IACE,CAAC,cAAc,CAAC,MAAM;4BACtB,cAAc,CAAC,SAAS;4BACxB,cAAc,CAAC,SAAS,EACxB;4BACA,MAAM,CAAC,GAAG,cAAc,CAAC,YAAY;gCACnC,CAAC,CAAC,cAAc,CAAC,SAAS;gCAC1B,CAAC,CAAC,cAAc,CAAC,SAAS,CAAA;4BAC5B,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;yBACd;wBAED,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,IAAY,EAAE,EAAE;4BACxD,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE;gCAC5D,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;6BACrC;wBACH,CAAC,CAAC,CAAA;oBACJ,CAAC,CAAC,CAAA;iBACH;gBAED,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;oBAC5B,KAAK,CAAC,YAAY,GAAG,GAAG,CAAC,OAAO,CAAA;oBAChC,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,KAAK,CAAC,aAAa,EAAE,CAAA;gBACvB,CAAC,CAAC,CAAA;gBAEF,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;oBAC7B,KAAK,CAAC,eAAe,GAAG,IAAI,CAAA;oBAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,IAAI,CAAC,MAAM,CAAC,aAAa,IAAI,wBAAwB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAA;oBACtE,KAAK,CAAC,aAAa,EAAE,CAAA;gBACvB,CAAC,CAAC,CAAA;gBAEF,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE;oBAC9B,KAAK,CAAC,eAAe,GAAG,IAAI,CAAA;oBAC5B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,KAAK,CAAC,aAAa,GAAG,IAAI,CAAA;oBAC1B,IAAI,CAAC,MAAM,CAAC,uCAAuC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAA;oBACpE,KAAK,CAAC,aAAa,EAAE,CAAA;gBACvB,CAAC,CAAC,CAAA;gBAEF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAY,EAAE,QAAgB,EAAE,EAAE;oBAClD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;wBACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;qBAChC;oBAED,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;wBACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;qBAChC;oBAED,EAAE,CAAC,kBAAkB,EAAE,CAAA;oBAEvB,IAAI,KAAK,EAAE;wBACT,MAAM,CAAC,KAAK,CAAC,CAAA;qBACd;yBAAM;wBACL,OAAO,CAAC,QAAQ,CAAC,CAAA;qBAClB;gBACH,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAhgBD,gCAggBC;AAED;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,SAAiB;IAChD,MAAM,IAAI,GAAa,EAAE,CAAA;IAEzB,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,IAAI,OAAO,GAAG,KAAK,CAAA;IACnB,IAAI,GAAG,GAAG,EAAE,CAAA;IAEZ,SAAS,MAAM,CAAC,CAAS;QACvB,gCAAgC;QAChC,IAAI,OAAO,IAAI,CAAC,KAAK,GAAG,EAAE;YACxB,GAAG,IAAI,IAAI,CAAA;SACZ;QAED,GAAG,IAAI,CAAC,CAAA;QACR,OAAO,GAAG,KAAK,CAAA;IACjB,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;QAE7B,IAAI,CAAC,KAAK,GAAG,EAAE;YACb,IAAI,CAAC,OAAO,EAAE;gBACZ,QAAQ,GAAG,CAAC,QAAQ,CAAA;aACrB;iBAAM;gBACL,MAAM,CAAC,CAAC,CAAC,CAAA;aACV;YACD,SAAQ;SACT;QAED,IAAI,CAAC,KAAK,IAAI,IAAI,OAAO,EAAE;YACzB,MAAM,CAAC,CAAC,CAAC,CAAA;YACT,SAAQ;SACT;QAED,IAAI,CAAC,KAAK,IAAI,IAAI,QAAQ,EAAE;YAC1B,OAAO,GAAG,IAAI,CAAA;YACd,SAAQ;SACT;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;YAC1B,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;gBAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACd,GAAG,GAAG,EAAE,CAAA;aACT;YACD,SAAQ;SACT;QAED,MAAM,CAAC,CAAC,CAAC,CAAA;KACV;IAED,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;QAClB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;KACtB;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AAvDD,4CAuDC;AAED,MAAM,SAAU,SAAQ,MAAM,CAAC,YAAY;IACzC,YAAY,OAAuB,EAAE,QAAgB;QACnD,KAAK,EAAE,CAAA;QAaT,kBAAa,GAAY,KAAK,CAAA,CAAC,4DAA4D;QAC3F,iBAAY,GAAW,EAAE,CAAA;QACzB,oBAAe,GAAW,CAAC,CAAA;QAC3B,kBAAa,GAAY,KAAK,CAAA,CAAC,wCAAwC;QACvE,kBAAa,GAAY,KAAK,CAAA,CAAC,uCAAuC;QAC9D,UAAK,GAAG,KAAK,CAAA,CAAC,aAAa;QAC3B,SAAI,GAAY,KAAK,CAAA;QAErB,YAAO,GAAwB,IAAI,CAAA;QAnBzC,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;SAC9C;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,OAAO,CAAC,KAAK,EAAE;YACjB,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;SAC3B;IACH,CAAC;IAaD,aAAa;QACX,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,OAAM;SACP;QAED,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,CAAC,UAAU,EAAE,CAAA;SAClB;aAAM,IAAI,IAAI,CAAC,aAAa,EAAE;YAC7B,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;SACrE;IACH,CAAC;IAEO,MAAM,CAAC,OAAe;QAC5B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC7B,CAAC;IAEO,UAAU;QAChB,sCAAsC;QACtC,IAAI,KAAwB,CAAA;QAC5B,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,KAAK,GAAG,IAAI,KAAK,CACf,8DAA8D,IAAI,CAAC,QAAQ,4DAA4D,IAAI,CAAC,YAAY,EAAE,CAC3J,CAAA;aACF;iBAAM,IAAI,IAAI,CAAC,eAAe,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;gBACvE,KAAK,GAAG,IAAI,KAAK,CACf,gBAAgB,IAAI,CAAC,QAAQ,2BAA2B,IAAI,CAAC,eAAe,EAAE,CAC/E,CAAA;aACF;iBAAM,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;gBAC1D,KAAK,GAAG,IAAI,KAAK,CACf,gBAAgB,IAAI,CAAC,QAAQ,sEAAsE,CACpG,CAAA;aACF;SACF;QAED,oBAAoB;QACpB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;SACpB;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,eAAe,CAAC,CAAA;IAChD,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,KAAgB;QAC3C,IAAI,KAAK,CAAC,IAAI,EAAE;YACd,OAAM;SACP;QAED,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,EAAE;YAC/C,MAAM,OAAO,GAAG,0CAA0C,KAAK,CAAC,KAAK;gBACnE,IAAI,4CACJ,KAAK,CAAC,QACR,0FAA0F,CAAA;YAC1F,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;SACtB;QAED,KAAK,CAAC,UAAU,EAAE,CAAA;IACpB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json index 636d98fc1..4b5333fc7 100644 --- a/node_modules/@actions/exec/package.json +++ b/node_modules/@actions/exec/package.json @@ -1,39 +1,36 @@ { - "_args": [ - [ - "@actions/exec@1.0.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@actions/exec@1.0.2", - "_id": "@actions/exec@1.0.2", + "_from": "@actions/exec@^1.0.3", + "_id": "@actions/exec@1.0.3", "_inBundle": false, - "_integrity": "sha512-Yo/wfcFuxbVjAaAfvx3aGLhMEuonOahas2jf8BwyA52IkXTAmLi7YVZTpGAQG/lTxuGoNLg9slTWQD4rr7rMDQ==", + "_integrity": "sha512-TogJGnueOmM7ntCi0ASTUj4LapRRtDfj57Ja4IhPmg2fls28uVOPbAn8N+JifaOumN2UG3oEO/Ixek2A4NcYSA==", "_location": "/@actions/exec", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@actions/exec@1.0.2", + "raw": "@actions/exec@^1.0.3", "name": "@actions/exec", "escapedName": "@actions%2fexec", "scope": "@actions", - "rawSpec": "1.0.2", + "rawSpec": "^1.0.3", "saveSpec": null, - "fetchSpec": "1.0.2" + "fetchSpec": "^1.0.3" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.2.tgz", - "_spec": "1.0.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.3.tgz", + "_shasum": "b967f8700d6ff011dcc91243b58bafc1bb9ab95f", + "_spec": "@actions/exec@^1.0.3", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, + "bundleDependencies": false, "dependencies": { "@actions/io": "^1.0.1" }, + "deprecated": false, "description": "Actions exec lib", "directories": { "lib": "lib", @@ -60,8 +57,10 @@ "directory": "packages/exec" }, "scripts": { + "audit-moderate": "npm install && npm audit --audit-level=moderate", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "version": "1.0.2" + "types": "lib/exec.d.ts", + "version": "1.0.3" } diff --git a/node_modules/@actions/github/README.md b/node_modules/@actions/github/README.md index 8f2cbe39b..12c5b0b07 100644 --- a/node_modules/@actions/github/README.md +++ b/node_modules/@actions/github/README.md @@ -14,7 +14,7 @@ async function run() { // This should be a token with access to your repository scoped in as a secret. // The YML workflow will need to set myToken with the GitHub Secret Token // myToken: ${{ secrets.GITHUB_TOKEN }} - // https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret + // https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret const myToken = core.getInput('myToken'); const octokit = new github.GitHub(myToken); diff --git a/node_modules/@actions/github/lib/context.d.ts b/node_modules/@actions/github/lib/context.d.ts index 3ee758334..434fdb124 100644 --- a/node_modules/@actions/github/lib/context.d.ts +++ b/node_modules/@actions/github/lib/context.d.ts @@ -14,12 +14,12 @@ export declare class Context { * Hydrate the context from the environment */ constructor(); - readonly issue: { + get issue(): { owner: string; repo: string; number: number; }; - readonly repo: { + get repo(): { owner: string; repo: string; }; diff --git a/node_modules/@actions/github/package.json b/node_modules/@actions/github/package.json index 16807a897..e3d1ac262 100644 --- a/node_modules/@actions/github/package.json +++ b/node_modules/@actions/github/package.json @@ -1,40 +1,37 @@ { - "_args": [ - [ - "@actions/github@2.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@actions/github@2.0.0", - "_id": "@actions/github@2.0.0", + "_from": "@actions/github@^2.0.1", + "_id": "@actions/github@2.0.1", "_inBundle": false, - "_integrity": "sha512-sNpZ5dJyJyfJIO5lNYx8r/Gha4Tlm8R0MLO2cBkGdOnAAEn3t1M/MHVcoBhY/VPfjGVe5RNAUPz+6INrViiUPA==", + "_integrity": "sha512-C7dAsCkpPi1HxTzLldz+oY+9c5G+nnaK7xgk8KA83VVGlrGK7d603E3snUAFocWrqEu/uvdYD82ytggjcpYSQA==", "_location": "/@actions/github", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@actions/github@2.0.0", + "raw": "@actions/github@^2.0.1", "name": "@actions/github", "escapedName": "@actions%2fgithub", "scope": "@actions", - "rawSpec": "2.0.0", + "rawSpec": "^2.0.1", "saveSpec": null, - "fetchSpec": "2.0.0" + "fetchSpec": "^2.0.1" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/@actions/github/-/github-2.0.0.tgz", - "_spec": "2.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@actions/github/-/github-2.0.1.tgz", + "_shasum": "2870f56c28f042effc04e9ebf0df1f1af23715f7", + "_spec": "@actions/github@^2.0.1", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, + "bundleDependencies": false, "dependencies": { "@octokit/graphql": "^4.3.1", "@octokit/rest": "^16.15.0" }, + "deprecated": false, "description": "Actions github lib", "devDependencies": { "jest": "^24.7.1" @@ -63,11 +60,13 @@ "directory": "packages/github" }, "scripts": { + "audit-moderate": "npm install && npm audit --audit-level=moderate", "build": "tsc", "format": "prettier --write **/*.ts", "format-check": "prettier --check **/*.ts", "test": "jest", "tsc": "tsc" }, - "version": "2.0.0" + "types": "lib/github.d.ts", + "version": "2.0.1" } diff --git a/node_modules/@actions/io/LICENSE.md b/node_modules/@actions/io/LICENSE.md deleted file mode 100644 index e5a73f40e..000000000 --- a/node_modules/@actions/io/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -Copyright 2019 GitHub - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json index 3c92f412b..5a820b037 100644 --- a/node_modules/@actions/io/package.json +++ b/node_modules/@actions/io/package.json @@ -1,37 +1,34 @@ { - "_args": [ - [ - "@actions/io@1.0.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@actions/io@1.0.1", - "_id": "@actions/io@1.0.1", + "_from": "@actions/io@^1.0.2", + "_id": "@actions/io@1.0.2", "_inBundle": false, - "_integrity": "sha512-rhq+tfZukbtaus7xyUtwKfuiCRXd1hWSfmJNEpFgBQJ4woqPEpsBw04awicjwz9tyG2/MVhAEMfVn664Cri5zA==", + "_integrity": "sha512-J8KuFqVPr3p6U8W93DOXlXW6zFvrQAJANdS+vw0YhusLIq+bszW8zmK2Fh1C2kDPX8FMvwIl1OUcFgvJoXLbAg==", "_location": "/@actions/io", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@actions/io@1.0.1", + "raw": "@actions/io@^1.0.2", "name": "@actions/io", "escapedName": "@actions%2fio", "scope": "@actions", - "rawSpec": "1.0.1", + "rawSpec": "^1.0.2", "saveSpec": null, - "fetchSpec": "1.0.1" + "fetchSpec": "^1.0.2" }, "_requiredBy": [ "/", "/@actions/exec" ], - "_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz", - "_spec": "1.0.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.2.tgz", + "_shasum": "2f614b6e69ce14d191180451eb38e6576a6e6b27", + "_spec": "@actions/io@^1.0.2", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Actions io lib", "directories": { "lib": "lib", @@ -40,7 +37,6 @@ "files": [ "lib" ], - "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52", "homepage": "https://github.com/actions/toolkit/tree/master/packages/io", "keywords": [ "github", @@ -55,11 +51,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/actions/toolkit.git" + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/io" }, "scripts": { + "audit-moderate": "npm install && npm audit --audit-level=moderate", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "version": "1.0.1" + "types": "lib/io.d.ts", + "version": "1.0.2" } diff --git a/node_modules/@octokit/endpoint/package.json b/node_modules/@octokit/endpoint/package.json index 23680b167..d9b7eaef2 100644 --- a/node_modules/@octokit/endpoint/package.json +++ b/node_modules/@octokit/endpoint/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/endpoint@5.5.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/endpoint@5.5.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.5.1.tgz", "_spec": "5.5.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/endpoint.js/issues" }, diff --git a/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/graphql/package.json index 7d89a31fa..e3f3b7c1a 100644 --- a/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/graphql/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/graphql@4.3.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/graphql@4.3.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.3.1.tgz", "_spec": "4.3.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/graphql.js/issues" }, diff --git a/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/request-error/package.json index 7b4e2df45..e07765fa7 100644 --- a/node_modules/@octokit/request-error/package.json +++ b/node_modules/@octokit/request-error/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/request-error@1.2.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/request-error@1.2.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/request-error.js/issues" }, diff --git a/node_modules/@octokit/request/package.json b/node_modules/@octokit/request/package.json index 66d6c64b1..3a21987c7 100644 --- a/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/request/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/request@5.3.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/request@5.3.1", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.3.1.tgz", "_spec": "5.3.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/request.js/issues" }, diff --git a/node_modules/@octokit/rest/index.d.ts b/node_modules/@octokit/rest/index.d.ts index a45502870..b628ab170 100644 --- a/node_modules/@octokit/rest/index.d.ts +++ b/node_modules/@octokit/rest/index.d.ts @@ -68,9 +68,18 @@ declare namespace Octokit { agent?: http.Agent; timeout?: number; }; - timeout?: number; // Deprecated - headers?: { [header: string]: any }; // Deprecated - agent?: http.Agent; // Deprecated + /** + * @deprecated Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request + */ + timeout?: number; + /** + * @deprecated Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request + */ + headers?: { [header: string]: any }; + /** + * @deprecated Use {request: {agent}} instead. See https://github.com/octokit/request.js#request + */ + agent?: http.Agent; [option: string]: any; } @@ -715,6 +724,292 @@ declare namespace Octokit { verified: boolean; visibility: string | null; }; + type TeamsUpdateLegacyResponseOrganization = { + avatar_url: string; + blog: string; + company: string; + created_at: string; + description: string; + email: string; + events_url: string; + followers: number; + following: number; + has_organization_projects: boolean; + has_repository_projects: boolean; + hooks_url: string; + html_url: string; + id: number; + is_verified: boolean; + issues_url: string; + location: string; + login: string; + members_url: string; + name: string; + node_id: string; + public_gists: number; + public_members_url: string; + public_repos: number; + repos_url: string; + type: string; + url: string; + }; + type TeamsUpdateLegacyResponse = { + created_at: string; + description: string; + html_url: string; + id: number; + members_count: number; + members_url: string; + name: string; + node_id: string; + organization: TeamsUpdateLegacyResponseOrganization; + parent: null; + permission: string; + privacy: string; + repos_count: number; + repositories_url: string; + slug: string; + updated_at: string; + url: string; + }; + type TeamsUpdateInOrgResponseOrganization = { + avatar_url: string; + blog: string; + company: string; + created_at: string; + description: string; + email: string; + events_url: string; + followers: number; + following: number; + has_organization_projects: boolean; + has_repository_projects: boolean; + hooks_url: string; + html_url: string; + id: number; + is_verified: boolean; + issues_url: string; + location: string; + login: string; + members_url: string; + name: string; + node_id: string; + public_gists: number; + public_members_url: string; + public_repos: number; + repos_url: string; + type: string; + url: string; + }; + type TeamsUpdateInOrgResponse = { + created_at: string; + description: string; + html_url: string; + id: number; + members_count: number; + members_url: string; + name: string; + node_id: string; + organization: TeamsUpdateInOrgResponseOrganization; + parent: null; + permission: string; + privacy: string; + repos_count: number; + repositories_url: string; + slug: string; + updated_at: string; + url: string; + }; + type TeamsUpdateDiscussionLegacyResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsUpdateDiscussionLegacyResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsUpdateDiscussionLegacyResponse = { + author: TeamsUpdateDiscussionLegacyResponseAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsUpdateDiscussionLegacyResponseReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsUpdateDiscussionInOrgResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsUpdateDiscussionInOrgResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsUpdateDiscussionInOrgResponse = { + author: TeamsUpdateDiscussionInOrgResponseAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsUpdateDiscussionInOrgResponseReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsUpdateDiscussionCommentLegacyResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsUpdateDiscussionCommentLegacyResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsUpdateDiscussionCommentLegacyResponse = { + author: TeamsUpdateDiscussionCommentLegacyResponseAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: string; + node_id: string; + number: number; + reactions: TeamsUpdateDiscussionCommentLegacyResponseReactions; + updated_at: string; + url: string; + }; + type TeamsUpdateDiscussionCommentInOrgResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsUpdateDiscussionCommentInOrgResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsUpdateDiscussionCommentInOrgResponse = { + author: TeamsUpdateDiscussionCommentInOrgResponseAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: string; + node_id: string; + number: number; + reactions: TeamsUpdateDiscussionCommentInOrgResponseReactions; + updated_at: string; + url: string; + }; type TeamsUpdateDiscussionCommentResponseReactions = { "+1": number; "-1": number; @@ -858,6 +1153,92 @@ declare namespace Octokit { updated_at: string; url: string; }; + type TeamsReviewProjectLegacyResponsePermissions = { + admin: boolean; + read: boolean; + write: boolean; + }; + type TeamsReviewProjectLegacyResponseCreator = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsReviewProjectLegacyResponse = { + body: string; + columns_url: string; + created_at: string; + creator: TeamsReviewProjectLegacyResponseCreator; + html_url: string; + id: number; + name: string; + node_id: string; + number: number; + organization_permission: string; + owner_url: string; + permissions: TeamsReviewProjectLegacyResponsePermissions; + private: boolean; + state: string; + updated_at: string; + url: string; + }; + type TeamsReviewProjectInOrgResponsePermissions = { + admin: boolean; + read: boolean; + write: boolean; + }; + type TeamsReviewProjectInOrgResponseCreator = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsReviewProjectInOrgResponse = { + body: string; + columns_url: string; + created_at: string; + creator: TeamsReviewProjectInOrgResponseCreator; + html_url: string; + id: number; + name: string; + node_id: string; + number: number; + organization_permission: string; + owner_url: string; + permissions: TeamsReviewProjectInOrgResponsePermissions; + private: boolean; + state: string; + updated_at: string; + url: string; + }; type TeamsReviewProjectResponsePermissions = { admin: boolean; read: boolean; @@ -901,6 +1282,230 @@ declare namespace Octokit { updated_at: string; url: string; }; + type TeamsListReposLegacyResponseItemPermissions = { + admin: boolean; + pull: boolean; + push: boolean; + }; + type TeamsListReposLegacyResponseItemOwner = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListReposLegacyResponseItemLicense = { + key: string; + name: string; + node_id: string; + spdx_id: string; + url: string; + }; + type TeamsListReposLegacyResponseItem = { + archive_url: string; + archived: boolean; + assignees_url: string; + blobs_url: string; + branches_url: string; + clone_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + created_at: string; + default_branch: string; + deployments_url: string; + description: string; + disabled: boolean; + downloads_url: string; + events_url: string; + fork: boolean; + forks_count: number; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_pages: boolean; + has_projects: boolean; + has_wiki: boolean; + homepage: string; + hooks_url: string; + html_url: string; + id: number; + is_template: boolean; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + language: null; + languages_url: string; + license: TeamsListReposLegacyResponseItemLicense; + merges_url: string; + milestones_url: string; + mirror_url: string; + name: string; + network_count: number; + node_id: string; + notifications_url: string; + open_issues_count: number; + owner: TeamsListReposLegacyResponseItemOwner; + permissions: TeamsListReposLegacyResponseItemPermissions; + private: boolean; + pulls_url: string; + pushed_at: string; + releases_url: string; + size: number; + ssh_url: string; + stargazers_count: number; + stargazers_url: string; + statuses_url: string; + subscribers_count: number; + subscribers_url: string; + subscription_url: string; + svn_url: string; + tags_url: string; + teams_url: string; + temp_clone_token: string; + template_repository: null; + topics: Array; + trees_url: string; + updated_at: string; + url: string; + visibility: string; + watchers_count: number; + }; + type TeamsListReposInOrgResponseItemPermissions = { + admin: boolean; + pull: boolean; + push: boolean; + }; + type TeamsListReposInOrgResponseItemOwner = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListReposInOrgResponseItemLicense = { + key: string; + name: string; + node_id: string; + spdx_id: string; + url: string; + }; + type TeamsListReposInOrgResponseItem = { + archive_url: string; + archived: boolean; + assignees_url: string; + blobs_url: string; + branches_url: string; + clone_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + created_at: string; + default_branch: string; + deployments_url: string; + description: string; + disabled: boolean; + downloads_url: string; + events_url: string; + fork: boolean; + forks_count: number; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_pages: boolean; + has_projects: boolean; + has_wiki: boolean; + homepage: string; + hooks_url: string; + html_url: string; + id: number; + is_template: boolean; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + language: null; + languages_url: string; + license: TeamsListReposInOrgResponseItemLicense; + merges_url: string; + milestones_url: string; + mirror_url: string; + name: string; + network_count: number; + node_id: string; + notifications_url: string; + open_issues_count: number; + owner: TeamsListReposInOrgResponseItemOwner; + permissions: TeamsListReposInOrgResponseItemPermissions; + private: boolean; + pulls_url: string; + pushed_at: string; + releases_url: string; + size: number; + ssh_url: string; + stargazers_count: number; + stargazers_url: string; + statuses_url: string; + subscribers_count: number; + subscribers_url: string; + subscription_url: string; + svn_url: string; + tags_url: string; + teams_url: string; + temp_clone_token: string; + template_repository: null; + topics: Array; + trees_url: string; + updated_at: string; + url: string; + visibility: string; + watchers_count: number; + }; type TeamsListReposResponseItemPermissions = { admin: boolean; pull: boolean; @@ -1004,13 +1609,101 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; + type TeamsListProjectsLegacyResponseItemPermissions = { + admin: boolean; + read: boolean; + write: boolean; + }; + type TeamsListProjectsLegacyResponseItemCreator = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListProjectsLegacyResponseItem = { + body: string; + columns_url: string; + created_at: string; + creator: TeamsListProjectsLegacyResponseItemCreator; + html_url: string; + id: number; + name: string; + node_id: string; + number: number; + organization_permission: string; + owner_url: string; + permissions: TeamsListProjectsLegacyResponseItemPermissions; + private: boolean; + state: string; + updated_at: string; + url: string; + }; + type TeamsListProjectsInOrgResponseItemPermissions = { + admin: boolean; + read: boolean; + write: boolean; + }; + type TeamsListProjectsInOrgResponseItemCreator = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListProjectsInOrgResponseItem = { + body: string; + columns_url: string; + created_at: string; + creator: TeamsListProjectsInOrgResponseItemCreator; + html_url: string; + id: number; + name: string; + node_id: string; + number: number; + organization_permission: string; + owner_url: string; + permissions: TeamsListProjectsInOrgResponseItemPermissions; + private: boolean; + state: string; + updated_at: string; + url: string; + }; type TeamsListProjectsResponseItemPermissions = { admin: boolean; read: boolean; @@ -1054,6 +1747,66 @@ declare namespace Octokit { updated_at: string; url: string; }; + type TeamsListPendingInvitationsLegacyResponseItemInviter = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListPendingInvitationsLegacyResponseItem = { + created_at: string; + email: string; + id: number; + invitation_team_url: string; + inviter: TeamsListPendingInvitationsLegacyResponseItemInviter; + login: string; + role: string; + team_count: number; + }; + type TeamsListPendingInvitationsInOrgResponseItemInviter = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListPendingInvitationsInOrgResponseItem = { + created_at: string; + email: string; + id: number; + invitation_team_url: string; + inviter: TeamsListPendingInvitationsInOrgResponseItemInviter; + login: string; + role: string; + team_count: number; + }; type TeamsListPendingInvitationsResponseItemInviter = { avatar_url: string; events_url: string; @@ -1084,6 +1837,46 @@ declare namespace Octokit { role: string; team_count: number; }; + type TeamsListMembersLegacyResponseItem = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListMembersInOrgResponseItem = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; type TeamsListMembersResponseItem = { avatar_url: string; events_url: string; @@ -1152,7 +1945,7 @@ declare namespace Octokit { updated_at: string; url: string; }; - type TeamsListDiscussionsResponseItemReactions = { + type TeamsListDiscussionsLegacyResponseItemReactions = { "+1": number; "-1": number; confused: number; @@ -1162,7 +1955,7 @@ declare namespace Octokit { total_count: number; url: string; }; - type TeamsListDiscussionsResponseItemAuthor = { + type TeamsListDiscussionsLegacyResponseItemAuthor = { avatar_url: string; events_url: string; followers_url: string; @@ -1182,8 +1975,8 @@ declare namespace Octokit { type: string; url: string; }; - type TeamsListDiscussionsResponseItem = { - author: TeamsListDiscussionsResponseItemAuthor; + type TeamsListDiscussionsLegacyResponseItem = { + author: TeamsListDiscussionsLegacyResponseItemAuthor; body: string; body_html: string; body_version: string; @@ -1196,13 +1989,13 @@ declare namespace Octokit { number: number; pinned: boolean; private: boolean; - reactions: TeamsListDiscussionsResponseItemReactions; + reactions: TeamsListDiscussionsLegacyResponseItemReactions; team_url: string; title: string; updated_at: string; url: string; }; - type TeamsListDiscussionCommentsResponseItemReactions = { + type TeamsListDiscussionsInOrgResponseItemReactions = { "+1": number; "-1": number; confused: number; @@ -1212,7 +2005,7 @@ declare namespace Octokit { total_count: number; url: string; }; - type TeamsListDiscussionCommentsResponseItemAuthor = { + type TeamsListDiscussionsInOrgResponseItemAuthor = { avatar_url: string; events_url: string; followers_url: string; @@ -1232,43 +2025,284 @@ declare namespace Octokit { type: string; url: string; }; - type TeamsListDiscussionCommentsResponseItem = { - author: TeamsListDiscussionCommentsResponseItemAuthor; + type TeamsListDiscussionsInOrgResponseItem = { + author: TeamsListDiscussionsInOrgResponseItemAuthor; body: string; body_html: string; body_version: string; + comments_count: number; + comments_url: string; created_at: string; - discussion_url: string; html_url: string; last_edited_at: null; node_id: string; number: number; - reactions: TeamsListDiscussionCommentsResponseItemReactions; + pinned: boolean; + private: boolean; + reactions: TeamsListDiscussionsInOrgResponseItemReactions; + team_url: string; + title: string; updated_at: string; url: string; }; - type TeamsListChildResponseItemParent = { - description: string; + type TeamsListDiscussionsResponseItemReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsListDiscussionsResponseItemAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; html_url: string; id: number; - members_url: string; - name: string; + login: string; node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; url: string; }; - type TeamsListChildResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildResponseItemParent; - permission: string; + type TeamsListDiscussionsResponseItem = { + author: TeamsListDiscussionsResponseItemAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsListDiscussionsResponseItemReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsListDiscussionCommentsLegacyResponseItemReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsListDiscussionCommentsLegacyResponseItemAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListDiscussionCommentsLegacyResponseItem = { + author: TeamsListDiscussionCommentsLegacyResponseItemAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsListDiscussionCommentsLegacyResponseItemReactions; + updated_at: string; + url: string; + }; + type TeamsListDiscussionCommentsInOrgResponseItemReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsListDiscussionCommentsInOrgResponseItemAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListDiscussionCommentsInOrgResponseItem = { + author: TeamsListDiscussionCommentsInOrgResponseItemAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsListDiscussionCommentsInOrgResponseItemReactions; + updated_at: string; + url: string; + }; + type TeamsListDiscussionCommentsResponseItemReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsListDiscussionCommentsResponseItemAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsListDiscussionCommentsResponseItem = { + author: TeamsListDiscussionCommentsResponseItemAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsListDiscussionCommentsResponseItemReactions; + updated_at: string; + url: string; + }; + type TeamsListChildLegacyResponseItemParent = { + description: string; + html_url: string; + id: number; + members_url: string; + name: string; + node_id: string; + permission: string; + privacy: string; + repositories_url: string; + slug: string; + url: string; + }; + type TeamsListChildLegacyResponseItem = { + description: string; + id: number; + members_url: string; + name: string; + node_id: string; + parent: TeamsListChildLegacyResponseItemParent; + permission: string; + privacy: string; + repositories_url: string; + slug: string; + url: string; + }; + type TeamsListChildInOrgResponseItemParent = { + description: string; + html_url: string; + id: number; + members_url: string; + name: string; + node_id: string; + permission: string; + privacy: string; + repositories_url: string; + slug: string; + url: string; + }; + type TeamsListChildInOrgResponseItem = { + description: string; + id: number; + members_url: string; + name: string; + node_id: string; + parent: TeamsListChildInOrgResponseItemParent; + permission: string; + privacy: string; + repositories_url: string; + slug: string; + url: string; + }; + type TeamsListChildResponseItemParent = { + description: string; + html_url: string; + id: number; + members_url: string; + name: string; + node_id: string; + permission: string; + privacy: string; + repositories_url: string; + slug: string; + url: string; + }; + type TeamsListChildResponseItem = { + description: string; + id: number; + members_url: string; + name: string; + node_id: string; + parent: TeamsListChildResponseItemParent; + permission: string; privacy: string; repositories_url: string; slug: string; @@ -1288,11 +2322,259 @@ declare namespace Octokit { slug: string; url: string; }; + type TeamsGetMembershipLegacyResponse = { + role: string; + state: string; + url: string; + }; + type TeamsGetMembershipInOrgResponse = { + role: string; + state: string; + url: string; + }; type TeamsGetMembershipResponse = { role: string; state: string; url: string; }; + type TeamsGetLegacyResponseOrganization = { + avatar_url: string; + blog: string; + company: string; + created_at: string; + description: string; + email: string; + events_url: string; + followers: number; + following: number; + has_organization_projects: boolean; + has_repository_projects: boolean; + hooks_url: string; + html_url: string; + id: number; + is_verified: boolean; + issues_url: string; + location: string; + login: string; + members_url: string; + name: string; + node_id: string; + public_gists: number; + public_members_url: string; + public_repos: number; + repos_url: string; + type: string; + url: string; + }; + type TeamsGetLegacyResponse = { + created_at: string; + description: string; + html_url: string; + id: number; + members_count: number; + members_url: string; + name: string; + node_id: string; + organization: TeamsGetLegacyResponseOrganization; + parent: null; + permission: string; + privacy: string; + repos_count: number; + repositories_url: string; + slug: string; + updated_at: string; + url: string; + }; + type TeamsGetDiscussionLegacyResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsGetDiscussionLegacyResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsGetDiscussionLegacyResponse = { + author: TeamsGetDiscussionLegacyResponseAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsGetDiscussionLegacyResponseReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsGetDiscussionInOrgResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsGetDiscussionInOrgResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsGetDiscussionInOrgResponse = { + author: TeamsGetDiscussionInOrgResponseAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsGetDiscussionInOrgResponseReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsGetDiscussionCommentLegacyResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsGetDiscussionCommentLegacyResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsGetDiscussionCommentLegacyResponse = { + author: TeamsGetDiscussionCommentLegacyResponseAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsGetDiscussionCommentLegacyResponseReactions; + updated_at: string; + url: string; + }; + type TeamsGetDiscussionCommentInOrgResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsGetDiscussionCommentInOrgResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsGetDiscussionCommentInOrgResponse = { + author: TeamsGetDiscussionCommentInOrgResponseAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsGetDiscussionCommentInOrgResponseReactions; + updated_at: string; + url: string; + }; type TeamsGetDiscussionCommentResponseReactions = { "+1": number; "-1": number; @@ -1484,6 +2766,196 @@ declare namespace Octokit { updated_at: string; url: string; }; + type TeamsCreateDiscussionLegacyResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsCreateDiscussionLegacyResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsCreateDiscussionLegacyResponse = { + author: TeamsCreateDiscussionLegacyResponseAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsCreateDiscussionLegacyResponseReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsCreateDiscussionInOrgResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsCreateDiscussionInOrgResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsCreateDiscussionInOrgResponse = { + author: TeamsCreateDiscussionInOrgResponseAuthor; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + reactions: TeamsCreateDiscussionInOrgResponseReactions; + team_url: string; + title: string; + updated_at: string; + url: string; + }; + type TeamsCreateDiscussionCommentLegacyResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsCreateDiscussionCommentLegacyResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsCreateDiscussionCommentLegacyResponse = { + author: TeamsCreateDiscussionCommentLegacyResponseAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsCreateDiscussionCommentLegacyResponseReactions; + updated_at: string; + url: string; + }; + type TeamsCreateDiscussionCommentInOrgResponseReactions = { + "+1": number; + "-1": number; + confused: number; + heart: number; + hooray: number; + laugh: number; + total_count: number; + url: string; + }; + type TeamsCreateDiscussionCommentInOrgResponseAuthor = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsCreateDiscussionCommentInOrgResponse = { + author: TeamsCreateDiscussionCommentInOrgResponseAuthor; + body: string; + body_html: string; + body_version: string; + created_at: string; + discussion_url: string; + html_url: string; + last_edited_at: null; + node_id: string; + number: number; + reactions: TeamsCreateDiscussionCommentInOrgResponseReactions; + updated_at: string; + url: string; + }; type TeamsCreateDiscussionCommentResponseReactions = { "+1": number; "-1": number; @@ -1627,6 +3099,220 @@ declare namespace Octokit { updated_at: string; url: string; }; + type TeamsCheckManagesRepoLegacyResponsePermissions = { + admin: boolean; + pull: boolean; + push: boolean; + }; + type TeamsCheckManagesRepoLegacyResponseOwner = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsCheckManagesRepoLegacyResponse = { + allow_merge_commit: boolean; + allow_rebase_merge: boolean; + allow_squash_merge: boolean; + archive_url: string; + archived: boolean; + assignees_url: string; + blobs_url: string; + branches_url: string; + clone_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + created_at: string; + default_branch: string; + deployments_url: string; + description: string; + disabled: boolean; + downloads_url: string; + events_url: string; + fork: boolean; + forks_count: number; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_pages: boolean; + has_projects: boolean; + has_wiki: boolean; + homepage: string; + hooks_url: string; + html_url: string; + id: number; + is_template: boolean; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + language: null; + languages_url: string; + merges_url: string; + milestones_url: string; + mirror_url: string; + name: string; + network_count: number; + node_id: string; + notifications_url: string; + open_issues_count: number; + owner: TeamsCheckManagesRepoLegacyResponseOwner; + permissions: TeamsCheckManagesRepoLegacyResponsePermissions; + private: boolean; + pulls_url: string; + pushed_at: string; + releases_url: string; + size: number; + ssh_url: string; + stargazers_count: number; + stargazers_url: string; + statuses_url: string; + subscribers_count: number; + subscribers_url: string; + subscription_url: string; + svn_url: string; + tags_url: string; + teams_url: string; + temp_clone_token: string; + template_repository: null; + topics: Array; + trees_url: string; + updated_at: string; + url: string; + visibility: string; + watchers_count: number; + }; + type TeamsCheckManagesRepoInOrgResponsePermissions = { + admin: boolean; + pull: boolean; + push: boolean; + }; + type TeamsCheckManagesRepoInOrgResponseOwner = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type TeamsCheckManagesRepoInOrgResponse = { + allow_merge_commit: boolean; + allow_rebase_merge: boolean; + allow_squash_merge: boolean; + archive_url: string; + archived: boolean; + assignees_url: string; + blobs_url: string; + branches_url: string; + clone_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + created_at: string; + default_branch: string; + deployments_url: string; + description: string; + disabled: boolean; + downloads_url: string; + events_url: string; + fork: boolean; + forks_count: number; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_pages: boolean; + has_projects: boolean; + has_wiki: boolean; + homepage: string; + hooks_url: string; + html_url: string; + id: number; + is_template: boolean; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + language: null; + languages_url: string; + merges_url: string; + milestones_url: string; + mirror_url: string; + name: string; + network_count: number; + node_id: string; + notifications_url: string; + open_issues_count: number; + owner: TeamsCheckManagesRepoInOrgResponseOwner; + permissions: TeamsCheckManagesRepoInOrgResponsePermissions; + private: boolean; + pulls_url: string; + pushed_at: string; + releases_url: string; + size: number; + ssh_url: string; + stargazers_count: number; + stargazers_url: string; + statuses_url: string; + subscribers_count: number; + subscribers_url: string; + subscription_url: string; + svn_url: string; + tags_url: string; + teams_url: string; + temp_clone_token: string; + template_repository: null; + topics: Array; + trees_url: string; + updated_at: string; + url: string; + visibility: string; + watchers_count: number; + }; type TeamsCheckManagesRepoResponsePermissions = { admin: boolean; pull: boolean; @@ -1725,22 +3411,51 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; + type TeamsAddOrUpdateProjectLegacyResponse = { + documentation_url: string; + message: string; + }; + type TeamsAddOrUpdateProjectInOrgResponse = { + documentation_url: string; + message: string; + }; type TeamsAddOrUpdateProjectResponse = { documentation_url: string; message: string; }; + type TeamsAddOrUpdateMembershipLegacyResponse = { + role: string; + state: string; + url: string; + }; + type TeamsAddOrUpdateMembershipInOrgResponse = { + role: string; + state: string; + url: string; + }; type TeamsAddOrUpdateMembershipResponse = { role: string; state: string; url: string; }; + type TeamsAddMemberLegacyResponseErrorsItem = { + code: string; + field: string; + resource: string; + }; + type TeamsAddMemberLegacyResponse = { + errors: Array; + message: string; + }; type TeamsAddMemberResponseErrorsItem = { code: string; field: string; @@ -1750,6 +3465,27 @@ declare namespace Octokit { errors: Array; message: string; }; + type SearchUsersLegacyResponseUsersItem = { + created: string; + created_at: string; + followers: number; + followers_count: number; + fullname: string; + gravatar_id: string; + id: string; + language: string; + location: string; + login: string; + name: string; + public_repo_count: number; + repos: number; + score: number; + type: string; + username: string; + }; + type SearchUsersLegacyResponse = { + users: Array; + }; type SearchUsersResponseItemsItem = { avatar_url: string; followers_url: string; @@ -1789,6 +3525,34 @@ declare namespace Octokit { items: Array; total_count: number; }; + type SearchReposLegacyResponseRepositoriesItem = { + created: string; + created_at: string; + description: string; + followers: number; + fork: boolean; + forks: number; + has_downloads: boolean; + has_issues: boolean; + has_wiki: boolean; + homepage: string; + language: string; + name: string; + open_issues: number; + owner: string; + private: boolean; + pushed: string; + pushed_at: string; + score: number; + size: number; + type: string; + url: string; + username: string; + watchers: number; + }; + type SearchReposLegacyResponse = { + repositories: Array; + }; type SearchReposResponseItemsItemOwner = { avatar_url: string; gravatar_id: string; @@ -1844,6 +3608,24 @@ declare namespace Octokit { items: Array; total_count: number; }; + type SearchIssuesLegacyResponseIssuesItem = { + body: string; + comments: number; + created_at: string; + gravatar_id: string; + html_url: string; + labels: Array; + number: number; + position: number; + state: string; + title: string; + updated_at: string; + user: string; + votes: number; + }; + type SearchIssuesLegacyResponse = { + issues: Array; + }; type SearchIssuesAndPullRequestsResponseItemsItemUser = { avatar_url: string; events_url: string; @@ -1964,6 +3746,24 @@ declare namespace Octokit { items: Array; total_count: number; }; + type SearchEmailLegacyResponseUser = { + blog: string; + company: string; + created: string; + created_at: string; + email: string; + followers_count: number; + following_count: number; + gravatar_id: string; + id: number; + location: string; + login: string; + name: string; + public_gist_count: number; + public_repo_count: number; + type: string; + }; + type SearchEmailLegacyResponse = { user: SearchEmailLegacyResponseUser }; type SearchCommitsResponseItemsItemRepositoryOwner = { avatar_url: string; events_url: string; @@ -2767,12 +4567,22 @@ declare namespace Octokit { required_approving_review_count: number; url: string; }; + type ReposUpdateBranchProtectionResponseRequiredLinearHistory = { + enabled: boolean; + }; type ReposUpdateBranchProtectionResponseEnforceAdmins = { enabled: boolean; url: string; }; + type ReposUpdateBranchProtectionResponseAllowForcePushes = { + enabled: boolean; + }; + type ReposUpdateBranchProtectionResponseAllowDeletions = { enabled: boolean }; type ReposUpdateBranchProtectionResponse = { + allow_deletions: ReposUpdateBranchProtectionResponseAllowDeletions; + allow_force_pushes: ReposUpdateBranchProtectionResponseAllowForcePushes; enforce_admins: ReposUpdateBranchProtectionResponseEnforceAdmins; + required_linear_history: ReposUpdateBranchProtectionResponseRequiredLinearHistory; required_pull_request_reviews: ReposUpdateBranchProtectionResponseRequiredPullRequestReviews; required_status_checks: ReposUpdateBranchProtectionResponseRequiredStatusChecks; restrictions: ReposUpdateBranchProtectionResponseRestrictions; @@ -2876,11 +4686,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposUpdateResponsePermissions = { @@ -2986,11 +4798,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposUpdateResponseOwner = { @@ -3109,11 +4923,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposTransferResponsePermissions = { @@ -3214,11 +5030,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposRetrieveCommunityProfileMetricsResponseFilesReadme = { @@ -3864,11 +5682,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposListPullRequestsAssociatedWithCommitResponseItemHead = { @@ -3996,11 +5816,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposListPullRequestsAssociatedWithCommitResponseItemBase = { @@ -4629,11 +6451,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposListForOrgResponseItemPermissions = { @@ -4739,11 +6563,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposListDownloadsResponseItem = { @@ -6263,12 +8089,20 @@ declare namespace Octokit { required_approving_review_count: number; url: string; }; + type ReposGetBranchProtectionResponseRequiredLinearHistory = { + enabled: boolean; + }; type ReposGetBranchProtectionResponseEnforceAdmins = { enabled: boolean; url: string; }; + type ReposGetBranchProtectionResponseAllowForcePushes = { enabled: boolean }; + type ReposGetBranchProtectionResponseAllowDeletions = { enabled: boolean }; type ReposGetBranchProtectionResponse = { + allow_deletions: ReposGetBranchProtectionResponseAllowDeletions; + allow_force_pushes: ReposGetBranchProtectionResponseAllowForcePushes; enforce_admins: ReposGetBranchProtectionResponseEnforceAdmins; + required_linear_history: ReposGetBranchProtectionResponseRequiredLinearHistory; required_pull_request_reviews: ReposGetBranchProtectionResponseRequiredPullRequestReviews; required_status_checks: ReposGetBranchProtectionResponseRequiredStatusChecks; restrictions: ReposGetBranchProtectionResponseRestrictions; @@ -6472,11 +8306,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposGetResponsePermissions = { @@ -6582,11 +8418,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposGetResponseOwner = { @@ -6713,11 +8551,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposEnablePagesSiteResponseSource = { @@ -6869,11 +8709,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposCreateUsingTemplateResponsePermissions = { @@ -6974,11 +8816,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: ReposCreateUsingTemplateResponseTemplateRepository; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposCreateStatusResponseCreator = { @@ -7207,11 +9051,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposCreateHookResponseLastResponse = { @@ -7336,11 +9182,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposCreateForAuthenticatedUserResponsePermissions = { @@ -7441,11 +9289,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ReposCreateFileResponseContentLinks = { @@ -8096,6 +9946,114 @@ declare namespace Octokit { repository: ReposAddCollaboratorResponseRepository; url: string; }; + type ReactionsListForTeamDiscussionLegacyResponseItemUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsListForTeamDiscussionLegacyResponseItem = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsListForTeamDiscussionLegacyResponseItemUser; + }; + type ReactionsListForTeamDiscussionInOrgResponseItemUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsListForTeamDiscussionInOrgResponseItem = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsListForTeamDiscussionInOrgResponseItemUser; + }; + type ReactionsListForTeamDiscussionCommentLegacyResponseItemUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsListForTeamDiscussionCommentLegacyResponseItem = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsListForTeamDiscussionCommentLegacyResponseItemUser; + }; + type ReactionsListForTeamDiscussionCommentInOrgResponseItemUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsListForTeamDiscussionCommentInOrgResponseItem = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsListForTeamDiscussionCommentInOrgResponseItemUser; + }; type ReactionsListForTeamDiscussionCommentResponseItemUser = { avatar_url: string; events_url: string; @@ -8258,6 +10216,114 @@ declare namespace Octokit { node_id: string; user: ReactionsListForCommitCommentResponseItemUser; }; + type ReactionsCreateForTeamDiscussionLegacyResponseUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsCreateForTeamDiscussionLegacyResponse = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsCreateForTeamDiscussionLegacyResponseUser; + }; + type ReactionsCreateForTeamDiscussionInOrgResponseUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsCreateForTeamDiscussionInOrgResponse = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsCreateForTeamDiscussionInOrgResponseUser; + }; + type ReactionsCreateForTeamDiscussionCommentLegacyResponseUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsCreateForTeamDiscussionCommentLegacyResponse = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsCreateForTeamDiscussionCommentLegacyResponseUser; + }; + type ReactionsCreateForTeamDiscussionCommentInOrgResponseUser = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type ReactionsCreateForTeamDiscussionCommentInOrgResponse = { + content: string; + created_at: string; + id: number; + node_id: string; + user: ReactionsCreateForTeamDiscussionCommentInOrgResponseUser; + }; type ReactionsCreateForTeamDiscussionCommentResponseUser = { avatar_url: string; events_url: string; @@ -8787,11 +10853,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsUpdateResponseHead = { @@ -8919,11 +10987,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsUpdateResponseBase = { @@ -9075,6 +11145,7 @@ declare namespace Octokit { node_id: string; pull_request_url: string; state: string; + submitted_at: string; user: PullsSubmitReviewResponseUser; }; type PullsMergeResponse = { merged: boolean; message: string; sha: string }; @@ -9113,6 +11184,7 @@ declare namespace Octokit { node_id: string; pull_request_url: string; state: string; + submitted_at: string; user: PullsListReviewsResponseItemUser; }; type PullsListReviewRequestsResponseUsersItem = { @@ -9572,11 +11644,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsListResponseItemHead = { @@ -9704,11 +11778,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsListResponseItemBase = { @@ -9848,6 +11924,7 @@ declare namespace Octokit { node_id: string; pull_request_url: string; state: string; + submitted_at: string; user: PullsGetReviewResponseUser; }; type PullsGetCommentsForReviewResponseItemUser = { @@ -10193,11 +12270,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsGetResponseHead = { @@ -10325,11 +12404,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsGetResponseBase = { @@ -10739,11 +12820,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsCreateReviewRequestResponseHead = { @@ -10871,11 +12954,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsCreateReviewRequestResponseBase = { @@ -11306,11 +13391,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsCreateFromIssueResponseHead = { @@ -11438,11 +13525,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsCreateFromIssueResponseBase = { @@ -11910,11 +13999,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsCreateResponseHead = { @@ -12042,11 +14133,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type PullsCreateResponseBase = { @@ -12742,6 +14835,9 @@ declare namespace Octokit { location: string; login: string; members_allowed_repository_creation_type: string; + members_can_create_internal_repositories: boolean; + members_can_create_private_repositories: boolean; + members_can_create_public_repositories: boolean; members_can_create_repositories: boolean; members_url: string; name: string; @@ -13155,6 +15251,9 @@ declare namespace Octokit { location: string; login: string; members_allowed_repository_creation_type?: string; + members_can_create_internal_repositories?: boolean; + members_can_create_private_repositories?: boolean; + members_can_create_public_repositories?: boolean; members_can_create_repositories?: boolean; members_url: string; name: string; @@ -13631,11 +15730,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type MigrationsStartForOrgResponseOwner = { @@ -13762,11 +15863,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type MigrationsStartForAuthenticatedUserResponseOwner = { @@ -13827,6 +15930,230 @@ declare namespace Octokit { remote_name: string; url: string; }; + type MigrationsListReposForUserResponseItemPermissions = { + admin: boolean; + pull: boolean; + push: boolean; + }; + type MigrationsListReposForUserResponseItemOwner = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type MigrationsListReposForUserResponseItemLicense = { + key: string; + name: string; + node_id: string; + spdx_id: string; + url: string; + }; + type MigrationsListReposForUserResponseItem = { + archive_url: string; + archived: boolean; + assignees_url: string; + blobs_url: string; + branches_url: string; + clone_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + created_at: string; + default_branch: string; + deployments_url: string; + description: string; + disabled: boolean; + downloads_url: string; + events_url: string; + fork: boolean; + forks_count: number; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_pages: boolean; + has_projects: boolean; + has_wiki: boolean; + homepage: string; + hooks_url: string; + html_url: string; + id: number; + is_template: boolean; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + language: null; + languages_url: string; + license: MigrationsListReposForUserResponseItemLicense; + merges_url: string; + milestones_url: string; + mirror_url: string; + name: string; + network_count: number; + node_id: string; + notifications_url: string; + open_issues_count: number; + owner: MigrationsListReposForUserResponseItemOwner; + permissions: MigrationsListReposForUserResponseItemPermissions; + private: boolean; + pulls_url: string; + pushed_at: string; + releases_url: string; + size: number; + ssh_url: string; + stargazers_count: number; + stargazers_url: string; + statuses_url: string; + subscribers_count: number; + subscribers_url: string; + subscription_url: string; + svn_url: string; + tags_url: string; + teams_url: string; + temp_clone_token: string; + template_repository: null; + topics: Array; + trees_url: string; + updated_at: string; + url: string; + visibility: string; + watchers_count: number; + }; + type MigrationsListReposForOrgResponseItemPermissions = { + admin: boolean; + pull: boolean; + push: boolean; + }; + type MigrationsListReposForOrgResponseItemOwner = { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string; + html_url: string; + id: number; + login: string; + node_id: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + type MigrationsListReposForOrgResponseItemLicense = { + key: string; + name: string; + node_id: string; + spdx_id: string; + url: string; + }; + type MigrationsListReposForOrgResponseItem = { + archive_url: string; + archived: boolean; + assignees_url: string; + blobs_url: string; + branches_url: string; + clone_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + created_at: string; + default_branch: string; + deployments_url: string; + description: string; + disabled: boolean; + downloads_url: string; + events_url: string; + fork: boolean; + forks_count: number; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_pages: boolean; + has_projects: boolean; + has_wiki: boolean; + homepage: string; + hooks_url: string; + html_url: string; + id: number; + is_template: boolean; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + language: null; + languages_url: string; + license: MigrationsListReposForOrgResponseItemLicense; + merges_url: string; + milestones_url: string; + mirror_url: string; + name: string; + network_count: number; + node_id: string; + notifications_url: string; + open_issues_count: number; + owner: MigrationsListReposForOrgResponseItemOwner; + permissions: MigrationsListReposForOrgResponseItemPermissions; + private: boolean; + pulls_url: string; + pushed_at: string; + releases_url: string; + size: number; + ssh_url: string; + stargazers_count: number; + stargazers_url: string; + statuses_url: string; + subscribers_count: number; + subscribers_url: string; + subscription_url: string; + svn_url: string; + tags_url: string; + teams_url: string; + temp_clone_token: string; + template_repository: null; + topics: Array; + trees_url: string; + updated_at: string; + url: string; + visibility: string; + watchers_count: number; + }; type MigrationsListForOrgResponseItemRepositoriesItemPermissions = { admin: boolean; pull: boolean; @@ -13925,11 +16252,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type MigrationsListForOrgResponseItemOwner = { @@ -14056,11 +16385,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type MigrationsListForAuthenticatedUserResponseItemOwner = { @@ -14195,11 +16526,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type MigrationsGetStatusForOrgResponseOwner = { @@ -14326,11 +16659,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type MigrationsGetStatusForAuthenticatedUserResponseOwner = { @@ -14397,12 +16732,21 @@ declare namespace Octokit { remote_name: string; url: string; }; + type MetaGetResponseSshKeyFingerprints = { + MD5_DSA: string; + MD5_RSA: string; + SHA256_DSA: string; + SHA256_RSA: string; + }; type MetaGetResponse = { + api: Array; git: Array; hooks: Array; importer: Array; pages: Array; + ssh_key_fingerprints: MetaGetResponseSshKeyFingerprints; verifiable_password_authentication: boolean; + web: Array; }; type LicensesListCommonlyUsedResponseItem = { key: string; @@ -15176,11 +17520,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type IssuesListForOrgResponseItemPullRequest = { @@ -15421,11 +17767,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type IssuesListForAuthenticatedUserResponseItemPullRequest = { @@ -15976,11 +18324,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type IssuesListResponseItemPullRequest = { @@ -18265,11 +20615,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ChecksSetSuitesPreferencesResponsePreferencesAutoTriggerChecksItem = { @@ -18383,11 +20735,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ChecksListSuitesForRefResponseCheckSuitesItemAppPermissions = { @@ -18735,11 +21089,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ChecksGetSuiteResponseAppPermissions = { @@ -18975,11 +21331,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ChecksCreateSuiteResponseAppPermissions = { @@ -19289,11 +21647,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type AppsListReposResponse = { @@ -19578,11 +21938,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type AppsListInstallationReposForAuthenticatedUserResponse = { @@ -20144,11 +22506,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type AppsCreateInstallationTokenResponsePermissions = { @@ -20530,11 +22894,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ActivityListStargazersForRepoResponseItem = { @@ -20660,11 +23026,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ActivityListReposStarredByUserResponseItemPermissions = { @@ -20765,11 +23133,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ActivityListReposStarredByAuthenticatedUserResponseItemPermissions = { @@ -20870,11 +23240,13 @@ declare namespace Octokit { svn_url: string; tags_url: string; teams_url: string; + temp_clone_token: string; template_repository: null; topics: Array; trees_url: string; updated_at: string; url: string; + visibility: string; watchers_count: number; }; type ActivityListNotificationsForRepoResponseItemSubject = { @@ -21298,6 +23670,12 @@ declare namespace Octokit { MigrationsListForAuthenticatedUserResponseItem >; type MigrationsListForOrgResponse = Array; + type MigrationsListReposForOrgResponse = Array< + MigrationsListReposForOrgResponseItem + >; + type MigrationsListReposForUserResponse = Array< + MigrationsListReposForUserResponseItem + >; type OauthAuthorizationsListAuthorizationsResponse = Array< OauthAuthorizationsListAuthorizationsResponseItem >; @@ -21358,6 +23736,18 @@ declare namespace Octokit { type ReactionsListForTeamDiscussionCommentResponse = Array< ReactionsListForTeamDiscussionCommentResponseItem >; + type ReactionsListForTeamDiscussionCommentInOrgResponse = Array< + ReactionsListForTeamDiscussionCommentInOrgResponseItem + >; + type ReactionsListForTeamDiscussionCommentLegacyResponse = Array< + ReactionsListForTeamDiscussionCommentLegacyResponseItem + >; + type ReactionsListForTeamDiscussionInOrgResponse = Array< + ReactionsListForTeamDiscussionInOrgResponseItem + >; + type ReactionsListForTeamDiscussionLegacyResponse = Array< + ReactionsListForTeamDiscussionLegacyResponseItem + >; type ReposAddProtectedBranchAppRestrictionsResponse = Array< ReposAddProtectedBranchAppRestrictionsResponseItem >; @@ -21475,19 +23865,51 @@ declare namespace Octokit { >; type TeamsListResponse = Array; type TeamsListChildResponse = Array; + type TeamsListChildInOrgResponse = Array; + type TeamsListChildLegacyResponse = Array; type TeamsListDiscussionCommentsResponse = Array< TeamsListDiscussionCommentsResponseItem >; + type TeamsListDiscussionCommentsInOrgResponse = Array< + TeamsListDiscussionCommentsInOrgResponseItem + >; + type TeamsListDiscussionCommentsLegacyResponse = Array< + TeamsListDiscussionCommentsLegacyResponseItem + >; type TeamsListDiscussionsResponse = Array; + type TeamsListDiscussionsInOrgResponse = Array< + TeamsListDiscussionsInOrgResponseItem + >; + type TeamsListDiscussionsLegacyResponse = Array< + TeamsListDiscussionsLegacyResponseItem + >; type TeamsListForAuthenticatedUserResponse = Array< TeamsListForAuthenticatedUserResponseItem >; type TeamsListMembersResponse = Array; + type TeamsListMembersInOrgResponse = Array; + type TeamsListMembersLegacyResponse = Array< + TeamsListMembersLegacyResponseItem + >; type TeamsListPendingInvitationsResponse = Array< TeamsListPendingInvitationsResponseItem >; + type TeamsListPendingInvitationsInOrgResponse = Array< + TeamsListPendingInvitationsInOrgResponseItem + >; + type TeamsListPendingInvitationsLegacyResponse = Array< + TeamsListPendingInvitationsLegacyResponseItem + >; type TeamsListProjectsResponse = Array; + type TeamsListProjectsInOrgResponse = Array< + TeamsListProjectsInOrgResponseItem + >; + type TeamsListProjectsLegacyResponse = Array< + TeamsListProjectsLegacyResponseItem + >; type TeamsListReposResponse = Array; + type TeamsListReposInOrgResponse = Array; + type TeamsListReposLegacyResponse = Array; type UsersAddEmailsResponse = Array; type UsersListResponse = Array; type UsersListBlockedResponse = Array; @@ -21523,6 +23945,11 @@ declare namespace Octokit { repo: string; }; + export type ActivityCheckWatchingRepoLegacyParams = { + owner: string; + + repo: string; + }; export type ActivityDeleteRepoSubscriptionParams = { owner: string; @@ -21838,11 +24265,21 @@ declare namespace Octokit { repo: string; }; + export type ActivityStopWatchingRepoLegacyParams = { + owner: string; + + repo: string; + }; export type ActivityUnstarRepoParams = { owner: string; repo: string; }; + export type ActivityWatchRepoLegacyParams = { + owner: string; + + repo: string; + }; export type AppsAddRepoToInstallationParams = { installation_id: number; @@ -23863,6 +26300,30 @@ declare namespace Octokit { */ per_page?: number; }; + export type MigrationsListReposForOrgParams = { + migration_id: number; + + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + }; + export type MigrationsListReposForUserParams = { + migration_id: number; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + }; export type MigrationsMapCommitAuthorParams = { author_id: number; /** @@ -24426,7 +26887,7 @@ declare namespace Octokit { username: string; }; - export type OrgsUpdateParams = { + export type OrgsUpdateParamsDeprecatedMembersAllowedRepositoryCreationType = { /** * Billing email address. This address is not publicized. */ @@ -24452,11 +26913,11 @@ declare namespace Octokit { */ email?: string; /** - * Toggles whether organization projects are enabled for the organization. + * Toggles whether an organization can use organization projects. */ has_organization_projects?: boolean; /** - * Toggles whether repository projects are enabled for repositories that belong to the organization. + * Toggles whether repositories that belong to the organization can use repository projects. */ has_repository_projects?: boolean; /** @@ -24466,17 +26927,112 @@ declare namespace Octokit { /** * Specifies which types of repositories non-admin organization members can create. Can be one of: * \* `all` - all organization members can create public and private repositories. - * \* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on [GitHub Business Cloud](https://github.com/pricing/business-cloud). + * \* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. * \* `none` - only admin members can create repositories. - * **Note:** Using this parameter will override values set in `members_can_create_repositories`. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. + * **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. + * @deprecated "members_allowed_repository_creation_type" parameter has been deprecated and will be removed in future + */ + members_allowed_repository_creation_type?: string; + /** + * Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud. Can be one of: + * \* `true` - all organization members can create internal repositories. + * \* `false` - only organization owners can create internal repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_internal_repositories?: boolean; + /** + * Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: + * \* `true` - all organization members can create private repositories. + * \* `false` - only organization owners can create private repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_private_repositories?: boolean; + /** + * Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: + * \* `true` - all organization members can create public repositories. + * \* `false` - only organization owners can create public repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_public_repositories?: boolean; + /** + * Toggles the ability of non-admin organization members to create repositories. Can be one of: + * \* `true` - all organization members can create repositories. + * \* `false` - only organization owners can create repositories. + * Default: `true` + * **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. + */ + members_can_create_repositories?: boolean; + /** + * The shorthand name of the company. + */ + name?: string; + + org: string; + }; + export type OrgsUpdateParams = { + /** + * Billing email address. This address is not publicized. + */ + billing_email?: string; + /** + * The company name. + */ + company?: string; + /** + * Default permission level members have for organization repositories: + * \* `read` - can pull, but not push to or administer this repository. + * \* `write` - can pull and push, but not administer this repository. + * \* `admin` - can pull, push, and administer this repository. + * \* `none` - no permissions granted by default. + */ + default_repository_permission?: "read" | "write" | "admin" | "none"; + /** + * The description of the company. + */ + description?: string; + /** + * The publicly visible email address. + */ + email?: string; + /** + * Toggles whether an organization can use organization projects. */ - members_allowed_repository_creation_type?: "all" | "private" | "none"; + has_organization_projects?: boolean; + /** + * Toggles whether repositories that belong to the organization can use repository projects. + */ + has_repository_projects?: boolean; + /** + * The location. + */ + location?: string; + /** + * Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud. Can be one of: + * \* `true` - all organization members can create internal repositories. + * \* `false` - only organization owners can create internal repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_internal_repositories?: boolean; + /** + * Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: + * \* `true` - all organization members can create private repositories. + * \* `false` - only organization owners can create private repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_private_repositories?: boolean; + /** + * Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: + * \* `true` - all organization members can create public repositories. + * \* `false` - only organization owners can create public repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_public_repositories?: boolean; /** * Toggles the ability of non-admin organization members to create repositories. Can be one of: * \* `true` - all organization members can create repositories. - * \* `false` - only admin members can create repositories. + * \* `false` - only organization owners can create repositories. * Default: `true` - * **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. + * **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. */ members_can_create_repositories?: boolean; /** @@ -25961,6 +28517,84 @@ declare namespace Octokit { team_id: number; }; + export type ReactionsCreateForTeamDiscussionCommentInOrgParams = { + comment_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type ReactionsCreateForTeamDiscussionCommentLegacyParams = { + comment_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + + team_id: number; + }; + export type ReactionsCreateForTeamDiscussionInOrgParams = { + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type ReactionsCreateForTeamDiscussionLegacyParams = { + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + + team_id: number; + }; export type ReactionsDeleteParams = { reaction_id: number; }; @@ -26156,6 +28790,116 @@ declare namespace Octokit { team_id: number; }; + export type ReactionsListForTeamDiscussionCommentInOrgParams = { + comment_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type ReactionsListForTeamDiscussionCommentLegacyParams = { + comment_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; + export type ReactionsListForTeamDiscussionInOrgParams = { + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type ReactionsListForTeamDiscussionLegacyParams = { + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + + discussion_number: number; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; export type ReposAcceptInvitationParams = { invitation_id: number; }; @@ -26485,6 +29229,10 @@ declare namespace Octokit { * Pass `true` to create an initial commit with empty README. */ auto_init?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; /** * A short description of the repository. */ @@ -26529,6 +29277,11 @@ declare namespace Octokit { * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. */ team_id?: number; + /** + * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. + * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; }; export type ReposCreateForkParams = { /** @@ -26579,6 +29332,10 @@ declare namespace Octokit { * Pass `true` to create an initial commit with empty README. */ auto_init?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; /** * A short description of the repository. */ @@ -26625,6 +29382,11 @@ declare namespace Octokit { * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. */ team_id?: number; + /** + * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. + * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; }; export type ReposCreateOrUpdateFileParams = { /** @@ -27427,9 +30189,16 @@ declare namespace Octokit { */ sort?: "created" | "updated" | "pushed" | "full_name"; /** - * Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`. + * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `type` can also be `internal`. */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + type?: + | "all" + | "public" + | "private" + | "forks" + | "sources" + | "member" + | "internal"; }; export type ReposListForUserParams = { /** @@ -27864,6 +30633,10 @@ declare namespace Octokit { * Updates the default branch for this repository. */ default_branch?: string; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; /** * A short description of the repository. */ @@ -27901,8 +30674,21 @@ declare namespace Octokit { private?: boolean; repo: string; + /** + * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; }; export type ReposUpdateBranchProtectionParams = { + /** + * Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation. + */ + allow_deletions?: boolean; + /** + * Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation." + */ + allow_force_pushes?: boolean | null; + branch: string; /** * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. @@ -27912,6 +30698,10 @@ declare namespace Octokit { owner: string; repo: string; + /** + * Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://help.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation. + */ + required_linear_history?: boolean; /** * Require at least one approving review on a pull request, before merging. Set to `null` to disable. */ @@ -27921,7 +30711,7 @@ declare namespace Octokit { */ required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; /** - * Restrict who can push to this branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. + * Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. */ restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; }; @@ -28168,6 +30958,12 @@ declare namespace Octokit { */ sort?: "author-date" | "committer-date"; }; + export type SearchEmailLegacyParams = { + /** + * The email address. + */ + email: string; + }; export type SearchIssuesParams = { /** * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. @@ -28234,6 +31030,20 @@ declare namespace Octokit { | "created" | "updated"; }; + export type SearchIssuesLegacyParams = { + /** + * The search term. + */ + keyword: string; + + owner: string; + + repository: string; + /** + * Indicates the state of the issues to return. Can be either `open` or `closed`. + */ + state: "open" | "closed"; + }; export type SearchLabelsParams = { /** * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. @@ -28274,6 +31084,28 @@ declare namespace Octokit { */ sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; }; + export type SearchReposLegacyParams = { + /** + * The search term. + */ + keyword: string; + /** + * Filter results by language. + */ + language?: string; + /** + * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. + */ + order?: "asc" | "desc"; + /** + * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. + */ + sort?: "stars" | "forks" | "updated"; + /** + * The page number to fetch. + */ + start_page?: string; + }; export type SearchTopicsParams = { /** * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). @@ -28302,11 +31134,34 @@ declare namespace Octokit { */ sort?: "followers" | "repositories" | "joined"; }; + export type SearchUsersLegacyParams = { + /** + * The search term. + */ + keyword: string; + /** + * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. + */ + order?: "asc" | "desc"; + /** + * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. + */ + sort?: "stars" | "forks" | "updated"; + /** + * The page number to fetch. + */ + start_page?: string; + }; export type TeamsAddMemberParams = { team_id: number; username: string; }; + export type TeamsAddMemberLegacyParams = { + team_id: number; + + username: string; + }; export type TeamsAddOrUpdateMembershipParams = { /** * The role that this user should have in the team. Can be one of: @@ -28319,6 +31174,31 @@ declare namespace Octokit { username: string; }; + export type TeamsAddOrUpdateMembershipInOrgParams = { + org: string; + /** + * The role that this user should have in the team. Can be one of: + * \* `member` - a normal member of the team. + * \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. + */ + role?: "member" | "maintainer"; + + team_slug: string; + + username: string; + }; + export type TeamsAddOrUpdateMembershipLegacyParams = { + /** + * The role that this user should have in the team. Can be one of: + * \* `member` - a normal member of the team. + * \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. + */ + role?: "member" | "maintainer"; + + team_id: number; + + username: string; + }; export type TeamsAddOrUpdateProjectParams = { /** * The permission to grant to the team for this project. Can be one of: @@ -28326,7 +31206,35 @@ declare namespace Octokit { * \* `write` - team members can read and write, but not administer this project. * \* `admin` - team members can read, write and administer this project. * Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team. + */ + permission?: "read" | "write" | "admin"; + + project_id: number; + + team_id: number; + }; + export type TeamsAddOrUpdateProjectInOrgParams = { + org: string; + /** + * The permission to grant to the team for this project. Can be one of: + * \* `read` - team members can read, but not write to or administer this project. + * \* `write` - team members can read and write, but not administer this project. + * \* `admin` - team members can read, write and administer this project. + * Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + */ + permission?: "read" | "write" | "admin"; + + project_id: number; + + team_slug: string; + }; + export type TeamsAddOrUpdateProjectLegacyParams = { + /** + * The permission to grant to the team for this project. Can be one of: + * \* `read` - team members can read, but not write to or administer this project. + * \* `write` - team members can read and write, but not administer this project. + * \* `admin` - team members can read, write and administer this project. + * Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." */ permission?: "read" | "write" | "admin"; @@ -28343,7 +31251,40 @@ declare namespace Octokit { * \* `admin` - team members can pull, push and administer this repository. * * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. - * **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team. + */ + permission?: "pull" | "push" | "admin"; + + repo: string; + + team_id: number; + }; + export type TeamsAddOrUpdateRepoInOrgParams = { + org: string; + + owner: string; + /** + * The permission to grant the team on this repository. Can be one of: + * \* `pull` - team members can pull, but not push to or administer this repository. + * \* `push` - team members can pull and push, but not administer this repository. + * \* `admin` - team members can pull, push and administer this repository. + * + * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. + */ + permission?: "pull" | "push" | "admin"; + + repo: string; + + team_slug: string; + }; + export type TeamsAddOrUpdateRepoLegacyParams = { + owner: string; + /** + * The permission to grant the team on this repository. Can be one of: + * \* `pull` - team members can pull, but not push to or administer this repository. + * \* `push` - team members can pull and push, but not administer this repository. + * \* `admin` - team members can pull, push and administer this repository. + * + * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. */ permission?: "pull" | "push" | "admin"; @@ -28358,13 +31299,29 @@ declare namespace Octokit { team_id: number; }; + export type TeamsCheckManagesRepoInOrgParams = { + org: string; + + owner: string; + + repo: string; + + team_slug: string; + }; + export type TeamsCheckManagesRepoLegacyParams = { + owner: string; + + repo: string; + + team_id: number; + }; export type TeamsCreateParamsDeprecatedPermission = { /** * The description of the team. */ description?: string; /** - * The logins of organization members to add as maintainers of the team. + * List GitHub IDs for organization members who will become team maintainers. */ maintainers?: string[]; /** @@ -28374,7 +31331,7 @@ declare namespace Octokit { org: string; /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. + * The ID of a team to set as the parent team. */ parent_team_id?: number; /** @@ -28394,7 +31351,6 @@ declare namespace Octokit { * **For a parent or child team:** * \* `closed` - visible to all members of this organization. * Default for child team: `closed` - * **Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. */ privacy?: "secret" | "closed"; /** @@ -28408,7 +31364,7 @@ declare namespace Octokit { */ description?: string; /** - * The logins of organization members to add as maintainers of the team. + * List GitHub IDs for organization members who will become team maintainers. */ maintainers?: string[]; /** @@ -28418,7 +31374,7 @@ declare namespace Octokit { org: string; /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. + * The ID of a team to set as the parent team. */ parent_team_id?: number; /** @@ -28430,7 +31386,6 @@ declare namespace Octokit { * **For a parent or child team:** * \* `closed` - visible to all members of this organization. * Default for child team: `closed` - * **Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. */ privacy?: "secret" | "closed"; /** @@ -28464,6 +31419,62 @@ declare namespace Octokit { team_id: number; }; + export type TeamsCreateDiscussionCommentInOrgParams = { + /** + * The discussion comment's body text. + */ + body: string; + + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type TeamsCreateDiscussionCommentLegacyParams = { + /** + * The discussion comment's body text. + */ + body: string; + + discussion_number: number; + + team_id: number; + }; + export type TeamsCreateDiscussionInOrgParams = { + /** + * The discussion post's body text. + */ + body: string; + + org: string; + /** + * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. + */ + private?: boolean; + + team_slug: string; + /** + * The discussion post's title. + */ + title: string; + }; + export type TeamsCreateDiscussionLegacyParams = { + /** + * The discussion post's body text. + */ + body: string; + /** + * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. + */ + private?: boolean; + + team_id: number; + /** + * The discussion post's title. + */ + title: string; + }; export type TeamsDeleteParams = { team_id: number; }; @@ -28479,6 +31490,42 @@ declare namespace Octokit { team_id: number; }; + export type TeamsDeleteDiscussionCommentInOrgParams = { + comment_number: number; + + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type TeamsDeleteDiscussionCommentLegacyParams = { + comment_number: number; + + discussion_number: number; + + team_id: number; + }; + export type TeamsDeleteDiscussionInOrgParams = { + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type TeamsDeleteDiscussionLegacyParams = { + discussion_number: number; + + team_id: number; + }; + export type TeamsDeleteInOrgParams = { + org: string; + + team_slug: string; + }; + export type TeamsDeleteLegacyParams = { + team_id: number; + }; export type TeamsGetParams = { team_id: number; }; @@ -28499,16 +31546,64 @@ declare namespace Octokit { team_id: number; }; + export type TeamsGetDiscussionCommentInOrgParams = { + comment_number: number; + + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type TeamsGetDiscussionCommentLegacyParams = { + comment_number: number; + + discussion_number: number; + + team_id: number; + }; + export type TeamsGetDiscussionInOrgParams = { + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type TeamsGetDiscussionLegacyParams = { + discussion_number: number; + + team_id: number; + }; + export type TeamsGetLegacyParams = { + team_id: number; + }; export type TeamsGetMemberParams = { team_id: number; username: string; }; + export type TeamsGetMemberLegacyParams = { + team_id: number; + + username: string; + }; export type TeamsGetMembershipParams = { team_id: number; username: string; }; + export type TeamsGetMembershipInOrgParams = { + org: string; + + team_slug: string; + + username: string; + }; + export type TeamsGetMembershipLegacyParams = { + team_id: number; + + username: string; + }; export type TeamsListParams = { org: string; /** @@ -28532,6 +31627,31 @@ declare namespace Octokit { team_id: number; }; + export type TeamsListChildInOrgParams = { + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type TeamsListChildLegacyParams = { + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; export type TeamsListDiscussionCommentsParams = { /** * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. @@ -28550,6 +31670,44 @@ declare namespace Octokit { team_id: number; }; + export type TeamsListDiscussionCommentsInOrgParams = { + /** + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. + */ + direction?: "asc" | "desc"; + + discussion_number: number; + + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type TeamsListDiscussionCommentsLegacyParams = { + /** + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. + */ + direction?: "asc" | "desc"; + + discussion_number: number; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; export type TeamsListDiscussionsParams = { /** * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. @@ -28566,6 +31724,40 @@ declare namespace Octokit { team_id: number; }; + export type TeamsListDiscussionsInOrgParams = { + /** + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. + */ + direction?: "asc" | "desc"; + + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type TeamsListDiscussionsLegacyParams = { + /** + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. + */ + direction?: "asc" | "desc"; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; export type TeamsListForAuthenticatedUserParams = { /** * Page number of the results to fetch. @@ -28595,6 +31787,45 @@ declare namespace Octokit { team_id: number; }; + export type TeamsListMembersInOrgParams = { + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Filters members returned by their role in the team. Can be one of: + * \* `member` - normal members of the team. + * \* `maintainer` - team maintainers. + * \* `all` - all members of the team. + */ + role?: "member" | "maintainer" | "all"; + + team_slug: string; + }; + export type TeamsListMembersLegacyParams = { + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Filters members returned by their role in the team. Can be one of: + * \* `member` - normal members of the team. + * \* `maintainer` - team maintainers. + * \* `all` - all members of the team. + */ + role?: "member" | "maintainer" | "all"; + + team_id: number; + }; export type TeamsListPendingInvitationsParams = { /** * Page number of the results to fetch. @@ -28607,6 +31838,31 @@ declare namespace Octokit { team_id: number; }; + export type TeamsListPendingInvitationsInOrgParams = { + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type TeamsListPendingInvitationsLegacyParams = { + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; export type TeamsListProjectsParams = { /** * Page number of the results to fetch. @@ -28619,6 +31875,31 @@ declare namespace Octokit { team_id: number; }; + export type TeamsListProjectsInOrgParams = { + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type TeamsListProjectsLegacyParams = { + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; export type TeamsListReposParams = { /** * Page number of the results to fetch. @@ -28631,12 +31912,44 @@ declare namespace Octokit { team_id: number; }; - export type TeamsRemoveMemberParams = { + export type TeamsListReposInOrgParams = { + org: string; + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_slug: string; + }; + export type TeamsListReposLegacyParams = { + /** + * Page number of the results to fetch. + */ + page?: number; + /** + * Results per page (max 100) + */ + per_page?: number; + + team_id: number; + }; + export type TeamsRemoveMemberLegacyParams = { team_id: number; username: string; }; - export type TeamsRemoveMembershipParams = { + export type TeamsRemoveMembershipInOrgParams = { + org: string; + + team_slug: string; + + username: string; + }; + export type TeamsRemoveMembershipLegacyParams = { team_id: number; username: string; @@ -28646,6 +31959,18 @@ declare namespace Octokit { team_id: number; }; + export type TeamsRemoveProjectInOrgParams = { + org: string; + + project_id: number; + + team_slug: string; + }; + export type TeamsRemoveProjectLegacyParams = { + project_id: number; + + team_id: number; + }; export type TeamsRemoveRepoParams = { owner: string; @@ -28653,11 +31978,39 @@ declare namespace Octokit { team_id: number; }; + export type TeamsRemoveRepoInOrgParams = { + org: string; + + owner: string; + + repo: string; + + team_slug: string; + }; + export type TeamsRemoveRepoLegacyParams = { + owner: string; + + repo: string; + + team_id: number; + }; export type TeamsReviewProjectParams = { project_id: number; team_id: number; }; + export type TeamsReviewProjectInOrgParams = { + org: string; + + project_id: number; + + team_slug: string; + }; + export type TeamsReviewProjectLegacyParams = { + project_id: number; + + team_id: number; + }; export type TeamsUpdateParamsDeprecatedPermission = { /** * The description of the team. @@ -28668,7 +32021,7 @@ declare namespace Octokit { */ name: string; /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. + * The ID of a team to set as the parent team. */ parent_team_id?: number; /** @@ -28701,7 +32054,7 @@ declare namespace Octokit { */ name: string; /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. + * The ID of a team to set as the parent team. */ parent_team_id?: number; /** @@ -28742,6 +32095,182 @@ declare namespace Octokit { team_id: number; }; + export type TeamsUpdateDiscussionCommentInOrgParams = { + /** + * The discussion comment's body text. + */ + body: string; + + comment_number: number; + + discussion_number: number; + + org: string; + + team_slug: string; + }; + export type TeamsUpdateDiscussionCommentLegacyParams = { + /** + * The discussion comment's body text. + */ + body: string; + + comment_number: number; + + discussion_number: number; + + team_id: number; + }; + export type TeamsUpdateDiscussionInOrgParams = { + /** + * The discussion post's body text. + */ + body?: string; + + discussion_number: number; + + org: string; + + team_slug: string; + /** + * The discussion post's title. + */ + title?: string; + }; + export type TeamsUpdateDiscussionLegacyParams = { + /** + * The discussion post's body text. + */ + body?: string; + + discussion_number: number; + + team_id: number; + /** + * The discussion post's title. + */ + title?: string; + }; + export type TeamsUpdateInOrgParamsDeprecatedPermission = { + /** + * The description of the team. + */ + description?: string; + /** + * The name of the team. + */ + name: string; + + org: string; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; + /** + * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: + * \* `pull` - team members can pull, but not push to or administer newly-added repositories. + * \* `push` - team members can pull and push, but not administer newly-added repositories. + * \* `admin` - team members can pull, push and administer newly-added repositories. + * @deprecated "permission" parameter has been deprecated and will be removed in future + */ + permission?: string; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. + */ + privacy?: "secret" | "closed"; + + team_slug: string; + }; + export type TeamsUpdateInOrgParams = { + /** + * The description of the team. + */ + description?: string; + /** + * The name of the team. + */ + name: string; + + org: string; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. + */ + privacy?: "secret" | "closed"; + + team_slug: string; + }; + export type TeamsUpdateLegacyParamsDeprecatedPermission = { + /** + * The description of the team. + */ + description?: string; + /** + * The name of the team. + */ + name: string; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; + /** + * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: + * \* `pull` - team members can pull, but not push to or administer newly-added repositories. + * \* `push` - team members can pull and push, but not administer newly-added repositories. + * \* `admin` - team members can pull, push and administer newly-added repositories. + * @deprecated "permission" parameter has been deprecated and will be removed in future + */ + permission?: string; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. + */ + privacy?: "secret" | "closed"; + + team_id: number; + }; + export type TeamsUpdateLegacyParams = { + /** + * The description of the team. + */ + description?: string; + /** + * The name of the team. + */ + name: string; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. + */ + privacy?: "secret" | "closed"; + + team_id: number; + }; export type UsersAddEmailsParams = { /** * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. @@ -29228,6 +32757,17 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Requires for the user to be authenticated. + */ + checkWatchingRepoLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.ActivityCheckWatchingRepoLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; /** * This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/v3/activity/watching/#set-a-repository-subscription). */ @@ -29553,6 +33093,17 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Requires for the user to be authenticated. + */ + stopWatchingRepoLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.ActivityStopWatchingRepoLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; /** * Requires for the user to be authenticated. */ @@ -29561,6 +33112,18 @@ declare class Octokit { params?: Octokit.RequestOptions & Octokit.ActivityUnstarRepoParams ): Promise; + endpoint: Octokit.Endpoint; + }; + /** + * Requires the user to be authenticated. + * + * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + */ + watchRepoLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.ActivityWatchRepoLegacyParams + ): Promise; + endpoint: Octokit.Endpoint; }; }; @@ -30030,6 +33593,20 @@ declare class Octokit { Octokit.AppsRevokeGrantForApplicationParams ): Promise; + endpoint: Octokit.Endpoint; + }; + /** + * Revokes the installation token you're using to authenticate as an installation and access this endpoint. + * + * Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create a new installation token](https://developer.github.com/v3/apps/#create-a-new-installation-token)" endpoint. + * + * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + revokeInstallationToken: { + (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< + Octokit.AnyResponse + >; + endpoint: Octokit.Endpoint; }; }; @@ -31283,7 +34860,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [Get a list of user migrations](https://developer.github.com/v3/migrations/users/#get-a-list-of-user-migrations) and [Get the status of a user migration](https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration) endpoints, will continue to be available even after an archive is deleted. + * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://developer.github.com/v3/migrations/users/#list-user-migrations) and [Get the status of a user migration](https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration) endpoints, will continue to be available even after an archive is deleted. */ deleteArchiveForAuthenticatedUser: { ( @@ -31476,6 +35053,28 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * List all the repositories for this organization migration. + */ + listReposForOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.MigrationsListReposForOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * Lists all the repositories for this user migration. + */ + listReposForUser: { + ( + params?: Octokit.RequestOptions & + Octokit.MigrationsListReposForUserParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; /** * Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. */ @@ -32174,15 +35773,15 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * **Note:** The new `members_allowed_repository_creation_type` replaces the functionality of `members_can_create_repositories`. + * **Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). * - * Setting `members_allowed_repository_creation_type` will override the value of `members_can_create_repositories` in the following ways: - * - * * Setting `members_allowed_repository_creation_type` to `all` or `private` sets `members_can_create_repositories` to `true`. - * * Setting `members_allowed_repository_creation_type` to `none` sets `members_can_create_repositories` to `false`. - * * If you omit `members_allowed_repository_creation_type`, `members_can_create_repositories` is not modified. + * Enables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges. */ update: { + ( + params?: Octokit.RequestOptions & + Octokit.OrgsUpdateParamsDeprecatedMembersAllowedRepositoryCreationType + ): Promise>; (params?: Octokit.RequestOptions & Octokit.OrgsUpdateParams): Promise< Octokit.Response >; @@ -32457,7 +36056,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. * @@ -32661,7 +36260,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists details of a pull request by providing its number. * @@ -32743,7 +36342,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ list: { (params?: Octokit.RequestOptions & Octokit.PullsListParams): Promise< @@ -32897,7 +36496,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. */ @@ -33051,7 +36650,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion) endpoint. + * * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. + * @deprecated octokit.reactions.createForTeamDiscussion() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy */ createForTeamDiscussion: { ( @@ -33064,7 +36666,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment) endpoint. + * * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. + * @deprecated octokit.reactions.createForTeamDiscussionComment() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy */ createForTeamDiscussionComment: { ( @@ -33078,6 +36683,72 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. + */ + createForTeamDiscussionCommentInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsCreateForTeamDiscussionCommentInOrgParams + ): Promise< + Octokit.Response< + Octokit.ReactionsCreateForTeamDiscussionCommentInOrgResponse + > + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment) endpoint. + * + * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. + * @deprecated octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + */ + createForTeamDiscussionCommentLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsCreateForTeamDiscussionCommentLegacyParams + ): Promise< + Octokit.Response< + Octokit.ReactionsCreateForTeamDiscussionCommentLegacyResponse + > + >; + + endpoint: Octokit.Endpoint; + }; + /** + * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. + */ + createForTeamDiscussionInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsCreateForTeamDiscussionInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion) endpoint. + * + * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. + * @deprecated octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + */ + createForTeamDiscussionLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsCreateForTeamDiscussionLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; /** * OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). */ @@ -33144,7 +36815,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion) endpoint. + * * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.reactions.listForTeamDiscussion() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy */ listForTeamDiscussion: { ( @@ -33157,7 +36831,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment) endpoint. + * * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.reactions.listForTeamDiscussionComment() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy */ listForTeamDiscussionComment: { ( @@ -33167,6 +36844,72 @@ declare class Octokit { Octokit.Response >; + endpoint: Octokit.Endpoint; + }; + /** + * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. + */ + listForTeamDiscussionCommentInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsListForTeamDiscussionCommentInOrgParams + ): Promise< + Octokit.Response< + Octokit.ReactionsListForTeamDiscussionCommentInOrgResponse + > + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment) endpoint. + * + * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + */ + listForTeamDiscussionCommentLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsListForTeamDiscussionCommentLegacyParams + ): Promise< + Octokit.Response< + Octokit.ReactionsListForTeamDiscussionCommentLegacyResponse + > + >; + + endpoint: Octokit.Endpoint; + }; + /** + * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. + */ + listForTeamDiscussionInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsListForTeamDiscussionInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion) endpoint. + * + * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + */ + listForTeamDiscussionLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.ReactionsListForTeamDiscussionLegacyParams + ): Promise< + Octokit.Response + >; + endpoint: Octokit.Endpoint; }; }; @@ -33207,7 +36950,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. */ @@ -33224,7 +36967,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. * @@ -33243,7 +36986,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. */ @@ -33260,7 +37003,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ addProtectedBranchRequiredStatusChecksContexts: { ( @@ -33275,9 +37018,9 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * - * Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams. + * Grants the specified teams push access for this branch. You can also give push access to child teams. * * | Type | Description | * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | @@ -33296,7 +37039,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Grants the specified people push access for this branch. * @@ -33319,7 +37062,7 @@ declare class Octokit { /** * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. * - * If you pass the `hellcat-preview` media type, team members will include the members of child teams. + * Team members will include the members of child teams. */ checkCollaborator: { ( @@ -33752,7 +37495,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. */ @@ -33791,7 +37534,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ getBranchProtection: { ( @@ -34073,7 +37816,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ getProtectedBranchAdminEnforcement: { ( @@ -34088,7 +37831,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ getProtectedBranchPullRequestReviewEnforcement: { ( @@ -34103,7 +37846,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help. * @@ -34122,7 +37865,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ getProtectedBranchRequiredStatusChecks: { ( @@ -34137,7 +37880,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists who has access to this protected branch. {{#note}} * @@ -34212,9 +37955,9 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * - * Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams. + * Lists the teams who have push access to this branch. The list includes child teams. */ getTeamsWithAccessToProtectedBranch: { ( @@ -34249,7 +37992,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists the people who have push access to this branch. */ @@ -34288,7 +38031,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. * @deprecated octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13) @@ -34323,7 +38066,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. */ @@ -34340,7 +38083,7 @@ declare class Octokit { /** * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. * - * If you pass the `hellcat-preview` media type, team members will include the members of child teams. + * Team members will include the members of child teams. */ listCollaborators: { ( @@ -34535,7 +38278,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ listProtectedBranchRequiredStatusChecksContexts: { ( @@ -34550,9 +38293,9 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * - * Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams. + * Lists the teams who have push access to this branch. The list includes child teams. * @deprecated octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09) */ listProtectedBranchTeamRestrictions: { @@ -34568,7 +38311,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists the people who have push access to this branch. * @deprecated octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09) @@ -34653,9 +38396,9 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * - * Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams. + * Lists the teams who have push access to this branch. The list includes child teams. * @deprecated octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13) */ listTeamsWithAccessToProtectedBranch: { @@ -34679,7 +38422,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Lists the people who have push access to this branch. * @deprecated octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13) @@ -34715,7 +38458,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ removeBranchProtection: { ( @@ -34742,7 +38485,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. */ @@ -34755,7 +38498,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. * @@ -34776,7 +38519,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ removeProtectedBranchPullRequestReviewEnforcement: { ( @@ -34787,7 +38530,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. */ @@ -34800,7 +38543,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ removeProtectedBranchRequiredStatusChecks: { ( @@ -34811,7 +38554,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ removeProtectedBranchRequiredStatusChecksContexts: { ( @@ -34826,7 +38569,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Disables the ability to restrict who can push to this branch. */ @@ -34839,9 +38582,9 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * - * Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams. + * Removes the ability of a team to push to this branch. You can also remove push access for child teams. * * | Type | Description | * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -34860,7 +38603,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Removes the ability of a user to push to this branch. * @@ -34881,7 +38624,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. * @@ -34902,7 +38645,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. */ replaceProtectedBranchRequiredStatusChecksContexts: { ( @@ -34917,9 +38660,9 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * - * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams. + * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams. * * | Type | Description | * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | @@ -34938,7 +38681,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people. * @@ -35024,7 +38767,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Protecting a branch requires admin or owner permissions to the repository. * @@ -35085,7 +38828,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled. * @@ -35104,7 +38847,7 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's billing plans](https://help.github.com/articles/github-s-billing-plans) in the GitHub Help documentation. + * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. */ @@ -35204,6 +38947,17 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub profile). + * @deprecated octokit.search.emailLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#email-search + */ + emailLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.SearchEmailLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; /** * Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). * @@ -35238,6 +38992,17 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Find issues by state and keyword. + * @deprecated octokit.search.issuesLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-issues + */ + issuesLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.SearchIssuesLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; /** * Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/v3/#pagination). * @@ -35272,6 +39037,17 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter. + * @deprecated octokit.search.reposLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-repositories + */ + reposLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.SearchReposLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; /** * Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). * @@ -35308,76 +39084,225 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; - }; - teams: { /** - * The "Add team member" API (described below) is deprecated. - * - * We recommend using the [Add team membership API](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) instead. It allows you to invite new organization members to your teams. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/articles/github-s-products) in the GitHub Help documentation. + * Find users by keyword. + * @deprecated octokit.search.usersLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-users + */ + usersLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.SearchUsersLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + }; + teams: { + /** + * The "Add team member" endpoint (described below) is deprecated. + * + * We recommend using the [Add team membership](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint instead. It allows you to invite new organization members to your teams. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + * @deprecated octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy + */ + addMember: { + (params?: Octokit.RequestOptions & Octokit.TeamsAddMemberParams): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * The "Add team member" endpoint (described below) is deprecated. + * + * We recommend using the [Add team membership](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint instead. It allows you to invite new organization members to your teams. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + * @deprecated octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy + */ + addMemberLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsAddMemberLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team membership`](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. + * + * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + * @deprecated octokit.teams.addOrUpdateMembership() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy + */ + addOrUpdateMembership: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateMembershipParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. + * + * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/memberships/:username`. + */ + addOrUpdateMembershipInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateMembershipInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team membership`](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. + * + * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + * @deprecated octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy + */ + addOrUpdateMembershipLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateMembershipLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team project`](https://developer.github.com/v3/teams/#add-or-update-team-project) endpoint. + * + * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + * @deprecated octokit.teams.addOrUpdateProject() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy + */ + addOrUpdateProject: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsAddOrUpdateProjectParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/projects/:project_id`. + */ + addOrUpdateProjectInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateProjectInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team project`](https://developer.github.com/v3/teams/#add-or-update-team-project) endpoint. * - * To add someone to a team, the authenticated user must be a team maintainer in the team they're changing or be an owner of the organization that the team is associated with. The person being added to the team must be a member of the team's organization. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member + * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + * @deprecated octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy */ - addMember: { - (params?: Octokit.RequestOptions & Octokit.TeamsAddMemberParams): Promise< - Octokit.Response + addOrUpdateProjectLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateProjectLegacyParams + ): Promise< + Octokit.Response >; endpoint: Octokit.Endpoint; }; /** - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/articles/github-s-products) in the GitHub Help documentation. - * - * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team. + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team repository`](https://developer.github.com/v3/teams/#add-or-update-team-repository) endpoint. * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. + * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team. + * Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + * @deprecated octokit.teams.addOrUpdateRepo() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy */ - addOrUpdateMembership: { + addOrUpdateRepo: { ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateMembershipParams - ): Promise>; + params?: Octokit.RequestOptions & Octokit.TeamsAddOrUpdateRepoParams + ): Promise; endpoint: Octokit.Endpoint; }; /** - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/repos/:owner/:repo`. */ - addOrUpdateProject: { + addOrUpdateRepoInOrg: { ( - params?: Octokit.RequestOptions & Octokit.TeamsAddOrUpdateProjectParams - ): Promise>; + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateRepoInOrgParams + ): Promise; endpoint: Octokit.Endpoint; }; /** - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team repository`](https://developer.github.com/v3/teams/#add-or-update-team-repository) endpoint. * - * If you pass the `hellcat-preview` media type, you can modify repository permissions of child teams. + * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. * * Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + * @deprecated octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy */ - addOrUpdateRepo: { + addOrUpdateRepoLegacy: { ( - params?: Octokit.RequestOptions & Octokit.TeamsAddOrUpdateRepoParams + params?: Octokit.RequestOptions & + Octokit.TeamsAddOrUpdateRepoLegacyParams ): Promise; endpoint: Octokit.Endpoint; }; /** - * **Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked. + * **Note**: Repositories inherited through a parent team will also be checked. + * + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Check if a team manages a repository`](https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository) endpoint. * * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: + * @deprecated octokit.teams.checkManagesRepo() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy */ checkManagesRepo: { ( @@ -35386,8 +39311,41 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Checks whether a team has `admin`, `push`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/repos/:owner/:repo`. + * + * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: + */ + checkManagesRepoInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsCheckManagesRepoInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Note**: Repositories inherited through a parent team will also be checked. + * + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Check if a team manages a repository`](https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository) endpoint. + * + * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: + * @deprecated octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy + */ + checkManagesRepoLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsCheckManagesRepoLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; /** * To create a team, the authenticated user must be a member or owner of `:org`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization)." + * + * When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see "[About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)" in the GitHub Help documentation. */ create: { ( @@ -35401,9 +39359,12 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://developer.github.com/v3/teams/discussions/#create-a-discussion) endpoint. + * * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). * * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. + * @deprecated octokit.teams.createDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy */ createDiscussion: { ( @@ -35413,9 +39374,12 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a comment`](https://developer.github.com/v3/teams/discussion_comments/#create-a-comment) endpoint. + * * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). * * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. + * @deprecated octokit.teams.createDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy */ createDiscussionComment: { ( @@ -35428,9 +39392,78 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team. + * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments`. + */ + createDiscussionCommentInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsCreateDiscussionCommentInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a comment`](https://developer.github.com/v3/teams/discussion_comments/#create-a-comment) endpoint. + * + * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. + * @deprecated octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy + */ + createDiscussionCommentLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsCreateDiscussionCommentLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions`. + */ + createDiscussionInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsCreateDiscussionInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://developer.github.com/v3/teams/discussions/#create-a-discussion) endpoint. + * + * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. + * @deprecated octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy + */ + createDiscussionLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsCreateDiscussionLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete team`](https://developer.github.com/v3/teams/#delete-team) endpoint. * - * If you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well. + * To delete a team, the authenticated user must be an organization owner or team maintainer. + * + * If you are an organization owner, deleting a parent team will delete all of its child teams as well. + * @deprecated octokit.teams.delete() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy */ delete: { (params?: Octokit.RequestOptions & Octokit.TeamsDeleteParams): Promise< @@ -35440,7 +39473,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://developer.github.com/v3/teams/discussions/#delete-a-discussion) endpoint. + * * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.deleteDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy */ deleteDiscussion: { ( @@ -35450,7 +39486,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a comment`](https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment) endpoint. + * * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.deleteDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy */ deleteDiscussionComment: { ( @@ -35460,7 +39499,93 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. + */ + deleteDiscussionCommentInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsDeleteDiscussionCommentInOrgParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a comment`](https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment) endpoint. + * + * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy + */ + deleteDiscussionCommentLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsDeleteDiscussionCommentLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number`. + */ + deleteDiscussionInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsDeleteDiscussionInOrgParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://developer.github.com/v3/teams/discussions/#delete-a-discussion) endpoint. + * + * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy + */ + deleteDiscussionLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsDeleteDiscussionLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * To delete a team, the authenticated user must be an organization owner or team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id`. + * + * If you are an organization owner, deleting a parent team will delete all of its child teams as well. + */ + deleteInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsDeleteInOrgParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete team`](https://developer.github.com/v3/teams/#delete-team) endpoint. + * + * To delete a team, the authenticated user must be an organization owner or team maintainer. + * + * If you are an organization owner, deleting a parent team will delete all of its child teams as well. + * @deprecated octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy + */ + deleteLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsDeleteLegacyParams + ): Promise; + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [`Get team by name`](https://developer.github.com/v3/teams/#get-team-by-name) endpoint. + * @deprecated octokit.teams.get() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy + */ get: { (params?: Octokit.RequestOptions & Octokit.TeamsGetParams): Promise< Octokit.Response @@ -35470,6 +39595,8 @@ declare class Octokit { }; /** * Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id`. */ getByName: { (params?: Octokit.RequestOptions & Octokit.TeamsGetByNameParams): Promise< @@ -35479,7 +39606,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single discussion`](https://developer.github.com/v3/teams/discussions/#get-a-single-discussion) endpoint. + * * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.getDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy */ getDiscussion: { ( @@ -35489,7 +39619,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single comment`](https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment) endpoint. + * * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.getDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy */ getDiscussionComment: { ( @@ -35500,12 +39633,79 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * The "Get team member" API (described below) is deprecated. + * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. + */ + getDiscussionCommentInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsGetDiscussionCommentInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single comment`](https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment) endpoint. + * + * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy + */ + getDiscussionCommentLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsGetDiscussionCommentLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number`. + */ + getDiscussionInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsGetDiscussionInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single discussion`](https://developer.github.com/v3/teams/discussions/#get-a-single-discussion) endpoint. + * + * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy + */ + getDiscussionLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsGetDiscussionLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [`Get team by name`](https://developer.github.com/v3/teams/#get-team-by-name) endpoint. + * @deprecated octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy + */ + getLegacy: { + (params?: Octokit.RequestOptions & Octokit.TeamsGetLegacyParams): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * The "Get team member" endpoint (described below) is deprecated. * - * We recommend using the [Get team membership API](https://developer.github.com/v3/teams/members/#get-team-membership) instead. It allows you to get both active and pending memberships. + * We recommend using the [Get team membership](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint instead. It allows you to get both active and pending memberships. * * To list members in a team, the team must be visible to the authenticated user. - * @deprecated octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member + * @deprecated octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy */ getMember: { (params?: Octokit.RequestOptions & Octokit.TeamsGetMemberParams): Promise< @@ -35515,11 +39715,29 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * If you pass the `hellcat-preview` media type, team members will include the members of child teams. + * The "Get team member" endpoint (described below) is deprecated. + * + * We recommend using the [Get team membership](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint instead. It allows you to get both active and pending memberships. + * + * To list members in a team, the team must be visible to the authenticated user. + * @deprecated octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy + */ + getMemberLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsGetMemberLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get team membership`](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint. + * + * Team members will include the members of child teams. * * To get a user's membership with a team, the team must be visible to the authenticated user. * * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). + * @deprecated octokit.teams.getMembership() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy */ getMembership: { ( @@ -35528,7 +39746,42 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * Team members will include the members of child teams. + * + * To get a user's membership with a team, the team must be visible to the authenticated user. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/memberships/:username`. + * + * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). + */ + getMembershipInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsGetMembershipInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get team membership`](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint. + * + * Team members will include the members of child teams. + * + * To get a user's membership with a team, the team must be visible to the authenticated user. + * + * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). + * @deprecated octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy + */ + getMembershipLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsGetMembershipLegacyParams + ): Promise>; + endpoint: Octokit.Endpoint; + }; + /** + * Lists all teams in an organization that are visible to the authenticated user. + */ list: { (params?: Octokit.RequestOptions & Octokit.TeamsListParams): Promise< Octokit.Response @@ -35537,7 +39790,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * At this time, the `hellcat-preview` media type is required to use this endpoint. + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://developer.github.com/v3/teams/#list-child-teams) endpoint. + * + * + * @deprecated octokit.teams.listChild() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy */ listChild: { (params?: Octokit.RequestOptions & Octokit.TeamsListChildParams): Promise< @@ -35547,7 +39803,35 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * Lists the child teams of the team requested by `:team_slug`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/teams`. + */ + listChildInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListChildInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://developer.github.com/v3/teams/#list-child-teams) endpoint. + * + * + * @deprecated octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy + */ + listChildLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListChildLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List comments`](https://developer.github.com/v3/teams/discussion_comments/#list-comments) endpoint. + * * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.listDiscussionComments() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy */ listDiscussionComments: { ( @@ -35558,7 +39842,41 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments`. + */ + listDiscussionCommentsInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsListDiscussionCommentsInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List comments`](https://developer.github.com/v3/teams/discussion_comments/#list-comments) endpoint. + * + * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy + */ + listDiscussionCommentsLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsListDiscussionCommentsLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://developer.github.com/v3/teams/discussions/#list-discussions) endpoint. + * * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.listDiscussions() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy */ listDiscussions: { ( @@ -35567,6 +39885,33 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; + /** + * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions`. + */ + listDiscussionsInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsListDiscussionsInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://developer.github.com/v3/teams/discussions/#list-discussions) endpoint. + * + * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy + */ + listDiscussionsLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsListDiscussionsLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; /** * List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/apps/building-oauth-apps/). */ @@ -35581,7 +39926,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * If you pass the `hellcat-preview` media type, team members will include the members of child teams. + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://developer.github.com/v3/teams/members/#list-team-members) endpoint. + * + * Team members will include the members of child teams. + * @deprecated octokit.teams.listMembers() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy */ listMembers: { ( @@ -35591,7 +39939,35 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * Team members will include the members of child teams. + * + * To list members in a team, the team must be visible to the authenticated user. + */ + listMembersInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListMembersInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://developer.github.com/v3/teams/members/#list-team-members) endpoint. + * + * Team members will include the members of child teams. + * @deprecated octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy + */ + listMembersLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListMembersLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://developer.github.com/v3/teams/members/#list-pending-team-invitations) endpoint. + * * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + * @deprecated octokit.teams.listPendingInvitations() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy */ listPendingInvitations: { ( @@ -35602,7 +39978,41 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Lists the organization projects for a team. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team. + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/invitations`. + */ + listPendingInvitationsInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsListPendingInvitationsInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://developer.github.com/v3/teams/members/#list-pending-team-invitations) endpoint. + * + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + * @deprecated octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy + */ + listPendingInvitationsLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsListPendingInvitationsLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://developer.github.com/v3/teams/#list-team-projects) endpoint. + * + * Lists the organization projects for a team. + * @deprecated octokit.teams.listProjects() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy */ listProjects: { ( @@ -35612,7 +40022,33 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * **Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team. + * Lists the organization projects for a team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/projects`. + */ + listProjectsInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListProjectsInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://developer.github.com/v3/teams/#list-team-projects) endpoint. + * + * Lists the organization projects for a team. + * @deprecated octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy + */ + listProjectsLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListProjectsLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team repos`](https://developer.github.com/v3/teams/#list-team-repos) endpoint. + * @deprecated octokit.teams.listRepos() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy */ listRepos: { (params?: Octokit.RequestOptions & Octokit.TeamsListReposParams): Promise< @@ -35622,40 +40058,87 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * The "Remove team member" API (described below) is deprecated. + * Lists a team's repositories visible to the authenticated user. * - * We recommend using the [Remove team membership endpoint](https://developer.github.com/v3/teams/members/#remove-team-membership) instead. It allows you to remove both active and pending memberships. + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/repos`. + */ + listReposInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListReposInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team repos`](https://developer.github.com/v3/teams/#list-team-repos) endpoint. + * @deprecated octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy + */ + listReposLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsListReposLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * The "Remove team member" endpoint (described below) is deprecated. * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/articles/github-s-products) in the GitHub Help documentation. + * We recommend using the [Remove team membership](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint instead. It allows you to remove both active and pending memberships. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team. * * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMember() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member + * @deprecated octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy */ - removeMember: { + removeMemberLegacy: { ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveMemberParams + params?: Octokit.RequestOptions & Octokit.TeamsRemoveMemberLegacyParams ): Promise; endpoint: Octokit.Endpoint; }; /** - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/articles/github-s-products) in the GitHub Help documentation. + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. * * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. * * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/memberships/:username`. */ - removeMembership: { + removeMembershipInOrg: { ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveMembershipParams + params?: Octokit.RequestOptions & + Octokit.TeamsRemoveMembershipInOrgParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team membership`](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * @deprecated octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy + */ + removeMembershipLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsRemoveMembershipLegacyParams ): Promise; endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team project`](https://developer.github.com/v3/teams/#remove-team-project) endpoint. + * * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. + * @deprecated octokit.teams.removeProject() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy */ removeProject: { ( @@ -35665,7 +40148,35 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/projects/:project_id`. + */ + removeProjectInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsRemoveProjectInOrgParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team project`](https://developer.github.com/v3/teams/#remove-team-project) endpoint. + * + * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. + * @deprecated octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy + */ + removeProjectLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsRemoveProjectLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team repository`](https://developer.github.com/v3/teams/#remove-team-repository) endpoint. + * * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. + * @deprecated octokit.teams.removeRepo() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy */ removeRepo: { ( @@ -35675,7 +40186,35 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team. + * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/repos/:owner/:repo`. + */ + removeRepoInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsRemoveRepoInOrgParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team repository`](https://developer.github.com/v3/teams/#remove-team-repository) endpoint. + * + * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. + * @deprecated octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy + */ + removeRepoLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsRemoveRepoLegacyParams + ): Promise; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Review a team project`](https://developer.github.com/v3/teams/#review-a-team-project) endpoint. + * + * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + * @deprecated octokit.teams.reviewProject() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy */ reviewProject: { ( @@ -35685,9 +40224,37 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** - * To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team. + * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/projects/:project_id`. + */ + reviewProjectInOrg: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsReviewProjectInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Review a team project`](https://developer.github.com/v3/teams/#review-a-team-project) endpoint. + * + * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + * @deprecated octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy + */ + reviewProjectLegacy: { + ( + params?: Octokit.RequestOptions & Octokit.TeamsReviewProjectLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit team`](https://developer.github.com/v3/teams/#edit-team) endpoint. + * + * To edit a team, the authenticated user must either be an organization owner or a team maintainer. * * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. + * @deprecated octokit.teams.update() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy */ update: { ( @@ -35701,7 +40268,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a discussion`](https://developer.github.com/v3/teams/discussions/#edit-a-discussion) endpoint. + * * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.updateDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy */ updateDiscussion: { ( @@ -35711,7 +40281,10 @@ declare class Octokit { endpoint: Octokit.Endpoint; }; /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a comment`](https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment) endpoint. + * * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.updateDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy */ updateDiscussionComment: { ( @@ -35721,6 +40294,99 @@ declare class Octokit { Octokit.Response >; + endpoint: Octokit.Endpoint; + }; + /** + * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. + */ + updateDiscussionCommentInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsUpdateDiscussionCommentInOrgParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a comment`](https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment) endpoint. + * + * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy + */ + updateDiscussionCommentLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsUpdateDiscussionCommentLegacyParams + ): Promise< + Octokit.Response + >; + + endpoint: Octokit.Endpoint; + }; + /** + * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id/discussions/:discussion_number`. + */ + updateDiscussionInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsUpdateDiscussionInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a discussion`](https://developer.github.com/v3/teams/discussions/#edit-a-discussion) endpoint. + * + * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * @deprecated octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy + */ + updateDiscussionLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsUpdateDiscussionLegacyParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * To edit a team, the authenticated user must either be an organization owner or a team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id`. + */ + updateInOrg: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsUpdateInOrgParamsDeprecatedPermission + ): Promise>; + ( + params?: Octokit.RequestOptions & Octokit.TeamsUpdateInOrgParams + ): Promise>; + + endpoint: Octokit.Endpoint; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit team`](https://developer.github.com/v3/teams/#edit-team) endpoint. + * + * To edit a team, the authenticated user must either be an organization owner or a team maintainer. + * + * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. + * @deprecated octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy + */ + updateLegacy: { + ( + params?: Octokit.RequestOptions & + Octokit.TeamsUpdateLegacyParamsDeprecatedPermission + ): Promise>; + ( + params?: Octokit.RequestOptions & Octokit.TeamsUpdateLegacyParams + ): Promise>; + endpoint: Octokit.Endpoint; }; }; diff --git a/node_modules/@octokit/rest/package.json b/node_modules/@octokit/rest/package.json index 3538673e0..2bb263cd7 100644 --- a/node_modules/@octokit/rest/package.json +++ b/node_modules/@octokit/rest/package.json @@ -1,34 +1,29 @@ { - "_args": [ - [ - "@octokit/rest@16.35.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@octokit/rest@16.35.2", - "_id": "@octokit/rest@16.35.2", + "_from": "@octokit/rest@^16.37.0", + "_id": "@octokit/rest@16.37.0", "_inBundle": false, - "_integrity": "sha512-iijaNZpn9hBpUdh8YdXqNiWazmq4R1vCUsmxpBB0kCQ0asHZpCx+HNs22eiHuwYKRhO31ZSAGBJLi0c+3XHaKQ==", + "_integrity": "sha512-qLPK9FOCK4iVpn6ghknNuv/gDDxXQG6+JBQvoCwWjQESyis9uemakjzN36nvvp8SCny7JuzHI2RV8ChbV5mYdQ==", "_location": "/@octokit/rest", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/rest@16.35.2", + "raw": "@octokit/rest@^16.37.0", "name": "@octokit/rest", "escapedName": "@octokit%2frest", "scope": "@octokit", - "rawSpec": "16.35.2", + "rawSpec": "^16.37.0", "saveSpec": null, - "fetchSpec": "16.35.2" + "fetchSpec": "^16.37.0" }, "_requiredBy": [ "/", "/@actions/github" ], - "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.2.tgz", - "_spec": "16.35.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.37.0.tgz", + "_shasum": "e08501c471199cb4942587f2425a7990b34a49eb", + "_spec": "@octokit/rest@^16.37.0", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" @@ -36,6 +31,7 @@ "bugs": { "url": "https://github.com/octokit/rest.js/issues" }, + "bundleDependencies": false, "bundlesize": [ { "path": "./dist/octokit-rest.min.js.gz", @@ -74,31 +70,32 @@ "once": "^1.4.0", "universal-user-agent": "^4.0.0" }, + "deprecated": false, "description": "GitHub REST API client for Node.js", "devDependencies": { "@gimenete/type-writer": "^0.1.3", "@octokit/fixtures-server": "^5.0.6", "@octokit/graphql": "^4.2.0", - "@types/node": "^12.0.0", + "@types/node": "^13.1.0", "bundlesize": "^0.18.0", "chai": "^4.1.2", "compression-webpack-plugin": "^3.0.0", "cypress": "^3.0.0", "glob": "^7.1.2", - "http-proxy-agent": "^2.1.0", + "http-proxy-agent": "^3.0.0", "lodash.camelcase": "^4.3.0", "lodash.merge": "^4.6.1", "lodash.upperfirst": "^4.3.1", "mkdirp": "^0.5.1", "mocha": "^6.0.0", - "mustache": "^3.0.0", + "mustache": "^4.0.0", "nock": "^11.3.3", "npm-run-all": "^4.1.2", - "nyc": "^14.0.0", + "nyc": "^15.0.0", "prettier": "^1.14.2", "proxy": "^1.0.0", - "semantic-release": "^15.0.0", - "sinon": "^7.2.4", + "semantic-release": "^16.0.0", + "sinon": "^8.0.0", "sinon-chai": "^3.0.0", "sort-keys": "^4.0.0", "string-to-arraybuffer": "^1.0.0", @@ -171,5 +168,5 @@ "validate:ts": "tsc --target es6 --noImplicitAny index.d.ts" }, "types": "index.d.ts", - "version": "16.35.2" + "version": "16.37.0" } diff --git a/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json b/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json index 31e3fca39..0180715b9 100644 --- a/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json +++ b/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json @@ -597,6 +597,12 @@ "client_id": { "required": true, "type": "string" } }, "url": "/applications/:client_id/grants/:access_token" + }, + "revokeInstallationToken": { + "headers": { "accept": "application/vnd.github.gambit-preview+json" }, + "method": "DELETE", + "params": {}, + "url": "/installation/token" } }, "checks": { @@ -1868,9 +1874,6 @@ "meta": { "get": { "method": "GET", "params": {}, "url": "/meta" } }, "migrations": { "cancelImport": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "DELETE", "params": { "owner": { "required": true, "type": "string" }, @@ -1909,9 +1912,6 @@ "url": "/orgs/:org/migrations/:migration_id/archive" }, "getCommitAuthors": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "GET", "params": { "owner": { "required": true, "type": "string" }, @@ -1921,9 +1921,6 @@ "url": "/repos/:owner/:repo/import/authors" }, "getImportProgress": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "GET", "params": { "owner": { "required": true, "type": "string" }, @@ -1932,9 +1929,6 @@ "url": "/repos/:owner/:repo/import" }, "getLargeFiles": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "GET", "params": { "owner": { "required": true, "type": "string" }, @@ -1976,10 +1970,28 @@ }, "url": "/orgs/:org/migrations" }, - "mapCommitAuthor": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" + "listReposForOrg": { + "headers": { "accept": "application/vnd.github.wyandotte-preview+json" }, + "method": "GET", + "params": { + "migration_id": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" } + }, + "url": "/orgs/:org/migrations/:migration_id/repositories" + }, + "listReposForUser": { + "headers": { "accept": "application/vnd.github.wyandotte-preview+json" }, + "method": "GET", + "params": { + "migration_id": { "required": true, "type": "integer" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" } }, + "url": "/user/:migration_id/repositories" + }, + "mapCommitAuthor": { "method": "PATCH", "params": { "author_id": { "required": true, "type": "integer" }, @@ -1991,9 +2003,6 @@ "url": "/repos/:owner/:repo/import/authors/:author_id" }, "setLfsPreference": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "PATCH", "params": { "owner": { "required": true, "type": "string" }, @@ -2026,9 +2035,6 @@ "url": "/orgs/:org/migrations" }, "startImport": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "PUT", "params": { "owner": { "required": true, "type": "string" }, @@ -2064,9 +2070,6 @@ "url": "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" }, "updateImport": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, "method": "PATCH", "params": { "owner": { "required": true, "type": "string" }, @@ -2520,6 +2523,9 @@ "enum": ["all", "private", "none"], "type": "string" }, + "members_can_create_internal_repositories": { "type": "boolean" }, + "members_can_create_private_repositories": { "type": "boolean" }, + "members_can_create_public_repositories": { "type": "boolean" }, "members_can_create_repositories": { "type": "boolean" }, "name": { "type": "string" }, "org": { "required": true, "type": "string" } @@ -3388,8 +3394,9 @@ "url": "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" }, "createForTeamDiscussion": { + "deprecated": "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)", "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" + "accept": "application/vnd.github.squirrel-girl-preview+json" }, "method": "POST", "params": { @@ -3413,8 +3420,63 @@ "url": "/teams/:team_id/discussions/:discussion_number/reactions" }, "createForTeamDiscussionComment": { + "deprecated": "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)", + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "POST", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "required": true, + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + "createForTeamDiscussionCommentInOrg": { + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "POST", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "required": true, + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" + }, + "createForTeamDiscussionCommentLegacy": { + "deprecated": "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy", "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" + "accept": "application/vnd.github.squirrel-girl-preview+json" }, "method": "POST", "params": { @@ -3438,9 +3500,61 @@ }, "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" }, + "createForTeamDiscussionInOrg": { + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "POST", + "params": { + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "required": true, + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" + }, + "createForTeamDiscussionLegacy": { + "deprecated": "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy", + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "POST", + "params": { + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "required": true, + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/reactions" + }, "delete": { "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" + "accept": "application/vnd.github.squirrel-girl-preview+json" }, "method": "DELETE", "params": { "reaction_id": { "required": true, "type": "integer" } }, @@ -3560,8 +3674,9 @@ "url": "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" }, "listForTeamDiscussion": { + "deprecated": "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)", "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" + "accept": "application/vnd.github.squirrel-girl-preview+json" }, "method": "GET", "params": { @@ -3586,8 +3701,65 @@ "url": "/teams/:team_id/discussions/:discussion_number/reactions" }, "listForTeamDiscussionComment": { + "deprecated": "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)", + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "GET", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + "listForTeamDiscussionCommentInOrg": { + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "GET", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" + }, + "listForTeamDiscussionCommentLegacy": { + "deprecated": "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy", "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" + "accept": "application/vnd.github.squirrel-girl-preview+json" }, "method": "GET", "params": { @@ -3611,6 +3783,60 @@ "team_id": { "required": true, "type": "integer" } }, "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" + }, + "listForTeamDiscussionInOrg": { + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "GET", + "params": { + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" + }, + "listForTeamDiscussionLegacy": { + "deprecated": "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy", + "headers": { + "accept": "application/vnd.github.squirrel-girl-preview+json" + }, + "method": "GET", + "params": { + "content": { + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "type": "string" + }, + "discussion_number": { "required": true, "type": "integer" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/reactions" } }, "repos": { @@ -3827,6 +4053,7 @@ "allow_rebase_merge": { "type": "boolean" }, "allow_squash_merge": { "type": "boolean" }, "auto_init": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" }, "description": { "type": "string" }, "gitignore_template": { "type": "string" }, "has_issues": { "type": "boolean" }, @@ -3837,7 +4064,11 @@ "license_template": { "type": "string" }, "name": { "required": true, "type": "string" }, "private": { "type": "boolean" }, - "team_id": { "type": "integer" } + "team_id": { "type": "integer" }, + "visibility": { + "enum": ["public", "private", "visibility", "internal"], + "type": "string" + } }, "url": "/user/repos" }, @@ -3873,6 +4104,7 @@ "allow_rebase_merge": { "type": "boolean" }, "allow_squash_merge": { "type": "boolean" }, "auto_init": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" }, "description": { "type": "string" }, "gitignore_template": { "type": "string" }, "has_issues": { "type": "boolean" }, @@ -3884,7 +4116,11 @@ "name": { "required": true, "type": "string" }, "org": { "required": true, "type": "string" }, "private": { "type": "boolean" }, - "team_id": { "type": "integer" } + "team_id": { "type": "integer" }, + "visibility": { + "enum": ["public", "private", "visibility", "internal"], + "type": "string" + } }, "url": "/orgs/:org/repos" }, @@ -4630,7 +4866,15 @@ "type": "string" }, "type": { - "enum": ["all", "public", "private", "forks", "sources", "member"], + "enum": [ + "all", + "public", + "private", + "forks", + "sources", + "member", + "internal" + ], "type": "string" } }, @@ -5037,7 +5281,6 @@ "url": "/repos/:owner/:repo/hooks/:hook_id/tests" }, "transfer": { - "headers": { "accept": "application/vnd.github.nightshade-preview+json" }, "method": "POST", "params": { "new_owner": { "type": "string" }, @@ -5055,6 +5298,7 @@ "allow_squash_merge": { "type": "boolean" }, "archived": { "type": "boolean" }, "default_branch": { "type": "string" }, + "delete_branch_on_merge": { "type": "boolean" }, "description": { "type": "string" }, "has_issues": { "type": "boolean" }, "has_projects": { "type": "boolean" }, @@ -5064,13 +5308,19 @@ "name": { "type": "string" }, "owner": { "required": true, "type": "string" }, "private": { "type": "boolean" }, - "repo": { "required": true, "type": "string" } + "repo": { "required": true, "type": "string" }, + "visibility": { + "enum": ["public", "private", "visibility", "internal"], + "type": "string" + } }, "url": "/repos/:owner/:repo" }, "updateBranchProtection": { "method": "PUT", "params": { + "allow_deletions": { "type": "boolean" }, + "allow_force_pushes": { "allowNull": true, "type": "boolean" }, "branch": { "required": true, "type": "string" }, "enforce_admins": { "allowNull": true, @@ -5079,6 +5329,7 @@ }, "owner": { "required": true, "type": "string" }, "repo": { "required": true, "type": "string" }, + "required_linear_history": { "type": "boolean" }, "required_pull_request_reviews": { "allowNull": true, "required": true, @@ -5390,7 +5641,7 @@ }, "teams": { "addMember": { - "deprecated": "octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member", + "deprecated": "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)", "method": "PUT", "params": { "team_id": { "required": true, "type": "integer" }, @@ -5398,16 +5649,69 @@ }, "url": "/teams/:team_id/members/:username" }, - "addOrUpdateMembership": { + "addMemberLegacy": { + "deprecated": "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy", "method": "PUT", "params": { - "role": { "enum": ["member", "maintainer"], "type": "string" }, "team_id": { "required": true, "type": "integer" }, "username": { "required": true, "type": "string" } }, - "url": "/teams/:team_id/memberships/:username" + "url": "/teams/:team_id/members/:username" }, - "addOrUpdateProject": { + "addOrUpdateMembership": { + "deprecated": "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)", + "method": "PUT", + "params": { + "role": { "enum": ["member", "maintainer"], "type": "string" }, + "team_id": { "required": true, "type": "integer" }, + "username": { "required": true, "type": "string" } + }, + "url": "/teams/:team_id/memberships/:username" + }, + "addOrUpdateMembershipInOrg": { + "method": "PUT", + "params": { + "org": { "required": true, "type": "string" }, + "role": { "enum": ["member", "maintainer"], "type": "string" }, + "team_slug": { "required": true, "type": "string" }, + "username": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/memberships/:username" + }, + "addOrUpdateMembershipLegacy": { + "deprecated": "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy", + "method": "PUT", + "params": { + "role": { "enum": ["member", "maintainer"], "type": "string" }, + "team_id": { "required": true, "type": "integer" }, + "username": { "required": true, "type": "string" } + }, + "url": "/teams/:team_id/memberships/:username" + }, + "addOrUpdateProject": { + "deprecated": "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)", + "headers": { "accept": "application/vnd.github.inertia-preview+json" }, + "method": "PUT", + "params": { + "permission": { "enum": ["read", "write", "admin"], "type": "string" }, + "project_id": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/projects/:project_id" + }, + "addOrUpdateProjectInOrg": { + "headers": { "accept": "application/vnd.github.inertia-preview+json" }, + "method": "PUT", + "params": { + "org": { "required": true, "type": "string" }, + "permission": { "enum": ["read", "write", "admin"], "type": "string" }, + "project_id": { "required": true, "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/projects/:project_id" + }, + "addOrUpdateProjectLegacy": { + "deprecated": "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy", "headers": { "accept": "application/vnd.github.inertia-preview+json" }, "method": "PUT", "params": { @@ -5418,6 +5722,29 @@ "url": "/teams/:team_id/projects/:project_id" }, "addOrUpdateRepo": { + "deprecated": "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)", + "method": "PUT", + "params": { + "owner": { "required": true, "type": "string" }, + "permission": { "enum": ["pull", "push", "admin"], "type": "string" }, + "repo": { "required": true, "type": "string" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/repos/:owner/:repo" + }, + "addOrUpdateRepoInOrg": { + "method": "PUT", + "params": { + "org": { "required": true, "type": "string" }, + "owner": { "required": true, "type": "string" }, + "permission": { "enum": ["pull", "push", "admin"], "type": "string" }, + "repo": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/repos/:owner/:repo" + }, + "addOrUpdateRepoLegacy": { + "deprecated": "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy", "method": "PUT", "params": { "owner": { "required": true, "type": "string" }, @@ -5428,6 +5755,27 @@ "url": "/teams/:team_id/repos/:owner/:repo" }, "checkManagesRepo": { + "deprecated": "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)", + "method": "GET", + "params": { + "owner": { "required": true, "type": "string" }, + "repo": { "required": true, "type": "string" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/repos/:owner/:repo" + }, + "checkManagesRepoInOrg": { + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "owner": { "required": true, "type": "string" }, + "repo": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/repos/:owner/:repo" + }, + "checkManagesRepoLegacy": { + "deprecated": "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy", "method": "GET", "params": { "owner": { "required": true, "type": "string" }, @@ -5451,7 +5799,7 @@ "url": "/orgs/:org/teams" }, "createDiscussion": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)", "method": "POST", "params": { "body": { "required": true, "type": "string" }, @@ -5462,7 +5810,7 @@ "url": "/teams/:team_id/discussions" }, "createDiscussionComment": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)", "method": "POST", "params": { "body": { "required": true, "type": "string" }, @@ -5471,13 +5819,56 @@ }, "url": "/teams/:team_id/discussions/:discussion_number/comments" }, + "createDiscussionCommentInOrg": { + "method": "POST", + "params": { + "body": { "required": true, "type": "string" }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" + }, + "createDiscussionCommentLegacy": { + "deprecated": "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy", + "method": "POST", + "params": { + "body": { "required": true, "type": "string" }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments" + }, + "createDiscussionInOrg": { + "method": "POST", + "params": { + "body": { "required": true, "type": "string" }, + "org": { "required": true, "type": "string" }, + "private": { "type": "boolean" }, + "team_slug": { "required": true, "type": "string" }, + "title": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions" + }, + "createDiscussionLegacy": { + "deprecated": "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy", + "method": "POST", + "params": { + "body": { "required": true, "type": "string" }, + "private": { "type": "boolean" }, + "team_id": { "required": true, "type": "integer" }, + "title": { "required": true, "type": "string" } + }, + "url": "/teams/:team_id/discussions" + }, "delete": { + "deprecated": "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)", "method": "DELETE", "params": { "team_id": { "required": true, "type": "integer" } }, "url": "/teams/:team_id" }, "deleteDiscussion": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)", "method": "DELETE", "params": { "discussion_number": { "required": true, "type": "integer" }, @@ -5486,7 +5877,7 @@ "url": "/teams/:team_id/discussions/:discussion_number" }, "deleteDiscussionComment": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)", "method": "DELETE", "params": { "comment_number": { "required": true, "type": "integer" }, @@ -5495,7 +5886,60 @@ }, "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" }, + "deleteDiscussionCommentInOrg": { + "method": "DELETE", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" + }, + "deleteDiscussionCommentLegacy": { + "deprecated": "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy", + "method": "DELETE", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + "deleteDiscussionInOrg": { + "method": "DELETE", + "params": { + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number" + }, + "deleteDiscussionLegacy": { + "deprecated": "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy", + "method": "DELETE", + "params": { + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number" + }, + "deleteInOrg": { + "method": "DELETE", + "params": { + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug" + }, + "deleteLegacy": { + "deprecated": "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy", + "method": "DELETE", + "params": { "team_id": { "required": true, "type": "integer" } }, + "url": "/teams/:team_id" + }, "get": { + "deprecated": "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)", "method": "GET", "params": { "team_id": { "required": true, "type": "integer" } }, "url": "/teams/:team_id" @@ -5509,7 +5953,7 @@ "url": "/orgs/:org/teams/:team_slug" }, "getDiscussion": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)", "method": "GET", "params": { "discussion_number": { "required": true, "type": "integer" }, @@ -5518,7 +5962,27 @@ "url": "/teams/:team_id/discussions/:discussion_number" }, "getDiscussionComment": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)", + "method": "GET", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + "getDiscussionCommentInOrg": { + "method": "GET", + "params": { + "comment_number": { "required": true, "type": "integer" }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" + }, + "getDiscussionCommentLegacy": { + "deprecated": "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy", "method": "GET", "params": { "comment_number": { "required": true, "type": "integer" }, @@ -5527,8 +5991,41 @@ }, "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" }, + "getDiscussionInOrg": { + "method": "GET", + "params": { + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number" + }, + "getDiscussionLegacy": { + "deprecated": "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy", + "method": "GET", + "params": { + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number" + }, + "getLegacy": { + "deprecated": "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy", + "method": "GET", + "params": { "team_id": { "required": true, "type": "integer" } }, + "url": "/teams/:team_id" + }, "getMember": { - "deprecated": "octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member", + "deprecated": "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)", + "method": "GET", + "params": { + "team_id": { "required": true, "type": "integer" }, + "username": { "required": true, "type": "string" } + }, + "url": "/teams/:team_id/members/:username" + }, + "getMemberLegacy": { + "deprecated": "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy", "method": "GET", "params": { "team_id": { "required": true, "type": "integer" }, @@ -5537,6 +6034,25 @@ "url": "/teams/:team_id/members/:username" }, "getMembership": { + "deprecated": "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)", + "method": "GET", + "params": { + "team_id": { "required": true, "type": "integer" }, + "username": { "required": true, "type": "string" } + }, + "url": "/teams/:team_id/memberships/:username" + }, + "getMembershipInOrg": { + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" }, + "username": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/memberships/:username" + }, + "getMembershipLegacy": { + "deprecated": "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy", "method": "GET", "params": { "team_id": { "required": true, "type": "integer" }, @@ -5554,7 +6070,27 @@ "url": "/orgs/:org/teams" }, "listChild": { - "headers": { "accept": "application/vnd.github.hellcat-preview+json" }, + "deprecated": "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)", + "method": "GET", + "params": { + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/teams" + }, + "listChildInOrg": { + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/teams" + }, + "listChildLegacy": { + "deprecated": "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy", "method": "GET", "params": { "page": { "type": "integer" }, @@ -5564,7 +6100,31 @@ "url": "/teams/:team_id/teams" }, "listDiscussionComments": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)", + "method": "GET", + "params": { + "direction": { "enum": ["asc", "desc"], "type": "string" }, + "discussion_number": { "required": true, "type": "integer" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments" + }, + "listDiscussionCommentsInOrg": { + "method": "GET", + "params": { + "direction": { "enum": ["asc", "desc"], "type": "string" }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" + }, + "listDiscussionCommentsLegacy": { + "deprecated": "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy", "method": "GET", "params": { "direction": { "enum": ["asc", "desc"], "type": "string" }, @@ -5576,7 +6136,29 @@ "url": "/teams/:team_id/discussions/:discussion_number/comments" }, "listDiscussions": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)", + "method": "GET", + "params": { + "direction": { "enum": ["asc", "desc"], "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions" + }, + "listDiscussionsInOrg": { + "method": "GET", + "params": { + "direction": { "enum": ["asc", "desc"], "type": "string" }, + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions" + }, + "listDiscussionsLegacy": { + "deprecated": "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy", "method": "GET", "params": { "direction": { "enum": ["asc", "desc"], "type": "string" }, @@ -5595,6 +6177,29 @@ "url": "/user/teams" }, "listMembers": { + "deprecated": "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)", + "method": "GET", + "params": { + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "role": { "enum": ["member", "maintainer", "all"], "type": "string" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/members" + }, + "listMembersInOrg": { + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "role": { "enum": ["member", "maintainer", "all"], "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/members" + }, + "listMembersLegacy": { + "deprecated": "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy", "method": "GET", "params": { "page": { "type": "integer" }, @@ -5605,6 +6210,27 @@ "url": "/teams/:team_id/members" }, "listPendingInvitations": { + "deprecated": "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)", + "method": "GET", + "params": { + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/invitations" + }, + "listPendingInvitationsInOrg": { + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/invitations" + }, + "listPendingInvitationsLegacy": { + "deprecated": "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy", "method": "GET", "params": { "page": { "type": "integer" }, @@ -5614,6 +6240,29 @@ "url": "/teams/:team_id/invitations" }, "listProjects": { + "deprecated": "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)", + "headers": { "accept": "application/vnd.github.inertia-preview+json" }, + "method": "GET", + "params": { + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/projects" + }, + "listProjectsInOrg": { + "headers": { "accept": "application/vnd.github.inertia-preview+json" }, + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/projects" + }, + "listProjectsLegacy": { + "deprecated": "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy", "headers": { "accept": "application/vnd.github.inertia-preview+json" }, "method": "GET", "params": { @@ -5624,6 +6273,7 @@ "url": "/teams/:team_id/projects" }, "listRepos": { + "deprecated": "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)", "method": "GET", "params": { "page": { "type": "integer" }, @@ -5632,8 +6282,28 @@ }, "url": "/teams/:team_id/repos" }, - "removeMember": { - "deprecated": "octokit.teams.removeMember() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member", + "listReposInOrg": { + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/repos" + }, + "listReposLegacy": { + "deprecated": "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy", + "method": "GET", + "params": { + "page": { "type": "integer" }, + "per_page": { "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/repos" + }, + "removeMemberLegacy": { + "deprecated": "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy", "method": "DELETE", "params": { "team_id": { "required": true, "type": "integer" }, @@ -5641,7 +6311,17 @@ }, "url": "/teams/:team_id/members/:username" }, - "removeMembership": { + "removeMembershipInOrg": { + "method": "DELETE", + "params": { + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" }, + "username": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/memberships/:username" + }, + "removeMembershipLegacy": { + "deprecated": "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy", "method": "DELETE", "params": { "team_id": { "required": true, "type": "integer" }, @@ -5650,6 +6330,25 @@ "url": "/teams/:team_id/memberships/:username" }, "removeProject": { + "deprecated": "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)", + "method": "DELETE", + "params": { + "project_id": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/projects/:project_id" + }, + "removeProjectInOrg": { + "method": "DELETE", + "params": { + "org": { "required": true, "type": "string" }, + "project_id": { "required": true, "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/projects/:project_id" + }, + "removeProjectLegacy": { + "deprecated": "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy", "method": "DELETE", "params": { "project_id": { "required": true, "type": "integer" }, @@ -5658,6 +6357,27 @@ "url": "/teams/:team_id/projects/:project_id" }, "removeRepo": { + "deprecated": "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)", + "method": "DELETE", + "params": { + "owner": { "required": true, "type": "string" }, + "repo": { "required": true, "type": "string" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/repos/:owner/:repo" + }, + "removeRepoInOrg": { + "method": "DELETE", + "params": { + "org": { "required": true, "type": "string" }, + "owner": { "required": true, "type": "string" }, + "repo": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/repos/:owner/:repo" + }, + "removeRepoLegacy": { + "deprecated": "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy", "method": "DELETE", "params": { "owner": { "required": true, "type": "string" }, @@ -5667,6 +6387,27 @@ "url": "/teams/:team_id/repos/:owner/:repo" }, "reviewProject": { + "deprecated": "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)", + "headers": { "accept": "application/vnd.github.inertia-preview+json" }, + "method": "GET", + "params": { + "project_id": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/projects/:project_id" + }, + "reviewProjectInOrg": { + "headers": { "accept": "application/vnd.github.inertia-preview+json" }, + "method": "GET", + "params": { + "org": { "required": true, "type": "string" }, + "project_id": { "required": true, "type": "integer" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/projects/:project_id" + }, + "reviewProjectLegacy": { + "deprecated": "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy", "headers": { "accept": "application/vnd.github.inertia-preview+json" }, "method": "GET", "params": { @@ -5676,6 +6417,7 @@ "url": "/teams/:team_id/projects/:project_id" }, "update": { + "deprecated": "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)", "method": "PATCH", "params": { "description": { "type": "string" }, @@ -5688,7 +6430,7 @@ "url": "/teams/:team_id" }, "updateDiscussion": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)", "method": "PATCH", "params": { "body": { "type": "string" }, @@ -5699,7 +6441,7 @@ "url": "/teams/:team_id/discussions/:discussion_number" }, "updateDiscussionComment": { - "headers": { "accept": "application/vnd.github.echo-preview+json" }, + "deprecated": "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)", "method": "PATCH", "params": { "body": { "required": true, "type": "string" }, @@ -5708,6 +6450,76 @@ "team_id": { "required": true, "type": "integer" } }, "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + "updateDiscussionCommentInOrg": { + "method": "PATCH", + "params": { + "body": { "required": true, "type": "string" }, + "comment_number": { "required": true, "type": "integer" }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" + }, + "updateDiscussionCommentLegacy": { + "deprecated": "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy", + "method": "PATCH", + "params": { + "body": { "required": true, "type": "string" }, + "comment_number": { "required": true, "type": "integer" }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" + }, + "updateDiscussionInOrg": { + "method": "PATCH", + "params": { + "body": { "type": "string" }, + "discussion_number": { "required": true, "type": "integer" }, + "org": { "required": true, "type": "string" }, + "team_slug": { "required": true, "type": "string" }, + "title": { "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug/discussions/:discussion_number" + }, + "updateDiscussionLegacy": { + "deprecated": "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy", + "method": "PATCH", + "params": { + "body": { "type": "string" }, + "discussion_number": { "required": true, "type": "integer" }, + "team_id": { "required": true, "type": "integer" }, + "title": { "type": "string" } + }, + "url": "/teams/:team_id/discussions/:discussion_number" + }, + "updateInOrg": { + "method": "PATCH", + "params": { + "description": { "type": "string" }, + "name": { "required": true, "type": "string" }, + "org": { "required": true, "type": "string" }, + "parent_team_id": { "type": "integer" }, + "permission": { "enum": ["pull", "push", "admin"], "type": "string" }, + "privacy": { "enum": ["secret", "closed"], "type": "string" }, + "team_slug": { "required": true, "type": "string" } + }, + "url": "/orgs/:org/teams/:team_slug" + }, + "updateLegacy": { + "deprecated": "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy", + "method": "PATCH", + "params": { + "description": { "type": "string" }, + "name": { "required": true, "type": "string" }, + "parent_team_id": { "type": "integer" }, + "permission": { "enum": ["pull", "push", "admin"], "type": "string" }, + "privacy": { "enum": ["secret", "closed"], "type": "string" }, + "team_id": { "required": true, "type": "integer" } + }, + "url": "/teams/:team_id" } }, "users": { @@ -5776,7 +6588,6 @@ "url": "/users/:username" }, "getContextForUser": { - "headers": { "accept": "application/vnd.github.hagar-preview+json" }, "method": "GET", "params": { "subject_id": { "type": "string" }, diff --git a/node_modules/@octokit/types/.github/workflows/test.yml b/node_modules/@octokit/types/.github/workflows/test.yml index 702220fd1..978be685b 100644 --- a/node_modules/@octokit/types/.github/workflows/test.yml +++ b/node_modules/@octokit/types/.github/workflows/test.yml @@ -3,7 +3,7 @@ on: push: branches: - master - - "greenkeeper/*" + - "greenkeeper/**" pull_request: types: [opened, synchronize] diff --git a/node_modules/@octokit/types/package.json b/node_modules/@octokit/types/package.json index d1279b35f..e4cf6351e 100644 --- a/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/types/package.json @@ -1,26 +1,20 @@ { - "_args": [ - [ - "@octokit/types@2.0.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@octokit/types@2.0.2", - "_id": "@octokit/types@2.0.2", + "_from": "@octokit/types@^2.0.0", + "_id": "@octokit/types@2.1.0", "_inBundle": false, - "_integrity": "sha512-StASIL2lgT3TRjxv17z9pAqbnI7HGu9DrJlg3sEBFfCLaMEqp+O3IQPUF6EZtQ4xkAu2ml6kMBBCtGxjvmtmuQ==", + "_integrity": "sha512-n1GUYFgKm5glcy0E+U5jnqAFY2p04rnK4A0YhuM70C7Vm9Vyx+xYwd/WOTEr8nUJcbPSR/XL+/26+rirY6jJQA==", "_location": "/@octokit/types", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/types@2.0.2", + "raw": "@octokit/types@^2.0.0", "name": "@octokit/types", "escapedName": "@octokit%2ftypes", "scope": "@octokit", - "rawSpec": "2.0.2", + "rawSpec": "^2.0.0", "saveSpec": null, - "fetchSpec": "2.0.2" + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/@octokit/endpoint", @@ -28,9 +22,10 @@ "/@octokit/request", "/@octokit/request-error" ], - "_resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.0.2.tgz", - "_spec": "2.0.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.1.0.tgz", + "_shasum": "fe3ea39ed7d20ec06954a9314d4f17aa93e033a3", + "_spec": "@octokit/types@^2.0.0", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark/node_modules/@octokit/graphql", "author": { "name": "Gregor Martynus", "url": "https://twitter.com/gr2m" @@ -38,22 +33,24 @@ "bugs": { "url": "https://github.com/octokit/types.ts/issues" }, + "bundleDependencies": false, "dependencies": { "@types/node": ">= 8" }, + "deprecated": false, "description": "Shared TypeScript definitions for Octokit projects", "devDependencies": { "@octokit/graphql": "^4.2.2", "handlebars": "^4.4.5", "lodash.set": "^4.3.2", "npm-run-all": "^4.1.5", - "pascal-case": "^2.0.1", + "pascal-case": "^3.1.1", "prettier": "^1.18.2", - "semantic-release": "^15.13.24", + "semantic-release": "^16.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", "sort-keys": "^4.0.0", "string-to-jsdoc-comment": "^1.0.0", - "typedoc": "^0.15.0", + "typedoc": "^0.16.0", "typescript": "^3.6.4" }, "homepage": "https://github.com/octokit/types.ts#readme", @@ -100,5 +97,5 @@ "update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json", "update-endpoints:typescript": "node scripts/update-endpoints/typescript" }, - "version": "2.0.2" + "version": "2.1.0" } diff --git a/node_modules/@octokit/types/scripts/update-endpoints/generated/endpoints.json b/node_modules/@octokit/types/scripts/update-endpoints/generated/endpoints.json index 6c3d62a39..6d2157b22 100644 --- a/node_modules/@octokit/types/scripts/update-endpoints/generated/endpoints.json +++ b/node_modules/@octokit/types/scripts/update-endpoints/generated/endpoints.json @@ -199,6 +199,64 @@ } ] }, + { + "name": "Delete an app authorization", + "scope": "apps", + "id": "deleteAuthorization", + "method": "DELETE", + "url": "/applications/{client_id}/grant", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The OAuth access token used to authenticate to the GitHub API.", + "enum": null, + "name": "access_token", + "type": "string", + "required": false + } + ] + }, + { + "name": "Revoke a grant for an application", + "scope": "apps", + "id": "revokeGrantForApplication", + "method": "DELETE", + "url": "/applications/{client_id}/grants/{access_token}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "access_token parameter", + "enum": null, + "name": "access_token", + "type": "string", + "required": true + } + ] + }, { "name": "Revoke a grant for an application", "scope": "oauthAuthorizations", @@ -228,6 +286,122 @@ } ] }, + { + "name": "Check a token", + "scope": "apps", + "id": "checkToken", + "method": "POST", + "url": "/applications/{client_id}/token", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The OAuth access token used to authenticate to the GitHub API.", + "enum": null, + "name": "access_token", + "type": "string", + "required": false + } + ] + }, + { + "name": "Reset a token", + "scope": "apps", + "id": "resetToken", + "method": "PATCH", + "url": "/applications/{client_id}/token", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The OAuth access token used to authenticate to the GitHub API.", + "enum": null, + "name": "access_token", + "type": "string", + "required": false + } + ] + }, + { + "name": "Delete an app token", + "scope": "apps", + "id": "deleteToken", + "method": "DELETE", + "url": "/applications/{client_id}/token", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The OAuth access token used to authenticate to the GitHub API.", + "enum": null, + "name": "access_token", + "type": "string", + "required": false + } + ] + }, + { + "name": "Check an authorization", + "scope": "apps", + "id": "checkAuthorization", + "method": "GET", + "url": "/applications/{client_id}/tokens/{access_token}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "access_token parameter", + "enum": null, + "name": "access_token", + "type": "string", + "required": true + } + ] + }, { "name": "Check an authorization", "scope": "oauthAuthorizations", @@ -257,6 +431,35 @@ } ] }, + { + "name": "Reset an authorization", + "scope": "apps", + "id": "resetAuthorization", + "method": "POST", + "url": "/applications/{client_id}/tokens/{access_token}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "access_token parameter", + "enum": null, + "name": "access_token", + "type": "string", + "required": true + } + ] + }, { "name": "Reset an authorization", "scope": "oauthAuthorizations", @@ -286,6 +489,35 @@ } ] }, + { + "name": "Revoke an authorization for an application", + "scope": "apps", + "id": "revokeAuthorizationForApplication", + "method": "DELETE", + "url": "/applications/{client_id}/tokens/{access_token}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "client_id parameter", + "enum": null, + "name": "client_id", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "access_token parameter", + "enum": null, + "name": "access_token", + "type": "string", + "required": true + } + ] + }, { "name": "Revoke an authorization for an application", "scope": "oauthAuthorizations", @@ -1534,6 +1766,14 @@ } ] }, + { + "name": "Revoke an installation token", + "scope": "apps", + "id": "revokeInstallationToken", + "method": "DELETE", + "url": "/installation/token", + "parameters": [] + }, { "name": "List all issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories", "scope": "issues", @@ -2535,7 +2775,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Toggles whether organization projects are enabled for the organization.", + "description": "Toggles whether an organization can use organization projects.", "enum": null, "name": "has_organization_projects", "type": "boolean", @@ -2545,7 +2785,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Toggles whether repository projects are enabled for repositories that belong to the organization.", + "description": "Toggles whether repositories that belong to the organization can use repository projects.", "enum": null, "name": "has_repository_projects", "type": "boolean", @@ -2565,7 +2805,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only admin members can create repositories. \nDefault: `true` \n**Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details.", + "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only organization owners can create repositories. \nDefault: `true` \n**Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details.", "enum": null, "name": "members_can_create_repositories", "type": "boolean", @@ -2575,7 +2815,37 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on [GitHub Business Cloud](https://github.com/pricing/business-cloud). \n\\* `none` - only admin members can create repositories. \n**Note:** Using this parameter will override values set in `members_can_create_repositories`. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details.", + "description": "Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud. Can be one of: \n\\* `true` - all organization members can create internal repositories. \n\\* `false` - only organization owners can create internal repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.", + "enum": null, + "name": "members_can_create_internal_repositories", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: \n\\* `true` - all organization members can create private repositories. \n\\* `false` - only organization owners can create private repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.", + "enum": null, + "name": "members_can_create_private_repositories", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: \n\\* `true` - all organization members can create public repositories. \n\\* `false` - only organization owners can create public repositories. \nDefault: `true`. For more information, see \"[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)\" in the GitHub Help documentation.", + "enum": null, + "name": "members_can_create_public_repositories", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n\\* `none` - only admin members can create repositories. \n**Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details.", "enum": ["all", "private", "none"], "name": "members_allowed_repository_creation_type", "type": "string", @@ -3139,11 +3409,11 @@ ] }, { - "name": "Get interaction restrictions for an organization", - "scope": "interactions", - "id": "getRestrictionsForOrg", + "name": "List installations for an organization", + "scope": "orgs", + "id": "listInstallations", "method": "GET", - "url": "/orgs/{org}/interaction-limits", + "url": "/orgs/{org}/installations", "parameters": [ { "alias": null, @@ -3154,10 +3424,49 @@ "name": "org", "type": "string", "required": true - } - ] - }, - { + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Get interaction restrictions for an organization", + "scope": "interactions", + "id": "getRestrictionsForOrg", + "method": "GET", + "url": "/orgs/{org}/interaction-limits", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + } + ] + }, + { "name": "Add or update interaction restrictions for an organization", "scope": "interactions", "id": "addOrUpdateRestrictionsForOrg", @@ -3715,7 +4024,7 @@ ] }, { - "name": "Get a list of organization migrations", + "name": "List organization migrations", "scope": "migrations", "id": "listForOrg", "method": "GET", @@ -3879,6 +4188,55 @@ } ] }, + { + "name": "List repositories in an organization migration", + "scope": "migrations", + "id": "listReposForOrg", + "method": "GET", + "url": "/orgs/{org}/migrations/{migration_id}/repositories", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "migration_id parameter", + "enum": null, + "name": "migration_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, { "name": "List outside collaborators", "scope": "orgs", @@ -4221,8 +4579,16 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`.", - "enum": ["all", "public", "private", "forks", "sources", "member"], + "description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `type` can also be `internal`.", + "enum": [ + "all", + "public", + "private", + "forks", + "sources", + "member", + "internal" + ], "name": "type", "type": "string", "required": false @@ -4326,6 +4692,16 @@ "type": "boolean", "required": false }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see \"[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)\" in the GitHub Help documentation. \nThe `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.", + "enum": ["public", "private", "visibility", "internal"], + "name": "visibility", + "type": "string", + "required": false + }, { "alias": null, "allowNull": false, @@ -4435,6 +4811,16 @@ "name": "allow_rebase_merge", "type": "boolean", "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + "enum": null, + "name": "delete_branch_on_merge", + "type": "boolean", + "required": false } ] }, @@ -4557,7 +4943,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The logins of organization members to add as maintainers of the team.", + "description": "List GitHub IDs for organization members who will become team maintainers.", "enum": null, "name": "maintainers", "type": "string[]", @@ -4577,7 +4963,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed` \n**Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams.", + "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`", "enum": ["secret", "closed"], "name": "privacy", "type": "string", @@ -4597,7 +4983,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.", + "description": "The ID of a team to set as the parent team.", "enum": null, "name": "parent_team_id", "type": "integer", @@ -4635,212 +5021,147 @@ ] }, { - "name": "Get a project card", - "scope": "projects", - "id": "getCard", - "method": "GET", - "url": "/projects/columns/cards/{card_id}", + "name": "Edit team", + "scope": "teams", + "id": "updateInOrg", + "method": "PATCH", + "url": "/orgs/{org}/teams/{team_slug}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "card_id parameter", + "description": "org parameter", "enum": null, - "name": "card_id", - "type": "integer", + "name": "org", + "type": "string", "required": true - } - ] - }, - { - "name": "Update a project card", - "scope": "projects", - "id": "updateCard", - "method": "PATCH", - "url": "/projects/columns/cards/{card_id}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "card_id parameter", + "description": "team_slug parameter", "enum": null, - "name": "card_id", - "type": "integer", + "name": "team_slug", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.", + "description": "The name of the team.", "enum": null, - "name": "note", + "name": "name", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card.", + "description": "The description of the team.", "enum": null, - "name": "archived", - "type": "boolean", + "name": "description", + "type": "string", "required": false - } - ] - }, - { - "name": "Delete a project card", - "scope": "projects", - "id": "deleteCard", - "method": "DELETE", - "url": "/projects/columns/cards/{card_id}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "card_id parameter", - "enum": null, - "name": "card_id", - "type": "integer", - "required": true - } - ] - }, - { - "name": "Move a project card", - "scope": "projects", - "id": "moveCard", - "method": "POST", - "url": "/projects/columns/cards/{card_id}/moves", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "card_id parameter", - "enum": null, - "name": "card_id", - "type": "integer", - "required": true + "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.", + "enum": ["secret", "closed"], + "name": "privacy", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`.", - "enum": null, - "name": "position", + "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", + "enum": ["pull", "push", "admin"], + "name": "permission", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The `id` value of a column in the same project.", + "description": "The ID of a team to set as the parent team.", "enum": null, - "name": "column_id", + "name": "parent_team_id", "type": "integer", "required": false } ] }, { - "name": "Get a project column", - "scope": "projects", - "id": "getColumn", - "method": "GET", - "url": "/projects/columns/{column_id}", + "name": "Delete team", + "scope": "teams", + "id": "deleteInOrg", + "method": "DELETE", + "url": "/orgs/{org}/teams/{team_slug}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "column_id parameter", + "description": "org parameter", "enum": null, - "name": "column_id", - "type": "integer", + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_slug parameter", + "enum": null, + "name": "team_slug", + "type": "string", "required": true } ] }, { - "name": "Update a project column", - "scope": "projects", - "id": "updateColumn", - "method": "PATCH", - "url": "/projects/columns/{column_id}", + "name": "List discussions", + "scope": "teams", + "id": "listDiscussionsInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/discussions", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "column_id parameter", + "description": "org parameter", "enum": null, - "name": "column_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The new name of the column.", + "description": "team_slug parameter", "enum": null, - "name": "name", + "name": "team_slug", "type": "string", "required": true - } - ] - }, - { - "name": "Delete a project column", - "scope": "projects", - "id": "deleteColumn", - "method": "DELETE", - "url": "/projects/columns/{column_id}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "column_id parameter", - "enum": null, - "name": "column_id", - "type": "integer", - "required": true - } - ] - }, - { - "name": "List project cards", - "scope": "projects", - "id": "listCards", - "method": "GET", - "url": "/projects/columns/{column_id}/cards", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "column_id parameter", - "enum": null, - "name": "column_id", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`.", - "enum": ["all", "archived", "not_archived"], - "name": "archived_state", + "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", "type": "string", "required": false }, @@ -4867,176 +5188,147 @@ ] }, { - "name": "Create a project card", - "scope": "projects", - "id": "createCard", + "name": "Create a discussion", + "scope": "teams", + "id": "createDiscussionInOrg", "method": "POST", - "url": "/projects/columns/{column_id}/cards", + "url": "/orgs/{org}/teams/{team_slug}/discussions", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "column_id parameter", + "description": "org parameter", "enum": null, - "name": "column_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.", + "description": "team_slug parameter", "enum": null, - "name": "note", + "name": "team_slug", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.", + "description": "The discussion post's title.", "enum": null, - "name": "content_id", - "type": "integer", - "required": false + "name": "title", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.", + "description": "The discussion post's body text.", "enum": null, - "name": "content_type", + "name": "body", "type": "string", - "required": false - } - ] - }, - { - "name": "Move a project column", - "scope": "projects", - "id": "moveColumn", - "method": "POST", - "url": "/projects/columns/{column_id}/moves", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "column_id parameter", - "enum": null, - "name": "column_id", - "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project.", + "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", "enum": null, - "name": "position", - "type": "string", - "required": true + "name": "private", + "type": "boolean", + "required": false } ] }, { - "name": "Get a project", - "scope": "projects", - "id": "get", + "name": "Get a single discussion", + "scope": "teams", + "id": "getDiscussionInOrg", "method": "GET", - "url": "/projects/{project_id}", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "team_slug parameter", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "team_slug", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "discussion_number parameter", "enum": null, - "name": "page", + "name": "discussion_number", "type": "integer", - "required": false + "required": true } ] }, { - "name": "Update a project", - "scope": "projects", - "id": "update", + "name": "Edit a discussion", + "scope": "teams", + "id": "updateDiscussionInOrg", "method": "PATCH", - "url": "/projects/{project_id}", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the project.", + "description": "team_slug parameter", "enum": null, - "name": "name", + "name": "team_slug", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The description of the project.", + "description": "discussion_number parameter", "enum": null, - "name": "body", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "State of the project. Either `open` or `closed`.", - "enum": ["open", "closed"], - "name": "state", - "type": "string", - "required": false + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). \n \n**Note:** Updating a project's `organization_permission` requires `admin` access to the project. \n \nCan be one of: \n\\* `read` - Organization members can read, but not write to or administer this project. \n\\* `write` - Organization members can read and write, but not administer this project. \n\\* `admin` - Organization members can read, write and administer this project. \n\\* `none` - Organization members can only see this project if it is public.", + "description": "The discussion post's title.", "enum": null, - "name": "organization_permission", + "name": "title", "type": "string", "required": false }, @@ -5044,47 +5336,87 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. \n \nCan be one of: \n\\* `false` - Anyone can see the project. \n\\* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account.", + "description": "The discussion post's body text.", "enum": null, - "name": "private", - "type": "boolean", + "name": "body", + "type": "string", "required": false } ] }, { - "name": "Delete a project", - "scope": "projects", - "id": "delete", + "name": "Delete a discussion", + "scope": "teams", + "id": "deleteDiscussionInOrg", "method": "DELETE", - "url": "/projects/{project_id}", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_slug parameter", + "enum": null, + "name": "team_slug", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", "type": "integer", "required": true } ] }, { - "name": "List collaborators", - "scope": "projects", - "id": "listCollaborators", + "name": "List comments", + "scope": "teams", + "id": "listDiscussionCommentsInOrg", "method": "GET", - "url": "/projects/{project_id}/collaborators", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_slug parameter", + "enum": null, + "name": "team_slug", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", "type": "integer", "required": true }, @@ -5092,9 +5424,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.", - "enum": ["outside", "direct", "all"], - "name": "affiliation", + "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", "type": "string", "required": false }, @@ -5121,29 +5453,29 @@ ] }, { - "name": "Add user as a collaborator", - "scope": "projects", - "id": "addCollaborator", - "method": "PUT", - "url": "/projects/{project_id}/collaborators/{username}", + "name": "Create a comment", + "scope": "teams", + "id": "createDiscussionCommentInOrg", + "method": "POST", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "team_slug parameter", "enum": null, - "name": "username", + "name": "team_slug", "type": "string", "required": true }, @@ -5151,28 +5483,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\" Can be one of: \n\\* `read` - can read, but not write to or administer this project. \n\\* `write` - can read and write, but not administer this project. \n\\* `admin` - can read, write and administer this project.", - "enum": ["read", "write", "admin"], - "name": "permission", - "type": "string", - "required": false - } - ] - }, - { - "name": "Remove user as a collaborator", - "scope": "projects", - "id": "removeCollaborator", - "method": "DELETE", - "url": "/projects/{project_id}/collaborators/{username}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "project_id parameter", + "description": "discussion_number parameter", "enum": null, - "name": "project_id", + "name": "discussion_number", "type": "integer", "required": true }, @@ -5180,181 +5493,136 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "The discussion comment's body text.", "enum": null, - "name": "username", + "name": "body", "type": "string", "required": true } ] }, { - "name": "Review a user's permission level", - "scope": "projects", - "id": "reviewUserPermissionLevel", + "name": "Get a single comment", + "scope": "teams", + "id": "getDiscussionCommentInOrg", "method": "GET", - "url": "/projects/{project_id}/collaborators/{username}/permission", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "team_slug parameter", "enum": null, - "name": "username", + "name": "team_slug", "type": "string", "required": true - } - ] - }, - { - "name": "List project columns", - "scope": "projects", - "id": "listColumns", - "method": "GET", - "url": "/projects/{project_id}/columns", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "project_id parameter", - "enum": null, - "name": "project_id", - "type": "integer", - "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "discussion_number parameter", "enum": null, - "name": "per_page", + "name": "discussion_number", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "comment_number parameter", "enum": null, - "name": "page", + "name": "comment_number", "type": "integer", - "required": false + "required": true } ] }, { - "name": "Create a project column", - "scope": "projects", - "id": "createColumn", - "method": "POST", - "url": "/projects/{project_id}/columns", + "name": "Edit a comment", + "scope": "teams", + "id": "updateDiscussionCommentInOrg", + "method": "PATCH", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "org parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the column.", + "description": "team_slug parameter", "enum": null, - "name": "name", + "name": "team_slug", "type": "string", "required": true - } - ] - }, - { - "name": "Get your current rate limit status", - "scope": "rateLimit", - "id": "get", - "method": "GET", - "url": "/rate_limit", - "parameters": [] - }, - { - "name": "Delete a reaction", - "scope": "reactions", - "id": "delete", - "method": "DELETE", - "url": "/reactions/{reaction_id}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "reaction_id parameter", + "description": "discussion_number parameter", "enum": null, - "name": "reaction_id", + "name": "discussion_number", "type": "integer", "required": true - } - ] - }, - { - "name": "Get", - "scope": "repos", - "id": "get", - "method": "GET", - "url": "/repos/{owner}/{repo}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "comment_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "comment_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The discussion comment's body text.", "enum": null, - "name": "repo", + "name": "body", "type": "string", "required": true } ] }, { - "name": "Edit", - "scope": "repos", - "id": "update", - "method": "PATCH", - "url": "/repos/{owner}/{repo}", + "name": "Delete a comment", + "scope": "teams", + "id": "deleteDiscussionCommentInOrg", + "method": "DELETE", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5362,9 +5630,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -5372,148 +5640,194 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the repository.", + "description": "discussion_number parameter", "enum": null, - "name": "name", - "type": "string", - "required": false + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the repository.", + "description": "comment_number parameter", "enum": null, - "name": "description", + "name": "comment_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "List reactions for a team discussion comment", + "scope": "reactions", + "id": "listForTeamDiscussionCommentInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A URL with more information about the repository.", + "description": "team_slug parameter", "enum": null, - "name": "homepage", + "name": "team_slug", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", + "description": "discussion_number parameter", "enum": null, - "name": "private", - "type": "boolean", - "required": false + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to enable issues for this repository or `false` to disable them.", + "description": "comment_number parameter", "enum": null, - "name": "has_issues", - "type": "boolean", - "required": false + "name": "comment_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", - "enum": null, - "name": "has_projects", - "type": "boolean", + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to enable the wiki for this repository or `false` to disable it.", + "description": "Results per page (max 100)", "enum": null, - "name": "has_wiki", - "type": "boolean", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to make this repo available as a template repository or `false` to prevent it.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "is_template", - "type": "boolean", + "name": "page", + "type": "integer", "required": false - }, + } + ] + }, + { + "name": "Create reaction for a team discussion comment", + "scope": "reactions", + "id": "createForTeamDiscussionCommentInOrg", + "method": "POST", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Updates the default branch for this repository.", + "description": "org parameter", "enum": null, - "name": "default_branch", + "name": "org", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + "description": "team_slug parameter", "enum": null, - "name": "allow_squash_merge", - "type": "boolean", - "required": false + "name": "team_slug", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + "description": "discussion_number parameter", "enum": null, - "name": "allow_merge_commit", - "type": "boolean", - "required": false + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + "description": "comment_number parameter", "enum": null, - "name": "allow_rebase_merge", - "type": "boolean", - "required": false + "name": "comment_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.", - "enum": null, - "name": "archived", - "type": "boolean", - "required": false + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", + "required": true } ] }, { - "name": "Delete a repository", - "scope": "repos", - "id": "delete", - "method": "DELETE", - "url": "/repos/{owner}/{repo}", + "name": "List reactions for a team discussion", + "scope": "reactions", + "id": "listForTeamDiscussionInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5521,40 +5835,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true - } - ] - }, - { - "name": "List assignees", - "scope": "issues", - "id": "listAssignees", - "method": "GET", - "url": "/repos/{owner}/{repo}/assignees", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "discussion_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "discussion_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", - "required": true + "required": false }, { "alias": null, @@ -5579,19 +5893,19 @@ ] }, { - "name": "Check assignee", - "scope": "issues", - "id": "checkAssignee", - "method": "GET", - "url": "/repos/{owner}/{repo}/assignees/{assignee}", + "name": "Create reaction for a team discussion", + "scope": "reactions", + "id": "createForTeamDiscussionInOrg", + "method": "POST", + "url": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5599,9 +5913,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -5609,28 +5923,47 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "assignee parameter", + "description": "discussion_number parameter", "enum": null, - "name": "assignee", + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", "required": true } ] }, { - "name": "Enable automated security fixes", - "scope": "repos", - "id": "enableAutomatedSecurityFixes", - "method": "PUT", - "url": "/repos/{owner}/{repo}/automated-security-fixes", + "name": "List pending team invitations", + "scope": "teams", + "id": "listPendingInvitationsInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/invitations", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5638,57 +5971,48 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true - } - ] - }, - { - "name": "Disable automated security fixes", - "scope": "repos", - "id": "disableAutomatedSecurityFixes", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/automated-security-fixes", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "List branches", - "scope": "repos", - "id": "listBranches", + "name": "List team members", + "scope": "teams", + "id": "listMembersInOrg", "method": "GET", - "url": "/repos/{owner}/{repo}/branches", + "url": "/orgs/{org}/teams/{team_slug}/members", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5696,9 +6020,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -5706,10 +6030,10 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches.", - "enum": null, - "name": "protected", - "type": "boolean", + "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team.", + "enum": ["member", "maintainer", "all"], + "name": "role", + "type": "string", "required": false }, { @@ -5735,19 +6059,19 @@ ] }, { - "name": "Get branch", - "scope": "repos", - "id": "getBranch", + "name": "Get team membership", + "scope": "teams", + "id": "getMembershipInOrg", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}", + "url": "/orgs/{org}/teams/{team_slug}/memberships/{username}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5755,9 +6079,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -5765,28 +6089,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "username parameter", "enum": null, - "name": "branch", + "name": "username", "type": "string", "required": true } ] }, { - "name": "Get branch protection", - "scope": "repos", - "id": "getBranchProtection", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection", + "name": "Add or update team membership", + "scope": "teams", + "id": "addOrUpdateMembershipInOrg", + "method": "PUT", + "url": "/orgs/{org}/teams/{team_slug}/memberships/{username}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5794,9 +6118,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -5804,28 +6128,38 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "username parameter", "enum": null, - "name": "branch", + "name": "username", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.", + "enum": ["member", "maintainer"], + "name": "role", + "type": "string", + "required": false } ] }, { - "name": "Update branch protection", - "scope": "repos", - "id": "updateBranchProtection", - "method": "PUT", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection", + "name": "Remove team membership", + "scope": "teams", + "id": "removeMembershipInOrg", + "method": "DELETE", + "url": "/orgs/{org}/teams/{team_slug}/memberships/{username}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -5833,9 +6167,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -5843,178 +6177,165 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "username parameter", "enum": null, - "name": "branch", + "name": "username", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": true, - "deprecated": null, - "description": "Require status checks to pass before merging. Set to `null` to disable.", - "enum": null, - "name": "required_status_checks", - "type": "object", - "required": true - }, + } + ] + }, + { + "name": "List team projects", + "scope": "teams", + "id": "listProjectsInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/projects", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Require branches to be up to date before merging.", + "description": "org parameter", "enum": null, - "name": "required_status_checks.strict", - "type": "boolean", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of status checks to require in order to merge into this branch", - "enum": null, - "name": "required_status_checks.contexts", - "type": "string[]", - "required": true - }, - { - "alias": null, - "allowNull": true, - "deprecated": null, - "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.", - "enum": null, - "name": "enforce_admins", - "type": "boolean", - "required": true - }, - { - "alias": null, - "allowNull": true, - "deprecated": null, - "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.", + "description": "team_slug parameter", "enum": null, - "name": "required_pull_request_reviews", - "type": "object", + "name": "team_slug", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", - "enum": null, - "name": "required_pull_request_reviews.dismissal_restrictions", - "type": "object", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The list of user `login`s with dismissal access", + "description": "Results per page (max 100)", "enum": null, - "name": "required_pull_request_reviews.dismissal_restrictions.users", - "type": "string[]", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of team `slug`s with dismissal access", + "description": "Page number of the results to fetch.", "enum": null, - "name": "required_pull_request_reviews.dismissal_restrictions.teams", - "type": "string[]", + "name": "page", + "type": "integer", "required": false - }, + } + ] + }, + { + "name": "Review a team project", + "scope": "teams", + "id": "reviewProjectInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/projects/{project_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + "description": "org parameter", "enum": null, - "name": "required_pull_request_reviews.dismiss_stale_reviews", - "type": "boolean", - "required": false + "name": "org", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them.", + "description": "team_slug parameter", "enum": null, - "name": "required_pull_request_reviews.require_code_owner_reviews", - "type": "boolean", - "required": false + "name": "team_slug", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.", + "description": "project_id parameter", "enum": null, - "name": "required_pull_request_reviews.required_approving_review_count", + "name": "project_id", "type": "integer", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Add or update team project", + "scope": "teams", + "id": "addOrUpdateProjectInOrg", + "method": "PUT", + "url": "/orgs/{org}/teams/{team_slug}/projects/{project_id}", + "parameters": [ { "alias": null, - "allowNull": true, + "allowNull": false, "deprecated": null, - "description": "Restrict who can push to this branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.", + "description": "org parameter", "enum": null, - "name": "restrictions", - "type": "object", + "name": "org", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of user `login`s with push access", + "description": "team_slug parameter", "enum": null, - "name": "restrictions.users", - "type": "string[]", + "name": "team_slug", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of team `slug`s with push access", + "description": "project_id parameter", "enum": null, - "name": "restrictions.teams", - "type": "string[]", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of app `slug`s with push access", - "enum": null, - "name": "restrictions.apps", - "type": "string[]", + "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"", + "enum": ["read", "write", "admin"], + "name": "permission", + "type": "string", "required": false } ] }, { - "name": "Remove branch protection", - "scope": "repos", - "id": "removeBranchProtection", + "name": "Remove team project", + "scope": "teams", + "id": "removeProjectInOrg", "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection", + "url": "/orgs/{org}/teams/{team_slug}/projects/{project_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -6022,9 +6343,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -6032,28 +6353,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "project_id parameter", "enum": null, - "name": "branch", - "type": "string", + "name": "project_id", + "type": "integer", "required": true } ] }, { - "name": "Get admin enforcement of protected branch", - "scope": "repos", - "id": "getProtectedBranchAdminEnforcement", + "name": "List team repos", + "scope": "teams", + "id": "listReposInOrg", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + "url": "/orgs/{org}/teams/{team_slug}/repos", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -6061,9 +6382,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -6071,28 +6392,38 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Add admin enforcement of protected branch", - "scope": "repos", - "id": "addProtectedBranchAdminEnforcement", - "method": "POST", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + "name": "Check if a team manages a repository", + "scope": "teams", + "id": "checkManagesRepoInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -6100,9 +6431,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -6110,38 +6441,38 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "owner parameter", "enum": null, - "name": "branch", + "name": "owner", "type": "string", "required": true - } - ] - }, - { - "name": "Remove admin enforcement of protected branch", - "scope": "repos", - "id": "removeProtectedBranchAdminEnforcement", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "repo parameter", "enum": null, - "name": "owner", + "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Add or update team repository", + "scope": "teams", + "id": "addOrUpdateRepoInOrg", + "method": "PUT", + "url": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "org parameter", "enum": null, - "name": "repo", + "name": "org", "type": "string", "required": true }, @@ -6149,21 +6480,12 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "team_slug parameter", "enum": null, - "name": "branch", + "name": "team_slug", "type": "string", "required": true - } - ] - }, - { - "name": "Get pull request review enforcement of protected branch", - "scope": "repos", - "id": "getProtectedBranchPullRequestReviewEnforcement", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", - "parameters": [ + }, { "alias": null, "allowNull": false, @@ -6188,28 +6510,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", + "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + "enum": ["pull", "push", "admin"], + "name": "permission", "type": "string", - "required": true + "required": false } ] }, { - "name": "Update pull request review enforcement of protected branch", - "scope": "repos", - "id": "updateProtectedBranchPullRequestReviewEnforcement", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + "name": "Remove team repository", + "scope": "teams", + "id": "removeRepoInOrg", + "method": "DELETE", + "url": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -6217,9 +6539,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -6227,9 +6549,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "owner parameter", "enum": null, - "name": "branch", + "name": "owner", "type": "string", "required": true }, @@ -6237,78 +6559,87 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + "description": "repo parameter", "enum": null, - "name": "dismissal_restrictions", - "type": "object", - "required": false - }, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "List IdP groups for a team", + "scope": "teams", + "id": "listIdPGroupsInOrg", + "method": "GET", + "url": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of user `login`s with dismissal access", + "description": "org parameter", "enum": null, - "name": "dismissal_restrictions.users", - "type": "string[]", - "required": false + "name": "org", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of team `slug`s with dismissal access", + "description": "team_slug parameter", "enum": null, - "name": "dismissal_restrictions.teams", - "type": "string[]", - "required": false - }, + "name": "team_slug", + "type": "string", + "required": true + } + ] + }, + { + "name": "Create or update IdP group connections", + "scope": "teams", + "id": "createOrUpdateIdPGroupConnectionsInOrg", + "method": "PATCH", + "url": "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", + "description": "org parameter", "enum": null, - "name": "dismiss_stale_reviews", - "type": "boolean", - "required": false + "name": "org", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed.", + "description": "team_slug parameter", "enum": null, - "name": "require_code_owner_reviews", - "type": "boolean", - "required": false + "name": "team_slug", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.", + "description": "The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", "enum": null, - "name": "required_approving_review_count", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Remove pull request review enforcement of protected branch", - "scope": "repos", - "id": "removeProtectedBranchPullRequestReviewEnforcement", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", - "parameters": [ + "name": "groups", + "type": "object[]", + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "ID of the IdP group.", "enum": null, - "name": "owner", + "name": "groups[].group_id", "type": "string", "required": true }, @@ -6316,9 +6647,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Name of the IdP group.", "enum": null, - "name": "repo", + "name": "groups[].group_name", "type": "string", "required": true }, @@ -6326,28 +6657,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Description of the IdP group.", "enum": null, - "name": "branch", + "name": "groups[].group_description", "type": "string", "required": true } ] }, { - "name": "Get required signatures of protected branch", - "scope": "repos", - "id": "getProtectedBranchRequiredSignatures", + "name": "List child teams", + "scope": "teams", + "id": "listChildInOrg", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + "url": "/orgs/{org}/teams/{team_slug}/teams", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "org parameter", "enum": null, - "name": "owner", + "name": "org", "type": "string", "required": true }, @@ -6355,9 +6686,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "team_slug parameter", "enum": null, - "name": "repo", + "name": "team_slug", "type": "string", "required": true }, @@ -6365,478 +6696,534 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "branch", - "type": "string", + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Get a project card", + "scope": "projects", + "id": "getCard", + "method": "GET", + "url": "/projects/columns/cards/{card_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "card_id parameter", + "enum": null, + "name": "card_id", + "type": "integer", "required": true } ] }, { - "name": "Add required signatures of protected branch", - "scope": "repos", - "id": "addProtectedBranchRequiredSignatures", - "method": "POST", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + "name": "Update a project card", + "scope": "projects", + "id": "updateCard", + "method": "PATCH", + "url": "/projects/columns/cards/{card_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "card_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "card_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`.", "enum": null, - "name": "repo", + "name": "note", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card.", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "archived", + "type": "boolean", + "required": false } ] }, { - "name": "Remove required signatures of protected branch", - "scope": "repos", - "id": "removeProtectedBranchRequiredSignatures", + "name": "Delete a project card", + "scope": "projects", + "id": "deleteCard", "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + "url": "/projects/columns/cards/{card_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "card_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "card_id", + "type": "integer", "required": true - }, + } + ] + }, + { + "name": "Move a project card", + "scope": "projects", + "id": "moveCard", + "method": "POST", + "url": "/projects/columns/cards/{card_id}/moves", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "card_id parameter", "enum": null, - "name": "repo", - "type": "string", + "name": "card_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`.", "enum": null, - "name": "branch", + "name": "position", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The `id` value of a column in the same project.", + "enum": null, + "name": "column_id", + "type": "integer", + "required": false } ] }, { - "name": "Get required status checks of protected branch", - "scope": "repos", - "id": "getProtectedBranchRequiredStatusChecks", + "name": "Get a project column", + "scope": "projects", + "id": "getColumn", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + "url": "/projects/columns/{column_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "column_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "column_id", + "type": "integer", "required": true - }, + } + ] + }, + { + "name": "Update a project column", + "scope": "projects", + "id": "updateColumn", + "method": "PATCH", + "url": "/projects/columns/{column_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "column_id parameter", "enum": null, - "name": "repo", - "type": "string", + "name": "column_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "The new name of the column.", "enum": null, - "name": "branch", + "name": "name", "type": "string", "required": true } ] }, { - "name": "Update required status checks of protected branch", - "scope": "repos", - "id": "updateProtectedBranchRequiredStatusChecks", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + "name": "Delete a project column", + "scope": "projects", + "id": "deleteColumn", + "method": "DELETE", + "url": "/projects/columns/{column_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "column_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "column_id", + "type": "integer", "required": true - }, + } + ] + }, + { + "name": "List project cards", + "scope": "projects", + "id": "listCards", + "method": "GET", + "url": "/projects/columns/{column_id}/cards", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "column_id parameter", "enum": null, - "name": "repo", - "type": "string", + "name": "column_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", + "description": "Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`.", + "enum": ["all", "archived", "not_archived"], + "name": "archived_state", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Require branches to be up to date before merging.", + "description": "Results per page (max 100)", "enum": null, - "name": "strict", - "type": "boolean", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The list of status checks to require in order to merge into this branch", + "description": "Page number of the results to fetch.", "enum": null, - "name": "contexts", - "type": "string[]", + "name": "page", + "type": "integer", "required": false } ] }, { - "name": "Remove required status checks of protected branch", - "scope": "repos", - "id": "removeProtectedBranchRequiredStatusChecks", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + "name": "Create a project card", + "scope": "projects", + "id": "createCard", + "method": "POST", + "url": "/projects/columns/{column_id}/cards", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "column_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "column_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`.", "enum": null, - "name": "repo", + "name": "note", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. \n**Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`.", "enum": null, - "name": "branch", - "type": "string", - "required": true - } - ] - }, - { - "name": "List required status checks contexts of protected branch", - "scope": "repos", - "id": "listProtectedBranchRequiredStatusChecksContexts", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", - "parameters": [ + "name": "content_id", + "type": "integer", + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "**Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id.", "enum": null, - "name": "owner", + "name": "content_type", "type": "string", - "required": true - }, + "required": false + } + ] + }, + { + "name": "Move a project column", + "scope": "projects", + "id": "moveColumn", + "method": "POST", + "url": "/projects/columns/{column_id}/moves", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "column_id parameter", "enum": null, - "name": "repo", - "type": "string", + "name": "column_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project.", "enum": null, - "name": "branch", + "name": "position", "type": "string", "required": true } ] }, { - "name": "Replace required status checks contexts of protected branch", - "scope": "repos", - "id": "replaceProtectedBranchRequiredStatusChecksContexts", - "method": "PUT", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + "name": "Get a project", + "scope": "projects", + "id": "get", + "method": "GET", + "url": "/projects/{project_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", + "description": "project_id parameter", "enum": null, - "name": "repo", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "contexts parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "contexts", - "type": "string[]", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Add required status checks contexts of protected branch", - "scope": "repos", - "id": "addProtectedBranchRequiredStatusChecksContexts", - "method": "POST", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + "name": "Update a project", + "scope": "projects", + "id": "update", + "method": "PATCH", + "url": "/projects/{project_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "project_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The name of the project.", "enum": null, - "name": "repo", + "name": "name", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "The description of the project.", "enum": null, - "name": "branch", + "name": "body", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "contexts parameter", - "enum": null, - "name": "contexts", - "type": "string[]", - "required": true - } - ] - }, - { - "name": "Remove required status checks contexts of protected branch", - "scope": "repos", - "id": "removeProtectedBranchRequiredStatusChecksContexts", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", + "description": "State of the project. Either `open` or `closed`.", + "enum": ["open", "closed"], + "name": "state", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). \n \n**Note:** Updating a project's `organization_permission` requires `admin` access to the project. \n \nCan be one of: \n\\* `read` - Organization members can read, but not write to or administer this project. \n\\* `write` - Organization members can read and write, but not administer this project. \n\\* `admin` - Organization members can read, write and administer this project. \n\\* `none` - Organization members can only see this project if it is public.", "enum": null, - "name": "repo", + "name": "organization_permission", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. \n \nCan be one of: \n\\* `false` - Anyone can see the project. \n\\* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account.", "enum": null, - "name": "branch", - "type": "string", - "required": true - }, + "name": "private", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Delete a project", + "scope": "projects", + "id": "delete", + "method": "DELETE", + "url": "/projects/{project_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "contexts parameter", + "description": "project_id parameter", "enum": null, - "name": "contexts", - "type": "string[]", + "name": "project_id", + "type": "integer", "required": true } ] }, { - "name": "Get restrictions of protected branch", - "scope": "repos", - "id": "getProtectedBranchRestrictions", + "name": "List collaborators", + "scope": "projects", + "id": "listCollaborators", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", + "url": "/projects/{project_id}/collaborators", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "project_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.", + "enum": ["outside", "direct", "all"], + "name": "affiliation", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Remove restrictions of protected branch", - "scope": "repos", - "id": "removeProtectedBranchRestrictions", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", + "name": "Add user as a collaborator", + "scope": "projects", + "id": "addCollaborator", + "method": "PUT", + "url": "/projects/{project_id}/collaborators/{username}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "project_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "username parameter", "enum": null, - "name": "repo", + "name": "username", "type": "string", "required": true }, @@ -6844,147 +7231,173 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", + "description": "The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\" Can be one of: \n\\* `read` - can read, but not write to or administer this project. \n\\* `write` - can read and write, but not administer this project. \n\\* `admin` - can read, write and administer this project.", + "enum": ["read", "write", "admin"], + "name": "permission", "type": "string", - "required": true + "required": false } ] }, { - "name": "Get apps with access to protected branch", - "scope": "repos", - "id": "getAppsWithAccessToProtectedBranch", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + "name": "Remove user as a collaborator", + "scope": "projects", + "id": "removeCollaborator", + "method": "DELETE", + "url": "/projects/{project_id}/collaborators/{username}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "project_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "username parameter", "enum": null, - "name": "repo", + "name": "username", "type": "string", "required": true + } + ] + }, + { + "name": "Review a user's permission level", + "scope": "projects", + "id": "reviewUserPermissionLevel", + "method": "GET", + "url": "/projects/{project_id}/collaborators/{username}/permission", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "project_id parameter", + "enum": null, + "name": "project_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "username parameter", "enum": null, - "name": "branch", + "name": "username", "type": "string", "required": true } ] }, { - "name": "Get apps with access to protected branch", - "scope": "repos", - "id": "listAppsWithAccessToProtectedBranch", + "name": "List project columns", + "scope": "projects", + "id": "listColumns", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + "url": "/projects/{project_id}/columns", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "project_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Replace app restrictions of protected branch", - "scope": "repos", - "id": "replaceProtectedBranchAppRestrictions", - "method": "PUT", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + "name": "Create a project column", + "scope": "projects", + "id": "createColumn", + "method": "POST", + "url": "/projects/{project_id}/columns", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", + "description": "project_id parameter", "enum": null, - "name": "repo", - "type": "string", + "name": "project_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "The name of the column.", "enum": null, - "name": "branch", + "name": "name", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get your current rate limit status", + "scope": "rateLimit", + "id": "get", + "method": "GET", + "url": "/rate_limit", + "parameters": [] + }, + { + "name": "Delete a reaction", + "scope": "reactions", + "id": "delete", + "method": "DELETE", + "url": "/reactions/{reaction_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "apps parameter", + "description": "reaction_id parameter", "enum": null, - "name": "apps", - "type": "string[]", + "name": "reaction_id", + "type": "integer", "required": true } ] }, { - "name": "Add app restrictions of protected branch", + "name": "Get", "scope": "repos", - "id": "addProtectedBranchAppRestrictions", - "method": "POST", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + "id": "get", + "method": "GET", + "url": "/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -7005,35 +7418,15 @@ "name": "repo", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "apps parameter", - "enum": null, - "name": "apps", - "type": "string[]", - "required": true } ] }, { - "name": "Remove app restrictions of protected branch", + "name": "Edit", "scope": "repos", - "id": "removeProtectedBranchAppRestrictions", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + "id": "update", + "method": "PATCH", + "url": "/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -7059,196 +7452,160 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "The name of the repository.", "enum": null, - "name": "branch", + "name": "name", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "apps parameter", + "description": "A short description of the repository.", "enum": null, - "name": "apps", - "type": "string[]", - "required": true - } - ] - }, - { - "name": "Get teams with access to protected branch", - "scope": "repos", - "id": "getTeamsWithAccessToProtectedBranch", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", - "parameters": [ + "name": "description", + "type": "string", + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "A URL with more information about the repository.", "enum": null, - "name": "owner", + "name": "homepage", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. \n**Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "private", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", + "description": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header.", + "enum": ["public", "private", "visibility", "internal"], + "name": "visibility", "type": "string", - "required": true - } - ] - }, - { - "name": "Get teams with access to protected branch", - "scope": "repos", - "id": "listProtectedBranchTeamRestrictions", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Either `true` to enable issues for this repository or `false` to disable them.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "has_issues", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "has_projects", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Either `true` to enable the wiki for this repository or `false` to disable it.", "enum": null, - "name": "branch", - "type": "string", - "required": true - } - ] - }, - { - "name": "Get teams with access to protected branch", - "scope": "repos", - "id": "listTeamsWithAccessToProtectedBranch", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", - "parameters": [ + "name": "has_wiki", + "type": "boolean", + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Either `true` to make this repo available as a template repository or `false` to prevent it.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "is_template", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Updates the default branch for this repository.", "enum": null, - "name": "repo", + "name": "default_branch", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", "enum": null, - "name": "branch", - "type": "string", - "required": true - } - ] - }, - { - "name": "Replace team restrictions of protected branch", - "scope": "repos", - "id": "replaceProtectedBranchTeamRestrictions", - "method": "PUT", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", - "parameters": [ + "name": "allow_squash_merge", + "type": "boolean", + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "allow_merge_commit", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "allow_rebase_merge", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "delete_branch_on_merge", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "teams parameter", + "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.", "enum": null, - "name": "teams", - "type": "string[]", - "required": true + "name": "archived", + "type": "boolean", + "required": false } ] }, { - "name": "Add team restrictions of protected branch", + "name": "Delete a repository", "scope": "repos", - "id": "addProtectedBranchTeamRestrictions", - "method": "POST", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + "id": "delete", + "method": "DELETE", + "url": "/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -7269,35 +7626,15 @@ "name": "repo", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "teams parameter", - "enum": null, - "name": "teams", - "type": "string[]", - "required": true } ] }, { - "name": "Remove team restrictions of protected branch", - "scope": "repos", - "id": "removeProtectedBranchTeamRestrictions", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + "name": "List assignees", + "scope": "issues", + "id": "listAssignees", + "method": "GET", + "url": "/repos/{owner}/{repo}/assignees", "parameters": [ { "alias": null, @@ -7323,30 +7660,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "teams parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "teams", - "type": "string[]", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Get users with access to protected branch", - "scope": "repos", - "id": "getUsersWithAccessToProtectedBranch", + "name": "Check assignee", + "scope": "issues", + "id": "checkAssignee", "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "url": "/repos/{owner}/{repo}/assignees/{assignee}", "parameters": [ { "alias": null, @@ -7372,20 +7709,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "assignee parameter", "enum": null, - "name": "branch", + "name": "assignee", "type": "string", "required": true } ] }, { - "name": "Get users with access to protected branch", + "name": "Enable automated security fixes", "scope": "repos", - "id": "listProtectedBranchUserRestrictions", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "id": "enableAutomatedSecurityFixes", + "method": "PUT", + "url": "/repos/{owner}/{repo}/automated-security-fixes", "parameters": [ { "alias": null, @@ -7406,25 +7743,15 @@ "name": "repo", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", - "type": "string", - "required": true } ] }, { - "name": "Get users with access to protected branch", + "name": "Disable automated security fixes", "scope": "repos", - "id": "listUsersWithAccessToProtectedBranch", - "method": "GET", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "id": "disableAutomatedSecurityFixes", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/automated-security-fixes", "parameters": [ { "alias": null, @@ -7445,25 +7772,15 @@ "name": "repo", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "branch parameter", - "enum": null, - "name": "branch", - "type": "string", - "required": true } ] }, { - "name": "Replace user restrictions of protected branch", + "name": "List branches", "scope": "repos", - "id": "replaceProtectedBranchUserRestrictions", - "method": "PUT", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "id": "listBranches", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches", "parameters": [ { "alias": null, @@ -7489,30 +7806,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "branch parameter", + "description": "Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches.", "enum": null, - "name": "branch", - "type": "string", - "required": true + "name": "protected", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "users parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "users", - "type": "string[]", - "required": true + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Add user restrictions of protected branch", + "name": "Get branch", "scope": "repos", - "id": "addProtectedBranchUserRestrictions", - "method": "POST", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "id": "getBranch", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}", "parameters": [ { "alias": null, @@ -7543,25 +7870,15 @@ "name": "branch", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "users parameter", - "enum": null, - "name": "users", - "type": "string[]", - "required": true } ] }, { - "name": "Remove user restrictions of protected branch", + "name": "Get branch protection", "scope": "repos", - "id": "removeProtectedBranchUserRestrictions", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "id": "getBranchProtection", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection", "parameters": [ { "alias": null, @@ -7592,25 +7909,15 @@ "name": "branch", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "users parameter", - "enum": null, - "name": "users", - "type": "string[]", - "required": true } ] }, { - "name": "Create a check run", - "scope": "checks", - "id": "create", - "method": "POST", - "url": "/repos/{owner}/{repo}/check-runs", + "name": "Update branch protection", + "scope": "repos", + "id": "updateBranchProtection", + "method": "PUT", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection", "parameters": [ { "alias": null, @@ -7636,206 +7943,208 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the check. For example, \"code-coverage\".", + "description": "branch parameter", "enum": null, - "name": "name", + "name": "branch", "type": "string", "required": true }, { "alias": null, - "allowNull": false, + "allowNull": true, "deprecated": null, - "description": "The SHA of the commit.", + "description": "Require status checks to pass before merging. Set to `null` to disable.", "enum": null, - "name": "head_sha", - "type": "string", + "name": "required_status_checks", + "type": "object", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The URL of the integrator's site that has the full details of the check.", + "description": "Require branches to be up to date before merging.", "enum": null, - "name": "details_url", - "type": "string", - "required": false + "name": "required_status_checks.strict", + "type": "boolean", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A reference for the run on the integrator's system.", + "description": "The list of status checks to require in order to merge into this branch", "enum": null, - "name": "external_id", - "type": "string", - "required": false + "name": "required_status_checks.contexts", + "type": "string[]", + "required": true }, { "alias": null, - "allowNull": false, + "allowNull": true, "deprecated": null, - "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.", - "enum": ["queued", "in_progress", "completed"], - "name": "status", - "type": "string", - "required": false + "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.", + "enum": null, + "name": "enforce_admins", + "type": "boolean", + "required": true }, { "alias": null, - "allowNull": false, + "allowNull": true, "deprecated": null, - "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.", "enum": null, - "name": "started_at", - "type": "string", - "required": false + "name": "required_pull_request_reviews", + "type": "object", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.", - "enum": [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - "name": "conclusion", - "type": "string", + "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", + "enum": null, + "name": "required_pull_request_reviews.dismissal_restrictions", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "The list of user `login`s with dismissal access", "enum": null, - "name": "completed_at", - "type": "string", + "name": "required_pull_request_reviews.dismissal_restrictions.users", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object) description.", + "description": "The list of team `slug`s with dismissal access", "enum": null, - "name": "output", - "type": "object", + "name": "required_pull_request_reviews.dismissal_restrictions.teams", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the check run.", + "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", "enum": null, - "name": "output.title", - "type": "string", - "required": true + "name": "required_pull_request_reviews.dismiss_stale_reviews", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The summary of the check run. This parameter supports Markdown.", + "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them.", "enum": null, - "name": "output.summary", - "type": "string", - "required": true + "name": "required_pull_request_reviews.require_code_owner_reviews", + "type": "boolean", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The details of the check run. This parameter supports Markdown.", + "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6.", "enum": null, - "name": "output.text", - "type": "string", + "name": "required_pull_request_reviews.required_approving_review_count", + "type": "integer", "required": false }, { "alias": null, - "allowNull": false, + "allowNull": true, "deprecated": null, - "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/v3/checks/runs/#annotations-object) description for details about how to use this parameter.", + "description": "Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable.", "enum": null, - "name": "output.annotations", - "type": "object[]", - "required": false + "name": "restrictions", + "type": "object", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.", + "description": "The list of user `login`s with push access", "enum": null, - "name": "output.annotations[].path", - "type": "string", + "name": "restrictions.users", + "type": "string[]", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The start line of the annotation.", + "description": "The list of team `slug`s with push access", "enum": null, - "name": "output.annotations[].start_line", - "type": "integer", + "name": "restrictions.teams", + "type": "string[]", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The end line of the annotation.", + "description": "The list of app `slug`s with push access", "enum": null, - "name": "output.annotations[].end_line", - "type": "integer", - "required": true + "name": "restrictions.apps", + "type": "string[]", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + "description": "Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see \"[Requiring a linear commit history](https://help.github.com/github/administering-a-repository/requiring-a-linear-commit-history)\" in the GitHub Help documentation.", "enum": null, - "name": "output.annotations[].start_column", - "type": "integer", + "name": "required_linear_history", + "type": "boolean", "required": false }, { "alias": null, - "allowNull": false, + "allowNull": true, "deprecated": null, - "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + "description": "Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.\"", "enum": null, - "name": "output.annotations[].end_column", - "type": "integer", + "name": "allow_force_pushes", + "type": "boolean", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.", - "enum": ["notice", "warning", "failure"], - "name": "output.annotations[].annotation_level", - "type": "string", - "required": true - }, + "description": "Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see \"[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)\" in the GitHub Help documentation.", + "enum": null, + "name": "allow_deletions", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Remove branch protection", + "scope": "repos", + "id": "removeBranchProtection", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.", + "description": "owner parameter", "enum": null, - "name": "output.annotations[].message", + "name": "owner", "type": "string", "required": true }, @@ -7843,39 +8152,48 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The title that represents the annotation. The maximum size is 255 characters.", + "description": "repo parameter", "enum": null, - "name": "output.annotations[].title", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Details about this annotation. The maximum size is 64 KB.", + "description": "branch parameter", "enum": null, - "name": "output.annotations[].raw_details", + "name": "branch", "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Get admin enforcement of protected branch", + "scope": "repos", + "id": "getProtectedBranchAdminEnforcement", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/v3/checks/runs/#images-object) description for details.", + "description": "owner parameter", "enum": null, - "name": "output.images", - "type": "object[]", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The alternative text for the image.", + "description": "repo parameter", "enum": null, - "name": "output.images[].alt", + "name": "repo", "type": "string", "required": true }, @@ -7883,39 +8201,67 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The full URL of the image.", + "description": "branch parameter", "enum": null, - "name": "output.images[].image_url", + "name": "branch", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Add admin enforcement of protected branch", + "scope": "repos", + "id": "addProtectedBranchAdminEnforcement", + "method": "POST", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short image description.", + "description": "owner parameter", "enum": null, - "name": "output.images[].caption", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions).\" To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions).\"", + "description": "repo parameter", "enum": null, - "name": "actions", - "type": "object[]", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + "description": "branch parameter", "enum": null, - "name": "actions[].label", + "name": "branch", + "type": "string", + "required": true + } + ] + }, + { + "name": "Remove admin enforcement of protected branch", + "scope": "repos", + "id": "removeProtectedBranchAdminEnforcement", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", "required": true }, @@ -7923,9 +8269,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A short explanation of what this action would do. The maximum size is 40 characters.", + "description": "repo parameter", "enum": null, - "name": "actions[].description", + "name": "repo", "type": "string", "required": true }, @@ -7933,20 +8279,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.", + "description": "branch parameter", "enum": null, - "name": "actions[].identifier", + "name": "branch", "type": "string", "required": true } ] }, { - "name": "Update a check run", - "scope": "checks", - "id": "update", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}", + "name": "Get pull request review enforcement of protected branch", + "scope": "repos", + "id": "getProtectedBranchPullRequestReviewEnforcement", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "parameters": [ { "alias": null, @@ -7972,116 +8318,127 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "check_run_id parameter", + "description": "branch parameter", "enum": null, - "name": "check_run_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true - }, + } + ] + }, + { + "name": "Update pull request review enforcement of protected branch", + "scope": "repos", + "id": "updateProtectedBranchPullRequestReviewEnforcement", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the check. For example, \"code-coverage\".", + "description": "owner parameter", "enum": null, - "name": "name", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The URL of the integrator's site that has the full details of the check.", + "description": "repo parameter", "enum": null, - "name": "details_url", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A reference for the run on the integrator's system.", + "description": "branch parameter", "enum": null, - "name": "external_id", + "name": "branch", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories.", "enum": null, - "name": "started_at", - "type": "string", + "name": "dismissal_restrictions", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.", - "enum": ["queued", "in_progress", "completed"], - "name": "status", - "type": "string", + "description": "The list of user `login`s with dismissal access", + "enum": null, + "name": "dismissal_restrictions.users", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.", - "enum": [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - "name": "conclusion", - "type": "string", + "description": "The list of team `slug`s with dismissal access", + "enum": null, + "name": "dismissal_restrictions.teams", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit.", "enum": null, - "name": "completed_at", - "type": "string", + "name": "dismiss_stale_reviews", + "type": "boolean", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object-1) description.", + "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed.", "enum": null, - "name": "output", - "type": "object", + "name": "require_code_owner_reviews", + "type": "boolean", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required**.", + "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6.", "enum": null, - "name": "output.title", - "type": "string", + "name": "required_approving_review_count", + "type": "integer", "required": false - }, + } + ] + }, + { + "name": "Remove pull request review enforcement of protected branch", + "scope": "repos", + "id": "removeProtectedBranchPullRequestReviewEnforcement", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Can contain Markdown.", + "description": "owner parameter", "enum": null, - "name": "output.summary", + "name": "owner", "type": "string", "required": true }, @@ -8089,29 +8446,38 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Can contain Markdown.", + "description": "repo parameter", "enum": null, - "name": "output.text", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/v3/checks/runs/#annotations-object-1) description for details.", + "description": "branch parameter", "enum": null, - "name": "output.annotations", - "type": "object[]", - "required": false - }, + "name": "branch", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get required signatures of protected branch", + "scope": "repos", + "id": "getProtectedBranchRequiredSignatures", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.", + "description": "owner parameter", "enum": null, - "name": "output.annotations[].path", + "name": "owner", "type": "string", "required": true }, @@ -8119,59 +8485,77 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The start line of the annotation.", + "description": "repo parameter", "enum": null, - "name": "output.annotations[].start_line", - "type": "integer", + "name": "repo", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The end line of the annotation.", + "description": "branch parameter", "enum": null, - "name": "output.annotations[].end_line", - "type": "integer", + "name": "branch", + "type": "string", "required": true - }, + } + ] + }, + { + "name": "Add required signatures of protected branch", + "scope": "repos", + "id": "addProtectedBranchRequiredSignatures", + "method": "POST", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + "description": "owner parameter", "enum": null, - "name": "output.annotations[].start_column", - "type": "integer", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + "description": "repo parameter", "enum": null, - "name": "output.annotations[].end_column", - "type": "integer", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.", - "enum": ["notice", "warning", "failure"], - "name": "output.annotations[].annotation_level", + "description": "branch parameter", + "enum": null, + "name": "branch", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Remove required signatures of protected branch", + "scope": "repos", + "id": "removeProtectedBranchRequiredSignatures", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.", + "description": "owner parameter", "enum": null, - "name": "output.annotations[].message", + "name": "owner", "type": "string", "required": true }, @@ -8179,39 +8563,77 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The title that represents the annotation. The maximum size is 255 characters.", + "description": "repo parameter", "enum": null, - "name": "output.annotations[].title", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Details about this annotation. The maximum size is 64 KB.", + "description": "branch parameter", "enum": null, - "name": "output.annotations[].raw_details", + "name": "branch", "type": "string", - "required": false + "required": true + } + ] + }, + { + "name": "Get required status checks of protected branch", + "scope": "repos", + "id": "getProtectedBranchRequiredStatusChecks", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/v3/checks/runs/#annotations-object-1) description for details.", + "description": "repo parameter", "enum": null, - "name": "output.images", - "type": "object[]", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The alternative text for the image.", + "description": "branch parameter", "enum": null, - "name": "output.images[].alt", + "name": "branch", + "type": "string", + "required": true + } + ] + }, + { + "name": "Update required status checks of protected branch", + "scope": "repos", + "id": "updateProtectedBranchRequiredStatusChecks", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", "required": true }, @@ -8219,9 +8641,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The full URL of the image.", + "description": "repo parameter", "enum": null, - "name": "output.images[].image_url", + "name": "repo", "type": "string", "required": true }, @@ -8229,29 +8651,48 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A short image description.", + "description": "branch parameter", "enum": null, - "name": "output.images[].caption", + "name": "branch", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions).\"", + "description": "Require branches to be up to date before merging.", "enum": null, - "name": "actions", - "type": "object[]", + "name": "strict", + "type": "boolean", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.", + "description": "The list of status checks to require in order to merge into this branch", "enum": null, - "name": "actions[].label", + "name": "contexts", + "type": "string[]", + "required": false + } + ] + }, + { + "name": "Remove required status checks of protected branch", + "scope": "repos", + "id": "removeProtectedBranchRequiredStatusChecks", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", "required": true }, @@ -8259,9 +8700,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A short explanation of what this action would do. The maximum size is 40 characters.", + "description": "repo parameter", "enum": null, - "name": "actions[].description", + "name": "repo", "type": "string", "required": true }, @@ -8269,20 +8710,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.", + "description": "branch parameter", "enum": null, - "name": "actions[].identifier", + "name": "branch", "type": "string", "required": true } ] }, { - "name": "Get a single check run", - "scope": "checks", - "id": "get", + "name": "List required status checks contexts of protected branch", + "scope": "repos", + "id": "listProtectedBranchRequiredStatusChecksContexts", "method": "GET", - "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "parameters": [ { "alias": null, @@ -8308,20 +8749,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "check_run_id parameter", + "description": "branch parameter", "enum": null, - "name": "check_run_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true } ] }, { - "name": "List annotations for a check run", - "scope": "checks", - "id": "listAnnotations", - "method": "GET", - "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", + "name": "Replace required status checks contexts of protected branch", + "scope": "repos", + "id": "replaceProtectedBranchRequiredStatusChecksContexts", + "method": "PUT", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "parameters": [ { "alias": null, @@ -8347,40 +8788,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "check_run_id parameter", + "description": "branch parameter", "enum": null, - "name": "check_run_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "contexts parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "contexts", + "type": "string[]", + "required": true } ] }, { - "name": "Create a check suite", - "scope": "checks", - "id": "createSuite", + "name": "Add required status checks contexts of protected branch", + "scope": "repos", + "id": "addProtectedBranchRequiredStatusChecksContexts", "method": "POST", - "url": "/repos/{owner}/{repo}/check-suites", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "parameters": [ { "alias": null, @@ -8406,20 +8837,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The sha of the head commit.", + "description": "branch parameter", "enum": null, - "name": "head_sha", + "name": "branch", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "contexts parameter", + "enum": null, + "name": "contexts", + "type": "string[]", + "required": true } ] }, { - "name": "Set preferences for check suites on a repository", - "scope": "checks", - "id": "setSuitesPreferences", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/check-suites/preferences", + "name": "Remove required status checks contexts of protected branch", + "scope": "repos", + "id": "removeProtectedBranchRequiredStatusChecksContexts", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "parameters": [ { "alias": null, @@ -8445,40 +8886,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details.", - "enum": null, - "name": "auto_trigger_checks", - "type": "object[]", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The `id` of the GitHub App.", + "description": "branch parameter", "enum": null, - "name": "auto_trigger_checks[].app_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + "description": "contexts parameter", "enum": null, - "name": "auto_trigger_checks[].setting", - "type": "boolean", + "name": "contexts", + "type": "string[]", "required": true } ] }, { - "name": "Get a single check suite", - "scope": "checks", - "id": "getSuite", + "name": "Get restrictions of protected branch", + "scope": "repos", + "id": "getProtectedBranchRestrictions", "method": "GET", - "url": "/repos/{owner}/{repo}/check-suites/{check_suite_id}", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "parameters": [ { "alias": null, @@ -8504,20 +8935,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "check_suite_id parameter", + "description": "branch parameter", "enum": null, - "name": "check_suite_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true } ] }, { - "name": "List check runs in a check suite", - "scope": "checks", - "id": "listForSuite", - "method": "GET", - "url": "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", + "name": "Remove restrictions of protected branch", + "scope": "repos", + "id": "removeProtectedBranchRestrictions", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "parameters": [ { "alias": null, @@ -8543,70 +8974,59 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "check_suite_id parameter", + "description": "branch parameter", "enum": null, - "name": "check_suite_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get apps with access to protected branch", + "scope": "repos", + "id": "getAppsWithAccessToProtectedBranch", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns check runs with the specified `name`.", + "description": "owner parameter", "enum": null, - "name": "check_name", + "name": "owner", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.", - "enum": ["queued", "in_progress", "completed"], - "name": "status", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.", - "enum": ["latest", "all"], - "name": "filter", - "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "repo parameter", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "branch parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "branch", + "type": "string", + "required": true } ] }, { - "name": "Rerequest check suite", - "scope": "checks", - "id": "rerequestSuite", - "method": "POST", - "url": "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", + "name": "Get apps with access to protected branch", + "scope": "repos", + "id": "listAppsWithAccessToProtectedBranch", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "parameters": [ { "alias": null, @@ -8632,20 +9052,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "check_suite_id parameter", + "description": "branch parameter", "enum": null, - "name": "check_suite_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true } ] }, { - "name": "List collaborators", + "name": "Replace app restrictions of protected branch", "scope": "repos", - "id": "listCollaborators", - "method": "GET", - "url": "/repos/{owner}/{repo}/collaborators", + "id": "replaceProtectedBranchAppRestrictions", + "method": "PUT", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "parameters": [ { "alias": null, @@ -8671,40 +9091,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.", - "enum": ["outside", "direct", "all"], - "name": "affiliation", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", + "description": "branch parameter", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "branch", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "apps parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "apps", + "type": "string[]", + "required": true } ] }, { - "name": "Check if a user is a collaborator", + "name": "Add app restrictions of protected branch", "scope": "repos", - "id": "checkCollaborator", - "method": "GET", - "url": "/repos/{owner}/{repo}/collaborators/{username}", + "id": "addProtectedBranchAppRestrictions", + "method": "POST", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "parameters": [ { "alias": null, @@ -8730,20 +9140,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "branch parameter", "enum": null, - "name": "username", + "name": "branch", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "apps parameter", + "enum": null, + "name": "apps", + "type": "string[]", + "required": true } ] }, { - "name": "Add user as a collaborator", + "name": "Remove app restrictions of protected branch", "scope": "repos", - "id": "addCollaborator", - "method": "PUT", - "url": "/repos/{owner}/{repo}/collaborators/{username}", + "id": "removeProtectedBranchAppRestrictions", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "parameters": [ { "alias": null, @@ -8769,9 +9189,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "branch parameter", "enum": null, - "name": "username", + "name": "branch", "type": "string", "required": true }, @@ -8779,20 +9199,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository.", - "enum": ["pull", "push", "admin"], - "name": "permission", - "type": "string", - "required": false + "description": "apps parameter", + "enum": null, + "name": "apps", + "type": "string[]", + "required": true } ] }, { - "name": "Remove user as a collaborator", + "name": "Get teams with access to protected branch", "scope": "repos", - "id": "removeCollaborator", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/collaborators/{username}", + "id": "getTeamsWithAccessToProtectedBranch", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "parameters": [ { "alias": null, @@ -8818,20 +9238,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "branch parameter", "enum": null, - "name": "username", + "name": "branch", "type": "string", "required": true } ] }, { - "name": "Review a user's permission level", + "name": "Get teams with access to protected branch", "scope": "repos", - "id": "getCollaboratorPermissionLevel", + "id": "listProtectedBranchTeamRestrictions", "method": "GET", - "url": "/repos/{owner}/{repo}/collaborators/{username}/permission", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "parameters": [ { "alias": null, @@ -8857,20 +9277,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "branch parameter", "enum": null, - "name": "username", + "name": "branch", "type": "string", "required": true } ] }, { - "name": "List commit comments for a repository", + "name": "Get teams with access to protected branch", "scope": "repos", - "id": "listCommitComments", + "id": "listTeamsWithAccessToProtectedBranch", "method": "GET", - "url": "/repos/{owner}/{repo}/comments", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "parameters": [ { "alias": null, @@ -8896,30 +9316,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "branch parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "branch", + "type": "string", + "required": true } ] }, { - "name": "Get a single commit comment", + "name": "Replace team restrictions of protected branch", "scope": "repos", - "id": "getCommitComment", - "method": "GET", - "url": "/repos/{owner}/{repo}/comments/{comment_id}", + "id": "replaceProtectedBranchTeamRestrictions", + "method": "PUT", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "parameters": [ { "alias": null, @@ -8945,20 +9355,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "branch parameter", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "branch", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "teams parameter", + "enum": null, + "name": "teams", + "type": "string[]", "required": true } ] }, { - "name": "Update a commit comment", + "name": "Add team restrictions of protected branch", "scope": "repos", - "id": "updateCommitComment", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/comments/{comment_id}", + "id": "addProtectedBranchTeamRestrictions", + "method": "POST", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "parameters": [ { "alias": null, @@ -8984,30 +9404,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "branch parameter", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "branch", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the comment", + "description": "teams parameter", "enum": null, - "name": "body", - "type": "string", + "name": "teams", + "type": "string[]", "required": true } ] }, { - "name": "Delete a commit comment", + "name": "Remove team restrictions of protected branch", "scope": "repos", - "id": "deleteCommitComment", + "id": "removeProtectedBranchTeamRestrictions", "method": "DELETE", - "url": "/repos/{owner}/{repo}/comments/{comment_id}", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "parameters": [ { "alias": null, @@ -9033,20 +9453,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "branch parameter", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "branch", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "teams parameter", + "enum": null, + "name": "teams", + "type": "string[]", "required": true } ] }, { - "name": "List reactions for a commit comment", - "scope": "reactions", - "id": "listForCommitComment", + "name": "Get users with access to protected branch", + "scope": "repos", + "id": "getUsersWithAccessToProtectedBranch", "method": "GET", - "url": "/repos/{owner}/{repo}/comments/{comment_id}/reactions", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "parameters": [ { "alias": null, @@ -9072,59 +9502,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "branch parameter", "enum": null, - "name": "comment_id", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "name": "branch", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false + "required": true } ] }, { - "name": "Create reaction for a commit comment", - "scope": "reactions", - "id": "createForCommitComment", - "method": "POST", - "url": "/repos/{owner}/{repo}/comments/{comment_id}/reactions", + "name": "Get users with access to protected branch", + "scope": "repos", + "id": "listProtectedBranchUserRestrictions", + "method": "GET", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "parameters": [ { "alias": null, @@ -9150,39 +9541,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "branch parameter", "enum": null, - "name": "comment_id", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "name": "branch", "type": "string", "required": true } ] }, { - "name": "List commits on a repository", + "name": "Get users with access to protected branch", "scope": "repos", - "id": "listCommits", + "id": "listUsersWithAccessToProtectedBranch", "method": "GET", - "url": "/repos/{owner}/{repo}/commits", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "parameters": [ { "alias": null, @@ -9208,80 +9580,69 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).", - "enum": null, - "name": "sha", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Only commits containing this file path will be returned.", + "description": "branch parameter", "enum": null, - "name": "path", + "name": "branch", "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Replace user restrictions of protected branch", + "scope": "repos", + "id": "replaceProtectedBranchUserRestrictions", + "method": "PUT", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "GitHub login or email address by which to filter by commit author.", + "description": "owner parameter", "enum": null, - "name": "author", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "repo parameter", "enum": null, - "name": "since", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "branch parameter", "enum": null, - "name": "until", + "name": "branch", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "users parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "users", + "type": "string[]", + "required": true } ] }, { - "name": "List branches for HEAD commit", + "name": "Add user restrictions of protected branch", "scope": "repos", - "id": "listBranchesForHeadCommit", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", + "id": "addProtectedBranchUserRestrictions", + "method": "POST", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "parameters": [ { "alias": null, @@ -9307,20 +9668,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "commit_sha parameter", + "description": "branch parameter", "enum": null, - "name": "commit_sha", + "name": "branch", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "users parameter", + "enum": null, + "name": "users", + "type": "string[]", + "required": true } ] }, { - "name": "List comments for a single commit", + "name": "Remove user restrictions of protected branch", "scope": "repos", - "id": "listCommentsForCommit", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{commit_sha}/comments", + "id": "removeProtectedBranchUserRestrictions", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "parameters": [ { "alias": null, @@ -9346,9 +9717,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "commit_sha parameter", + "description": "branch parameter", "enum": null, - "name": "commit_sha", + "name": "branch", "type": "string", "required": true }, @@ -9356,40 +9727,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - }, - { - "alias": "commit_sha", - "allowNull": null, - "deprecated": true, - "description": null, + "description": "users parameter", "enum": null, - "name": "ref", - "type": null, - "required": null + "name": "users", + "type": "string[]", + "required": true } ] }, { - "name": "Create a commit comment", - "scope": "repos", - "id": "createCommitComment", + "name": "Create a check run", + "scope": "checks", + "id": "create", "method": "POST", - "url": "/repos/{owner}/{repo}/commits/{commit_sha}/comments", + "url": "/repos/{owner}/{repo}/check-runs", "parameters": [ { "alias": null, @@ -9415,9 +9766,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "commit_sha parameter", + "description": "The name of the check. For example, \"code-coverage\".", "enum": null, - "name": "commit_sha", + "name": "name", "type": "string", "required": true }, @@ -9425,9 +9776,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the comment.", + "description": "The SHA of the commit.", "enum": null, - "name": "body", + "name": "head_sha", "type": "string", "required": true }, @@ -9435,9 +9786,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Relative path of the file to comment on.", + "description": "The URL of the integrator's site that has the full details of the check.", "enum": null, - "name": "path", + "name": "details_url", "type": "string", "required": false }, @@ -9445,107 +9796,76 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Line index in the diff to comment on.", + "description": "A reference for the run on the integrator's system.", "enum": null, - "name": "position", - "type": "integer", + "name": "external_id", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", - "enum": null, - "name": "line", - "type": "integer", + "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.", + "enum": ["queued", "in_progress", "completed"], + "name": "status", + "type": "string", "required": false }, { - "alias": "commit_sha", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "sha", - "type": null, - "required": null - } - ] - }, - { - "name": "List pull requests associated with commit", - "scope": "repos", - "id": "listPullRequestsAssociatedWithCommit", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{commit_sha}/pulls", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", + "name": "started_at", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.", + "enum": [ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required" + ], + "name": "conclusion", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "commit_sha parameter", + "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "commit_sha", + "name": "completed_at", "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object) description.", "enum": null, - "name": "page", - "type": "integer", + "name": "output", + "type": "object", "required": false - } - ] - }, - { - "name": "Get a single commit", - "scope": "repos", - "id": "getCommit", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{ref}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The title of the check run.", "enum": null, - "name": "owner", + "name": "output.title", "type": "string", "required": true }, @@ -9553,9 +9873,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The summary of the check run. This parameter supports Markdown.", "enum": null, - "name": "repo", + "name": "output.summary", "type": "string", "required": true }, @@ -9563,48 +9883,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "The details of the check run. This parameter supports Markdown.", "enum": null, - "name": "ref", + "name": "output.text", "type": "string", - "required": true + "required": false }, { - "alias": "ref", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/v3/checks/runs/#annotations-object) description for details about how to use this parameter.", "enum": null, - "name": "sha", - "type": null, - "required": null + "name": "output.annotations", + "type": "object[]", + "required": false }, - { - "alias": "ref", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "commit_sha", - "type": null, - "required": null - } - ] - }, - { - "name": "List check runs for a specific ref", - "scope": "checks", - "id": "listForRef", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{ref}/check-runs", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.", "enum": null, - "name": "owner", + "name": "output.annotations[].path", "type": "string", "required": true }, @@ -9612,108 +9913,99 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The start line of the annotation.", "enum": null, - "name": "repo", - "type": "string", + "name": "output.annotations[].start_line", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "The end line of the annotation.", "enum": null, - "name": "ref", - "type": "string", + "name": "output.annotations[].end_line", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns check runs with the specified `name`.", + "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", "enum": null, - "name": "check_name", - "type": "string", + "name": "output.annotations[].start_column", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.", - "enum": ["queued", "in_progress", "completed"], - "name": "status", - "type": "string", + "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", + "enum": null, + "name": "output.annotations[].end_column", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.", - "enum": ["latest", "all"], - "name": "filter", + "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.", + "enum": ["notice", "warning", "failure"], + "name": "output.annotations[].annotation_level", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "output.annotations[].message", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The title that represents the annotation. The maximum size is 255 characters.", "enum": null, - "name": "page", - "type": "integer", + "name": "output.annotations[].title", + "type": "string", "required": false - } - ] - }, - { - "name": "List check suites for a specific ref", - "scope": "checks", - "id": "listSuitesForRef", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{ref}/check-suites", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Details about this annotation. The maximum size is 64 KB.", "enum": null, - "name": "owner", + "name": "output.annotations[].raw_details", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/v3/checks/runs/#images-object) description for details.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "output.images", + "type": "object[]", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "The alternative text for the image.", "enum": null, - "name": "ref", + "name": "output.images[].alt", "type": "string", "required": true }, @@ -9721,19 +10013,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Filters check suites by GitHub App `id`.", + "description": "The full URL of the image.", "enum": null, - "name": "app_id", - "type": "integer", - "required": false + "name": "output.images[].image_url", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/).", + "description": "A short image description.", "enum": null, - "name": "check_name", + "name": "output.images[].caption", "type": "string", "required": false }, @@ -9741,38 +10033,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions).\" To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions).\"", "enum": null, - "name": "per_page", - "type": "integer", + "name": "actions", + "type": "object[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Get the combined status for a specific ref", - "scope": "repos", - "id": "getCombinedStatusForRef", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{ref}/status", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.", "enum": null, - "name": "owner", + "name": "actions[].label", "type": "string", "required": true }, @@ -9780,9 +10053,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "A short explanation of what this action would do. The maximum size is 40 characters.", "enum": null, - "name": "repo", + "name": "actions[].description", "type": "string", "required": true }, @@ -9790,20 +10063,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.", "enum": null, - "name": "ref", + "name": "actions[].identifier", "type": "string", "required": true } ] }, { - "name": "List statuses for a specific ref", - "scope": "repos", - "id": "listStatusesForRef", - "method": "GET", - "url": "/repos/{owner}/{repo}/commits/{ref}/statuses", + "name": "Update a check run", + "scope": "checks", + "id": "update", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}", "parameters": [ { "alias": null, @@ -9829,175 +10102,146 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "check_run_id parameter", "enum": null, - "name": "ref", - "type": "string", + "name": "check_run_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "The name of the check. For example, \"code-coverage\".", "enum": null, - "name": "per_page", - "type": "integer", + "name": "name", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The URL of the integrator's site that has the full details of the check.", "enum": null, - "name": "page", - "type": "integer", + "name": "details_url", + "type": "string", "required": false - } - ] - }, - { - "name": "Get the contents of a repository's code of conduct", - "scope": "codesOfConduct", - "id": "getForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/community/code_of_conduct", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "A reference for the run on the integrator's system.", "enum": null, - "name": "owner", + "name": "external_id", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "repo", + "name": "started_at", "type": "string", - "required": true - } - ] - }, - { - "name": "Retrieve community profile metrics", - "scope": "repos", - "id": "retrieveCommunityProfileMetrics", - "method": "GET", - "url": "/repos/{owner}/{repo}/community/profile", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", + "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.", + "enum": ["queued", "in_progress", "completed"], + "name": "status", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`.", + "enum": [ + "success", + "failure", + "neutral", + "cancelled", + "timed_out", + "action_required" + ], + "name": "conclusion", "type": "string", - "required": true - } - ] - }, - { - "name": "Compare two commits", - "scope": "repos", - "id": "compareCommits", - "method": "GET", - "url": "/repos/{owner}/{repo}/compare/{base}...{head}", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "owner", + "name": "completed_at", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object-1) description.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "output", + "type": "object", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "base parameter", + "description": "**Required**.", "enum": null, - "name": "base", + "name": "output.title", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "head parameter", + "description": "Can contain Markdown.", "enum": null, - "name": "head", + "name": "output.summary", "type": "string", "required": true - } - ] - }, - { - "name": "Get contents", - "scope": "repos", - "id": "getContents", - "method": "GET", - "url": "/repos/{owner}/{repo}/contents/{path}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Can contain Markdown.", "enum": null, - "name": "owner", + "name": "output.text", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://developer.github.com/v3/checks/runs/#annotations-object-1) description for details.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "output.annotations", + "type": "object[]", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "path parameter", + "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`.", "enum": null, - "name": "path", + "name": "output.annotations[].path", "type": "string", "required": true }, @@ -10005,58 +10249,49 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)", + "description": "The start line of the annotation.", "enum": null, - "name": "ref", - "type": "string", - "required": false - } - ] - }, - { - "name": "Create or update a file", - "scope": "repos", - "id": "createOrUpdateFile", - "method": "PUT", - "url": "/repos/{owner}/{repo}/contents/{path}", - "parameters": [ + "name": "output.annotations[].start_line", + "type": "integer", + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The end line of the annotation.", "enum": null, - "name": "owner", - "type": "string", + "name": "output.annotations[].end_line", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "output.annotations[].start_column", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "path parameter", + "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values.", "enum": null, - "name": "path", - "type": "string", - "required": true + "name": "output.annotations[].end_column", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The commit message.", - "enum": null, - "name": "message", + "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.", + "enum": ["notice", "warning", "failure"], + "name": "output.annotations[].annotation_level", "type": "string", "required": true }, @@ -10064,9 +10299,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The new file content, using Base64 encoding.", + "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB.", "enum": null, - "name": "content", + "name": "output.annotations[].message", "type": "string", "required": true }, @@ -10074,9 +10309,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.", + "description": "The title that represents the annotation. The maximum size is 255 characters.", "enum": null, - "name": "sha", + "name": "output.annotations[].title", "type": "string", "required": false }, @@ -10084,9 +10319,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The branch name. Default: the repository’s default branch (usually `master`)", + "description": "Details about this annotation. The maximum size is 64 KB.", "enum": null, - "name": "branch", + "name": "output.annotations[].raw_details", "type": "string", "required": false }, @@ -10094,19 +10329,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The person that committed the file. Default: the authenticated user.", + "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/v3/checks/runs/#annotations-object-1) description for details.", "enum": null, - "name": "committer", - "type": "object", + "name": "output.images", + "type": "object[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "The alternative text for the image.", "enum": null, - "name": "committer.name", + "name": "output.images[].alt", "type": "string", "required": true }, @@ -10114,9 +10349,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "The full URL of the image.", "enum": null, - "name": "committer.email", + "name": "output.images[].image_url", "type": "string", "required": true }, @@ -10124,48 +10359,39 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + "description": "A short image description.", "enum": null, - "name": "author", - "type": "object", + "name": "output.images[].caption", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see \"[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions).\"", "enum": null, - "name": "author.name", - "type": "string", - "required": true + "name": "actions", + "type": "object[]", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters.", "enum": null, - "name": "author.email", + "name": "actions[].label", "type": "string", "required": true - } - ] - }, - { - "name": "Create or update a file", - "scope": "repos", - "id": "createFile", - "method": "PUT", - "url": "/repos/{owner}/{repo}/contents/{path}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "A short explanation of what this action would do. The maximum size is 40 characters.", "enum": null, - "name": "owner", + "name": "actions[].description", "type": "string", "required": true }, @@ -10173,19 +10399,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "A reference for the action on the integrator's system. The maximum size is 20 characters.", "enum": null, - "name": "repo", + "name": "actions[].identifier", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get a single check run", + "scope": "checks", + "id": "get", + "method": "GET", + "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "path parameter", + "description": "owner parameter", "enum": null, - "name": "path", + "name": "owner", "type": "string", "required": true }, @@ -10193,9 +10428,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The commit message.", + "description": "repo parameter", "enum": null, - "name": "message", + "name": "repo", "type": "string", "required": true }, @@ -10203,79 +10438,97 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The new file content, using Base64 encoding.", + "description": "check_run_id parameter", "enum": null, - "name": "content", - "type": "string", + "name": "check_run_id", + "type": "integer", "required": true - }, + } + ] + }, + { + "name": "List annotations for a check run", + "scope": "checks", + "id": "listAnnotations", + "method": "GET", + "url": "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.", + "description": "owner parameter", "enum": null, - "name": "sha", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The branch name. Default: the repository’s default branch (usually `master`)", + "description": "repo parameter", "enum": null, - "name": "branch", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The person that committed the file. Default: the authenticated user.", + "description": "check_run_id parameter", "enum": null, - "name": "committer", - "type": "object", - "required": false + "name": "check_run_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "Results per page (max 100)", "enum": null, - "name": "committer.name", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "committer.email", - "type": "string", - "required": true - }, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Create a check suite", + "scope": "checks", + "id": "createSuite", + "method": "POST", + "url": "/repos/{owner}/{repo}/check-suites", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + "description": "owner parameter", "enum": null, - "name": "author", - "type": "object", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "repo parameter", "enum": null, - "name": "author.name", + "name": "repo", "type": "string", "required": true }, @@ -10283,20 +10536,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "The sha of the head commit.", "enum": null, - "name": "author.email", + "name": "head_sha", "type": "string", "required": true } ] }, { - "name": "Create or update a file", - "scope": "repos", - "id": "updateFile", - "method": "PUT", - "url": "/repos/{owner}/{repo}/contents/{path}", + "name": "Set preferences for check suites on a repository", + "scope": "checks", + "id": "setSuitesPreferences", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/check-suites/preferences", "parameters": [ { "alias": null, @@ -10322,19 +10575,48 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "path parameter", + "description": "Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details.", "enum": null, - "name": "path", - "type": "string", + "name": "auto_trigger_checks", + "type": "object[]", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The `id` of the GitHub App.", + "enum": null, + "name": "auto_trigger_checks[].app_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The commit message.", + "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", "enum": null, - "name": "message", + "name": "auto_trigger_checks[].setting", + "type": "boolean", + "required": true + } + ] + }, + { + "name": "Get a single check suite", + "scope": "checks", + "id": "getSuite", + "method": "GET", + "url": "/repos/{owner}/{repo}/check-suites/{check_suite_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", "required": true }, @@ -10342,9 +10624,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The new file content, using Base64 encoding.", + "description": "repo parameter", "enum": null, - "name": "content", + "name": "repo", "type": "string", "required": true }, @@ -10352,90 +10634,109 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.", + "description": "check_suite_id parameter", "enum": null, - "name": "sha", + "name": "check_suite_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "List check runs in a check suite", + "scope": "checks", + "id": "listForSuite", + "method": "GET", + "url": "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The branch name. Default: the repository’s default branch (usually `master`)", + "description": "repo parameter", "enum": null, - "name": "branch", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The person that committed the file. Default: the authenticated user.", + "description": "check_suite_id parameter", "enum": null, - "name": "committer", - "type": "object", - "required": false + "name": "check_suite_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "Returns check runs with the specified `name`.", "enum": null, - "name": "committer.name", + "name": "check_name", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", - "enum": null, - "name": "committer.email", + "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.", + "enum": ["queued", "in_progress", "completed"], + "name": "status", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", - "enum": null, - "name": "author", - "type": "object", + "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.", + "enum": ["latest", "all"], + "name": "filter", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "Results per page (max 100)", "enum": null, - "name": "author.name", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "author.email", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Delete a file", - "scope": "repos", - "id": "deleteFile", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/contents/{path}", + "name": "Rerequest check suite", + "scope": "checks", + "id": "rerequestSuite", + "method": "POST", + "url": "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", "parameters": [ { "alias": null, @@ -10461,19 +10762,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "path parameter", + "description": "check_suite_id parameter", "enum": null, - "name": "path", - "type": "string", + "name": "check_suite_id", + "type": "integer", "required": true - }, + } + ] + }, + { + "name": "List collaborators", + "scope": "repos", + "id": "listCollaborators", + "method": "GET", + "url": "/repos/{owner}/{repo}/collaborators", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The commit message.", + "description": "owner parameter", "enum": null, - "name": "message", + "name": "owner", "type": "string", "required": true }, @@ -10481,9 +10791,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The blob SHA of the file being replaced.", + "description": "repo parameter", "enum": null, - "name": "sha", + "name": "repo", "type": "string", "required": true }, @@ -10491,9 +10801,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The branch name. Default: the repository’s default branch (usually `master`)", - "enum": null, - "name": "branch", + "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.", + "enum": ["outside", "direct", "all"], + "name": "affiliation", "type": "string", "required": false }, @@ -10501,70 +10811,69 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "object containing information about the committer.", + "description": "Results per page (max 100)", "enum": null, - "name": "committer", - "type": "object", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author (or committer) of the commit", + "description": "Page number of the results to fetch.", "enum": null, - "name": "committer.name", - "type": "string", + "name": "page", + "type": "integer", "required": false - }, + } + ] + }, + { + "name": "Check if a user is a collaborator", + "scope": "repos", + "id": "checkCollaborator", + "method": "GET", + "url": "/repos/{owner}/{repo}/collaborators/{username}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author (or committer) of the commit", + "description": "owner parameter", "enum": null, - "name": "committer.email", + "name": "owner", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "object containing information about the author.", - "enum": null, - "name": "author", - "type": "object", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author (or committer) of the commit", + "description": "repo parameter", "enum": null, - "name": "author.name", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author (or committer) of the commit", + "description": "username parameter", "enum": null, - "name": "author.email", + "name": "username", "type": "string", - "required": false + "required": true } ] }, { - "name": "List contributors", + "name": "Add user as a collaborator", "scope": "repos", - "id": "listContributors", - "method": "GET", - "url": "/repos/{owner}/{repo}/contributors", + "id": "addCollaborator", + "method": "PUT", + "url": "/repos/{owner}/{repo}/collaborators/{username}", "parameters": [ { "alias": null, @@ -10590,40 +10899,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Set to `1` or `true` to include anonymous contributors in results.", + "description": "username parameter", "enum": null, - "name": "anon", + "name": "username", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", + "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository.", + "enum": ["pull", "push", "admin"], + "name": "permission", + "type": "string", "required": false } ] }, { - "name": "List deployments", + "name": "Remove user as a collaborator", "scope": "repos", - "id": "listDeployments", - "method": "GET", - "url": "/repos/{owner}/{repo}/deployments", + "id": "removeCollaborator", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/collaborators/{username}", "parameters": [ { "alias": null, @@ -10649,70 +10948,59 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA recorded at creation time.", + "description": "username parameter", "enum": null, - "name": "sha", + "name": "username", "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Review a user's permission level", + "scope": "repos", + "id": "getCollaboratorPermissionLevel", + "method": "GET", + "url": "/repos/{owner}/{repo}/collaborators/{username}/permission", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the ref. This can be a branch, tag, or SHA.", + "description": "owner parameter", "enum": null, - "name": "ref", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`).", + "description": "repo parameter", "enum": null, - "name": "task", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the environment that was deployed to (e.g., `staging` or `production`).", + "description": "username parameter", "enum": null, - "name": "environment", + "name": "username", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false + "required": true } ] }, { - "name": "Create a deployment", + "name": "List commit comments for a repository", "scope": "repos", - "id": "createDeployment", - "method": "POST", - "url": "/repos/{owner}/{repo}/deployments", + "id": "listCommitComments", + "method": "GET", + "url": "/repos/{owner}/{repo}/comments", "parameters": [ { "alias": null, @@ -10738,100 +11026,118 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The ref to deploy. This can be a branch, tag, or SHA.", + "description": "Results per page (max 100)", "enum": null, - "name": "ref", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + "description": "Page number of the results to fetch.", "enum": null, - "name": "task", - "type": "string", + "name": "page", + "type": "integer", "required": false - }, + } + ] + }, + { + "name": "Get a single commit comment", + "scope": "repos", + "id": "getCommitComment", + "method": "GET", + "url": "/repos/{owner}/{repo}/comments/{comment_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + "description": "owner parameter", "enum": null, - "name": "auto_merge", - "type": "boolean", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The [status](https://developer.github.com/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", + "description": "repo parameter", "enum": null, - "name": "required_contexts", - "type": "string[]", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "JSON payload with extra information about the deployment.", + "description": "comment_id parameter", "enum": null, - "name": "payload", - "type": "string", - "required": false - }, + "name": "comment_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Update a commit comment", + "scope": "repos", + "id": "updateCommitComment", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/comments/{comment_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + "description": "owner parameter", "enum": null, - "name": "environment", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Short description of the deployment.", + "description": "repo parameter", "enum": null, - "name": "description", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "description": "comment_id parameter", "enum": null, - "name": "transient_environment", - "type": "boolean", - "required": false + "name": "comment_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "description": "The contents of the comment", "enum": null, - "name": "production_environment", - "type": "boolean", - "required": false + "name": "body", + "type": "string", + "required": true } ] }, { - "name": "Get a single deployment", + "name": "Delete a commit comment", "scope": "repos", - "id": "getDeployment", - "method": "GET", - "url": "/repos/{owner}/{repo}/deployments/{deployment_id}", + "id": "deleteCommitComment", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/comments/{comment_id}", "parameters": [ { "alias": null, @@ -10857,20 +11163,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "deployment_id parameter", + "description": "comment_id parameter", "enum": null, - "name": "deployment_id", + "name": "comment_id", "type": "integer", "required": true } ] }, { - "name": "List deployment statuses", - "scope": "repos", - "id": "listDeploymentStatuses", + "name": "List reactions for a commit comment", + "scope": "reactions", + "id": "listForCommitComment", "method": "GET", - "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + "url": "/repos/{owner}/{repo}/comments/{comment_id}/reactions", "parameters": [ { "alias": null, @@ -10896,12 +11202,31 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "deployment_id parameter", + "description": "comment_id parameter", "enum": null, - "name": "deployment_id", + "name": "comment_id", "type": "integer", "required": true }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", + "required": false + }, { "alias": null, "allowNull": false, @@ -10925,11 +11250,11 @@ ] }, { - "name": "Create a deployment status", - "scope": "repos", - "id": "createDeploymentStatus", + "name": "Create reaction for a commit comment", + "scope": "reactions", + "id": "createForCommitComment", "method": "POST", - "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + "url": "/repos/{owner}/{repo}/comments/{comment_id}/reactions", "parameters": [ { "alias": null, @@ -10955,9 +11280,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "deployment_id parameter", + "description": "comment_id parameter", "enum": null, - "name": "deployment_id", + "name": "comment_id", "type": "integer", "required": true }, @@ -10965,47 +11290,57 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type.", + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment.", "enum": [ - "error", - "failure", - "inactive", - "in_progress", - "queued", - "pending", - "success" + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" ], - "name": "state", + "name": "content", "type": "string", "required": true - }, + } + ] + }, + { + "name": "List commits on a repository", + "scope": "repos", + "id": "listCommits", + "method": "GET", + "url": "/repos/{owner}/{repo}/commits", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", + "description": "owner parameter", "enum": null, - "name": "target_url", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "description": "repo parameter", "enum": null, - "name": "log_url", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the status. The maximum description length is 140 characters.", + "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).", "enum": null, - "name": "description", + "name": "sha", "type": "string", "required": false }, @@ -11013,9 +11348,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type.", - "enum": ["production", "staging", "qa"], - "name": "environment", + "description": "Only commits containing this file path will be returned.", + "enum": null, + "name": "path", "type": "string", "required": false }, @@ -11023,9 +11358,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Sets the URL for accessing your environment. Default: `\"\"` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "description": "GitHub login or email address by which to filter by commit author.", "enum": null, - "name": "environment_url", + "name": "author", "type": "string", "required": false }, @@ -11033,69 +11368,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` \n**Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", - "enum": null, - "name": "auto_inactive", - "type": "boolean", - "required": false - } - ] - }, - { - "name": "Get a single deployment status", - "scope": "repos", - "id": "getDeploymentStatus", - "method": "GET", - "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "owner", + "name": "since", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "repo", + "name": "until", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "deployment_id parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "deployment_id", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "status_id parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "status_id", + "name": "page", "type": "integer", - "required": true + "required": false } ] }, { - "name": "Create a repository dispatch event", + "name": "List branches for HEAD commit", "scope": "repos", - "id": "createDispatchEvent", - "method": "POST", - "url": "/repos/{owner}/{repo}/dispatches", + "id": "listBranchesForHeadCommit", + "method": "GET", + "url": "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "parameters": [ { "alias": null, @@ -11121,20 +11437,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required:** A custom webhook event name.", + "description": "commit_sha parameter", "enum": null, - "name": "event_type", + "name": "commit_sha", "type": "string", - "required": false + "required": true } ] }, { - "name": "List downloads for a repository", + "name": "List comments for a single commit", "scope": "repos", - "id": "listDownloads", + "id": "listCommentsForCommit", "method": "GET", - "url": "/repos/{owner}/{repo}/downloads", + "url": "/repos/{owner}/{repo}/commits/{commit_sha}/comments", "parameters": [ { "alias": null, @@ -11156,6 +11472,16 @@ "type": "string", "required": true }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "commit_sha parameter", + "enum": null, + "name": "commit_sha", + "type": "string", + "required": true + }, { "alias": null, "allowNull": false, @@ -11175,15 +11501,25 @@ "name": "page", "type": "integer", "required": false + }, + { + "alias": "commit_sha", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "ref", + "type": null, + "required": null } ] }, { - "name": "Get a single download", + "name": "Create a commit comment", "scope": "repos", - "id": "getDownload", - "method": "GET", - "url": "/repos/{owner}/{repo}/downloads/{download_id}", + "id": "createCommitComment", + "method": "POST", + "url": "/repos/{owner}/{repo}/commits/{commit_sha}/comments", "parameters": [ { "alias": null, @@ -11209,28 +11545,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "download_id parameter", + "description": "commit_sha parameter", "enum": null, - "name": "download_id", - "type": "integer", + "name": "commit_sha", + "type": "string", "required": true - } - ] - }, - { - "name": "Delete a download", - "scope": "repos", - "id": "deleteDownload", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/downloads/{download_id}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The contents of the comment.", "enum": null, - "name": "owner", + "name": "body", "type": "string", "required": true }, @@ -11238,30 +11565,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Relative path of the file to comment on.", "enum": null, - "name": "repo", + "name": "path", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "download_id parameter", + "description": "Line index in the diff to comment on.", "enum": null, - "name": "download_id", + "name": "position", "type": "integer", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on.", + "enum": null, + "name": "line", + "type": "integer", + "required": false + }, + { + "alias": "commit_sha", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "sha", + "type": null, + "required": null } ] }, { - "name": "List repository events", - "scope": "activity", - "id": "listRepoEvents", + "name": "List pull requests associated with commit", + "scope": "repos", + "id": "listPullRequestsAssociatedWithCommit", "method": "GET", - "url": "/repos/{owner}/{repo}/events", + "url": "/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "parameters": [ { "alias": null, @@ -11283,6 +11630,16 @@ "type": "string", "required": true }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "commit_sha parameter", + "enum": null, + "name": "commit_sha", + "type": "string", + "required": true + }, { "alias": null, "allowNull": false, @@ -11306,11 +11663,11 @@ ] }, { - "name": "List forks", + "name": "Get a single commit", "scope": "repos", - "id": "listForks", + "id": "getCommit", "method": "GET", - "url": "/repos/{owner}/{repo}/forks", + "url": "/repos/{owner}/{repo}/commits/{ref}", "parameters": [ { "alias": null, @@ -11336,40 +11693,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.", - "enum": ["newest", "oldest", "stargazers"], - "name": "sort", + "description": "ref parameter", + "enum": null, + "name": "ref", "type": "string", - "required": false + "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", + "alias": "ref", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "sha", + "type": null, + "required": null }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", + "alias": "ref", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "commit_sha", + "type": null, + "required": null } ] }, { - "name": "Create a fork", - "scope": "repos", - "id": "createFork", - "method": "POST", - "url": "/repos/{owner}/{repo}/forks", + "name": "List check runs for a specific ref", + "scope": "checks", + "id": "listForRef", + "method": "GET", + "url": "/repos/{owner}/{repo}/commits/{ref}/check-runs", "parameters": [ { "alias": null, @@ -11395,28 +11752,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Optional parameter to specify the organization name if forking into an organization.", - "enum": null, - "name": "organization", - "type": "string", - "required": false - } - ] - }, - { - "name": "Create a blob", - "scope": "git", - "id": "createBlob", - "method": "POST", - "url": "/repos/{owner}/{repo}/git/blobs", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "ref parameter", "enum": null, - "name": "owner", + "name": "ref", "type": "string", "required": true }, @@ -11424,79 +11762,60 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Returns check runs with the specified `name`.", "enum": null, - "name": "repo", + "name": "check_name", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The new blob's content.", - "enum": null, - "name": "content", + "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.", + "enum": ["queued", "in_progress", "completed"], + "name": "status", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.", - "enum": null, - "name": "encoding", + "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.", + "enum": ["latest", "all"], + "name": "filter", "type": "string", "required": false - } - ] - }, - { - "name": "Get a blob", - "scope": "git", - "id": "getBlob", - "method": "GET", - "url": "/repos/{owner}/{repo}/git/blobs/{file_sha}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "file_sha parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "file_sha", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Create a commit", - "scope": "git", - "id": "createCommit", - "method": "POST", - "url": "/repos/{owner}/{repo}/git/commits", + "name": "List check suites for a specific ref", + "scope": "checks", + "id": "listSuitesForRef", + "method": "GET", + "url": "/repos/{owner}/{repo}/commits/{ref}/check-suites", "parameters": [ { "alias": null, @@ -11522,19 +11841,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The commit message", - "enum": null, - "name": "message", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The SHA of the tree object this commit points to", + "description": "ref parameter", "enum": null, - "name": "tree", + "name": "ref", "type": "string", "required": true }, @@ -11542,79 +11851,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", - "enum": null, - "name": "parents", - "type": "string[]", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", - "enum": null, - "name": "author", - "type": "object", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The name of the author (or committer) of the commit", - "enum": null, - "name": "author.name", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The email of the author (or committer) of the commit", - "enum": null, - "name": "author.email", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - "enum": null, - "name": "author.date", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", - "enum": null, - "name": "committer", - "type": "object", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The name of the author (or committer) of the commit", + "description": "Filters check suites by GitHub App `id`.", "enum": null, - "name": "committer.name", - "type": "string", + "name": "app_id", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author (or committer) of the commit", + "description": "Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/).", "enum": null, - "name": "committer.email", + "name": "check_name", "type": "string", "required": false }, @@ -11622,30 +11871,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "Results per page (max 100)", "enum": null, - "name": "committer.date", - "type": "string", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "signature", - "type": "string", + "name": "page", + "type": "integer", "required": false } ] }, { - "name": "Get a commit", - "scope": "git", - "id": "getCommit", + "name": "Get the combined status for a specific ref", + "scope": "repos", + "id": "getCombinedStatusForRef", "method": "GET", - "url": "/repos/{owner}/{repo}/git/commits/{commit_sha}", + "url": "/repos/{owner}/{repo}/commits/{ref}/status", "parameters": [ { "alias": null, @@ -11671,20 +11920,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "commit_sha parameter", + "description": "ref parameter", "enum": null, - "name": "commit_sha", + "name": "ref", "type": "string", "required": true } ] }, { - "name": "List matching references", - "scope": "git", - "id": "listMatchingRefs", + "name": "List statuses for a specific ref", + "scope": "repos", + "id": "listStatusesForRef", "method": "GET", - "url": "/repos/{owner}/{repo}/git/matching-refs/{ref}", + "url": "/repos/{owner}/{repo}/commits/{ref}/statuses", "parameters": [ { "alias": null, @@ -11739,11 +11988,11 @@ ] }, { - "name": "Get a single reference", - "scope": "git", - "id": "getRef", + "name": "Get the contents of a repository's code of conduct", + "scope": "codesOfConduct", + "id": "getForRepo", "method": "GET", - "url": "/repos/{owner}/{repo}/git/ref/{ref}", + "url": "/repos/{owner}/{repo}/community/code_of_conduct", "parameters": [ { "alias": null, @@ -11764,25 +12013,44 @@ "name": "repo", "type": "string", "required": true + } + ] + }, + { + "name": "Retrieve community profile metrics", + "scope": "repos", + "id": "retrieveCommunityProfileMetrics", + "method": "GET", + "url": "/repos/{owner}/{repo}/community/profile", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "repo parameter", "enum": null, - "name": "ref", + "name": "repo", "type": "string", "required": true } ] }, { - "name": "Create a reference", - "scope": "git", - "id": "createRef", - "method": "POST", - "url": "/repos/{owner}/{repo}/git/refs", + "name": "Compare two commits", + "scope": "repos", + "id": "compareCommits", + "method": "GET", + "url": "/repos/{owner}/{repo}/compare/{base}...{head}", "parameters": [ { "alias": null, @@ -11808,9 +12076,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.", + "description": "base parameter", "enum": null, - "name": "ref", + "name": "base", "type": "string", "required": true }, @@ -11818,20 +12086,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA1 value for this reference.", + "description": "head parameter", "enum": null, - "name": "sha", + "name": "head", "type": "string", "required": true } ] }, { - "name": "Update a reference", - "scope": "git", - "id": "updateRef", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/git/refs/{ref}", + "name": "Get contents", + "scope": "repos", + "id": "getContents", + "method": "GET", + "url": "/repos/{owner}/{repo}/contents/{path}", "parameters": [ { "alias": null, @@ -11857,9 +12125,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "path parameter", "enum": null, - "name": "ref", + "name": "path", "type": "string", "required": true }, @@ -11867,30 +12135,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA1 value to set this reference to", + "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)", "enum": null, - "name": "sha", + "name": "ref", "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", - "enum": null, - "name": "force", - "type": "boolean", "required": false } ] }, { - "name": "Delete a reference", - "scope": "git", - "id": "deleteRef", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/git/refs/{ref}", + "name": "Create or update a file", + "scope": "repos", + "id": "createOrUpdateFile", + "method": "PUT", + "url": "/repos/{owner}/{repo}/contents/{path}", "parameters": [ { "alias": null, @@ -11916,28 +12174,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "path parameter", "enum": null, - "name": "ref", + "name": "path", "type": "string", "required": true - } - ] - }, - { - "name": "Create a tag object", - "scope": "git", - "id": "createTag", - "method": "POST", - "url": "/repos/{owner}/{repo}/git/tags", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The commit message.", "enum": null, - "name": "owner", + "name": "message", "type": "string", "required": true }, @@ -11945,9 +12194,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The new file content, using Base64 encoding.", "enum": null, - "name": "repo", + "name": "content", "type": "string", "required": true }, @@ -11955,39 +12204,39 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").", + "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.", "enum": null, - "name": "tag", + "name": "sha", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The tag message.", + "description": "The branch name. Default: the repository’s default branch (usually `master`)", "enum": null, - "name": "message", + "name": "branch", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA of the git object this is tagging.", + "description": "The person that committed the file. Default: the authenticated user.", "enum": null, - "name": "object", - "type": "string", - "required": true + "name": "committer", + "type": "object", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.", - "enum": ["commit", "tree", "blob"], - "name": "type", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "enum": null, + "name": "committer.name", "type": "string", "required": true }, @@ -11995,50 +12244,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "An object with information about the individual creating the tag.", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.", "enum": null, - "name": "tagger", - "type": "object", - "required": false + "name": "committer.email", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the author of the tag", + "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", "enum": null, - "name": "tagger.name", - "type": "string", + "name": "author", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The email of the author of the tag", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", "enum": null, - "name": "tagger.email", + "name": "author.name", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.", "enum": null, - "name": "tagger.date", + "name": "author.email", "type": "string", - "required": false + "required": true } ] }, { - "name": "Get a tag", - "scope": "git", - "id": "getTag", - "method": "GET", - "url": "/repos/{owner}/{repo}/git/tags/{tag_sha}", + "name": "Create or update a file", + "scope": "repos", + "id": "createFile", + "method": "PUT", + "url": "/repos/{owner}/{repo}/contents/{path}", "parameters": [ { "alias": null, @@ -12064,28 +12313,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "tag_sha parameter", + "description": "path parameter", "enum": null, - "name": "tag_sha", + "name": "path", "type": "string", "required": true - } - ] - }, - { - "name": "Create a tree", - "scope": "git", - "id": "createTree", - "method": "POST", - "url": "/repos/{owner}/{repo}/git/trees", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The commit message.", "enum": null, - "name": "owner", + "name": "message", "type": "string", "required": true }, @@ -12093,9 +12333,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The new file content, using Base64 encoding.", "enum": null, - "name": "repo", + "name": "content", "type": "string", "required": true }, @@ -12103,19 +12343,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.", + "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.", "enum": null, - "name": "tree", - "type": "object[]", - "required": true + "name": "sha", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The file referenced in the tree.", + "description": "The branch name. Default: the repository’s default branch (usually `master`)", "enum": null, - "name": "tree[].path", + "name": "branch", "type": "string", "required": false }, @@ -12123,60 +12363,70 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", - "enum": ["100644", "100755", "040000", "160000", "120000"], - "name": "tree[].mode", - "type": "string", + "description": "The person that committed the file. Default: the authenticated user.", + "enum": null, + "name": "committer", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `blob`, `tree`, or `commit`.", - "enum": ["blob", "tree", "commit"], - "name": "tree[].type", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", + "enum": null, + "name": "committer.name", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.", "enum": null, - "name": "tree[].sha", + "name": "committer.email", "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + "enum": null, + "name": "author", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", "enum": null, - "name": "tree[].content", + "name": "author.name", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.", "enum": null, - "name": "base_tree", + "name": "author.email", "type": "string", - "required": false + "required": true } ] }, { - "name": "Get a tree", - "scope": "git", - "id": "getTree", - "method": "GET", - "url": "/repos/{owner}/{repo}/git/trees/{tree_sha}", + "name": "Create or update a file", + "scope": "repos", + "id": "updateFile", + "method": "PUT", + "url": "/repos/{owner}/{repo}/contents/{path}", "parameters": [ { "alias": null, @@ -12202,9 +12452,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "tree_sha parameter", + "description": "path parameter", "enum": null, - "name": "tree_sha", + "name": "path", "type": "string", "required": true }, @@ -12212,38 +12462,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "recursive parameter", - "enum": ["1"], - "name": "recursive", - "type": "integer", - "required": false - } - ] - }, - { - "name": "List hooks", - "scope": "repos", - "id": "listHooks", - "method": "GET", - "url": "/repos/{owner}/{repo}/hooks", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", + "description": "The commit message.", "enum": null, - "name": "repo", + "name": "message", "type": "string", "required": true }, @@ -12251,38 +12472,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Create a hook", - "scope": "repos", - "id": "createHook", - "method": "POST", - "url": "/repos/{owner}/{repo}/hooks", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "The new file content, using Base64 encoding.", "enum": null, - "name": "owner", + "name": "content", "type": "string", "required": true }, @@ -12290,19 +12482,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "**Required if you are updating a file**. The blob SHA of the file being replaced.", "enum": null, - "name": "repo", + "name": "sha", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", + "description": "The branch name. Default: the repository’s default branch (usually `master`)", "enum": null, - "name": "name", + "name": "branch", "type": "string", "required": false }, @@ -12310,88 +12502,49 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params).", + "description": "The person that committed the file. Default: the authenticated user.", "enum": null, - "name": "config", + "name": "committer", "type": "object", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The URL to which the payloads will be delivered.", - "enum": null, - "name": "config.url", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", - "enum": null, - "name": "config.content_type", - "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", "enum": null, - "name": "config.secret", + "name": "committer.name", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.", "enum": null, - "name": "config.insecure_ssl", + "name": "committer.email", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for.", + "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", "enum": null, - "name": "events", - "type": "string[]", + "name": "author", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", - "enum": null, - "name": "active", - "type": "boolean", - "required": false - } - ] - }, - { - "name": "Get single hook", - "scope": "repos", - "id": "getHook", - "method": "GET", - "url": "/repos/{owner}/{repo}/hooks/{hook_id}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted.", "enum": null, - "name": "owner", + "name": "author.name", "type": "string", "required": true }, @@ -12399,30 +12552,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted.", "enum": null, - "name": "repo", + "name": "author.email", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "hook_id parameter", - "enum": null, - "name": "hook_id", - "type": "integer", - "required": true } ] }, { - "name": "Edit a hook", + "name": "Delete a file", "scope": "repos", - "id": "updateHook", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/hooks/{hook_id}", + "id": "deleteFile", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/contents/{path}", "parameters": [ { "alias": null, @@ -12448,29 +12591,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "hook_id parameter", + "description": "path parameter", "enum": null, - "name": "hook_id", - "type": "integer", + "name": "path", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params).", + "description": "The commit message.", "enum": null, - "name": "config", - "type": "object", - "required": false + "name": "message", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The URL to which the payloads will be delivered.", + "description": "The blob SHA of the file being replaced.", "enum": null, - "name": "config.url", + "name": "sha", "type": "string", "required": true }, @@ -12478,9 +12621,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + "description": "The branch name. Default: the repository’s default branch (usually `master`)", "enum": null, - "name": "config.content_type", + "name": "branch", "type": "string", "required": false }, @@ -12488,19 +12631,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.", + "description": "object containing information about the committer.", "enum": null, - "name": "config.secret", - "type": "string", + "name": "committer", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**", + "description": "The name of the author (or committer) of the commit", "enum": null, - "name": "config.insecure_ssl", + "name": "committer.name", "type": "string", "required": false }, @@ -12508,50 +12651,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.", + "description": "The email of the author (or committer) of the commit", "enum": null, - "name": "events", - "type": "string[]", + "name": "committer.email", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines a list of events to be added to the list of events that the Hook triggers for.", + "description": "object containing information about the author.", "enum": null, - "name": "add_events", - "type": "string[]", + "name": "author", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.", + "description": "The name of the author (or committer) of the commit", "enum": null, - "name": "remove_events", - "type": "string[]", + "name": "author.name", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + "description": "The email of the author (or committer) of the commit", "enum": null, - "name": "active", - "type": "boolean", + "name": "author.email", + "type": "string", "required": false } ] }, { - "name": "Delete a hook", + "name": "List contributors", "scope": "repos", - "id": "deleteHook", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/hooks/{hook_id}", + "id": "listContributors", + "method": "GET", + "url": "/repos/{owner}/{repo}/contributors", "parameters": [ { "alias": null, @@ -12577,20 +12720,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "hook_id parameter", + "description": "Set to `1` or `true` to include anonymous contributors in results.", "enum": null, - "name": "hook_id", + "name": "anon", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", "type": "integer", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Ping a hook", + "name": "List deployments", "scope": "repos", - "id": "pingHook", - "method": "POST", - "url": "/repos/{owner}/{repo}/hooks/{hook_id}/pings", + "id": "listDeployments", + "method": "GET", + "url": "/repos/{owner}/{repo}/deployments", "parameters": [ { "alias": null, @@ -12616,59 +12779,70 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "hook_id parameter", + "description": "The SHA recorded at creation time.", "enum": null, - "name": "hook_id", - "type": "integer", - "required": true - } - ] - }, - { - "name": "Test a push hook", - "scope": "repos", - "id": "testPushHook", - "method": "POST", - "url": "/repos/{owner}/{repo}/hooks/{hook_id}/tests", - "parameters": [ + "name": "sha", + "type": "string", + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The name of the ref. This can be a branch, tag, or SHA.", "enum": null, - "name": "owner", + "name": "ref", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`).", "enum": null, - "name": "repo", + "name": "task", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "hook_id parameter", + "description": "The name of the environment that was deployed to (e.g., `staging` or `production`).", "enum": null, - "name": "hook_id", + "name": "environment", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", "type": "integer", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Start an import", - "scope": "migrations", - "id": "startImport", - "method": "PUT", - "url": "/repos/{owner}/{repo}/import", + "name": "Create a deployment", + "scope": "repos", + "id": "createDeployment", + "method": "POST", + "url": "/repos/{owner}/{repo}/deployments", "parameters": [ { "alias": null, @@ -12694,9 +12868,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The URL of the originating repository.", + "description": "The ref to deploy. This can be a branch, tag, or SHA.", "enum": null, - "name": "vcs_url", + "name": "ref", "type": "string", "required": true }, @@ -12704,9 +12878,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", - "enum": ["subversion", "git", "mercurial", "tfvc"], - "name": "vcs", + "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + "enum": null, + "name": "task", "type": "string", "required": false }, @@ -12714,69 +12888,80 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "If authentication is required, the username to provide to `vcs_url`.", + "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", "enum": null, - "name": "vcs_username", - "type": "string", + "name": "auto_merge", + "type": "boolean", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "If authentication is required, the password to provide to `vcs_url`.", + "description": "The [status](https://developer.github.com/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts.", "enum": null, - "name": "vcs_password", - "type": "string", + "name": "required_contexts", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "For a tfvc import, the name of the project that is being imported.", + "description": "JSON payload with extra information about the deployment.", "enum": null, - "name": "tfvc_project", + "name": "payload", "type": "string", "required": false - } - ] - }, - { - "name": "Get import progress", - "scope": "migrations", - "id": "getImportProgress", - "method": "GET", - "url": "/repos/{owner}/{repo}/import", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", "enum": null, - "name": "owner", + "name": "environment", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Short description of the deployment.", "enum": null, - "name": "repo", + "name": "description", "type": "string", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "enum": null, + "name": "transient_environment", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "enum": null, + "name": "production_environment", + "type": "boolean", + "required": false } ] }, { - "name": "Update existing import", - "scope": "migrations", - "id": "updateImport", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/import", + "name": "Get a single deployment", + "scope": "repos", + "id": "getDeployment", + "method": "GET", + "url": "/repos/{owner}/{repo}/deployments/{deployment_id}", "parameters": [ { "alias": null, @@ -12802,30 +12987,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The username to provide to the originating repository.", - "enum": null, - "name": "vcs_username", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The password to provide to the originating repository.", + "description": "deployment_id parameter", "enum": null, - "name": "vcs_password", - "type": "string", - "required": false + "name": "deployment_id", + "type": "integer", + "required": true } ] }, { - "name": "Cancel an import", - "scope": "migrations", - "id": "cancelImport", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/import", + "name": "List deployment statuses", + "scope": "repos", + "id": "listDeploymentStatuses", + "method": "GET", + "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "parameters": [ { "alias": null, @@ -12846,54 +13021,45 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "Get commit authors", - "scope": "migrations", - "id": "getCommitAuthors", - "method": "GET", - "url": "/repos/{owner}/{repo}/import/authors", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "deployment_id parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "deployment_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "since", - "type": "string", + "name": "page", + "type": "integer", "required": false } ] }, { - "name": "Map a commit author", - "scope": "migrations", - "id": "mapCommitAuthor", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/import/authors/{author_id}", + "name": "Create a deployment status", + "scope": "repos", + "id": "createDeploymentStatus", + "method": "POST", + "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "parameters": [ { "alias": null, @@ -12919,9 +13085,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "author_id parameter", + "description": "deployment_id parameter", "enum": null, - "name": "author_id", + "name": "deployment_id", "type": "integer", "required": true }, @@ -12929,59 +13095,88 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The new Git author email.", - "enum": null, - "name": "email", + "description": "The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type.", + "enum": [ + "error", + "failure", + "inactive", + "in_progress", + "queued", + "pending", + "success" + ], + "name": "state", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The new Git author name.", + "description": "The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`.", "enum": null, - "name": "name", + "name": "target_url", "type": "string", "required": false - } - ] - }, - { - "name": "Get large files", - "scope": "migrations", - "id": "getLargeFiles", - "method": "GET", - "url": "/repos/{owner}/{repo}/import/large_files", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `\"\"` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", "enum": null, - "name": "owner", + "name": "log_url", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "A short description of the status. The maximum description length is 140 characters.", "enum": null, - "name": "repo", + "name": "description", "type": "string", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type.", + "enum": ["production", "staging", "qa"], + "name": "environment", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sets the URL for accessing your environment. Default: `\"\"` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "enum": null, + "name": "environment_url", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` \n**Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type.", + "enum": null, + "name": "auto_inactive", + "type": "boolean", + "required": false } ] }, { - "name": "Set Git LFS preference", - "scope": "migrations", - "id": "setLfsPreference", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/import/lfs", + "name": "Get a single deployment status", + "scope": "repos", + "id": "getDeploymentStatus", + "method": "GET", + "url": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "parameters": [ { "alias": null, @@ -13007,20 +13202,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import).", - "enum": ["opt_in", "opt_out"], - "name": "use_lfs", - "type": "string", + "description": "deployment_id parameter", + "enum": null, + "name": "deployment_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "status_id parameter", + "enum": null, + "name": "status_id", + "type": "integer", "required": true } ] }, { - "name": "Get a repository installation", - "scope": "apps", - "id": "getRepoInstallation", - "method": "GET", - "url": "/repos/{owner}/{repo}/installation", + "name": "Create a repository dispatch event", + "scope": "repos", + "id": "createDispatchEvent", + "method": "POST", + "url": "/repos/{owner}/{repo}/dispatches", "parameters": [ { "alias": null, @@ -13041,15 +13246,35 @@ "name": "repo", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "**Required:** A custom webhook event name.", + "enum": null, + "name": "event_type", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "JSON payload with extra information about the webhook event that your action or worklow may use.", + "enum": null, + "name": "client_payload", + "type": "object", + "required": false } ] }, { - "name": "Get a repository installation", - "scope": "apps", - "id": "findRepoInstallation", + "name": "List downloads for a repository", + "scope": "repos", + "id": "listDownloads", "method": "GET", - "url": "/repos/{owner}/{repo}/installation", + "url": "/repos/{owner}/{repo}/downloads", "parameters": [ { "alias": null, @@ -13070,15 +13295,35 @@ "name": "repo", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Get interaction restrictions for a repository", - "scope": "interactions", - "id": "getRestrictionsForRepo", + "name": "Get a single download", + "scope": "repos", + "id": "getDownload", "method": "GET", - "url": "/repos/{owner}/{repo}/interaction-limits", + "url": "/repos/{owner}/{repo}/downloads/{download_id}", "parameters": [ { "alias": null, @@ -13099,15 +13344,25 @@ "name": "repo", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "download_id parameter", + "enum": null, + "name": "download_id", + "type": "integer", + "required": true } ] }, { - "name": "Add or update interaction restrictions for a repository", - "scope": "interactions", - "id": "addOrUpdateRestrictionsForRepo", - "method": "PUT", - "url": "/repos/{owner}/{repo}/interaction-limits", + "name": "Delete a download", + "scope": "repos", + "id": "deleteDownload", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/downloads/{download_id}", "parameters": [ { "alias": null, @@ -13133,20 +13388,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`.", - "enum": ["existing_users", "contributors_only", "collaborators_only"], - "name": "limit", - "type": "string", + "description": "download_id parameter", + "enum": null, + "name": "download_id", + "type": "integer", "required": true } ] }, { - "name": "Remove interaction restrictions for a repository", - "scope": "interactions", - "id": "removeRestrictionsForRepo", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/interaction-limits", + "name": "List repository events", + "scope": "activity", + "id": "listRepoEvents", + "method": "GET", + "url": "/repos/{owner}/{repo}/events", "parameters": [ { "alias": null, @@ -13167,15 +13422,35 @@ "name": "repo", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "List invitations for a repository", + "name": "List forks", "scope": "repos", - "id": "listInvitations", + "id": "listForks", "method": "GET", - "url": "/repos/{owner}/{repo}/invitations", + "url": "/repos/{owner}/{repo}/forks", "parameters": [ { "alias": null, @@ -13197,6 +13472,16 @@ "type": "string", "required": true }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.", + "enum": ["newest", "oldest", "stargazers"], + "name": "sort", + "type": "string", + "required": false + }, { "alias": null, "allowNull": false, @@ -13220,11 +13505,11 @@ ] }, { - "name": "Delete a repository invitation", + "name": "Create a fork", "scope": "repos", - "id": "deleteInvitation", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/invitations/{invitation_id}", + "id": "createFork", + "method": "POST", + "url": "/repos/{owner}/{repo}/forks", "parameters": [ { "alias": null, @@ -13250,20 +13535,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "invitation_id parameter", + "description": "Optional parameter to specify the organization name if forking into an organization.", "enum": null, - "name": "invitation_id", - "type": "integer", - "required": true + "name": "organization", + "type": "string", + "required": false } ] }, { - "name": "Update a repository invitation", - "scope": "repos", - "id": "updateInvitation", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/invitations/{invitation_id}", + "name": "Create a blob", + "scope": "git", + "id": "createBlob", + "method": "POST", + "url": "/repos/{owner}/{repo}/git/blobs", "parameters": [ { "alias": null, @@ -13289,30 +13574,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "invitation_id parameter", + "description": "The new blob's content.", "enum": null, - "name": "invitation_id", - "type": "integer", + "name": "content", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.", - "enum": ["read", "write", "admin"], - "name": "permissions", + "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.", + "enum": null, + "name": "encoding", "type": "string", "required": false } ] }, { - "name": "List issues for a repository", - "scope": "issues", - "id": "listForRepo", + "name": "Get a blob", + "scope": "git", + "id": "getBlob", "method": "GET", - "url": "/repos/{owner}/{repo}/issues", + "url": "/repos/{owner}/{repo}/git/blobs/{file_sha}", "parameters": [ { "alias": null, @@ -13338,168 +13623,128 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned.", + "description": "file_sha parameter", "enum": null, - "name": "milestone", + "name": "file_sha", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.", - "enum": ["open", "closed", "all"], - "name": "state", - "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Create a commit", + "scope": "git", + "id": "createCommit", + "method": "POST", + "url": "/repos/{owner}/{repo}/git/commits", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user.", + "description": "owner parameter", "enum": null, - "name": "assignee", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The user that created the issue.", + "description": "repo parameter", "enum": null, - "name": "creator", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A user that's mentioned in the issue.", + "description": "The commit message", "enum": null, - "name": "mentioned", + "name": "message", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A list of comma separated label names. Example: `bug,ui,@high`", + "description": "The SHA of the tree object this commit points to", "enum": null, - "name": "labels", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "What to sort results by. Can be either `created`, `updated`, `comments`.", - "enum": ["created", "updated", "comments"], - "name": "sort", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The direction of the sort. Can be either `asc` or `desc`.", - "enum": ["asc", "desc"], - "name": "direction", + "name": "tree", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.", "enum": null, - "name": "since", - "type": "string", - "required": false + "name": "parents", + "type": "string[]", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.", "enum": null, - "name": "per_page", - "type": "integer", + "name": "author", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Create an issue", - "scope": "issues", - "id": "create", - "method": "POST", - "url": "/repos/{owner}/{repo}/issues", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "The name of the author (or committer) of the commit", "enum": null, - "name": "owner", + "name": "author.name", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The email of the author (or committer) of the commit", "enum": null, - "name": "repo", + "name": "author.email", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the issue.", + "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "title", + "name": "author.date", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the issue.", + "description": "Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details.", "enum": null, - "name": "body", - "type": "string", + "name": "committer", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", + "description": "The name of the author (or committer) of the commit", "enum": null, - "name": "assignee", + "name": "committer.name", "type": "string", "required": false }, @@ -13507,40 +13752,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._", + "description": "The email of the author (or committer) of the commit", "enum": null, - "name": "milestone", - "type": "integer", + "name": "committer.email", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "labels", - "type": "string[]", + "name": "committer.date", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + "description": "The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.", "enum": null, - "name": "assignees", - "type": "string[]", + "name": "signature", + "type": "string", "required": false } ] }, { - "name": "List comments in a repository", - "scope": "issues", - "id": "listCommentsForRepo", + "name": "Get a commit", + "scope": "git", + "id": "getCommit", "method": "GET", - "url": "/repos/{owner}/{repo}/issues/comments", + "url": "/repos/{owner}/{repo}/git/commits/{commit_sha}", "parameters": [ { "alias": null, @@ -13566,40 +13811,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `created` or `updated`.", - "enum": ["created", "updated"], - "name": "sort", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Either `asc` or `desc`. Ignored without the `sort` parameter.", - "enum": ["asc", "desc"], - "name": "direction", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "commit_sha parameter", "enum": null, - "name": "since", + "name": "commit_sha", "type": "string", - "required": false + "required": true } ] }, { - "name": "Get a single comment", - "scope": "issues", - "id": "getComment", + "name": "List matching references", + "scope": "git", + "id": "listMatchingRefs", "method": "GET", - "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}", + "url": "/repos/{owner}/{repo}/git/matching-refs/{ref}", "parameters": [ { "alias": null, @@ -13625,10 +13850,10 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "ref parameter", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "ref", + "type": "string", "required": true }, { @@ -13654,11 +13879,11 @@ ] }, { - "name": "Edit a comment", - "scope": "issues", - "id": "updateComment", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}", + "name": "Get a single reference", + "scope": "git", + "id": "getRef", + "method": "GET", + "url": "/repos/{owner}/{repo}/git/ref/{ref}", "parameters": [ { "alias": null, @@ -13684,30 +13909,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", - "enum": null, - "name": "comment_id", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The contents of the comment.", + "description": "ref parameter", "enum": null, - "name": "body", + "name": "ref", "type": "string", "required": true } ] }, { - "name": "Delete a comment", - "scope": "issues", - "id": "deleteComment", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}", + "name": "Create a reference", + "scope": "git", + "id": "createRef", + "method": "POST", + "url": "/repos/{owner}/{repo}/git/refs", "parameters": [ { "alias": null, @@ -13733,20 +13948,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "ref", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The SHA1 value for this reference.", + "enum": null, + "name": "sha", + "type": "string", "required": true } ] }, { - "name": "List reactions for an issue comment", - "scope": "reactions", - "id": "listForIssueComment", - "method": "GET", - "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + "name": "Update a reference", + "scope": "git", + "id": "updateRef", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/git/refs/{ref}", "parameters": [ { "alias": null, @@ -13772,59 +13997,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "ref parameter", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "ref", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", + "description": "The SHA1 value to set this reference to", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "sha", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work.", "enum": null, - "name": "page", - "type": "integer", + "name": "force", + "type": "boolean", "required": false } ] }, { - "name": "Create reaction for an issue comment", - "scope": "reactions", - "id": "createForIssueComment", - "method": "POST", - "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + "name": "Delete a reference", + "scope": "git", + "id": "deleteRef", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/git/refs/{ref}", "parameters": [ { "alias": null, @@ -13850,39 +14056,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "ref parameter", "enum": null, - "name": "comment_id", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "name": "ref", "type": "string", "required": true } ] }, { - "name": "List events for a repository", - "scope": "issues", - "id": "listEventsForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/issues/events", + "name": "Create a tag object", + "scope": "git", + "id": "createTag", + "method": "POST", + "url": "/repos/{owner}/{repo}/git/tags", "parameters": [ { "alias": null, @@ -13908,38 +14095,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "tag", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The tag message.", "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Get a single event", - "scope": "issues", - "id": "getEvent", - "method": "GET", - "url": "/repos/{owner}/{repo}/issues/events/{event_id}", - "parameters": [ + "name": "message", + "type": "string", + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The SHA of the git object this is tagging.", "enum": null, - "name": "owner", + "name": "object", "type": "string", "required": true }, @@ -13947,9 +14125,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.", + "enum": ["commit", "tree", "blob"], + "name": "type", "type": "string", "required": true }, @@ -13957,20 +14135,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "event_id parameter", + "description": "An object with information about the individual creating the tag.", "enum": null, - "name": "event_id", - "type": "integer", - "required": true + "name": "tagger", + "type": "object", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the author of the tag", + "enum": null, + "name": "tagger.name", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The email of the author of the tag", + "enum": null, + "name": "tagger.email", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "enum": null, + "name": "tagger.date", + "type": "string", + "required": false } ] }, { - "name": "Get a single issue", - "scope": "issues", - "id": "get", + "name": "Get a tag", + "scope": "git", + "id": "getTag", "method": "GET", - "url": "/repos/{owner}/{repo}/issues/{issue_number}", + "url": "/repos/{owner}/{repo}/git/tags/{tag_sha}", "parameters": [ { "alias": null, @@ -13996,30 +14204,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "tag_sha parameter", "enum": null, - "name": "issue_number", - "type": "integer", + "name": "tag_sha", + "type": "string", "required": true - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Edit an issue", - "scope": "issues", - "id": "update", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/issues/{issue_number}", + "name": "Create a tree", + "scope": "git", + "id": "createTree", + "method": "POST", + "url": "/repos/{owner}/{repo}/git/trees", "parameters": [ { "alias": null, @@ -14045,29 +14243,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.", "enum": null, - "name": "issue_number", - "type": "integer", + "name": "tree", + "type": "object[]", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the issue.", - "enum": null, - "name": "title", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The contents of the issue.", + "description": "The file referenced in the tree.", "enum": null, - "name": "body", + "name": "tree[].path", "type": "string", "required": false }, @@ -14075,9 +14263,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**", - "enum": null, - "name": "assignee", + "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + "enum": ["100644", "100755", "040000", "160000", "120000"], + "name": "tree[].mode", "type": "string", "required": false }, @@ -14085,9 +14273,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "State of the issue. Either `open` or `closed`.", - "enum": ["open", "closed"], - "name": "state", + "description": "Either `blob`, `tree`, or `commit`.", + "enum": ["blob", "tree", "commit"], + "name": "tree[].type", "type": "string", "required": false }, @@ -14095,50 +14283,40 @@ "alias": null, "allowNull": true, "deprecated": null, - "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._", + "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", "enum": null, - "name": "milestone", - "type": "integer", + "name": "tree[].sha", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._", + "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", "enum": null, - "name": "labels", - "type": "string[]", + "name": "tree[].content", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted.", "enum": null, - "name": "assignees", - "type": "string[]", + "name": "base_tree", + "type": "string", "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Add assignees to an issue", - "scope": "issues", - "id": "addAssignees", - "method": "POST", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/assignees", + "name": "Get a tree", + "scope": "git", + "id": "getTree", + "method": "GET", + "url": "/repos/{owner}/{repo}/git/trees/{tree_sha}", "parameters": [ { "alias": null, @@ -14164,40 +14342,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "tree_sha parameter", "enum": null, - "name": "issue_number", - "type": "integer", + "name": "tree_sha", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", - "enum": null, - "name": "assignees", - "type": "string[]", + "description": "recursive parameter", + "enum": ["1"], + "name": "recursive", + "type": "integer", "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Remove assignees from an issue", - "scope": "issues", - "id": "removeAssignees", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/assignees", + "name": "List hooks", + "scope": "repos", + "id": "listHooks", + "method": "GET", + "url": "/repos/{owner}/{repo}/hooks", "parameters": [ { "alias": null, @@ -14223,40 +14391,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "issue_number", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", + "description": "Page number of the results to fetch.", "enum": null, - "name": "assignees", - "type": "string[]", + "name": "page", + "type": "integer", "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "List comments on an issue", - "scope": "issues", - "id": "listComments", - "method": "GET", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/comments", + "name": "Create a hook", + "scope": "repos", + "id": "createHook", + "method": "POST", + "url": "/repos/{owner}/{repo}/hooks", "parameters": [ { "alias": null, @@ -14282,119 +14440,90 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`.", "enum": null, - "name": "issue_number", - "type": "integer", - "required": true + "name": "name", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params).", "enum": null, - "name": "since", - "type": "string", - "required": false + "name": "config", + "type": "object", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "The URL to which the payloads will be delivered.", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "config.url", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", "enum": null, - "name": "page", - "type": "integer", + "name": "config.content_type", + "type": "string", "required": false }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null - } - ] - }, - { - "name": "Create a comment", - "scope": "issues", - "id": "createComment", - "method": "POST", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/comments", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.", "enum": null, - "name": "owner", + "name": "config.secret", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**", "enum": null, - "name": "repo", + "name": "config.insecure_ssl", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for.", "enum": null, - "name": "issue_number", - "type": "integer", - "required": true + "name": "events", + "type": "string[]", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the comment.", - "enum": null, - "name": "body", - "type": "string", - "required": true - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, + "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "active", + "type": "boolean", + "required": false } ] }, { - "name": "List events for an issue", - "scope": "issues", - "id": "listEvents", + "name": "Get single hook", + "scope": "repos", + "id": "getHook", "method": "GET", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/events", + "url": "/repos/{owner}/{repo}/hooks/{hook_id}", "parameters": [ { "alias": null, @@ -14420,50 +14549,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "hook_id parameter", "enum": null, - "name": "issue_number", + "name": "hook_id", "type": "integer", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "List labels on an issue", - "scope": "issues", - "id": "listLabelsOnIssue", - "method": "GET", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", + "name": "Edit a hook", + "scope": "repos", + "id": "updateHook", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/hooks/{hook_id}", "parameters": [ { "alias": null, @@ -14489,9 +14588,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "hook_id parameter", "enum": null, - "name": "issue_number", + "name": "hook_id", "type": "integer", "required": true }, @@ -14499,99 +14598,100 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params).", "enum": null, - "name": "per_page", - "type": "integer", + "name": "config", + "type": "object", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The URL to which the payloads will be delivered.", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "config.url", + "type": "string", + "required": true }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null - } - ] - }, - { - "name": "Add labels to an issue", - "scope": "issues", - "id": "addLabels", - "method": "POST", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", "enum": null, - "name": "owner", + "name": "config.content_type", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header.", "enum": null, - "name": "repo", + "name": "config.secret", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**", "enum": null, - "name": "issue_number", - "type": "integer", - "required": true + "name": "config.insecure_ssl", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.", + "description": "Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events.", "enum": null, - "name": "labels", + "name": "events", "type": "string[]", - "required": true + "required": false }, { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines a list of events to be added to the list of events that the Hook triggers for.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "add_events", + "type": "string[]", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.", + "enum": null, + "name": "remove_events", + "type": "string[]", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + "enum": null, + "name": "active", + "type": "boolean", + "required": false } ] }, { - "name": "Replace all labels for an issue", - "scope": "issues", - "id": "replaceLabels", - "method": "PUT", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", + "name": "Delete a hook", + "scope": "repos", + "id": "deleteHook", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/hooks/{hook_id}", "parameters": [ { "alias": null, @@ -14617,40 +14717,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "hook_id parameter", "enum": null, - "name": "issue_number", + "name": "hook_id", "type": "integer", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.", - "enum": null, - "name": "labels", - "type": "string[]", - "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Remove all labels from an issue", - "scope": "issues", - "id": "removeLabels", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", + "name": "Ping a hook", + "scope": "repos", + "id": "pingHook", + "method": "POST", + "url": "/repos/{owner}/{repo}/hooks/{hook_id}/pings", "parameters": [ { "alias": null, @@ -14676,30 +14756,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "hook_id parameter", "enum": null, - "name": "issue_number", + "name": "hook_id", "type": "integer", "required": true - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Remove a label from an issue", - "scope": "issues", - "id": "removeLabel", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", + "name": "Test a push hook", + "scope": "repos", + "id": "testPushHook", + "method": "POST", + "url": "/repos/{owner}/{repo}/hooks/{hook_id}/tests", "parameters": [ { "alias": null, @@ -14725,40 +14795,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "hook_id parameter", "enum": null, - "name": "issue_number", + "name": "hook_id", "type": "integer", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "name parameter", - "enum": null, - "name": "name", - "type": "string", - "required": true - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Lock an issue", - "scope": "issues", - "id": "lock", + "name": "Start an import", + "scope": "migrations", + "id": "startImport", "method": "PUT", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/lock", + "url": "/repos/{owner}/{repo}/import", "parameters": [ { "alias": null, @@ -14784,89 +14834,60 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "The URL of the originating repository.", "enum": null, - "name": "issue_number", - "type": "integer", + "name": "vcs_url", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`", - "enum": ["off-topic", "too heated", "resolved", "spam"], - "name": "lock_reason", + "description": "The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + "enum": ["subversion", "git", "mercurial", "tfvc"], + "name": "vcs", "type": "string", "required": false }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null - } - ] - }, - { - "name": "Unlock an issue", - "scope": "issues", - "id": "unlock", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/lock", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "If authentication is required, the username to provide to `vcs_url`.", "enum": null, - "name": "owner", + "name": "vcs_username", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "If authentication is required, the password to provide to `vcs_url`.", "enum": null, - "name": "repo", + "name": "vcs_password", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", - "enum": null, - "name": "issue_number", - "type": "integer", - "required": true - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, + "description": "For a tfvc import, the name of the project that is being imported.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "tfvc_project", + "type": "string", + "required": false } ] }, { - "name": "List reactions for an issue", - "scope": "reactions", - "id": "listForIssue", + "name": "Get import progress", + "scope": "migrations", + "id": "getImportProgress", "method": "GET", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/reactions", + "url": "/repos/{owner}/{repo}/import", "parameters": [ { "alias": null, @@ -14887,74 +14908,64 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Update existing import", + "scope": "migrations", + "id": "updateImport", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/import", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "owner parameter", "enum": null, - "name": "issue_number", - "type": "integer", + "name": "owner", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "The username to provide to the originating repository.", "enum": null, - "name": "per_page", - "type": "integer", + "name": "vcs_username", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The password to provide to the originating repository.", "enum": null, - "name": "page", - "type": "integer", + "name": "vcs_password", + "type": "string", "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Create reaction for an issue", - "scope": "reactions", - "id": "createForIssue", - "method": "POST", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/reactions", + "name": "Cancel an import", + "scope": "migrations", + "id": "cancelImport", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/import", "parameters": [ { "alias": null, @@ -14975,54 +14986,54 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get commit authors", + "scope": "migrations", + "id": "getCommitAuthors", + "method": "GET", + "url": "/repos/{owner}/{repo}/import/authors", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "owner parameter", "enum": null, - "name": "issue_number", - "type": "integer", + "name": "owner", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", "required": true }, { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "since", + "type": "string", + "required": false } ] }, { - "name": "List events for an issue", - "scope": "issues", - "id": "listEventsForTimeline", - "method": "GET", - "url": "/repos/{owner}/{repo}/issues/{issue_number}/timeline", + "name": "Map a commit author", + "scope": "migrations", + "id": "mapCommitAuthor", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/import/authors/{author_id}", "parameters": [ { "alias": null, @@ -15048,9 +15059,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "issue_number parameter", + "description": "author_id parameter", "enum": null, - "name": "issue_number", + "name": "author_id", "type": "integer", "required": true }, @@ -15058,40 +15069,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "The new Git author email.", "enum": null, - "name": "per_page", - "type": "integer", + "name": "email", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The new Git author name.", "enum": null, - "name": "page", - "type": "integer", + "name": "name", + "type": "string", "required": false - }, - { - "alias": "issue_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "List deploy keys", - "scope": "repos", - "id": "listDeployKeys", + "name": "Get large files", + "scope": "migrations", + "id": "getLargeFiles", "method": "GET", - "url": "/repos/{owner}/{repo}/keys", + "url": "/repos/{owner}/{repo}/import/large_files", "parameters": [ { "alias": null, @@ -15112,35 +15113,54 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Set Git LFS preference", + "scope": "migrations", + "id": "setLfsPreference", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/import/lfs", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "owner parameter", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "repo parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import).", + "enum": ["opt_in", "opt_out"], + "name": "use_lfs", + "type": "string", + "required": true } ] }, { - "name": "Add a new deploy key", - "scope": "repos", - "id": "addDeployKey", - "method": "POST", - "url": "/repos/{owner}/{repo}/keys", + "name": "Get a repository installation", + "scope": "apps", + "id": "getRepoInstallation", + "method": "GET", + "url": "/repos/{owner}/{repo}/installation", "parameters": [ { "alias": null, @@ -15161,24 +15181,52 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get a repository installation", + "scope": "apps", + "id": "findRepoInstallation", + "method": "GET", + "url": "/repos/{owner}/{repo}/installation", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "A name for the key.", + "description": "owner parameter", "enum": null, - "name": "title", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the key.", + "description": "repo parameter", "enum": null, - "name": "key", + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get interaction restrictions for a repository", + "scope": "interactions", + "id": "getRestrictionsForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/interaction-limits", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", "required": true }, @@ -15186,20 +15234,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"", + "description": "repo parameter", "enum": null, - "name": "read_only", - "type": "boolean", - "required": false + "name": "repo", + "type": "string", + "required": true } ] }, { - "name": "Get a deploy key", - "scope": "repos", - "id": "getDeployKey", - "method": "GET", - "url": "/repos/{owner}/{repo}/keys/{key_id}", + "name": "Add or update interaction restrictions for a repository", + "scope": "interactions", + "id": "addOrUpdateRestrictionsForRepo", + "method": "PUT", + "url": "/repos/{owner}/{repo}/interaction-limits", "parameters": [ { "alias": null, @@ -15225,20 +15273,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "key_id parameter", - "enum": null, - "name": "key_id", - "type": "integer", + "description": "Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`.", + "enum": ["existing_users", "contributors_only", "collaborators_only"], + "name": "limit", + "type": "string", "required": true } ] }, { - "name": "Remove a deploy key", - "scope": "repos", - "id": "removeDeployKey", + "name": "Remove interaction restrictions for a repository", + "scope": "interactions", + "id": "removeRestrictionsForRepo", "method": "DELETE", - "url": "/repos/{owner}/{repo}/keys/{key_id}", + "url": "/repos/{owner}/{repo}/interaction-limits", "parameters": [ { "alias": null, @@ -15259,25 +15307,15 @@ "name": "repo", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "key_id parameter", - "enum": null, - "name": "key_id", - "type": "integer", - "required": true } ] }, { - "name": "List all labels for this repository", - "scope": "issues", - "id": "listLabelsForRepo", + "name": "List invitations for a repository", + "scope": "repos", + "id": "listInvitations", "method": "GET", - "url": "/repos/{owner}/{repo}/labels", + "url": "/repos/{owner}/{repo}/invitations", "parameters": [ { "alias": null, @@ -15322,11 +15360,11 @@ ] }, { - "name": "Create a label", - "scope": "issues", - "id": "createLabel", - "method": "POST", - "url": "/repos/{owner}/{repo}/labels", + "name": "Delete a repository invitation", + "scope": "repos", + "id": "deleteInvitation", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/invitations/{invitation_id}", "parameters": [ { "alias": null, @@ -15352,40 +15390,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).", - "enum": null, - "name": "name", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + "description": "invitation_id parameter", "enum": null, - "name": "color", - "type": "string", + "name": "invitation_id", + "type": "integer", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "A short description of the label.", - "enum": null, - "name": "description", - "type": "string", - "required": false } ] }, { - "name": "Get a single label", - "scope": "issues", - "id": "getLabel", - "method": "GET", - "url": "/repos/{owner}/{repo}/labels/{name}", + "name": "Update a repository invitation", + "scope": "repos", + "id": "updateInvitation", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/invitations/{invitation_id}", "parameters": [ { "alias": null, @@ -15411,20 +15429,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "name parameter", + "description": "invitation_id parameter", "enum": null, - "name": "name", - "type": "string", + "name": "invitation_id", + "type": "integer", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`.", + "enum": ["read", "write", "admin"], + "name": "permissions", + "type": "string", + "required": false } ] }, { - "name": "Update a label", + "name": "List issues for a repository", "scope": "issues", - "id": "updateLabel", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/labels/{name}", + "id": "listForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/issues", "parameters": [ { "alias": null, @@ -15450,19 +15478,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "name parameter", + "description": "If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned.", "enum": null, - "name": "name", + "name": "milestone", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).", - "enum": null, - "name": "new_name", + "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.", + "enum": ["open", "closed", "all"], + "name": "state", "type": "string", "required": false }, @@ -15470,9 +15498,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", + "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user.", "enum": null, - "name": "color", + "name": "assignee", "type": "string", "required": false }, @@ -15480,117 +15508,90 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the label.", + "description": "The user that created the issue.", "enum": null, - "name": "description", + "name": "creator", "type": "string", "required": false - } - ] - }, - { - "name": "Delete a label", - "scope": "issues", - "id": "deleteLabel", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/labels/{name}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "A user that's mentioned in the issue.", "enum": null, - "name": "owner", + "name": "mentioned", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "A list of comma separated label names. Example: `bug,ui,@high`", "enum": null, - "name": "repo", + "name": "labels", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "name parameter", - "enum": null, - "name": "name", + "description": "What to sort results by. Can be either `created`, `updated`, `comments`.", + "enum": ["created", "updated", "comments"], + "name": "sort", "type": "string", - "required": true - } - ] - }, - { - "name": "List languages", - "scope": "repos", - "id": "listLanguages", - "method": "GET", - "url": "/repos/{owner}/{repo}/languages", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", + "description": "The direction of the sort. Can be either `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "repo", + "name": "since", "type": "string", - "required": true - } - ] - }, - { - "name": "Get the contents of a repository's license", - "scope": "licenses", - "id": "getForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/license", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Perform a merge", - "scope": "repos", - "id": "merge", + "name": "Create an issue", + "scope": "issues", + "id": "create", "method": "POST", - "url": "/repos/{owner}/{repo}/merges", + "url": "/repos/{owner}/{repo}/issues", "parameters": [ { "alias": null, @@ -15616,9 +15617,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the base branch that the head will be merged into.", + "description": "The title of the issue.", "enum": null, - "name": "base", + "name": "title", "type": "string", "required": true }, @@ -15626,30 +15627,60 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The head to merge. This can be a branch name or a commit SHA1.", + "description": "The contents of the issue.", "enum": null, - "name": "head", + "name": "body", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Commit message to use for the merge commit. If omitted, a default message will be used.", + "description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_", "enum": null, - "name": "commit_message", + "name": "assignee", "type": "string", "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._", + "enum": null, + "name": "milestone", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + "enum": null, + "name": "labels", + "type": "string[]", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", + "enum": null, + "name": "assignees", + "type": "string[]", + "required": false } ] }, { - "name": "List milestones for a repository", + "name": "List comments in a repository", "scope": "issues", - "id": "listMilestonesForRepo", + "id": "listCommentsForRepo", "method": "GET", - "url": "/repos/{owner}/{repo}/milestones", + "url": "/repos/{owner}/{repo}/issues/comments", "parameters": [ { "alias": null, @@ -15675,9 +15706,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The state of the milestone. Either `open`, `closed`, or `all`.", - "enum": ["open", "closed", "all"], - "name": "state", + "description": "Either `created` or `updated`.", + "enum": ["created", "updated"], + "name": "sort", "type": "string", "required": false }, @@ -15685,9 +15716,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "What to sort results by. Either `due_on` or `completeness`.", - "enum": ["due_on", "completeness"], - "name": "sort", + "description": "Either `asc` or `desc`. Ignored without the `sort` parameter.", + "enum": ["asc", "desc"], + "name": "direction", "type": "string", "required": false }, @@ -15695,17 +15726,56 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The direction of the sort. Either `asc` or `desc`.", - "enum": ["asc", "desc"], - "name": "direction", + "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "enum": null, + "name": "since", "type": "string", "required": false - }, + } + ] + }, + { + "name": "Get a single comment", + "scope": "issues", + "id": "getComment", + "method": "GET", + "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "comment_id parameter", + "enum": null, + "name": "comment_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", "enum": null, "name": "per_page", "type": "integer", @@ -15724,11 +15794,11 @@ ] }, { - "name": "Create a milestone", + "name": "Edit a comment", "scope": "issues", - "id": "createMilestone", - "method": "POST", - "url": "/repos/{owner}/{repo}/milestones", + "id": "updateComment", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}", "parameters": [ { "alias": null, @@ -15754,50 +15824,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the milestone.", + "description": "comment_id parameter", "enum": null, - "name": "title", - "type": "string", + "name": "comment_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The state of the milestone. Either `open` or `closed`.", - "enum": ["open", "closed"], - "name": "state", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "A description of the milestone.", - "enum": null, - "name": "description", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "The contents of the comment.", "enum": null, - "name": "due_on", + "name": "body", "type": "string", - "required": false + "required": true } ] }, { - "name": "Get a single milestone", + "name": "Delete a comment", "scope": "issues", - "id": "getMilestone", - "method": "GET", - "url": "/repos/{owner}/{repo}/milestones/{milestone_number}", + "id": "deleteComment", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}", "parameters": [ { "alias": null, @@ -15823,30 +15873,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "milestone_number parameter", + "description": "comment_id parameter", "enum": null, - "name": "milestone_number", + "name": "comment_id", "type": "integer", "required": true - }, - { - "alias": "milestone_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Update a milestone", - "scope": "issues", - "id": "updateMilestone", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/milestones/{milestone_number}", + "name": "List reactions for an issue comment", + "scope": "reactions", + "id": "listForIssueComment", + "method": "GET", + "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "parameters": [ { "alias": null, @@ -15872,9 +15912,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "milestone_number parameter", + "description": "comment_id parameter", "enum": null, - "name": "milestone_number", + "name": "comment_id", "type": "integer", "required": true }, @@ -15882,19 +15922,18 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the milestone.", - "enum": null, - "name": "title", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The state of the milestone. Either `open` or `closed`.", - "enum": ["open", "closed"], - "name": "state", + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", "required": false }, @@ -15902,40 +15941,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "A description of the milestone.", + "description": "Results per page (max 100)", "enum": null, - "name": "description", - "type": "string", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "due_on", - "type": "string", + "name": "page", + "type": "integer", "required": false - }, - { - "alias": "milestone_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Delete a milestone", - "scope": "issues", - "id": "deleteMilestone", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/milestones/{milestone_number}", + "name": "Create reaction for an issue comment", + "scope": "reactions", + "id": "createForIssueComment", + "method": "POST", + "url": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "parameters": [ { "alias": null, @@ -15961,30 +15990,39 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "milestone_number parameter", + "description": "comment_id parameter", "enum": null, - "name": "milestone_number", + "name": "comment_id", "type": "integer", "required": true }, { - "alias": "milestone_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", + "required": true } ] }, { - "name": "Get labels for every issue in a milestone", + "name": "List events for a repository", "scope": "issues", - "id": "listLabelsForMilestone", + "id": "listEventsForRepo", "method": "GET", - "url": "/repos/{owner}/{repo}/milestones/{milestone_number}/labels", + "url": "/repos/{owner}/{repo}/issues/events", "parameters": [ { "alias": null, @@ -16006,16 +16044,6 @@ "type": "string", "required": true }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "milestone_number parameter", - "enum": null, - "name": "milestone_number", - "type": "integer", - "required": true - }, { "alias": null, "allowNull": false, @@ -16035,25 +16063,15 @@ "name": "page", "type": "integer", "required": false - }, - { - "alias": "milestone_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "List your notifications in a repository", - "scope": "activity", - "id": "listNotificationsForRepo", + "name": "Get a single event", + "scope": "issues", + "id": "getEvent", "method": "GET", - "url": "/repos/{owner}/{repo}/notifications", + "url": "/repos/{owner}/{repo}/issues/events/{event_id}", "parameters": [ { "alias": null, @@ -16079,70 +16097,69 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "If `true`, show notifications marked as read.", + "description": "event_id parameter", "enum": null, - "name": "all", - "type": "boolean", - "required": false - }, + "name": "event_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Get a single issue", + "scope": "issues", + "id": "get", + "method": "GET", + "url": "/repos/{owner}/{repo}/issues/{issue_number}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "If `true`, only shows notifications in which the user is directly participating or mentioned.", + "description": "owner parameter", "enum": null, - "name": "participating", - "type": "boolean", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "description": "repo parameter", "enum": null, - "name": "since", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", - "enum": null, - "name": "before", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "issue_number parameter", "enum": null, - "name": "per_page", + "name": "issue_number", "type": "integer", - "required": false + "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Mark notifications as read in a repository", - "scope": "activity", - "id": "markNotificationsAsReadForRepo", - "method": "PUT", - "url": "/repos/{owner}/{repo}/notifications", + "name": "Edit an issue", + "scope": "issues", + "id": "update", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/issues/{issue_number}", "parameters": [ { "alias": null, @@ -16168,108 +16185,100 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", + "description": "issue_number parameter", "enum": null, - "name": "last_read_at", - "type": "string", - "required": false - } - ] - }, - { - "name": "Get information about a Pages site", - "scope": "repos", - "id": "getPages", - "method": "GET", - "url": "/repos/{owner}/{repo}/pages", - "parameters": [ + "name": "issue_number", + "type": "integer", + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The title of the issue.", "enum": null, - "name": "owner", + "name": "title", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The contents of the issue.", "enum": null, - "name": "repo", + "name": "body", "type": "string", - "required": true - } - ] - }, - { - "name": "Enable a Pages site", - "scope": "repos", - "id": "enablePagesSite", - "method": "POST", - "url": "/repos/{owner}/{repo}/pages", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**", "enum": null, - "name": "owner", + "name": "assignee", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "State of the issue. Either `open` or `closed`.", + "enum": ["open", "closed"], + "name": "state", "type": "string", - "required": true + "required": false }, { "alias": null, - "allowNull": false, + "allowNull": true, "deprecated": null, - "description": "source parameter", + "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._", "enum": null, - "name": "source", - "type": "object", + "name": "milestone", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The repository branch used to publish your [site's source files](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/). Can be either `master` or `gh-pages`.", - "enum": ["master", "gh-pages"], - "name": "source.branch", - "type": "string", + "description": "Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._", + "enum": null, + "name": "labels", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The repository directory that includes the source files for the Pages site. When `branch` is `master`, you can change `path` to `/docs`. When `branch` is `gh-pages`, you are unable to specify a `path` other than `/`.", + "description": "Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._", "enum": null, - "name": "source.path", - "type": "string", + "name": "assignees", + "type": "string[]", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Disable a Pages site", - "scope": "repos", - "id": "disablePagesSite", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/pages", + "name": "Add assignees to an issue", + "scope": "issues", + "id": "addAssignees", + "method": "POST", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/assignees", "parameters": [ { "alias": null, @@ -16290,15 +16299,45 @@ "name": "repo", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "issue_number parameter", + "enum": null, + "name": "issue_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._", + "enum": null, + "name": "assignees", + "type": "string[]", + "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Update information about a Pages site", - "scope": "repos", - "id": "updateInformationAboutPagesSite", - "method": "PUT", - "url": "/repos/{owner}/{repo}/pages", + "name": "Remove assignees from an issue", + "scope": "issues", + "id": "removeAssignees", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/assignees", "parameters": [ { "alias": null, @@ -16324,30 +16363,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/).\"", + "description": "issue_number parameter", "enum": null, - "name": "cname", - "type": "string", - "required": false + "name": "issue_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`.", - "enum": ["\"gh-pages\"", "\"master\"", "\"master /docs\""], - "name": "source", - "type": "string", + "description": "Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._", + "enum": null, + "name": "assignees", + "type": "string[]", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Request a page build", - "scope": "repos", - "id": "requestPageBuild", - "method": "POST", - "url": "/repos/{owner}/{repo}/pages/builds", + "name": "List comments on an issue", + "scope": "issues", + "id": "listComments", + "method": "GET", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/comments", "parameters": [ { "alias": null, @@ -16368,35 +16417,26 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "List Pages builds", - "scope": "repos", - "id": "listPagesBuilds", - "method": "GET", - "url": "/repos/{owner}/{repo}/pages/builds", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "issue_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "issue_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "repo", + "name": "since", "type": "string", - "required": true + "required": false }, { "alias": null, @@ -16417,15 +16457,25 @@ "name": "page", "type": "integer", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Get latest Pages build", - "scope": "repos", - "id": "getLatestPagesBuild", - "method": "GET", - "url": "/repos/{owner}/{repo}/pages/builds/latest", + "name": "Create a comment", + "scope": "issues", + "id": "createComment", + "method": "POST", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/comments", "parameters": [ { "alias": null, @@ -16446,54 +16496,45 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "Get a specific Pages build", - "scope": "repos", - "id": "getPagesBuild", - "method": "GET", - "url": "/repos/{owner}/{repo}/pages/builds/{build_id}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "issue_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "issue_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The contents of the comment.", "enum": null, - "name": "repo", + "name": "body", "type": "string", "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "build_id parameter", + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "build_id", - "type": "integer", - "required": true + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List repository projects", - "scope": "projects", - "id": "listForRepo", + "name": "List events for an issue", + "scope": "issues", + "id": "listEvents", "method": "GET", - "url": "/repos/{owner}/{repo}/projects", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/events", "parameters": [ { "alias": null, @@ -16519,11 +16560,11 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.", - "enum": ["open", "closed", "all"], - "name": "state", - "type": "string", - "required": false + "description": "issue_number parameter", + "enum": null, + "name": "issue_number", + "type": "integer", + "required": true }, { "alias": null, @@ -16544,15 +16585,25 @@ "name": "page", "type": "integer", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Create a repository project", - "scope": "projects", - "id": "createForRepo", - "method": "POST", - "url": "/repos/{owner}/{repo}/projects", + "name": "List labels on an issue", + "scope": "issues", + "id": "listLabelsOnIssue", + "method": "GET", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", "parameters": [ { "alias": null, @@ -16578,30 +16629,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the project.", + "description": "issue_number parameter", "enum": null, - "name": "name", - "type": "string", + "name": "issue_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The description of the project.", + "description": "Results per page (max 100)", "enum": null, - "name": "body", - "type": "string", + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List pull requests", - "scope": "pulls", - "id": "list", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls", + "name": "Add labels to an issue", + "scope": "issues", + "id": "addLabels", + "method": "POST", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", "parameters": [ { "alias": null, @@ -16627,80 +16698,99 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `open`, `closed`, or `all` to filter by state.", - "enum": ["open", "closed", "all"], - "name": "state", - "type": "string", - "required": false + "description": "issue_number parameter", + "enum": null, + "name": "issue_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`.", + "description": "The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.", "enum": null, - "name": "head", - "type": "string", - "required": false + "name": "labels", + "type": "string[]", + "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Filter pulls by base branch name. Example: `gh-pages`.", + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "base", - "type": "string", - "required": false - }, + "name": "number", + "type": null, + "required": null + } + ] + }, + { + "name": "Replace all labels for an issue", + "scope": "issues", + "id": "replaceLabels", + "method": "PUT", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).", - "enum": ["created", "updated", "popularity", "long-running"], - "name": "sort", + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.", - "enum": ["asc", "desc"], - "name": "direction", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "issue_number parameter", "enum": null, - "name": "per_page", + "name": "issue_number", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.", "enum": null, - "name": "page", - "type": "integer", + "name": "labels", + "type": "string[]", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Create a pull request", - "scope": "pulls", - "id": "create", - "method": "POST", - "url": "/repos/{owner}/{repo}/pulls", + "name": "Remove all labels from an issue", + "scope": "issues", + "id": "removeLabels", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels", "parameters": [ { "alias": null, @@ -16726,19 +16816,38 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the new pull request.", + "description": "issue_number parameter", "enum": null, - "name": "title", - "type": "string", + "name": "issue_number", + "type": "integer", "required": true }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + } + ] + }, + { + "name": "Remove a label from an issue", + "scope": "issues", + "id": "removeLabel", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.", + "description": "owner parameter", "enum": null, - "name": "head", + "name": "owner", "type": "string", "required": true }, @@ -16746,9 +16855,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.", + "description": "repo parameter", "enum": null, - "name": "base", + "name": "repo", "type": "string", "required": true }, @@ -16756,119 +16865,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the pull request.", + "description": "issue_number parameter", "enum": null, - "name": "body", - "type": "string", - "required": false + "name": "issue_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + "description": "name parameter", "enum": null, - "name": "maintainer_can_modify", - "type": "boolean", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.", - "enum": null, - "name": "draft", - "type": "boolean", - "required": false - } - ] - }, - { - "name": "List comments in a repository", - "scope": "pulls", - "id": "listCommentsForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/comments", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "name": "name", "type": "string", "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Can be either `created` or `updated` comments.", - "enum": ["created", "updated"], - "name": "sort", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.", - "enum": ["asc", "desc"], - "name": "direction", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time.", - "enum": null, - "name": "since", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Get a single comment", - "scope": "pulls", - "id": "getComment", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}", + "name": "Lock an issue", + "scope": "issues", + "id": "lock", + "method": "PUT", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/lock", "parameters": [ { "alias": null, @@ -16894,69 +16924,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "issue_number parameter", "enum": null, - "name": "comment_id", + "name": "issue_number", "type": "integer", "required": true - } - ] - }, - { - "name": "Edit a comment", - "scope": "pulls", - "id": "updateComment", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`", + "enum": ["off-topic", "too heated", "resolved", "spam"], + "name": "lock_reason", "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "comment_id parameter", - "enum": null, - "name": "comment_id", - "type": "integer", - "required": true + "required": false }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The text of the reply to the review comment.", + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "body", - "type": "string", - "required": true + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Delete a comment", - "scope": "pulls", - "id": "deleteComment", + "name": "Unlock an issue", + "scope": "issues", + "id": "unlock", "method": "DELETE", - "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/lock", "parameters": [ { "alias": null, @@ -16982,20 +16983,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "issue_number parameter", "enum": null, - "name": "comment_id", + "name": "issue_number", "type": "integer", "required": true + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List reactions for a pull request review comment", + "name": "List reactions for an issue", "scope": "reactions", - "id": "listForPullRequestReviewComment", + "id": "listForIssue", "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/reactions", "parameters": [ { "alias": null, @@ -17021,9 +17032,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "issue_number parameter", "enum": null, - "name": "comment_id", + "name": "issue_number", "type": "integer", "required": true }, @@ -17031,7 +17042,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment.", + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue.", "enum": [ "+1", "-1", @@ -17065,15 +17076,25 @@ "name": "page", "type": "integer", "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Create reaction for a pull request review comment", + "name": "Create reaction for an issue", "scope": "reactions", - "id": "createForPullRequestReviewComment", + "id": "createForIssue", "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/reactions", "parameters": [ { "alias": null, @@ -17099,9 +17120,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "issue_number parameter", "enum": null, - "name": "comment_id", + "name": "issue_number", "type": "integer", "required": true }, @@ -17109,7 +17130,7 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment.", + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue.", "enum": [ "+1", "-1", @@ -17123,15 +17144,25 @@ "name": "content", "type": "string", "required": true + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Get a single pull request", - "scope": "pulls", - "id": "get", + "name": "List events for an issue", + "scope": "issues", + "id": "listEventsForTimeline", "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}", + "url": "/repos/{owner}/{repo}/issues/{issue_number}/timeline", "parameters": [ { "alias": null, @@ -17157,36 +17188,56 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "issue_number parameter", "enum": null, - "name": "pull_number", + "name": "issue_number", "type": "integer", "required": true }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null - } - ] - }, - { - "name": "Update a pull request", - "scope": "pulls", - "id": "update", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + }, + { + "alias": "issue_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + } + ] + }, + { + "name": "List deploy keys", + "scope": "repos", + "id": "listDeployKeys", + "method": "GET", + "url": "/repos/{owner}/{repo}/keys", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", "enum": null, "name": "owner", "type": "string", @@ -17206,49 +17257,58 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "pull_number", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The title of the pull request.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "title", - "type": "string", + "name": "page", + "type": "integer", "required": false - }, + } + ] + }, + { + "name": "Add a new deploy key", + "scope": "repos", + "id": "addDeployKey", + "method": "POST", + "url": "/repos/{owner}/{repo}/keys", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The contents of the pull request.", + "description": "owner parameter", "enum": null, - "name": "body", + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "State of this Pull Request. Either `open` or `closed`.", - "enum": ["open", "closed"], - "name": "state", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", + "description": "A name for the key.", "enum": null, - "name": "base", + "name": "title", "type": "string", "required": false }, @@ -17256,30 +17316,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", + "description": "The contents of the key.", "enum": null, - "name": "maintainer_can_modify", - "type": "boolean", - "required": false + "name": "key", + "type": "string", + "required": true }, { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see \"[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)\" and \"[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/).\"", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "read_only", + "type": "boolean", + "required": false } ] }, { - "name": "List comments on a pull request", - "scope": "pulls", - "id": "listComments", + "name": "Get a deploy key", + "scope": "repos", + "id": "getDeployKey", "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments", + "url": "/repos/{owner}/{repo}/keys/{key_id}", "parameters": [ { "alias": null, @@ -17305,41 +17365,79 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "key_id parameter", "enum": null, - "name": "pull_number", + "name": "key_id", "type": "integer", "required": true + } + ] + }, + { + "name": "Remove a deploy key", + "scope": "repos", + "id": "removeDeployKey", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/keys/{key_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be either `created` or `updated` comments.", - "enum": ["created", "updated"], - "name": "sort", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.", - "enum": ["asc", "desc"], - "name": "direction", + "description": "key_id parameter", + "enum": null, + "name": "key_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "List all labels for this repository", + "scope": "issues", + "id": "listLabelsForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/labels", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time.", + "description": "repo parameter", "enum": null, - "name": "since", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, @@ -17360,25 +17458,15 @@ "name": "page", "type": "integer", "required": false - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Create a comment", - "scope": "pulls", - "id": "createComment", + "name": "Create a label", + "scope": "issues", + "id": "createLabel", "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments", + "url": "/repos/{owner}/{repo}/labels", "parameters": [ { "alias": null, @@ -17404,19 +17492,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).", "enum": null, - "name": "pull_number", - "type": "integer", + "name": "name", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The text of the review comment.", + "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", "enum": null, - "name": "body", + "name": "color", "type": "string", "required": true }, @@ -17424,19 +17512,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.", + "description": "A short description of the label.", "enum": null, - "name": "commit_id", + "name": "description", "type": "string", - "required": true - }, + "required": false + } + ] + }, + { + "name": "Get a single label", + "scope": "issues", + "id": "getLabel", + "method": "GET", + "url": "/repos/{owner}/{repo}/labels/{name}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The relative path to the file that necessitates a comment.", + "description": "owner parameter", "enum": null, - "name": "path", + "name": "owner", "type": "string", "required": true }, @@ -17444,80 +17541,99 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.", + "description": "repo parameter", "enum": null, - "name": "position", - "type": "integer", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.", - "enum": ["LEFT", "RIGHT"], - "name": "side", + "description": "name parameter", + "enum": null, + "name": "name", "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Update a label", + "scope": "issues", + "id": "updateLabel", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/labels/{name}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", + "description": "owner parameter", "enum": null, - "name": "line", - "type": "integer", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.", + "description": "repo parameter", "enum": null, - "name": "start_line", - "type": "integer", - "required": false + "name": "repo", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.", - "enum": ["LEFT", "RIGHT", "side"], - "name": "start_side", + "description": "name parameter", + "enum": null, + "name": "name", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png \":strawberry:\"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/).", + "enum": null, + "name": "new_name", "type": "string", "required": false }, { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "color", + "type": "string", + "required": false }, { "alias": null, - "allowNull": null, - "deprecated": true, - "description": "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", + "allowNull": false, + "deprecated": null, + "description": "A short description of the label.", "enum": null, - "name": "in_reply_to", - "type": "integer", - "required": null + "name": "description", + "type": "string", + "required": false } ] }, { - "name": "Create a comment", - "scope": "pulls", - "id": "createCommentReply", - "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments", + "name": "Delete a label", + "scope": "issues", + "id": "deleteLabel", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/labels/{name}", "parameters": [ { "alias": null, @@ -17543,29 +17659,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The text of the review comment.", + "description": "name parameter", "enum": null, - "name": "body", + "name": "name", "type": "string", "required": true - }, + } + ] + }, + { + "name": "List languages", + "scope": "repos", + "id": "listLanguages", + "method": "GET", + "url": "/repos/{owner}/{repo}/languages", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.", + "description": "owner parameter", "enum": null, - "name": "commit_id", + "name": "owner", "type": "string", "required": true }, @@ -17573,90 +17688,49 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The relative path to the file that necessitates a comment.", + "description": "repo parameter", "enum": null, - "name": "path", + "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get the contents of a repository's license", + "scope": "licenses", + "id": "getForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/license", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.", + "description": "owner parameter", "enum": null, - "name": "position", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "**Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.", - "enum": ["LEFT", "RIGHT"], - "name": "side", + "name": "owner", "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "**Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", - "enum": null, - "name": "line", - "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.", + "description": "repo parameter", "enum": null, - "name": "start_line", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.", - "enum": ["LEFT", "RIGHT", "side"], - "name": "start_side", + "name": "repo", "type": "string", - "required": false - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null - }, - { - "alias": null, - "allowNull": null, - "deprecated": true, - "description": "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", - "enum": null, - "name": "in_reply_to", - "type": "integer", - "required": null + "required": true } ] }, { - "name": "Create a review comment reply", - "scope": "pulls", - "id": "createReviewCommentReply", + "name": "Perform a merge", + "scope": "repos", + "id": "merge", "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", + "url": "/repos/{owner}/{repo}/merges", "parameters": [ { "alias": null, @@ -17682,40 +17756,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "The name of the base branch that the head will be merged into.", "enum": null, - "name": "pull_number", - "type": "integer", + "name": "base", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_id parameter", + "description": "The head to merge. This can be a branch name or a commit SHA1.", "enum": null, - "name": "comment_id", - "type": "integer", + "name": "head", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The text of the review comment.", + "description": "Commit message to use for the merge commit. If omitted, a default message will be used.", "enum": null, - "name": "body", + "name": "commit_message", "type": "string", - "required": true + "required": false } ] }, { - "name": "List commits on a pull request", - "scope": "pulls", - "id": "listCommits", + "name": "List milestones for a repository", + "scope": "issues", + "id": "listMilestonesForRepo", "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/commits", + "url": "/repos/{owner}/{repo}/milestones", "parameters": [ { "alias": null, @@ -17741,11 +17815,31 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true + "description": "The state of the milestone. Either `open`, `closed`, or `all`.", + "enum": ["open", "closed", "all"], + "name": "state", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "What to sort results by. Either `due_on` or `completeness`.", + "enum": ["due_on", "completeness"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The direction of the sort. Either `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", + "type": "string", + "required": false }, { "alias": null, @@ -17766,25 +17860,15 @@ "name": "page", "type": "integer", "required": false - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "List pull requests files", - "scope": "pulls", - "id": "listFiles", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/files", + "name": "Create a milestone", + "scope": "issues", + "id": "createMilestone", + "method": "POST", + "url": "/repos/{owner}/{repo}/milestones", "parameters": [ { "alias": null, @@ -17810,50 +17894,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "The title of the milestone.", "enum": null, - "name": "pull_number", - "type": "integer", + "name": "title", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", + "description": "The state of the milestone. Either `open` or `closed`.", + "enum": ["open", "closed"], + "name": "state", + "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "A description of the milestone.", "enum": null, - "name": "page", - "type": "integer", + "name": "description", + "type": "string", "required": false }, { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "due_on", + "type": "string", + "required": false } ] }, { - "name": "Get if a pull request has been merged", - "scope": "pulls", - "id": "checkIfMerged", + "name": "Get a single milestone", + "scope": "issues", + "id": "getMilestone", "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/merge", + "url": "/repos/{owner}/{repo}/milestones/{milestone_number}", "parameters": [ { "alias": null, @@ -17879,14 +17963,14 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "milestone_number parameter", "enum": null, - "name": "pull_number", + "name": "milestone_number", "type": "integer", "required": true }, { - "alias": "pull_number", + "alias": "milestone_number", "allowNull": null, "deprecated": true, "description": null, @@ -17898,11 +17982,11 @@ ] }, { - "name": "Merge a pull request (Merge Button)", - "scope": "pulls", - "id": "merge", - "method": "PUT", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/merge", + "name": "Update a milestone", + "scope": "issues", + "id": "updateMilestone", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/milestones/{milestone_number}", "parameters": [ { "alias": null, @@ -17928,9 +18012,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "milestone_number parameter", "enum": null, - "name": "pull_number", + "name": "milestone_number", "type": "integer", "required": true }, @@ -17938,9 +18022,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Title for the automatic commit message.", + "description": "The title of the milestone.", "enum": null, - "name": "commit_title", + "name": "title", "type": "string", "required": false }, @@ -17948,9 +18032,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Extra detail to append to automatic commit message.", - "enum": null, - "name": "commit_message", + "description": "The state of the milestone. Either `open` or `closed`.", + "enum": ["open", "closed"], + "name": "state", "type": "string", "required": false }, @@ -17958,9 +18042,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "SHA that pull request head must match to allow merge.", + "description": "A description of the milestone.", "enum": null, - "name": "sha", + "name": "description", "type": "string", "required": false }, @@ -17968,14 +18052,14 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.", - "enum": ["merge", "squash", "rebase"], - "name": "merge_method", + "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "enum": null, + "name": "due_on", "type": "string", "required": false }, { - "alias": "pull_number", + "alias": "milestone_number", "allowNull": null, "deprecated": true, "description": null, @@ -17987,11 +18071,11 @@ ] }, { - "name": "List review requests", - "scope": "pulls", - "id": "listReviewRequests", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + "name": "Delete a milestone", + "scope": "issues", + "id": "deleteMilestone", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/milestones/{milestone_number}", "parameters": [ { "alias": null, @@ -18017,34 +18101,14 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "milestone_number parameter", "enum": null, - "name": "pull_number", + "name": "milestone_number", "type": "integer", "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Results per page (max 100)", - "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - }, - { - "alias": "pull_number", + "alias": "milestone_number", "allowNull": null, "deprecated": true, "description": null, @@ -18056,11 +18120,11 @@ ] }, { - "name": "Create a review request", - "scope": "pulls", - "id": "createReviewRequest", - "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + "name": "Get labels for every issue in a milestone", + "scope": "issues", + "id": "listLabelsForMilestone", + "method": "GET", + "url": "/repos/{owner}/{repo}/milestones/{milestone_number}/labels", "parameters": [ { "alias": null, @@ -18086,9 +18150,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "milestone_number parameter", "enum": null, - "name": "pull_number", + "name": "milestone_number", "type": "integer", "required": true }, @@ -18096,24 +18160,24 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "An array of user `login`s that will be requested.", + "description": "Results per page (max 100)", "enum": null, - "name": "reviewers", - "type": "string[]", + "name": "per_page", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "An array of team `slug`s that will be requested.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "team_reviewers", - "type": "string[]", + "name": "page", + "type": "integer", "required": false }, { - "alias": "pull_number", + "alias": "milestone_number", "allowNull": null, "deprecated": true, "description": null, @@ -18125,11 +18189,11 @@ ] }, { - "name": "Delete a review request", - "scope": "pulls", - "id": "deleteReviewRequest", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + "name": "List your notifications in a repository", + "scope": "activity", + "id": "listNotificationsForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/notifications", "parameters": [ { "alias": null, @@ -18155,80 +18219,41 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "An array of user `login`s that will be removed.", + "description": "If `true`, show notifications marked as read.", "enum": null, - "name": "reviewers", - "type": "string[]", + "name": "all", + "type": "boolean", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "An array of team `slug`s that will be removed.", + "description": "If `true`, only shows notifications in which the user is directly participating or mentioned.", "enum": null, - "name": "team_reviewers", - "type": "string[]", + "name": "participating", + "type": "boolean", "required": false }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null - } - ] - }, - { - "name": "List reviews on a pull request", - "scope": "pulls", - "id": "listReviews", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "owner", + "name": "since", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", "enum": null, - "name": "repo", + "name": "before", "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true + "required": false }, { "alias": null, @@ -18249,25 +18274,15 @@ "name": "page", "type": "integer", "required": false - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Create a pull request review", - "scope": "pulls", - "id": "createReview", - "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews", + "name": "Mark notifications as read in a repository", + "scope": "activity", + "id": "markNotificationsAsReadForRepo", + "method": "PUT", + "url": "/repos/{owner}/{repo}/notifications", "parameters": [ { "alias": null, @@ -18293,59 +18308,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", + "description": "Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp.", "enum": null, - "name": "commit_id", + "name": "last_read_at", "type": "string", "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", - "enum": null, - "name": "body", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.", - "enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - "name": "event", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Use the following table to specify the location, destination, and contents of the draft review comment.", - "enum": null, - "name": "comments", - "type": "object[]", - "required": false - }, + } + ] + }, + { + "name": "Get information about a Pages site", + "scope": "repos", + "id": "getPages", + "method": "GET", + "url": "/repos/{owner}/{repo}/pages", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The relative path to the file that necessitates a review comment.", + "description": "owner parameter", "enum": null, - "name": "comments[].path", + "name": "owner", "type": "string", "required": true }, @@ -18353,40 +18337,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.", - "enum": null, - "name": "comments[].position", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Text of the review comment.", + "description": "repo parameter", "enum": null, - "name": "comments[].body", + "name": "repo", "type": "string", "required": true - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Get a single review", - "scope": "pulls", - "id": "getReview", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + "name": "Enable a Pages site", + "scope": "repos", + "id": "enablePagesSite", + "method": "POST", + "url": "/repos/{owner}/{repo}/pages", "parameters": [ { "alias": null, @@ -18412,40 +18376,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "source parameter", "enum": null, - "name": "pull_number", - "type": "integer", - "required": true + "name": "source", + "type": "object", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "review_id parameter", - "enum": null, - "name": "review_id", - "type": "integer", - "required": true + "description": "The repository branch used to publish your [site's source files](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/). Can be either `master` or `gh-pages`.", + "enum": ["master", "gh-pages"], + "name": "source.branch", + "type": "string", + "required": false }, { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The repository directory that includes the source files for the Pages site. When `branch` is `master`, you can change `path` to `/docs`. When `branch` is `gh-pages`, you are unable to specify a `path` other than `/`.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "source.path", + "type": "string", + "required": false } ] }, { - "name": "Delete a pending review", - "scope": "pulls", - "id": "deletePendingReview", + "name": "Disable a Pages site", + "scope": "repos", + "id": "disablePagesSite", "method": "DELETE", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + "url": "/repos/{owner}/{repo}/pages", "parameters": [ { "alias": null, @@ -18466,45 +18430,15 @@ "name": "repo", "type": "string", "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "review_id parameter", - "enum": null, - "name": "review_id", - "type": "integer", - "required": true - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Update a pull request review", - "scope": "pulls", - "id": "updateReview", + "name": "Update information about a Pages site", + "scope": "repos", + "id": "updateInformationAboutPagesSite", "method": "PUT", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + "url": "/repos/{owner}/{repo}/pages", "parameters": [ { "alias": null, @@ -18530,50 +18464,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "review_id parameter", + "description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/).\"", "enum": null, - "name": "review_id", - "type": "integer", - "required": true + "name": "cname", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The body text of the pull request review.", - "enum": null, - "name": "body", + "description": "Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `\"gh-pages\"`, `\"master\"`, and `\"master /docs\"`.", + "enum": ["\"gh-pages\"", "\"master\"", "\"master /docs\""], + "name": "source", "type": "string", - "required": true - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null + "required": false } ] }, { - "name": "Get comments for a single review", - "scope": "pulls", - "id": "getCommentsForReview", - "method": "GET", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", + "name": "Request a page build", + "scope": "repos", + "id": "requestPageBuild", + "method": "POST", + "url": "/repos/{owner}/{repo}/pages/builds", "parameters": [ { "alias": null, @@ -18594,25 +18508,34 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "List Pages builds", + "scope": "repos", + "id": "listPagesBuilds", + "method": "GET", + "url": "/repos/{owner}/{repo}/pages/builds", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "owner parameter", "enum": null, - "name": "pull_number", - "type": "integer", + "name": "owner", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "review_id parameter", + "description": "repo parameter", "enum": null, - "name": "review_id", - "type": "integer", + "name": "repo", + "type": "string", "required": true }, { @@ -18634,25 +18557,15 @@ "name": "page", "type": "integer", "required": false - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Dismiss a pull request review", - "scope": "pulls", - "id": "dismissReview", - "method": "PUT", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", + "name": "Get latest Pages build", + "scope": "repos", + "id": "getLatestPagesBuild", + "method": "GET", + "url": "/repos/{owner}/{repo}/pages/builds/latest", "parameters": [ { "alias": null, @@ -18673,55 +18586,54 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get a specific Pages build", + "scope": "repos", + "id": "getPagesBuild", + "method": "GET", + "url": "/repos/{owner}/{repo}/pages/builds/{build_id}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "owner parameter", "enum": null, - "name": "pull_number", - "type": "integer", + "name": "owner", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "review_id parameter", + "description": "repo parameter", "enum": null, - "name": "review_id", - "type": "integer", + "name": "repo", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The message for the pull request review dismissal", + "description": "build_id parameter", "enum": null, - "name": "message", - "type": "string", + "name": "build_id", + "type": "integer", "required": true - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "number", - "type": null, - "required": null } ] }, { - "name": "Submit a pull request review", - "scope": "pulls", - "id": "submitReview", - "method": "POST", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", + "name": "List repository projects", + "scope": "projects", + "id": "listForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/projects", "parameters": [ { "alias": null, @@ -18747,60 +18659,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", - "enum": null, - "name": "pull_number", - "type": "integer", - "required": true + "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.", + "enum": ["open", "closed", "all"], + "name": "state", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "review_id parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "review_id", + "name": "per_page", "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The body text of the pull request review", - "enum": null, - "name": "body", - "type": "string", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.", - "enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - "name": "event", - "type": "string", - "required": true - }, - { - "alias": "pull_number", - "allowNull": null, - "deprecated": true, - "description": null, + "description": "Page number of the results to fetch.", "enum": null, - "name": "number", - "type": null, - "required": null + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Update a pull request branch", - "scope": "pulls", - "id": "updateBranch", - "method": "PUT", - "url": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", + "name": "Create a repository project", + "scope": "projects", + "id": "createForRepo", + "method": "POST", + "url": "/repos/{owner}/{repo}/projects", "parameters": [ { "alias": null, @@ -18826,30 +18718,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "pull_number parameter", + "description": "The name of the project.", "enum": null, - "name": "pull_number", - "type": "integer", + "name": "name", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", + "description": "The description of the project.", "enum": null, - "name": "expected_head_sha", + "name": "body", "type": "string", "required": false } ] }, { - "name": "Get the README", - "scope": "repos", - "id": "getReadme", + "name": "List pull requests", + "scope": "pulls", + "id": "list", "method": "GET", - "url": "/repos/{owner}/{repo}/readme", + "url": "/repos/{owner}/{repo}/pulls", "parameters": [ { "alias": null, @@ -18875,40 +18767,51 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)", - "enum": null, - "name": "ref", + "description": "Either `open`, `closed`, or `all` to filter by state.", + "enum": ["open", "closed", "all"], + "name": "state", "type": "string", "required": false - } - ] - }, - { - "name": "List releases for a repository", - "scope": "repos", - "id": "listReleases", - "method": "GET", - "url": "/repos/{owner}/{repo}/releases", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`.", "enum": null, - "name": "owner", + "name": "head", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Filter pulls by base branch name. Example: `gh-pages`.", "enum": null, - "name": "repo", + "name": "base", "type": "string", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month).", + "enum": ["created", "updated", "popularity", "long-running"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.", + "enum": ["asc", "desc"], + "name": "direction", + "type": "string", + "required": false }, { "alias": null, @@ -18933,11 +18836,11 @@ ] }, { - "name": "Create a release", - "scope": "repos", - "id": "createRelease", + "name": "Create a pull request", + "scope": "pulls", + "id": "create", "method": "POST", - "url": "/repos/{owner}/{repo}/releases", + "url": "/repos/{owner}/{repo}/pulls", "parameters": [ { "alias": null, @@ -18963,9 +18866,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the tag.", + "description": "The title of the new pull request.", "enum": null, - "name": "tag_name", + "name": "title", "type": "string", "required": true }, @@ -18973,27 +18876,27 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).", + "description": "The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`.", "enum": null, - "name": "target_commitish", + "name": "head", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the release.", + "description": "The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.", "enum": null, - "name": "name", + "name": "base", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Text describing the contents of the tag.", + "description": "The contents of the pull request.", "enum": null, "name": "body", "type": "string", @@ -19003,9 +18906,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "`true` to create a draft (unpublished) release, `false` to create a published one.", + "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", "enum": null, - "name": "draft", + "name": "maintainer_can_modify", "type": "boolean", "required": false }, @@ -19013,20 +18916,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + "description": "Indicates whether the pull request is a draft. See \"[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)\" in the GitHub Help documentation to learn more.", "enum": null, - "name": "prerelease", + "name": "draft", "type": "boolean", "required": false } ] }, { - "name": "Get a single release asset", - "scope": "repos", - "id": "getReleaseAsset", + "name": "List comments in a repository", + "scope": "pulls", + "id": "listCommentsForRepo", "method": "GET", - "url": "/repos/{owner}/{repo}/releases/assets/{asset_id}", + "url": "/repos/{owner}/{repo}/pulls/comments", "parameters": [ { "alias": null, @@ -19052,20 +18955,60 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "asset_id parameter", + "description": "Can be either `created` or `updated` comments.", + "enum": ["created", "updated"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.", + "enum": ["asc", "desc"], + "name": "direction", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time.", "enum": null, - "name": "asset_id", + "name": "since", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", "type": "integer", - "required": true + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Edit a release asset", - "scope": "repos", - "id": "updateReleaseAsset", - "method": "PATCH", - "url": "/repos/{owner}/{repo}/releases/assets/{asset_id}", + "name": "Get a single comment", + "scope": "pulls", + "id": "getComment", + "method": "GET", + "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}", "parameters": [ { "alias": null, @@ -19091,40 +19034,69 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "asset_id parameter", + "description": "comment_id parameter", "enum": null, - "name": "asset_id", + "name": "comment_id", "type": "integer", "required": true + } + ] + }, + { + "name": "Edit a comment", + "scope": "pulls", + "id": "updateComment", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The file name of the asset.", + "description": "repo parameter", "enum": null, - "name": "name", + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "An alternate short description of the asset. Used in place of the filename.", + "description": "comment_id parameter", "enum": null, - "name": "label", + "name": "comment_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The text of the reply to the review comment.", + "enum": null, + "name": "body", "type": "string", - "required": false + "required": true } ] }, { - "name": "Delete a release asset", - "scope": "repos", - "id": "deleteReleaseAsset", + "name": "Delete a comment", + "scope": "pulls", + "id": "deleteComment", "method": "DELETE", - "url": "/repos/{owner}/{repo}/releases/assets/{asset_id}", + "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}", "parameters": [ { "alias": null, @@ -19150,20 +19122,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "asset_id parameter", + "description": "comment_id parameter", "enum": null, - "name": "asset_id", + "name": "comment_id", "type": "integer", "required": true } ] }, { - "name": "Get the latest release", - "scope": "repos", - "id": "getLatestRelease", + "name": "List reactions for a pull request review comment", + "scope": "reactions", + "id": "listForPullRequestReviewComment", "method": "GET", - "url": "/repos/{owner}/{repo}/releases/latest", + "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "parameters": [ { "alias": null, @@ -19184,15 +19156,64 @@ "name": "repo", "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "comment_id parameter", + "enum": null, + "name": "comment_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Get a release by tag name", - "scope": "repos", - "id": "getReleaseByTag", - "method": "GET", - "url": "/repos/{owner}/{repo}/releases/tags/{tag}", + "name": "Create reaction for a pull request review comment", + "scope": "reactions", + "id": "createForPullRequestReviewComment", + "method": "POST", + "url": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "parameters": [ { "alias": null, @@ -19218,20 +19239,39 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "tag parameter", + "description": "comment_id parameter", "enum": null, - "name": "tag", + "name": "comment_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", "required": true } ] }, { - "name": "Get a single release", - "scope": "repos", - "id": "getRelease", + "name": "Get a single pull request", + "scope": "pulls", + "id": "get", "method": "GET", - "url": "/repos/{owner}/{repo}/releases/{release_id}", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}", "parameters": [ { "alias": null, @@ -19257,20 +19297,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "release_id parameter", + "description": "pull_number parameter", "enum": null, - "name": "release_id", + "name": "pull_number", "type": "integer", "required": true + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Edit a release", - "scope": "repos", - "id": "updateRelease", + "name": "Update a pull request", + "scope": "pulls", + "id": "update", "method": "PATCH", - "url": "/repos/{owner}/{repo}/releases/{release_id}", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}", "parameters": [ { "alias": null, @@ -19296,9 +19346,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "release_id parameter", + "description": "pull_number parameter", "enum": null, - "name": "release_id", + "name": "pull_number", "type": "integer", "required": true }, @@ -19306,9 +19356,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the tag.", + "description": "The title of the pull request.", "enum": null, - "name": "tag_name", + "name": "title", "type": "string", "required": false }, @@ -19316,9 +19366,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).", + "description": "The contents of the pull request.", "enum": null, - "name": "target_commitish", + "name": "body", "type": "string", "required": false }, @@ -19326,9 +19376,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the release.", - "enum": null, - "name": "name", + "description": "State of this Pull Request. Either `open` or `closed`.", + "enum": ["open", "closed"], + "name": "state", "type": "string", "required": false }, @@ -19336,9 +19386,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Text describing the contents of the tag.", + "description": "The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository.", "enum": null, - "name": "body", + "name": "base", "type": "string", "required": false }, @@ -19346,30 +19396,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "`true` makes the release a draft, and `false` publishes the release.", + "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request.", "enum": null, - "name": "draft", + "name": "maintainer_can_modify", "type": "boolean", "required": false }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "prerelease", - "type": "boolean", - "required": false + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Delete a release", - "scope": "repos", - "id": "deleteRelease", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/releases/{release_id}", + "name": "List comments on a pull request", + "scope": "pulls", + "id": "listComments", + "method": "GET", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments", "parameters": [ { "alias": null, @@ -19395,50 +19445,41 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "release_id parameter", + "description": "pull_number parameter", "enum": null, - "name": "release_id", + "name": "pull_number", "type": "integer", "required": true - } - ] - }, - { - "name": "List assets for a release", - "scope": "repos", - "id": "listAssetsForRelease", - "method": "GET", - "url": "/repos/{owner}/{repo}/releases/{release_id}/assets", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", + "description": "Can be either `created` or `updated` comments.", + "enum": ["created", "updated"], + "name": "sort", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.", + "enum": ["asc", "desc"], + "name": "direction", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "release_id parameter", + "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time.", "enum": null, - "name": "release_id", - "type": "integer", - "required": true + "name": "since", + "type": "string", + "required": false }, { "alias": null, @@ -19459,15 +19500,25 @@ "name": "page", "type": "integer", "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List Stargazers", - "scope": "activity", - "id": "listStargazersForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/stargazers", + "name": "Create a comment", + "scope": "pulls", + "id": "createComment", + "method": "POST", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments", "parameters": [ { "alias": null, @@ -19493,38 +19544,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "pull_number parameter", "enum": null, - "name": "per_page", + "name": "pull_number", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The text of the review comment.", "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Get the number of additions and deletions per week", - "scope": "repos", - "id": "getCodeFrequencyStats", - "method": "GET", - "url": "/repos/{owner}/{repo}/stats/code_frequency", - "parameters": [ + "name": "body", + "type": "string", + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.", "enum": null, - "name": "owner", + "name": "commit_id", "type": "string", "required": true }, @@ -19532,78 +19574,90 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The relative path to the file that necessitates a comment.", "enum": null, - "name": "repo", + "name": "path", "type": "string", "required": true - } - ] - }, - { - "name": "Get the last year of commit activity data", - "scope": "repos", - "id": "getCommitActivityStats", - "method": "GET", - "url": "/repos/{owner}/{repo}/stats/commit_activity", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "**Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "position", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", - "enum": null, - "name": "repo", + "description": "**Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.", + "enum": ["LEFT", "RIGHT"], + "name": "side", "type": "string", - "required": true - } - ] - }, - { - "name": "Get contributors list with additions, deletions, and commit counts", - "scope": "repos", - "id": "getContributorsStats", - "method": "GET", - "url": "/repos/{owner}/{repo}/stats/contributors", - "parameters": [ + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "**Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "line", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.", "enum": null, - "name": "repo", + "name": "start_line", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.", + "enum": ["LEFT", "RIGHT", "side"], + "name": "start_side", "type": "string", - "required": true + "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + }, + { + "alias": null, + "allowNull": null, + "deprecated": true, + "description": "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", + "enum": null, + "name": "in_reply_to", + "type": "integer", + "required": null } ] }, { - "name": "Get the weekly commit count for the repository owner and everyone else", - "scope": "repos", - "id": "getParticipationStats", - "method": "GET", - "url": "/repos/{owner}/{repo}/stats/participation", + "name": "Create a comment", + "scope": "pulls", + "id": "createCommentReply", + "method": "POST", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments", "parameters": [ { "alias": null, @@ -19624,52 +19678,34 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "Get the number of commits per hour in each day", - "scope": "repos", - "id": "getPunchCardStats", - "method": "GET", - "url": "/repos/{owner}/{repo}/stats/punch_card", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "pull_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The text of the review comment.", "enum": null, - "name": "repo", + "name": "body", "type": "string", "required": true - } - ] - }, - { - "name": "Create a status", - "scope": "repos", - "id": "createStatus", - "method": "POST", - "url": "/repos/{owner}/{repo}/statuses/{sha}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`.", "enum": null, - "name": "owner", + "name": "commit_id", "type": "string", "required": true }, @@ -19677,9 +19713,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The relative path to the file that necessitates a comment.", "enum": null, - "name": "repo", + "name": "path", "type": "string", "required": true }, @@ -19687,60 +19723,80 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "sha parameter", + "description": "**Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above.", "enum": null, - "name": "sha", - "type": "string", - "required": true + "name": "position", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.", - "enum": ["error", "failure", "pending", "success"], - "name": "state", + "description": "**Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.", + "enum": ["LEFT", "RIGHT"], + "name": "side", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + "description": "**Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to.", "enum": null, - "name": "target_url", - "type": "string", + "name": "line", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the status.", + "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation.", "enum": null, - "name": "description", - "type": "string", + "name": "start_line", + "type": "integer", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A string label to differentiate this status from the status of other systems.", - "enum": null, - "name": "context", + "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.", + "enum": ["LEFT", "RIGHT", "side"], + "name": "start_side", "type": "string", "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + }, + { + "alias": null, + "allowNull": null, + "deprecated": true, + "description": "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.", + "enum": null, + "name": "in_reply_to", + "type": "integer", + "required": null } ] }, { - "name": "List watchers", - "scope": "activity", - "id": "listWatchersForRepo", - "method": "GET", - "url": "/repos/{owner}/{repo}/subscribers", + "name": "Create a review comment reply", + "scope": "pulls", + "id": "createReviewCommentReply", + "method": "POST", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", "parameters": [ { "alias": null, @@ -19766,59 +19822,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "pull_number parameter", "enum": null, - "name": "per_page", + "name": "pull_number", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "comment_id parameter", "enum": null, - "name": "page", + "name": "comment_id", "type": "integer", - "required": false - } - ] - }, - { - "name": "Get a Repository Subscription", - "scope": "activity", - "id": "getRepoSubscription", - "method": "GET", - "url": "/repos/{owner}/{repo}/subscription", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "The text of the review comment.", "enum": null, - "name": "repo", + "name": "body", "type": "string", "required": true } ] }, { - "name": "Set a Repository Subscription", - "scope": "activity", - "id": "setRepoSubscription", - "method": "PUT", - "url": "/repos/{owner}/{repo}/subscription", + "name": "List commits on a pull request", + "scope": "pulls", + "id": "listCommits", + "method": "GET", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/commits", "parameters": [ { "alias": null, @@ -19844,59 +19881,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines if notifications should be received from this repository.", + "description": "pull_number parameter", "enum": null, - "name": "subscribed", - "type": "boolean", - "required": false + "name": "pull_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines if all notifications should be blocked from this repository.", + "description": "Results per page (max 100)", "enum": null, - "name": "ignored", - "type": "boolean", + "name": "per_page", + "type": "integer", "required": false - } - ] - }, - { - "name": "Delete a Repository Subscription", - "scope": "activity", - "id": "deleteRepoSubscription", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/subscription", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List tags", - "scope": "repos", - "id": "listTags", + "name": "List pull requests files", + "scope": "pulls", + "id": "listFiles", "method": "GET", - "url": "/repos/{owner}/{repo}/tags", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/files", "parameters": [ { "alias": null, @@ -19918,6 +19946,16 @@ "type": "string", "required": true }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "pull_number parameter", + "enum": null, + "name": "pull_number", + "type": "integer", + "required": true + }, { "alias": null, "allowNull": false, @@ -19937,15 +19975,25 @@ "name": "page", "type": "integer", "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List teams", - "scope": "repos", - "id": "listTeams", + "name": "Get if a pull request has been merged", + "scope": "pulls", + "id": "checkIfMerged", "method": "GET", - "url": "/repos/{owner}/{repo}/teams", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/merge", "parameters": [ { "alias": null, @@ -19971,30 +20019,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "pull_number parameter", "enum": null, - "name": "per_page", + "name": "pull_number", "type": "integer", - "required": false + "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List all topics for a repository", - "scope": "repos", - "id": "listTopics", - "method": "GET", - "url": "/repos/{owner}/{repo}/topics", + "name": "Merge a pull request (Merge Button)", + "scope": "pulls", + "id": "merge", + "method": "PUT", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/merge", "parameters": [ { "alias": null, @@ -20015,93 +20063,75 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "Replace all topics for a repository", - "scope": "repos", - "id": "replaceTopics", - "method": "PUT", - "url": "/repos/{owner}/{repo}/topics", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "pull_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Title for the automatic commit message.", "enum": null, - "name": "repo", + "name": "commit_title", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.", - "enum": null, - "name": "names", - "type": "string[]", - "required": true - } - ] - }, - { - "name": "Clones", - "scope": "repos", - "id": "getClones", - "method": "GET", - "url": "/repos/{owner}/{repo}/traffic/clones", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", + "description": "Extra detail to append to automatic commit message.", "enum": null, - "name": "owner", + "name": "commit_message", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "SHA that pull request head must match to allow merge.", "enum": null, - "name": "repo", + "name": "sha", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Must be one of: `day`, `week`.", - "enum": ["day", "week"], - "name": "per", + "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.", + "enum": ["merge", "squash", "rebase"], + "name": "merge_method", "type": "string", "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "List paths", - "scope": "repos", - "id": "getTopPaths", + "name": "List review requests", + "scope": "pulls", + "id": "listReviewRequests", "method": "GET", - "url": "/repos/{owner}/{repo}/traffic/popular/paths", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "parameters": [ { "alias": null, @@ -20122,83 +20152,55 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "List referrers", - "scope": "repos", - "id": "getTopReferrers", - "method": "GET", - "url": "/repos/{owner}/{repo}/traffic/popular/referrers", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "pull_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "repo", - "type": "string", - "required": true - } - ] - }, - { - "name": "Views", - "scope": "repos", - "id": "getViews", - "method": "GET", - "url": "/repos/{owner}/{repo}/traffic/views", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "owner parameter", - "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Must be one of: `day`, `week`.", - "enum": ["day", "week"], - "name": "per", - "type": "string", - "required": false + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Transfer a repository", - "scope": "repos", - "id": "transfer", + "name": "Create a review request", + "scope": "pulls", + "id": "createReviewRequest", "method": "POST", - "url": "/repos/{owner}/{repo}/transfer", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "parameters": [ { "alias": null, @@ -20224,30 +20226,50 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "**Required:** The username or organization name the repository will be transferred to.", + "description": "pull_number parameter", "enum": null, - "name": "new_owner", - "type": "string", + "name": "pull_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "An array of user `login`s that will be requested.", + "enum": null, + "name": "reviewers", + "type": "string[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", + "description": "An array of team `slug`s that will be requested.", "enum": null, - "name": "team_ids", - "type": "integer[]", + "name": "team_reviewers", + "type": "string[]", "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Check if vulnerability alerts are enabled for a repository", - "scope": "repos", - "id": "checkVulnerabilityAlerts", - "method": "GET", - "url": "/repos/{owner}/{repo}/vulnerability-alerts", + "name": "Delete a review request", + "scope": "pulls", + "id": "deleteReviewRequest", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "parameters": [ { "alias": null, @@ -20268,73 +20290,55 @@ "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "Enable vulnerability alerts", - "scope": "repos", - "id": "enableVulnerabilityAlerts", - "method": "PUT", - "url": "/repos/{owner}/{repo}/vulnerability-alerts", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "pull_number parameter", "enum": null, - "name": "owner", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "An array of user `login`s that will be removed.", "enum": null, - "name": "repo", - "type": "string", - "required": true - } - ] - }, - { - "name": "Disable vulnerability alerts", - "scope": "repos", - "id": "disableVulnerabilityAlerts", - "method": "DELETE", - "url": "/repos/{owner}/{repo}/vulnerability-alerts", - "parameters": [ + "name": "reviewers", + "type": "string[]", + "required": false + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "An array of team `slug`s that will be removed.", "enum": null, - "name": "owner", - "type": "string", - "required": true + "name": "team_reviewers", + "type": "string[]", + "required": false }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "repo parameter", + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "repo", - "type": "string", - "required": true + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Get archive link", - "scope": "repos", - "id": "getArchiveLink", + "name": "List reviews on a pull request", + "scope": "pulls", + "id": "listReviews", "method": "GET", - "url": "/repos/{owner}/{repo}/{archive_format}/{ref}", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "parameters": [ { "alias": null, @@ -20360,38 +20364,58 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "archive_format parameter", + "description": "pull_number parameter", "enum": null, - "name": "archive_format", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "ref parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "ref", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Create repository using a repository template", - "scope": "repos", - "id": "createUsingTemplate", + "name": "Create a pull request review", + "scope": "pulls", + "id": "createReview", "method": "POST", - "url": "/repos/{template_owner}/{template_repo}/generate", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "template_owner parameter", + "description": "owner parameter", "enum": null, - "name": "template_owner", + "name": "owner", "type": "string", "required": true }, @@ -20399,9 +20423,9 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "template_repo parameter", + "description": "repo parameter", "enum": null, - "name": "template_repo", + "name": "repo", "type": "string", "required": true }, @@ -20409,29 +20433,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + "description": "pull_number parameter", "enum": null, - "name": "owner", - "type": "string", - "required": false + "name": "pull_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the new repository.", + "description": "The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value.", "enum": null, - "name": "name", + "name": "commit_id", "type": "string", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "A short description of the new repository.", + "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review.", "enum": null, - "name": "description", + "name": "body", "type": "string", "required": false }, @@ -20439,67 +20463,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Either `true` to create a new private repository or `false` to create a new public one.", - "enum": null, - "name": "private", - "type": "boolean", + "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready.", + "enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"], + "name": "event", + "type": "string", "required": false - } - ] - }, - { - "name": "List all public repositories", - "scope": "repos", - "id": "listPublic", - "method": "GET", - "url": "/repositories", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The integer ID of the last Repository that you've seen.", + "description": "Use the following table to specify the location, destination, and contents of the draft review comment.", "enum": null, - "name": "since", - "type": "string", + "name": "comments", + "type": "object[]", "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "The relative path to the file that necessitates a review comment.", "enum": null, - "name": "per_page", - "type": "integer", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Page number of the results to fetch.", - "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Get a list of provisioned identities", - "scope": "scim", - "id": "listProvisionedIdentities", - "method": "GET", - "url": "/scim/v2/organizations/{org}/Users", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "org parameter", - "enum": null, - "name": "org", + "name": "comments[].path", "type": "string", "required": true }, @@ -20507,125 +20493,107 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Used for pagination: the index of the first result to return.", + "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below.", "enum": null, - "name": "startIndex", + "name": "comments[].position", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Used for pagination: the number of results to return.", + "description": "Text of the review comment.", "enum": null, - "name": "count", - "type": "integer", - "required": false + "name": "comments[].body", + "type": "string", + "required": true }, { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\\\"Octocat\\\"`.", + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, "enum": null, - "name": "filter", - "type": "string", - "required": false + "name": "number", + "type": null, + "required": null } ] }, { - "name": "Provision and invite users", - "scope": "scim", - "id": "provisionAndInviteUsers", - "method": "POST", - "url": "/scim/v2/organizations/{org}/Users", + "name": "Get a single review", + "scope": "pulls", + "id": "getReview", + "method": "GET", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "owner parameter", "enum": null, - "name": "org", + "name": "owner", "type": "string", "required": true - } - ] - }, - { - "name": "Provision and invite users", - "scope": "scim", - "id": "provisionInviteUsers", - "method": "POST", - "url": "/scim/v2/organizations/{org}/Users", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "repo parameter", "enum": null, - "name": "org", + "name": "repo", "type": "string", "required": true - } - ] - }, - { - "name": "Get provisioning details for a single user", - "scope": "scim", - "id": "getProvisioningDetailsForUser", - "method": "GET", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "pull_number parameter", "enum": null, - "name": "org", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "scim_user_id parameter", + "description": "review_id parameter", "enum": null, - "name": "scim_user_id", + "name": "review_id", "type": "integer", "required": true }, { - "alias": "scim_user_id", + "alias": "pull_number", "allowNull": null, "deprecated": true, "description": null, "enum": null, - "name": "external_identity_guid", + "name": "number", "type": null, "required": null } ] }, { - "name": "Replace a provisioned user's information", - "scope": "scim", - "id": "replaceProvisionedUserInformation", - "method": "PUT", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "name": "Delete a pending review", + "scope": "pulls", + "id": "deletePendingReview", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "owner parameter", "enum": null, - "name": "org", + "name": "owner", "type": "string", "required": true }, @@ -20633,77 +20601,58 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "scim_user_id parameter", + "description": "repo parameter", "enum": null, - "name": "scim_user_id", - "type": "integer", + "name": "repo", + "type": "string", "required": true }, - { - "alias": "scim_user_id", - "allowNull": null, - "deprecated": true, - "description": null, - "enum": null, - "name": "external_identity_guid", - "type": null, - "required": null - } - ] - }, - { - "name": "Replace a provisioned user's information", - "scope": "scim", - "id": "updateProvisionedOrgMembership", - "method": "PUT", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "pull_number parameter", "enum": null, - "name": "org", - "type": "string", + "name": "pull_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "scim_user_id parameter", + "description": "review_id parameter", "enum": null, - "name": "scim_user_id", + "name": "review_id", "type": "integer", "required": true }, { - "alias": "scim_user_id", + "alias": "pull_number", "allowNull": null, "deprecated": true, "description": null, "enum": null, - "name": "external_identity_guid", + "name": "number", "type": null, "required": null } ] }, { - "name": "Update a user attribute", - "scope": "scim", - "id": "updateUserAttribute", - "method": "PATCH", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "name": "Update a pull request review", + "scope": "pulls", + "id": "updateReview", + "method": "PUT", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "owner parameter", "enum": null, - "name": "org", + "name": "owner", "type": "string", "required": true }, @@ -20711,77 +20660,68 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "scim_user_id parameter", + "description": "repo parameter", "enum": null, - "name": "scim_user_id", - "type": "integer", + "name": "repo", + "type": "string", "required": true }, { - "alias": "scim_user_id", - "allowNull": null, - "deprecated": true, - "description": null, + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "pull_number parameter", "enum": null, - "name": "external_identity_guid", - "type": null, - "required": null - } - ] - }, - { - "name": "Remove a user from the organization", - "scope": "scim", - "id": "removeUserFromOrg", - "method": "DELETE", - "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", - "parameters": [ + "name": "pull_number", + "type": "integer", + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "org parameter", + "description": "review_id parameter", "enum": null, - "name": "org", - "type": "string", + "name": "review_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "scim_user_id parameter", + "description": "The body text of the pull request review.", "enum": null, - "name": "scim_user_id", - "type": "integer", + "name": "body", + "type": "string", "required": true }, { - "alias": "scim_user_id", + "alias": "pull_number", "allowNull": null, "deprecated": true, "description": null, "enum": null, - "name": "external_identity_guid", + "name": "number", "type": null, "required": null } ] }, { - "name": "Search code", - "scope": "search", - "id": "code", + "name": "Get comments for a single review", + "scope": "pulls", + "id": "getCommentsForReview", "method": "GET", - "url": "/search/code", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers.", + "description": "owner parameter", "enum": null, - "name": "q", + "name": "owner", "type": "string", "required": true }, @@ -20789,25 +20729,3295 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": ["indexed"], - "name": "sort", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, + "description": "pull_number parameter", + "enum": null, + "name": "pull_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "review_id parameter", + "enum": null, + "name": "review_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + } + ] + }, + { + "name": "Dismiss a pull request review", + "scope": "pulls", + "id": "dismissReview", + "method": "PUT", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "pull_number parameter", + "enum": null, + "name": "pull_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "review_id parameter", + "enum": null, + "name": "review_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The message for the pull request review dismissal", + "enum": null, + "name": "message", + "type": "string", + "required": true + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + } + ] + }, + { + "name": "Submit a pull request review", + "scope": "pulls", + "id": "submitReview", + "method": "POST", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "pull_number parameter", + "enum": null, + "name": "pull_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "review_id parameter", + "enum": null, + "name": "review_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The body text of the pull request review", + "enum": null, + "name": "body", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action.", + "enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"], + "name": "event", + "type": "string", + "required": true + }, + { + "alias": "pull_number", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "number", + "type": null, + "required": null + } + ] + }, + { + "name": "Update a pull request branch", + "scope": "pulls", + "id": "updateBranch", + "method": "PUT", + "url": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "pull_number parameter", + "enum": null, + "name": "pull_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the \"[List commits on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.", + "enum": null, + "name": "expected_head_sha", + "type": "string", + "required": false + } + ] + }, + { + "name": "Get the README", + "scope": "repos", + "id": "getReadme", + "method": "GET", + "url": "/repos/{owner}/{repo}/readme", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)", + "enum": null, + "name": "ref", + "type": "string", + "required": false + } + ] + }, + { + "name": "List releases for a repository", + "scope": "repos", + "id": "listReleases", + "method": "GET", + "url": "/repos/{owner}/{repo}/releases", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Create a release", + "scope": "repos", + "id": "createRelease", + "method": "POST", + "url": "/repos/{owner}/{repo}/releases", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the tag.", + "enum": null, + "name": "tag_name", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).", + "enum": null, + "name": "target_commitish", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the release.", + "enum": null, + "name": "name", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Text describing the contents of the tag.", + "enum": null, + "name": "body", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "`true` to create a draft (unpublished) release, `false` to create a published one.", + "enum": null, + "name": "draft", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + "enum": null, + "name": "prerelease", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Get a single release asset", + "scope": "repos", + "id": "getReleaseAsset", + "method": "GET", + "url": "/repos/{owner}/{repo}/releases/assets/{asset_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "asset_id parameter", + "enum": null, + "name": "asset_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Edit a release asset", + "scope": "repos", + "id": "updateReleaseAsset", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/releases/assets/{asset_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "asset_id parameter", + "enum": null, + "name": "asset_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The file name of the asset.", + "enum": null, + "name": "name", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "An alternate short description of the asset. Used in place of the filename.", + "enum": null, + "name": "label", + "type": "string", + "required": false + } + ] + }, + { + "name": "Delete a release asset", + "scope": "repos", + "id": "deleteReleaseAsset", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/releases/assets/{asset_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "asset_id parameter", + "enum": null, + "name": "asset_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Get the latest release", + "scope": "repos", + "id": "getLatestRelease", + "method": "GET", + "url": "/repos/{owner}/{repo}/releases/latest", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get a release by tag name", + "scope": "repos", + "id": "getReleaseByTag", + "method": "GET", + "url": "/repos/{owner}/{repo}/releases/tags/{tag}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "tag parameter", + "enum": null, + "name": "tag", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get a single release", + "scope": "repos", + "id": "getRelease", + "method": "GET", + "url": "/repos/{owner}/{repo}/releases/{release_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "release_id parameter", + "enum": null, + "name": "release_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Edit a release", + "scope": "repos", + "id": "updateRelease", + "method": "PATCH", + "url": "/repos/{owner}/{repo}/releases/{release_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "release_id parameter", + "enum": null, + "name": "release_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the tag.", + "enum": null, + "name": "tag_name", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`).", + "enum": null, + "name": "target_commitish", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the release.", + "enum": null, + "name": "name", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Text describing the contents of the tag.", + "enum": null, + "name": "body", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "`true` makes the release a draft, and `false` publishes the release.", + "enum": null, + "name": "draft", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release.", + "enum": null, + "name": "prerelease", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Delete a release", + "scope": "repos", + "id": "deleteRelease", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/releases/{release_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "release_id parameter", + "enum": null, + "name": "release_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "List assets for a release", + "scope": "repos", + "id": "listAssetsForRelease", + "method": "GET", + "url": "/repos/{owner}/{repo}/releases/{release_id}/assets", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "release_id parameter", + "enum": null, + "name": "release_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "List Stargazers", + "scope": "activity", + "id": "listStargazersForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/stargazers", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Get the number of additions and deletions per week", + "scope": "repos", + "id": "getCodeFrequencyStats", + "method": "GET", + "url": "/repos/{owner}/{repo}/stats/code_frequency", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get the last year of commit activity data", + "scope": "repos", + "id": "getCommitActivityStats", + "method": "GET", + "url": "/repos/{owner}/{repo}/stats/commit_activity", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get contributors list with additions, deletions, and commit counts", + "scope": "repos", + "id": "getContributorsStats", + "method": "GET", + "url": "/repos/{owner}/{repo}/stats/contributors", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get the weekly commit count for the repository owner and everyone else", + "scope": "repos", + "id": "getParticipationStats", + "method": "GET", + "url": "/repos/{owner}/{repo}/stats/participation", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get the number of commits per hour in each day", + "scope": "repos", + "id": "getPunchCardStats", + "method": "GET", + "url": "/repos/{owner}/{repo}/stats/punch_card", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Create a status", + "scope": "repos", + "id": "createStatus", + "method": "POST", + "url": "/repos/{owner}/{repo}/statuses/{sha}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "sha parameter", + "enum": null, + "name": "sha", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.", + "enum": ["error", "failure", "pending", "success"], + "name": "state", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. \nFor example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: \n`http://ci.example.com/user/repo/build/sha`", + "enum": null, + "name": "target_url", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "A short description of the status.", + "enum": null, + "name": "description", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "A string label to differentiate this status from the status of other systems.", + "enum": null, + "name": "context", + "type": "string", + "required": false + } + ] + }, + { + "name": "List watchers", + "scope": "activity", + "id": "listWatchersForRepo", + "method": "GET", + "url": "/repos/{owner}/{repo}/subscribers", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Get a Repository Subscription", + "scope": "activity", + "id": "getRepoSubscription", + "method": "GET", + "url": "/repos/{owner}/{repo}/subscription", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Set a Repository Subscription", + "scope": "activity", + "id": "setRepoSubscription", + "method": "PUT", + "url": "/repos/{owner}/{repo}/subscription", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines if notifications should be received from this repository.", + "enum": null, + "name": "subscribed", + "type": "boolean", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines if all notifications should be blocked from this repository.", + "enum": null, + "name": "ignored", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Delete a Repository Subscription", + "scope": "activity", + "id": "deleteRepoSubscription", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/subscription", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "List tags", + "scope": "repos", + "id": "listTags", + "method": "GET", + "url": "/repos/{owner}/{repo}/tags", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "List teams", + "scope": "repos", + "id": "listTeams", + "method": "GET", + "url": "/repos/{owner}/{repo}/teams", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "List all topics for a repository", + "scope": "repos", + "id": "listTopics", + "method": "GET", + "url": "/repos/{owner}/{repo}/topics", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Replace all topics for a repository", + "scope": "repos", + "id": "replaceTopics", + "method": "PUT", + "url": "/repos/{owner}/{repo}/topics", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.", + "enum": null, + "name": "names", + "type": "string[]", + "required": true + } + ] + }, + { + "name": "Clones", + "scope": "repos", + "id": "getClones", + "method": "GET", + "url": "/repos/{owner}/{repo}/traffic/clones", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Must be one of: `day`, `week`.", + "enum": ["day", "week"], + "name": "per", + "type": "string", + "required": false + } + ] + }, + { + "name": "List paths", + "scope": "repos", + "id": "getTopPaths", + "method": "GET", + "url": "/repos/{owner}/{repo}/traffic/popular/paths", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "List referrers", + "scope": "repos", + "id": "getTopReferrers", + "method": "GET", + "url": "/repos/{owner}/{repo}/traffic/popular/referrers", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Views", + "scope": "repos", + "id": "getViews", + "method": "GET", + "url": "/repos/{owner}/{repo}/traffic/views", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Must be one of: `day`, `week`.", + "enum": ["day", "week"], + "name": "per", + "type": "string", + "required": false + } + ] + }, + { + "name": "Transfer a repository", + "scope": "repos", + "id": "transfer", + "method": "POST", + "url": "/repos/{owner}/{repo}/transfer", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "**Required:** The username or organization name the repository will be transferred to.", + "enum": null, + "name": "new_owner", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", + "enum": null, + "name": "team_ids", + "type": "integer[]", + "required": false + } + ] + }, + { + "name": "Check if vulnerability alerts are enabled for a repository", + "scope": "repos", + "id": "checkVulnerabilityAlerts", + "method": "GET", + "url": "/repos/{owner}/{repo}/vulnerability-alerts", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Enable vulnerability alerts", + "scope": "repos", + "id": "enableVulnerabilityAlerts", + "method": "PUT", + "url": "/repos/{owner}/{repo}/vulnerability-alerts", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Disable vulnerability alerts", + "scope": "repos", + "id": "disableVulnerabilityAlerts", + "method": "DELETE", + "url": "/repos/{owner}/{repo}/vulnerability-alerts", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get archive link", + "scope": "repos", + "id": "getArchiveLink", + "method": "GET", + "url": "/repos/{owner}/{repo}/{archive_format}/{ref}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "owner parameter", + "enum": null, + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "archive_format parameter", + "enum": null, + "name": "archive_format", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "ref parameter", + "enum": null, + "name": "ref", + "type": "string", + "required": true + } + ] + }, + { + "name": "Create repository using a repository template", + "scope": "repos", + "id": "createUsingTemplate", + "method": "POST", + "url": "/repos/{template_owner}/{template_repo}/generate", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "template_owner parameter", + "enum": null, + "name": "template_owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "template_repo parameter", + "enum": null, + "name": "template_repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization.", + "enum": null, + "name": "owner", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the new repository.", + "enum": null, + "name": "name", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "A short description of the new repository.", + "enum": null, + "name": "description", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Either `true` to create a new private repository or `false` to create a new public one.", + "enum": null, + "name": "private", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "List all public repositories", + "scope": "repos", + "id": "listPublic", + "method": "GET", + "url": "/repositories", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The integer ID of the last Repository that you've seen.", + "enum": null, + "name": "since", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Get a list of provisioned identities", + "scope": "scim", + "id": "listProvisionedIdentities", + "method": "GET", + "url": "/scim/v2/organizations/{org}/Users", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Used for pagination: the index of the first result to return.", + "enum": null, + "name": "startIndex", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Used for pagination: the number of results to return.", + "enum": null, + "name": "count", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\\\"Octocat\\\"`.", + "enum": null, + "name": "filter", + "type": "string", + "required": false + } + ] + }, + { + "name": "Provision and invite users", + "scope": "scim", + "id": "provisionAndInviteUsers", + "method": "POST", + "url": "/scim/v2/organizations/{org}/Users", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + } + ] + }, + { + "name": "Provision and invite users", + "scope": "scim", + "id": "provisionInviteUsers", + "method": "POST", + "url": "/scim/v2/organizations/{org}/Users", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get provisioning details for a single user", + "scope": "scim", + "id": "getProvisioningDetailsForUser", + "method": "GET", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "scim_user_id parameter", + "enum": null, + "name": "scim_user_id", + "type": "integer", + "required": true + }, + { + "alias": "scim_user_id", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "external_identity_guid", + "type": null, + "required": null + } + ] + }, + { + "name": "Replace a provisioned user's information", + "scope": "scim", + "id": "replaceProvisionedUserInformation", + "method": "PUT", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "scim_user_id parameter", + "enum": null, + "name": "scim_user_id", + "type": "integer", + "required": true + }, + { + "alias": "scim_user_id", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "external_identity_guid", + "type": null, + "required": null + } + ] + }, + { + "name": "Replace a provisioned user's information", + "scope": "scim", + "id": "updateProvisionedOrgMembership", + "method": "PUT", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "scim_user_id parameter", + "enum": null, + "name": "scim_user_id", + "type": "integer", + "required": true + }, + { + "alias": "scim_user_id", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "external_identity_guid", + "type": null, + "required": null + } + ] + }, + { + "name": "Update a user attribute", + "scope": "scim", + "id": "updateUserAttribute", + "method": "PATCH", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "scim_user_id parameter", + "enum": null, + "name": "scim_user_id", + "type": "integer", + "required": true + }, + { + "alias": "scim_user_id", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "external_identity_guid", + "type": null, + "required": null + } + ] + }, + { + "name": "Remove a user from the organization", + "scope": "scim", + "id": "removeUserFromOrg", + "method": "DELETE", + "url": "/scim/v2/organizations/{org}/Users/{scim_user_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "org parameter", + "enum": null, + "name": "org", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "scim_user_id parameter", + "enum": null, + "name": "scim_user_id", + "type": "integer", + "required": true + }, + { + "alias": "scim_user_id", + "allowNull": null, + "deprecated": true, + "description": null, + "enum": null, + "name": "external_identity_guid", + "type": null, + "required": null + } + ] + }, + { + "name": "Search code", + "scope": "search", + "id": "code", + "method": "GET", + "url": "/search/code", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers.", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": ["indexed"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Search commits", + "scope": "search", + "id": "commits", + "method": "GET", + "url": "/search/commits", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers.", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": ["author-date", "committer-date"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Search issues and pull requests", + "scope": "search", + "id": "issuesAndPullRequests", + "method": "GET", + "url": "/search/issues", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers.", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": [ + "comments", + "reactions", + "reactions-+1", + "reactions--1", + "reactions-smile", + "reactions-thinking_face", + "reactions-heart", + "reactions-tada", + "interactions", + "created", + "updated" + ], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Search issues and pull requests", + "scope": "search", + "id": "issues", + "method": "GET", + "url": "/search/issues", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers.", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": [ + "comments", + "reactions", + "reactions-+1", + "reactions--1", + "reactions-smile", + "reactions-thinking_face", + "reactions-heart", + "reactions-tada", + "interactions", + "created", + "updated" + ], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Search labels", + "scope": "search", + "id": "labels", + "method": "GET", + "url": "/search/labels", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The id of the repository.", + "enum": null, + "name": "repository_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query).", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": ["created", "updated"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + } + ] + }, + { + "name": "Search repositories", + "scope": "search", + "id": "repos", + "method": "GET", + "url": "/search/repositories", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers.", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": ["stars", "forks", "help-wanted-issues", "updated"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Search topics", + "scope": "search", + "id": "topics", + "method": "GET", + "url": "/search/topics", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query).", + "enum": null, + "name": "q", + "type": "string", + "required": true + } + ] + }, + { + "name": "Search users", + "scope": "search", + "id": "users", + "method": "GET", + "url": "/search/users", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers.", + "enum": null, + "name": "q", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", + "enum": ["followers", "repositories", "joined"], + "name": "sort", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", + "enum": ["desc", "asc"], + "name": "order", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Get team (Legacy)", + "scope": "teams", + "id": "getLegacy", + "method": "GET", + "url": "/teams/{team_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Get team (Legacy)", + "scope": "teams", + "id": "get", + "method": "GET", + "url": "/teams/{team_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Edit team (Legacy)", + "scope": "teams", + "id": "updateLegacy", + "method": "PATCH", + "url": "/teams/{team_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the team.", + "enum": null, + "name": "name", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The description of the team.", + "enum": null, + "name": "description", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.", + "enum": ["secret", "closed"], + "name": "privacy", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", + "enum": ["pull", "push", "admin"], + "name": "permission", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The ID of a team to set as the parent team.", + "enum": null, + "name": "parent_team_id", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Edit team (Legacy)", + "scope": "teams", + "id": "update", + "method": "PATCH", + "url": "/teams/{team_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The name of the team.", + "enum": null, + "name": "name", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The description of the team.", + "enum": null, + "name": "description", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.", + "enum": ["secret", "closed"], + "name": "privacy", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", + "enum": ["pull", "push", "admin"], + "name": "permission", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The ID of a team to set as the parent team.", + "enum": null, + "name": "parent_team_id", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Delete team (Legacy)", + "scope": "teams", + "id": "deleteLegacy", + "method": "DELETE", + "url": "/teams/{team_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Delete team (Legacy)", + "scope": "teams", + "id": "delete", + "method": "DELETE", + "url": "/teams/{team_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "List discussions (Legacy)", + "scope": "teams", + "id": "listDiscussionsLegacy", + "method": "GET", + "url": "/teams/{team_id}/discussions", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "List discussions (Legacy)", + "scope": "teams", + "id": "listDiscussions", + "method": "GET", + "url": "/teams/{team_id}/discussions", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "Create a discussion (Legacy)", + "scope": "teams", + "id": "createDiscussionLegacy", + "method": "POST", + "url": "/teams/{team_id}/discussions", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's title.", + "enum": null, + "name": "title", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's body text.", + "enum": null, + "name": "body", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + "enum": null, + "name": "private", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Create a discussion (Legacy)", + "scope": "teams", + "id": "createDiscussion", + "method": "POST", + "url": "/teams/{team_id}/discussions", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's title.", + "enum": null, + "name": "title", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's body text.", + "enum": null, + "name": "body", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", + "enum": null, + "name": "private", + "type": "boolean", + "required": false + } + ] + }, + { + "name": "Get a single discussion (Legacy)", + "scope": "teams", + "id": "getDiscussionLegacy", + "method": "GET", + "url": "/teams/{team_id}/discussions/{discussion_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Get a single discussion (Legacy)", + "scope": "teams", + "id": "getDiscussion", + "method": "GET", + "url": "/teams/{team_id}/discussions/{discussion_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Edit a discussion (Legacy)", + "scope": "teams", + "id": "updateDiscussionLegacy", + "method": "PATCH", + "url": "/teams/{team_id}/discussions/{discussion_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's title.", + "enum": null, + "name": "title", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's body text.", + "enum": null, + "name": "body", + "type": "string", + "required": false + } + ] + }, + { + "name": "Edit a discussion (Legacy)", + "scope": "teams", + "id": "updateDiscussion", + "method": "PATCH", + "url": "/teams/{team_id}/discussions/{discussion_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's title.", + "enum": null, + "name": "title", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion post's body text.", + "enum": null, + "name": "body", + "type": "string", + "required": false + } + ] + }, + { + "name": "Delete a discussion (Legacy)", + "scope": "teams", + "id": "deleteDiscussionLegacy", + "method": "DELETE", + "url": "/teams/{team_id}/discussions/{discussion_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Delete a discussion (Legacy)", + "scope": "teams", + "id": "deleteDiscussion", + "method": "DELETE", + "url": "/teams/{team_id}/discussions/{discussion_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "List comments (Legacy)", + "scope": "teams", + "id": "listDiscussionCommentsLegacy", + "method": "GET", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, "deprecated": null, "description": "Results per page (max 100)", "enum": null, @@ -20828,39 +24038,39 @@ ] }, { - "name": "Search commits", - "scope": "search", - "id": "commits", + "name": "List comments (Legacy)", + "scope": "teams", + "id": "listDiscussionComments", "method": "GET", - "url": "/search/commits", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers.", + "description": "team_id parameter", "enum": null, - "name": "q", - "type": "string", + "name": "team_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": ["author-date", "committer-date"], - "name": "sort", - "type": "string", - "required": false + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", + "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", + "enum": ["asc", "desc"], + "name": "direction", "type": "string", "required": false }, @@ -20887,161 +24097,312 @@ ] }, { - "name": "Search issues and pull requests", - "scope": "search", - "id": "issuesAndPullRequests", - "method": "GET", - "url": "/search/issues", + "name": "Create a comment (Legacy)", + "scope": "teams", + "id": "createDiscussionCommentLegacy", + "method": "POST", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers.", + "description": "team_id parameter", "enum": null, - "name": "q", - "type": "string", + "name": "team_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": [ - "comments", - "reactions", - "reactions-+1", - "reactions--1", - "reactions-smile", - "reactions-thinking_face", - "reactions-heart", - "reactions-tada", - "interactions", - "created", - "updated" - ], - "name": "sort", + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion comment's body text.", + "enum": null, + "name": "body", "type": "string", - "required": false + "required": true + } + ] + }, + { + "name": "Create a comment (Legacy)", + "scope": "teams", + "id": "createDiscussionComment", + "method": "POST", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion comment's body text.", + "enum": null, + "name": "body", "type": "string", - "required": false + "required": true + } + ] + }, + { + "name": "Get a single comment (Legacy)", + "scope": "teams", + "id": "getDiscussionCommentLegacy", + "method": "GET", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "comment_number parameter", + "enum": null, + "name": "comment_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Get a single comment (Legacy)", + "scope": "teams", + "id": "getDiscussionComment", + "method": "GET", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "comment_number parameter", + "enum": null, + "name": "comment_number", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Edit a comment (Legacy)", + "scope": "teams", + "id": "updateDiscussionCommentLegacy", + "method": "PATCH", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "comment_number parameter", "enum": null, - "name": "per_page", + "name": "comment_number", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "The discussion comment's body text.", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "body", + "type": "string", + "required": true } ] }, { - "name": "Search issues and pull requests", - "scope": "search", - "id": "issues", - "method": "GET", - "url": "/search/issues", + "name": "Edit a comment (Legacy)", + "scope": "teams", + "id": "updateDiscussionComment", + "method": "PATCH", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)\" for a detailed list of qualifiers.", + "description": "team_id parameter", "enum": null, - "name": "q", - "type": "string", + "name": "team_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": [ - "comments", - "reactions", - "reactions-+1", - "reactions--1", - "reactions-smile", - "reactions-thinking_face", - "reactions-heart", - "reactions-tada", - "interactions", - "created", - "updated" - ], - "name": "sort", - "type": "string", - "required": false + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", + "description": "comment_number parameter", + "enum": null, + "name": "comment_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The discussion comment's body text.", + "enum": null, + "name": "body", "type": "string", - "required": false + "required": true + } + ] + }, + { + "name": "Delete a comment (Legacy)", + "scope": "teams", + "id": "deleteDiscussionCommentLegacy", + "method": "DELETE", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "discussion_number parameter", "enum": null, - "name": "per_page", + "name": "discussion_number", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "comment_number parameter", "enum": null, - "name": "page", + "name": "comment_number", "type": "integer", - "required": false + "required": true } ] }, { - "name": "Search labels", - "scope": "search", - "id": "labels", - "method": "GET", - "url": "/search/labels", + "name": "Delete a comment (Legacy)", + "scope": "teams", + "id": "deleteDiscussionComment", + "method": "DELETE", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The id of the repository.", + "description": "team_id parameter", "enum": null, - "name": "repository_id", + "name": "team_id", "type": "integer", "required": true }, @@ -21049,68 +24410,77 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query).", + "description": "discussion_number parameter", "enum": null, - "name": "q", - "type": "string", + "name": "discussion_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": ["created", "updated"], - "name": "sort", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", - "type": "string", - "required": false + "description": "comment_number parameter", + "enum": null, + "name": "comment_number", + "type": "integer", + "required": true } ] }, { - "name": "Search repositories", - "scope": "search", - "id": "repos", + "name": "List reactions for a team discussion comment (Legacy)", + "scope": "reactions", + "id": "listForTeamDiscussionCommentLegacy", "method": "GET", - "url": "/search/repositories", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)\" for a detailed list of qualifiers.", + "description": "team_id parameter", "enum": null, - "name": "q", - "type": "string", + "name": "team_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": ["stars", "forks", "help-wanted-issues", "updated"], - "name": "sort", - "type": "string", - "required": false + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", + "description": "comment_number parameter", + "enum": null, + "name": "comment_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", "required": false }, @@ -21137,58 +24507,58 @@ ] }, { - "name": "Search topics", - "scope": "search", - "id": "topics", + "name": "List reactions for a team discussion comment (Legacy)", + "scope": "reactions", + "id": "listForTeamDiscussionComment", "method": "GET", - "url": "/search/topics", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query).", + "description": "team_id parameter", "enum": null, - "name": "q", - "type": "string", + "name": "team_id", + "type": "integer", "required": true - } - ] - }, - { - "name": "Search users", - "scope": "search", - "id": "users", - "method": "GET", - "url": "/search/users", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers.", + "description": "discussion_number parameter", "enum": null, - "name": "q", - "type": "string", + "name": "discussion_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results)", - "enum": ["followers", "repositories", "joined"], - "name": "sort", - "type": "string", - "required": false + "description": "comment_number parameter", + "enum": null, + "name": "comment_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.", - "enum": ["desc", "asc"], - "name": "order", + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", "required": false }, @@ -21208,37 +24578,18 @@ "deprecated": null, "description": "Page number of the results to fetch.", "enum": null, - "name": "page", - "type": "integer", - "required": false - } - ] - }, - { - "name": "Get team", - "scope": "teams", - "id": "get", - "method": "GET", - "url": "/teams/{team_id}", - "parameters": [ - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "team_id parameter", - "enum": null, - "name": "team_id", + "name": "page", "type": "integer", - "required": true + "required": false } ] }, { - "name": "Edit team", - "scope": "teams", - "id": "update", - "method": "PATCH", - "url": "/teams/{team_id}", + "name": "Create reaction for a team discussion comment (Legacy)", + "scope": "reactions", + "id": "createForTeamDiscussionCommentLegacy", + "method": "POST", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "parameters": [ { "alias": null, @@ -21254,79 +24605,107 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The name of the team.", + "description": "discussion_number parameter", "enum": null, - "name": "name", - "type": "string", + "name": "discussion_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The description of the team.", + "description": "comment_number parameter", "enum": null, - "name": "description", - "type": "string", - "required": false + "name": "comment_number", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.", - "enum": ["secret", "closed"], - "name": "privacy", + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Create reaction for a team discussion comment (Legacy)", + "scope": "reactions", + "id": "createForTeamDiscussionComment", + "method": "POST", + "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", - "enum": ["pull", "push", "admin"], - "name": "permission", - "type": "string", - "required": false + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter.", + "description": "discussion_number parameter", "enum": null, - "name": "parent_team_id", + "name": "discussion_number", "type": "integer", - "required": false - } - ] - }, - { - "name": "Delete team", - "scope": "teams", - "id": "delete", - "method": "DELETE", - "url": "/teams/{team_id}", - "parameters": [ + "required": true + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "team_id parameter", + "description": "comment_number parameter", "enum": null, - "name": "team_id", + "name": "comment_number", "type": "integer", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", + "required": true } ] }, { - "name": "List discussions", - "scope": "teams", - "id": "listDiscussions", + "name": "List reactions for a team discussion (Legacy)", + "scope": "reactions", + "id": "listForTeamDiscussionLegacy", "method": "GET", - "url": "/teams/{team_id}/discussions", + "url": "/teams/{team_id}/discussions/{discussion_number}/reactions", "parameters": [ { "alias": null, @@ -21342,9 +24721,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", - "enum": ["asc", "desc"], - "name": "direction", + "description": "discussion_number parameter", + "enum": null, + "name": "discussion_number", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", "required": false }, @@ -21371,11 +24769,11 @@ ] }, { - "name": "Create a discussion", - "scope": "teams", - "id": "createDiscussion", - "method": "POST", - "url": "/teams/{team_id}/discussions", + "name": "List reactions for a team discussion (Legacy)", + "scope": "reactions", + "id": "listForTeamDiscussion", + "method": "GET", + "url": "/teams/{team_id}/discussions/{discussion_number}/reactions", "parameters": [ { "alias": null, @@ -21391,69 +24789,59 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The discussion post's title.", + "description": "discussion_number parameter", "enum": null, - "name": "title", - "type": "string", + "name": "discussion_number", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The discussion post's body text.", - "enum": null, - "name": "body", + "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.", - "enum": null, - "name": "private", - "type": "boolean", "required": false - } - ] - }, - { - "name": "Get a single discussion", - "scope": "teams", - "id": "getDiscussion", - "method": "GET", - "url": "/teams/{team_id}/discussions/{discussion_number}", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "team_id parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "team_id", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "discussion_number", + "name": "page", "type": "integer", - "required": true + "required": false } ] }, { - "name": "Edit a discussion", - "scope": "teams", - "id": "updateDiscussion", - "method": "PATCH", - "url": "/teams/{team_id}/discussions/{discussion_number}", + "name": "Create reaction for a team discussion (Legacy)", + "scope": "reactions", + "id": "createForTeamDiscussionLegacy", + "method": "POST", + "url": "/teams/{team_id}/discussions/{discussion_number}/reactions", "parameters": [ { "alias": null, @@ -21479,30 +24867,29 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The discussion post's title.", - "enum": null, - "name": "title", - "type": "string", - "required": false - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The discussion post's body text.", - "enum": null, - "name": "body", + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", "type": "string", - "required": false + "required": true } ] }, { - "name": "Delete a discussion", - "scope": "teams", - "id": "deleteDiscussion", - "method": "DELETE", - "url": "/teams/{team_id}/discussions/{discussion_number}", + "name": "Create reaction for a team discussion (Legacy)", + "scope": "reactions", + "id": "createForTeamDiscussion", + "method": "POST", + "url": "/teams/{team_id}/discussions/{discussion_number}/reactions", "parameters": [ { "alias": null, @@ -21523,15 +24910,34 @@ "name": "discussion_number", "type": "integer", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ], + "name": "content", + "type": "string", + "required": true } ] }, { - "name": "List comments", + "name": "List pending team invitations (Legacy)", "scope": "teams", - "id": "listDiscussionComments", + "id": "listPendingInvitationsLegacy", "method": "GET", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments", + "url": "/teams/{team_id}/invitations", "parameters": [ { "alias": null, @@ -21543,26 +24949,6 @@ "type": "integer", "required": true }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "discussion_number parameter", - "enum": null, - "name": "discussion_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`.", - "enum": ["asc", "desc"], - "name": "direction", - "type": "string", - "required": false - }, { "alias": null, "allowNull": false, @@ -21586,11 +24972,11 @@ ] }, { - "name": "Create a comment", + "name": "List pending team invitations (Legacy)", "scope": "teams", - "id": "createDiscussionComment", - "method": "POST", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments", + "id": "listPendingInvitations", + "method": "GET", + "url": "/teams/{team_id}/invitations", "parameters": [ { "alias": null, @@ -21606,30 +24992,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "discussion_number", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The discussion comment's body text.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "body", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Get a single comment", + "name": "List team members (Legacy)", "scope": "teams", - "id": "getDiscussionComment", + "id": "listMembersLegacy", "method": "GET", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "url": "/teams/{team_id}/members", "parameters": [ { "alias": null, @@ -21645,30 +25031,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team.", + "enum": ["member", "maintainer", "all"], + "name": "role", + "type": "string", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", "enum": null, - "name": "discussion_number", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_number parameter", + "description": "Page number of the results to fetch.", "enum": null, - "name": "comment_number", + "name": "page", "type": "integer", - "required": true + "required": false } ] }, { - "name": "Edit a comment", + "name": "List team members (Legacy)", "scope": "teams", - "id": "updateDiscussionComment", - "method": "PATCH", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "id": "listMembers", + "method": "GET", + "url": "/teams/{team_id}/members", "parameters": [ { "alias": null, @@ -21684,40 +25080,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", - "enum": null, - "name": "discussion_number", - "type": "integer", - "required": true + "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team.", + "enum": ["member", "maintainer", "all"], + "name": "role", + "type": "string", + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_number parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "comment_number", + "name": "per_page", "type": "integer", - "required": true + "required": false }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The discussion comment's body text.", + "description": "Page number of the results to fetch.", "enum": null, - "name": "body", - "type": "string", - "required": true + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "Delete a comment", + "name": "Get team member (Legacy)", "scope": "teams", - "id": "deleteDiscussionComment", - "method": "DELETE", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", + "id": "getMemberLegacy", + "method": "GET", + "url": "/teams/{team_id}/members/{username}", "parameters": [ { "alias": null, @@ -21733,9 +25129,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "username parameter", "enum": null, - "name": "discussion_number", + "name": "username", + "type": "string", + "required": true + } + ] + }, + { + "name": "Get team member (Legacy)", + "scope": "teams", + "id": "getMember", + "method": "GET", + "url": "/teams/{team_id}/members/{username}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", "type": "integer", "required": true }, @@ -21743,20 +25158,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_number parameter", + "description": "username parameter", "enum": null, - "name": "comment_number", - "type": "integer", + "name": "username", + "type": "string", "required": true } ] }, { - "name": "List reactions for a team discussion comment", - "scope": "reactions", - "id": "listForTeamDiscussionComment", - "method": "GET", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "name": "Add team member (Legacy)", + "scope": "teams", + "id": "addMemberLegacy", + "method": "PUT", + "url": "/teams/{team_id}/members/{username}", "parameters": [ { "alias": null, @@ -21772,19 +25187,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "username parameter", "enum": null, - "name": "discussion_number", - "type": "integer", + "name": "username", + "type": "string", "required": true - }, + } + ] + }, + { + "name": "Add team member (Legacy)", + "scope": "teams", + "id": "addMember", + "method": "PUT", + "url": "/teams/{team_id}/members/{username}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_number parameter", + "description": "team_id parameter", "enum": null, - "name": "comment_number", + "name": "team_id", "type": "integer", "required": true }, @@ -21792,49 +25216,49 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "description": "username parameter", + "enum": null, + "name": "username", "type": "string", - "required": false - }, + "required": true + } + ] + }, + { + "name": "Remove team member (Legacy)", + "scope": "teams", + "id": "removeMemberLegacy", + "method": "DELETE", + "url": "/teams/{team_id}/members/{username}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "team_id parameter", "enum": null, - "name": "per_page", + "name": "team_id", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "username parameter", "enum": null, - "name": "page", - "type": "integer", - "required": false + "name": "username", + "type": "string", + "required": true } ] }, { - "name": "Create reaction for a team discussion comment", - "scope": "reactions", - "id": "createForTeamDiscussionComment", - "method": "POST", - "url": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", + "name": "Get team membership (Legacy)", + "scope": "teams", + "id": "getMembershipLegacy", + "method": "GET", + "url": "/teams/{team_id}/memberships/{username}", "parameters": [ { "alias": null, @@ -21850,19 +25274,28 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "username parameter", "enum": null, - "name": "discussion_number", - "type": "integer", + "name": "username", + "type": "string", "required": true - }, + } + ] + }, + { + "name": "Get team membership (Legacy)", + "scope": "teams", + "id": "getMembership", + "method": "GET", + "url": "/teams/{team_id}/memberships/{username}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "comment_number parameter", + "description": "team_id parameter", "enum": null, - "name": "comment_number", + "name": "team_id", "type": "integer", "required": true }, @@ -21870,29 +25303,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "description": "username parameter", + "enum": null, + "name": "username", "type": "string", "required": true } ] }, { - "name": "List reactions for a team discussion", - "scope": "reactions", - "id": "listForTeamDiscussion", - "method": "GET", - "url": "/teams/{team_id}/discussions/{discussion_number}/reactions", + "name": "Add or update team membership (Legacy)", + "scope": "teams", + "id": "addOrUpdateMembershipLegacy", + "method": "PUT", + "url": "/teams/{team_id}/memberships/{username}", "parameters": [ { "alias": null, @@ -21908,59 +25332,69 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "username parameter", "enum": null, - "name": "discussion_number", - "type": "integer", + "name": "username", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.", + "enum": ["member", "maintainer"], + "name": "role", "type": "string", "required": false - }, + } + ] + }, + { + "name": "Add or update team membership (Legacy)", + "scope": "teams", + "id": "addOrUpdateMembership", + "method": "PUT", + "url": "/teams/{team_id}/memberships/{username}", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "team_id parameter", "enum": null, - "name": "per_page", + "name": "team_id", "type": "integer", - "required": false + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "username parameter", "enum": null, - "name": "page", - "type": "integer", + "name": "username", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.", + "enum": ["member", "maintainer"], + "name": "role", + "type": "string", "required": false } ] }, { - "name": "Create reaction for a team discussion", - "scope": "reactions", - "id": "createForTeamDiscussion", - "method": "POST", - "url": "/teams/{team_id}/discussions/{discussion_number}/reactions", + "name": "Remove team membership (Legacy)", + "scope": "teams", + "id": "removeMembershipLegacy", + "method": "DELETE", + "url": "/teams/{team_id}/memberships/{username}", "parameters": [ { "alias": null, @@ -21976,39 +25410,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "discussion_number parameter", + "description": "username parameter", "enum": null, - "name": "discussion_number", - "type": "integer", - "required": true - }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion.", - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - "name": "content", + "name": "username", "type": "string", "required": true } ] }, { - "name": "List pending team invitations", + "name": "List team projects (Legacy)", "scope": "teams", - "id": "listPendingInvitations", + "id": "listProjectsLegacy", "method": "GET", - "url": "/teams/{team_id}/invitations", + "url": "/teams/{team_id}/projects", "parameters": [ { "alias": null, @@ -22043,11 +25458,11 @@ ] }, { - "name": "List team members", + "name": "List team projects (Legacy)", "scope": "teams", - "id": "listMembers", + "id": "listProjects", "method": "GET", - "url": "/teams/{team_id}/members", + "url": "/teams/{team_id}/projects", "parameters": [ { "alias": null, @@ -22059,16 +25474,6 @@ "type": "integer", "required": true }, - { - "alias": null, - "allowNull": false, - "deprecated": null, - "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team.", - "enum": ["member", "maintainer", "all"], - "name": "role", - "type": "string", - "required": false - }, { "alias": null, "allowNull": false, @@ -22092,11 +25497,11 @@ ] }, { - "name": "Get team member", + "name": "Review a team project (Legacy)", "scope": "teams", - "id": "getMember", + "id": "reviewProjectLegacy", "method": "GET", - "url": "/teams/{team_id}/members/{username}", + "url": "/teams/{team_id}/projects/{project_id}", "parameters": [ { "alias": null, @@ -22112,20 +25517,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "project_id parameter", "enum": null, - "name": "username", - "type": "string", + "name": "project_id", + "type": "integer", "required": true } ] }, { - "name": "Add team member", + "name": "Review a team project (Legacy)", "scope": "teams", - "id": "addMember", - "method": "PUT", - "url": "/teams/{team_id}/members/{username}", + "id": "reviewProject", + "method": "GET", + "url": "/teams/{team_id}/projects/{project_id}", "parameters": [ { "alias": null, @@ -22141,20 +25546,20 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "project_id parameter", "enum": null, - "name": "username", - "type": "string", + "name": "project_id", + "type": "integer", "required": true } ] }, { - "name": "Remove team member", + "name": "Add or update team project (Legacy)", "scope": "teams", - "id": "removeMember", - "method": "DELETE", - "url": "/teams/{team_id}/members/{username}", + "id": "addOrUpdateProjectLegacy", + "method": "PUT", + "url": "/teams/{team_id}/projects/{project_id}", "parameters": [ { "alias": null, @@ -22170,20 +25575,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "project_id parameter", "enum": null, - "name": "username", - "type": "string", + "name": "project_id", + "type": "integer", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"", + "enum": ["read", "write", "admin"], + "name": "permission", + "type": "string", + "required": false } ] }, { - "name": "Get team membership", + "name": "Add or update team project (Legacy)", "scope": "teams", - "id": "getMembership", - "method": "GET", - "url": "/teams/{team_id}/memberships/{username}", + "id": "addOrUpdateProject", + "method": "PUT", + "url": "/teams/{team_id}/projects/{project_id}", "parameters": [ { "alias": null, @@ -22199,20 +25614,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "project_id parameter", "enum": null, - "name": "username", - "type": "string", + "name": "project_id", + "type": "integer", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\"", + "enum": ["read", "write", "admin"], + "name": "permission", + "type": "string", + "required": false } ] }, { - "name": "Add or update team membership", + "name": "Remove team project (Legacy)", "scope": "teams", - "id": "addOrUpdateMembership", - "method": "PUT", - "url": "/teams/{team_id}/memberships/{username}", + "id": "removeProjectLegacy", + "method": "DELETE", + "url": "/teams/{team_id}/projects/{project_id}", "parameters": [ { "alias": null, @@ -22228,30 +25653,49 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "project_id parameter", "enum": null, - "name": "username", - "type": "string", + "name": "project_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Remove team project (Legacy)", + "scope": "teams", + "id": "removeProject", + "method": "DELETE", + "url": "/teams/{team_id}/projects/{project_id}", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description.", - "enum": ["member", "maintainer"], - "name": "role", - "type": "string", - "required": false + "description": "project_id parameter", + "enum": null, + "name": "project_id", + "type": "integer", + "required": true } ] }, { - "name": "Remove team membership", + "name": "List team repos (Legacy)", "scope": "teams", - "id": "removeMembership", - "method": "DELETE", - "url": "/teams/{team_id}/memberships/{username}", + "id": "listReposLegacy", + "method": "GET", + "url": "/teams/{team_id}/repos", "parameters": [ { "alias": null, @@ -22267,20 +25711,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "username parameter", + "description": "Results per page (max 100)", "enum": null, - "name": "username", - "type": "string", - "required": true + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false } ] }, { - "name": "List team projects", + "name": "List team repos (Legacy)", "scope": "teams", - "id": "listProjects", + "id": "listRepos", "method": "GET", - "url": "/teams/{team_id}/projects", + "url": "/teams/{team_id}/repos", "parameters": [ { "alias": null, @@ -22315,11 +25769,11 @@ ] }, { - "name": "Review a team project", + "name": "Check if a team manages a repository (Legacy)", "scope": "teams", - "id": "reviewProject", + "id": "checkManagesRepoLegacy", "method": "GET", - "url": "/teams/{team_id}/projects/{project_id}", + "url": "/teams/{team_id}/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -22335,20 +25789,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "owner parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "owner", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", "required": true } ] }, { - "name": "Add or update team project", + "name": "Check if a team manages a repository (Legacy)", "scope": "teams", - "id": "addOrUpdateProject", - "method": "PUT", - "url": "/teams/{team_id}/projects/{project_id}", + "id": "checkManagesRepo", + "method": "GET", + "url": "/teams/{team_id}/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -22364,30 +25828,30 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "owner parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "owner", + "type": "string", "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see \"[HTTP verbs](https://developer.github.com/v3/#http-verbs).\" \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team.", - "enum": ["read", "write", "admin"], - "name": "permission", + "description": "repo parameter", + "enum": null, + "name": "repo", "type": "string", - "required": false + "required": true } ] }, { - "name": "Remove team project", + "name": "Add or update team repository (Legacy)", "scope": "teams", - "id": "removeProject", - "method": "DELETE", - "url": "/teams/{team_id}/projects/{project_id}", + "id": "addOrUpdateRepoLegacy", + "method": "PUT", + "url": "/teams/{team_id}/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -22403,20 +25867,40 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "project_id parameter", + "description": "owner parameter", "enum": null, - "name": "project_id", - "type": "integer", + "name": "owner", + "type": "string", "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "repo parameter", + "enum": null, + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + "enum": ["pull", "push", "admin"], + "name": "permission", + "type": "string", + "required": false } ] }, { - "name": "List team repos", + "name": "Add or update team repository (Legacy)", "scope": "teams", - "id": "listRepos", - "method": "GET", - "url": "/teams/{team_id}/repos", + "id": "addOrUpdateRepo", + "method": "PUT", + "url": "/teams/{team_id}/repos/{owner}/{repo}", "parameters": [ { "alias": null, @@ -22432,29 +25916,39 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "Results per page (max 100)", + "description": "owner parameter", "enum": null, - "name": "per_page", - "type": "integer", - "required": false + "name": "owner", + "type": "string", + "required": true }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "Page number of the results to fetch.", + "description": "repo parameter", "enum": null, - "name": "page", - "type": "integer", + "name": "repo", + "type": "string", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + "enum": ["pull", "push", "admin"], + "name": "permission", + "type": "string", "required": false } ] }, { - "name": "Check if a team manages a repository", + "name": "Remove team repository (Legacy)", "scope": "teams", - "id": "checkManagesRepo", - "method": "GET", + "id": "removeRepoLegacy", + "method": "DELETE", "url": "/teams/{team_id}/repos/{owner}/{repo}", "parameters": [ { @@ -22490,10 +25984,10 @@ ] }, { - "name": "Add or update team repository", + "name": "Remove team repository (Legacy)", "scope": "teams", - "id": "addOrUpdateRepo", - "method": "PUT", + "id": "removeRepo", + "method": "DELETE", "url": "/teams/{team_id}/repos/{owner}/{repo}", "parameters": [ { @@ -22525,25 +26019,53 @@ "name": "repo", "type": "string", "required": true - }, + } + ] + }, + { + "name": "List IdP groups for a team (Legacy)", + "scope": "teams", + "id": "listIdPGroupsForLegacy", + "method": "GET", + "url": "/teams/{team_id}/team-sync/group-mappings", + "parameters": [ { "alias": null, "allowNull": false, "deprecated": null, - "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. \n**Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team.", - "enum": ["pull", "push", "admin"], - "name": "permission", - "type": "string", - "required": false + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true } ] }, { - "name": "Remove team repository", + "name": "List IdP groups for a team (Legacy)", "scope": "teams", - "id": "removeRepo", - "method": "DELETE", - "url": "/teams/{team_id}/repos/{owner}/{repo}", + "id": "listIdPGroupsFor", + "method": "GET", + "url": "/teams/{team_id}/team-sync/group-mappings", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + } + ] + }, + { + "name": "Create or update IdP group connections (Legacy)", + "scope": "teams", + "id": "createOrUpdateIdPGroupConnectionsLegacy", + "method": "PATCH", + "url": "/teams/{team_id}/team-sync/group-mappings", "parameters": [ { "alias": null, @@ -22559,9 +26081,19 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "owner parameter", + "description": "The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", "enum": null, - "name": "owner", + "name": "groups", + "type": "object[]", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "ID of the IdP group.", + "enum": null, + "name": "groups[].group_id", "type": "string", "required": true }, @@ -22569,35 +26101,26 @@ "alias": null, "allowNull": false, "deprecated": null, - "description": "repo parameter", + "description": "Name of the IdP group.", "enum": null, - "name": "repo", + "name": "groups[].group_name", "type": "string", "required": true - } - ] - }, - { - "name": "List IdP groups for a team", - "scope": "teams", - "id": "listIdPGroups", - "method": "GET", - "url": "/teams/{team_id}/team-sync/group-mappings", - "parameters": [ + }, { "alias": null, "allowNull": false, "deprecated": null, - "description": "team_id parameter", + "description": "Description of the IdP group.", "enum": null, - "name": "team_id", - "type": "integer", + "name": "groups[].group_description", + "type": "string", "required": true } ] }, { - "name": "Create or update IdP group connections", + "name": "Create or update IdP group connections (Legacy)", "scope": "teams", "id": "createOrUpdateIdPGroupConnections", "method": "PATCH", @@ -22656,7 +26179,46 @@ ] }, { - "name": "List child teams", + "name": "List child teams (Legacy)", + "scope": "teams", + "id": "listChildLegacy", + "method": "GET", + "url": "/teams/{team_id}/teams", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "team_id parameter", + "enum": null, + "name": "team_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, + { + "name": "List child teams (Legacy)", "scope": "teams", "id": "listChild", "method": "GET", @@ -23639,7 +27201,7 @@ ] }, { - "name": "Get a list of user migrations", + "name": "List user migrations", "scope": "migrations", "id": "listForAuthenticatedUser", "method": "GET", @@ -23966,6 +27528,16 @@ "type": "boolean", "required": false }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see \"[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)\" in the GitHub Help documentation. \nThe `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.", + "enum": ["public", "private", "visibility", "internal"], + "name": "visibility", + "type": "string", + "required": false + }, { "alias": null, "allowNull": false, @@ -24075,6 +27647,16 @@ "name": "allow_rebase_merge", "type": "boolean", "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + "enum": null, + "name": "delete_branch_on_merge", + "type": "boolean", + "required": false } ] }, @@ -24426,6 +28008,45 @@ } ] }, + { + "name": "List repositories for a user migration", + "scope": "migrations", + "id": "listReposForUser", + "method": "GET", + "url": "/user/{migration_id}/repositories", + "parameters": [ + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "migration_id parameter", + "enum": null, + "name": "migration_id", + "type": "integer", + "required": true + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Results per page (max 100)", + "enum": null, + "name": "per_page", + "type": "integer", + "required": false + }, + { + "alias": null, + "allowNull": false, + "deprecated": null, + "description": "Page number of the results to fetch.", + "enum": null, + "name": "page", + "type": "integer", + "required": false + } + ] + }, { "name": "Get all users", "scope": "users", diff --git a/node_modules/@octokit/types/scripts/update-endpoints/typescript.js b/node_modules/@octokit/types/scripts/update-endpoints/typescript.js index 2095c6c25..c2bfc4cdf 100644 --- a/node_modules/@octokit/types/scripts/update-endpoints/typescript.js +++ b/node_modules/@octokit/types/scripts/update-endpoints/typescript.js @@ -3,7 +3,7 @@ const { resolve } = require("path"); const Handlebars = require("handlebars"); const set = require("lodash.set"); -const pascalCase = require("pascal-case"); +const { pascalCase } = require("pascal-case"); const prettier = require("prettier"); const { stringToJsdocComment } = require("string-to-jsdoc-comment"); const sortKeys = require("sort-keys"); diff --git a/node_modules/@octokit/types/src/VERSION.ts b/node_modules/@octokit/types/src/VERSION.ts index 6c49faff4..868a43e38 100644 --- a/node_modules/@octokit/types/src/VERSION.ts +++ b/node_modules/@octokit/types/src/VERSION.ts @@ -1 +1 @@ -export const VERSION = "2.0.2"; +export const VERSION = "2.1.0"; diff --git a/node_modules/@octokit/types/src/generated/Endpoints.ts b/node_modules/@octokit/types/src/generated/Endpoints.ts index 3aec91450..4137f27ea 100644 --- a/node_modules/@octokit/types/src/generated/Endpoints.ts +++ b/node_modules/@octokit/types/src/generated/Endpoints.ts @@ -8,13 +8,29 @@ export interface Endpoints { AppsDeleteInstallationEndpoint, AppsDeleteInstallationRequestOptions ]; + "DELETE /applications/:client_id/grant": [ + AppsDeleteAuthorizationEndpoint, + AppsDeleteAuthorizationRequestOptions + ]; "DELETE /applications/:client_id/grants/:access_token": [ - OauthAuthorizationsRevokeGrantForApplicationEndpoint, - OauthAuthorizationsRevokeGrantForApplicationRequestOptions + + | AppsRevokeGrantForApplicationEndpoint + | OauthAuthorizationsRevokeGrantForApplicationEndpoint, + + | AppsRevokeGrantForApplicationRequestOptions + | OauthAuthorizationsRevokeGrantForApplicationRequestOptions + ]; + "DELETE /applications/:client_id/token": [ + AppsDeleteTokenEndpoint, + AppsDeleteTokenRequestOptions ]; "DELETE /applications/:client_id/tokens/:access_token": [ - OauthAuthorizationsRevokeAuthorizationForApplicationEndpoint, - OauthAuthorizationsRevokeAuthorizationForApplicationRequestOptions + + | AppsRevokeAuthorizationForApplicationEndpoint + | OauthAuthorizationsRevokeAuthorizationForApplicationEndpoint, + + | AppsRevokeAuthorizationForApplicationRequestOptions + | OauthAuthorizationsRevokeAuthorizationForApplicationRequestOptions ]; "DELETE /applications/grants/:grant_id": [ OauthAuthorizationsDeleteGrantEndpoint, @@ -33,6 +49,10 @@ export interface Endpoints { GistsUnstarEndpoint, GistsUnstarRequestOptions ]; + "DELETE /installation/token": [ + AppsRevokeInstallationTokenEndpoint, + AppsRevokeInstallationTokenRequestOptions + ]; "DELETE /notifications/threads/:thread_id/subscription": [ ActivityDeleteThreadSubscriptionEndpoint, ActivityDeleteThreadSubscriptionRequestOptions @@ -77,6 +97,30 @@ export interface Endpoints { OrgsConcealMembershipEndpoint, OrgsConcealMembershipRequestOptions ]; + "DELETE /orgs/:org/teams/:team_slug": [ + TeamsDeleteInOrgEndpoint, + TeamsDeleteInOrgRequestOptions + ]; + "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number": [ + TeamsDeleteDiscussionInOrgEndpoint, + TeamsDeleteDiscussionInOrgRequestOptions + ]; + "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": [ + TeamsDeleteDiscussionCommentInOrgEndpoint, + TeamsDeleteDiscussionCommentInOrgRequestOptions + ]; + "DELETE /orgs/:org/teams/:team_slug/memberships/:username": [ + TeamsRemoveMembershipInOrgEndpoint, + TeamsRemoveMembershipInOrgRequestOptions + ]; + "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": [ + TeamsRemoveProjectInOrgEndpoint, + TeamsRemoveProjectInOrgRequestOptions + ]; + "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": [ + TeamsRemoveRepoInOrgEndpoint, + TeamsRemoveRepoInOrgRequestOptions + ]; "DELETE /projects/:project_id": [ ProjectsDeleteEndpoint, ProjectsDeleteRequestOptions @@ -249,30 +293,39 @@ export interface Endpoints { ScimRemoveUserFromOrgEndpoint, ScimRemoveUserFromOrgRequestOptions ]; - "DELETE /teams/:team_id": [TeamsDeleteEndpoint, TeamsDeleteRequestOptions]; + "DELETE /teams/:team_id": [ + TeamsDeleteLegacyEndpoint | TeamsDeleteEndpoint, + TeamsDeleteLegacyRequestOptions | TeamsDeleteRequestOptions + ]; "DELETE /teams/:team_id/discussions/:discussion_number": [ - TeamsDeleteDiscussionEndpoint, - TeamsDeleteDiscussionRequestOptions + TeamsDeleteDiscussionLegacyEndpoint | TeamsDeleteDiscussionEndpoint, + + | TeamsDeleteDiscussionLegacyRequestOptions + | TeamsDeleteDiscussionRequestOptions ]; "DELETE /teams/:team_id/discussions/:discussion_number/comments/:comment_number": [ - TeamsDeleteDiscussionCommentEndpoint, - TeamsDeleteDiscussionCommentRequestOptions + + | TeamsDeleteDiscussionCommentLegacyEndpoint + | TeamsDeleteDiscussionCommentEndpoint, + + | TeamsDeleteDiscussionCommentLegacyRequestOptions + | TeamsDeleteDiscussionCommentRequestOptions ]; "DELETE /teams/:team_id/members/:username": [ - TeamsRemoveMemberEndpoint, - TeamsRemoveMemberRequestOptions + TeamsRemoveMemberLegacyEndpoint, + TeamsRemoveMemberLegacyRequestOptions ]; "DELETE /teams/:team_id/memberships/:username": [ - TeamsRemoveMembershipEndpoint, - TeamsRemoveMembershipRequestOptions + TeamsRemoveMembershipLegacyEndpoint, + TeamsRemoveMembershipLegacyRequestOptions ]; "DELETE /teams/:team_id/projects/:project_id": [ - TeamsRemoveProjectEndpoint, - TeamsRemoveProjectRequestOptions + TeamsRemoveProjectLegacyEndpoint | TeamsRemoveProjectEndpoint, + TeamsRemoveProjectLegacyRequestOptions | TeamsRemoveProjectRequestOptions ]; "DELETE /teams/:team_id/repos/:owner/:repo": [ - TeamsRemoveRepoEndpoint, - TeamsRemoveRepoRequestOptions + TeamsRemoveRepoLegacyEndpoint | TeamsRemoveRepoEndpoint, + TeamsRemoveRepoLegacyRequestOptions | TeamsRemoveRepoRequestOptions ]; "DELETE /user/blocks/:username": [ UsersUnblockEndpoint, @@ -331,8 +384,12 @@ export interface Endpoints { AppsGetInstallationRequestOptions ]; "GET /applications/:client_id/tokens/:access_token": [ - OauthAuthorizationsCheckAuthorizationEndpoint, - OauthAuthorizationsCheckAuthorizationRequestOptions + + | AppsCheckAuthorizationEndpoint + | OauthAuthorizationsCheckAuthorizationEndpoint, + + | AppsCheckAuthorizationRequestOptions + | OauthAuthorizationsCheckAuthorizationRequestOptions ]; "GET /applications/grants": [ OauthAuthorizationsListGrantsEndpoint, @@ -498,6 +555,10 @@ export interface Endpoints { AppsGetOrgInstallationEndpoint | AppsFindOrgInstallationEndpoint, AppsGetOrgInstallationRequestOptions | AppsFindOrgInstallationRequestOptions ]; + "GET /orgs/:org/installations": [ + OrgsListInstallationsEndpoint, + OrgsListInstallationsRequestOptions + ]; "GET /orgs/:org/interaction-limits": [ InteractionsGetRestrictionsForOrgEndpoint, InteractionsGetRestrictionsForOrgRequestOptions @@ -538,6 +599,10 @@ export interface Endpoints { MigrationsGetArchiveForOrgEndpoint, MigrationsGetArchiveForOrgRequestOptions ]; + "GET /orgs/:org/migrations/:migration_id/repositories": [ + MigrationsListReposForOrgEndpoint, + MigrationsListReposForOrgRequestOptions + ]; "GET /orgs/:org/outside_collaborators": [ OrgsListOutsideCollaboratorsEndpoint, OrgsListOutsideCollaboratorsRequestOptions @@ -567,6 +632,66 @@ export interface Endpoints { TeamsGetByNameEndpoint, TeamsGetByNameRequestOptions ]; + "GET /orgs/:org/teams/:team_slug/discussions": [ + TeamsListDiscussionsInOrgEndpoint, + TeamsListDiscussionsInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number": [ + TeamsGetDiscussionInOrgEndpoint, + TeamsGetDiscussionInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": [ + TeamsListDiscussionCommentsInOrgEndpoint, + TeamsListDiscussionCommentsInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": [ + TeamsGetDiscussionCommentInOrgEndpoint, + TeamsGetDiscussionCommentInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": [ + ReactionsListForTeamDiscussionCommentInOrgEndpoint, + ReactionsListForTeamDiscussionCommentInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": [ + ReactionsListForTeamDiscussionInOrgEndpoint, + ReactionsListForTeamDiscussionInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/invitations": [ + TeamsListPendingInvitationsInOrgEndpoint, + TeamsListPendingInvitationsInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/members": [ + TeamsListMembersInOrgEndpoint, + TeamsListMembersInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/memberships/:username": [ + TeamsGetMembershipInOrgEndpoint, + TeamsGetMembershipInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/projects": [ + TeamsListProjectsInOrgEndpoint, + TeamsListProjectsInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/projects/:project_id": [ + TeamsReviewProjectInOrgEndpoint, + TeamsReviewProjectInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/repos": [ + TeamsListReposInOrgEndpoint, + TeamsListReposInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/repos/:owner/:repo": [ + TeamsCheckManagesRepoInOrgEndpoint, + TeamsCheckManagesRepoInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings": [ + TeamsListIdPGroupsInOrgEndpoint, + TeamsListIdPGroupsInOrgRequestOptions + ]; + "GET /orgs/:org/teams/:team_slug/teams": [ + TeamsListChildInOrgEndpoint, + TeamsListChildInOrgRequestOptions + ]; "GET /projects/:project_id": [ProjectsGetEndpoint, ProjectsGetRequestOptions]; "GET /projects/:project_id/collaborators": [ ProjectsListCollaboratorsEndpoint, @@ -1124,75 +1249,106 @@ export interface Endpoints { "GET /search/repositories": [SearchReposEndpoint, SearchReposRequestOptions]; "GET /search/topics": [SearchTopicsEndpoint, SearchTopicsRequestOptions]; "GET /search/users": [SearchUsersEndpoint, SearchUsersRequestOptions]; - "GET /teams/:team_id": [TeamsGetEndpoint, TeamsGetRequestOptions]; + "GET /teams/:team_id": [ + TeamsGetLegacyEndpoint | TeamsGetEndpoint, + TeamsGetLegacyRequestOptions | TeamsGetRequestOptions + ]; "GET /teams/:team_id/discussions": [ - TeamsListDiscussionsEndpoint, - TeamsListDiscussionsRequestOptions + TeamsListDiscussionsLegacyEndpoint | TeamsListDiscussionsEndpoint, + + | TeamsListDiscussionsLegacyRequestOptions + | TeamsListDiscussionsRequestOptions ]; "GET /teams/:team_id/discussions/:discussion_number": [ - TeamsGetDiscussionEndpoint, - TeamsGetDiscussionRequestOptions + TeamsGetDiscussionLegacyEndpoint | TeamsGetDiscussionEndpoint, + TeamsGetDiscussionLegacyRequestOptions | TeamsGetDiscussionRequestOptions ]; "GET /teams/:team_id/discussions/:discussion_number/comments": [ - TeamsListDiscussionCommentsEndpoint, - TeamsListDiscussionCommentsRequestOptions + + | TeamsListDiscussionCommentsLegacyEndpoint + | TeamsListDiscussionCommentsEndpoint, + + | TeamsListDiscussionCommentsLegacyRequestOptions + | TeamsListDiscussionCommentsRequestOptions ]; "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number": [ - TeamsGetDiscussionCommentEndpoint, - TeamsGetDiscussionCommentRequestOptions + TeamsGetDiscussionCommentLegacyEndpoint | TeamsGetDiscussionCommentEndpoint, + + | TeamsGetDiscussionCommentLegacyRequestOptions + | TeamsGetDiscussionCommentRequestOptions ]; "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": [ - ReactionsListForTeamDiscussionCommentEndpoint, - ReactionsListForTeamDiscussionCommentRequestOptions + + | ReactionsListForTeamDiscussionCommentLegacyEndpoint + | ReactionsListForTeamDiscussionCommentEndpoint, + + | ReactionsListForTeamDiscussionCommentLegacyRequestOptions + | ReactionsListForTeamDiscussionCommentRequestOptions ]; "GET /teams/:team_id/discussions/:discussion_number/reactions": [ - ReactionsListForTeamDiscussionEndpoint, - ReactionsListForTeamDiscussionRequestOptions + + | ReactionsListForTeamDiscussionLegacyEndpoint + | ReactionsListForTeamDiscussionEndpoint, + + | ReactionsListForTeamDiscussionLegacyRequestOptions + | ReactionsListForTeamDiscussionRequestOptions ]; "GET /teams/:team_id/invitations": [ - TeamsListPendingInvitationsEndpoint, - TeamsListPendingInvitationsRequestOptions + + | TeamsListPendingInvitationsLegacyEndpoint + | TeamsListPendingInvitationsEndpoint, + + | TeamsListPendingInvitationsLegacyRequestOptions + | TeamsListPendingInvitationsRequestOptions ]; "GET /teams/:team_id/members": [ - TeamsListMembersEndpoint, - TeamsListMembersRequestOptions + TeamsListMembersLegacyEndpoint | TeamsListMembersEndpoint, + TeamsListMembersLegacyRequestOptions | TeamsListMembersRequestOptions ]; "GET /teams/:team_id/members/:username": [ - TeamsGetMemberEndpoint, - TeamsGetMemberRequestOptions + TeamsGetMemberLegacyEndpoint | TeamsGetMemberEndpoint, + TeamsGetMemberLegacyRequestOptions | TeamsGetMemberRequestOptions ]; "GET /teams/:team_id/memberships/:username": [ - TeamsGetMembershipEndpoint, - TeamsGetMembershipRequestOptions + TeamsGetMembershipLegacyEndpoint | TeamsGetMembershipEndpoint, + TeamsGetMembershipLegacyRequestOptions | TeamsGetMembershipRequestOptions ]; "GET /teams/:team_id/projects": [ - TeamsListProjectsEndpoint, - TeamsListProjectsRequestOptions + TeamsListProjectsLegacyEndpoint | TeamsListProjectsEndpoint, + TeamsListProjectsLegacyRequestOptions | TeamsListProjectsRequestOptions ]; "GET /teams/:team_id/projects/:project_id": [ - TeamsReviewProjectEndpoint, - TeamsReviewProjectRequestOptions + TeamsReviewProjectLegacyEndpoint | TeamsReviewProjectEndpoint, + TeamsReviewProjectLegacyRequestOptions | TeamsReviewProjectRequestOptions ]; "GET /teams/:team_id/repos": [ - TeamsListReposEndpoint, - TeamsListReposRequestOptions + TeamsListReposLegacyEndpoint | TeamsListReposEndpoint, + TeamsListReposLegacyRequestOptions | TeamsListReposRequestOptions ]; "GET /teams/:team_id/repos/:owner/:repo": [ - TeamsCheckManagesRepoEndpoint, - TeamsCheckManagesRepoRequestOptions + TeamsCheckManagesRepoLegacyEndpoint | TeamsCheckManagesRepoEndpoint, + + | TeamsCheckManagesRepoLegacyRequestOptions + | TeamsCheckManagesRepoRequestOptions ]; "GET /teams/:team_id/team-sync/group-mappings": [ - TeamsListIdPGroupsEndpoint, - TeamsListIdPGroupsRequestOptions + TeamsListIdPGroupsForLegacyEndpoint | TeamsListIdPGroupsForEndpoint, + + | TeamsListIdPGroupsForLegacyRequestOptions + | TeamsListIdPGroupsForRequestOptions ]; "GET /teams/:team_id/teams": [ - TeamsListChildEndpoint, - TeamsListChildRequestOptions + TeamsListChildLegacyEndpoint | TeamsListChildEndpoint, + TeamsListChildLegacyRequestOptions | TeamsListChildRequestOptions ]; "GET /user": [ UsersGetAuthenticatedEndpoint, UsersGetAuthenticatedRequestOptions ]; + "GET /user/:migration_id/repositories": [ + MigrationsListReposForUserEndpoint, + MigrationsListReposForUserRequestOptions + ]; "GET /user/blocks": [ UsersListBlockedEndpoint, UsersListBlockedRequestOptions @@ -1382,6 +1538,10 @@ export interface Endpoints { ActivityListReposWatchedByUserEndpoint, ActivityListReposWatchedByUserRequestOptions ]; + "PATCH /applications/:client_id/token": [ + AppsResetTokenEndpoint, + AppsResetTokenRequestOptions + ]; "PATCH /authorizations/:authorization_id": [ OauthAuthorizationsUpdateAuthorizationEndpoint, OauthAuthorizationsUpdateAuthorizationRequestOptions @@ -1400,6 +1560,22 @@ export interface Endpoints { OrgsUpdateHookEndpoint, OrgsUpdateHookRequestOptions ]; + "PATCH /orgs/:org/teams/:team_slug": [ + TeamsUpdateInOrgEndpoint, + TeamsUpdateInOrgRequestOptions + ]; + "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number": [ + TeamsUpdateDiscussionInOrgEndpoint, + TeamsUpdateDiscussionInOrgRequestOptions + ]; + "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": [ + TeamsUpdateDiscussionCommentInOrgEndpoint, + TeamsUpdateDiscussionCommentInOrgRequestOptions + ]; + "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings": [ + TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint, + TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions + ]; "PATCH /projects/:project_id": [ ProjectsUpdateEndpoint, ProjectsUpdateRequestOptions @@ -1493,18 +1669,31 @@ export interface Endpoints { ScimUpdateUserAttributeEndpoint, ScimUpdateUserAttributeRequestOptions ]; - "PATCH /teams/:team_id": [TeamsUpdateEndpoint, TeamsUpdateRequestOptions]; + "PATCH /teams/:team_id": [ + TeamsUpdateLegacyEndpoint | TeamsUpdateEndpoint, + TeamsUpdateLegacyRequestOptions | TeamsUpdateRequestOptions + ]; "PATCH /teams/:team_id/discussions/:discussion_number": [ - TeamsUpdateDiscussionEndpoint, - TeamsUpdateDiscussionRequestOptions + TeamsUpdateDiscussionLegacyEndpoint | TeamsUpdateDiscussionEndpoint, + + | TeamsUpdateDiscussionLegacyRequestOptions + | TeamsUpdateDiscussionRequestOptions ]; "PATCH /teams/:team_id/discussions/:discussion_number/comments/:comment_number": [ - TeamsUpdateDiscussionCommentEndpoint, - TeamsUpdateDiscussionCommentRequestOptions + + | TeamsUpdateDiscussionCommentLegacyEndpoint + | TeamsUpdateDiscussionCommentEndpoint, + + | TeamsUpdateDiscussionCommentLegacyRequestOptions + | TeamsUpdateDiscussionCommentRequestOptions ]; "PATCH /teams/:team_id/team-sync/group-mappings": [ - TeamsCreateOrUpdateIdPGroupConnectionsEndpoint, - TeamsCreateOrUpdateIdPGroupConnectionsRequestOptions + + | TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint + | TeamsCreateOrUpdateIdPGroupConnectionsEndpoint, + + | TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions + | TeamsCreateOrUpdateIdPGroupConnectionsRequestOptions ]; "PATCH /user": [ UsersUpdateAuthenticatedEndpoint, @@ -1530,9 +1719,17 @@ export interface Endpoints { AppsCreateInstallationTokenEndpoint, AppsCreateInstallationTokenRequestOptions ]; + "POST /applications/:client_id/token": [ + AppsCheckTokenEndpoint, + AppsCheckTokenRequestOptions + ]; "POST /applications/:client_id/tokens/:access_token": [ - OauthAuthorizationsResetAuthorizationEndpoint, - OauthAuthorizationsResetAuthorizationRequestOptions + + | AppsResetAuthorizationEndpoint + | OauthAuthorizationsResetAuthorizationEndpoint, + + | AppsResetAuthorizationRequestOptions + | OauthAuthorizationsResetAuthorizationRequestOptions ]; "POST /authorizations": [ OauthAuthorizationsCreateAuthorizationEndpoint, @@ -1578,6 +1775,22 @@ export interface Endpoints { ReposCreateInOrgRequestOptions ]; "POST /orgs/:org/teams": [TeamsCreateEndpoint, TeamsCreateRequestOptions]; + "POST /orgs/:org/teams/:team_slug/discussions": [ + TeamsCreateDiscussionInOrgEndpoint, + TeamsCreateDiscussionInOrgRequestOptions + ]; + "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": [ + TeamsCreateDiscussionCommentInOrgEndpoint, + TeamsCreateDiscussionCommentInOrgRequestOptions + ]; + "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": [ + ReactionsCreateForTeamDiscussionCommentInOrgEndpoint, + ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions + ]; + "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": [ + ReactionsCreateForTeamDiscussionInOrgEndpoint, + ReactionsCreateForTeamDiscussionInOrgRequestOptions + ]; "POST /projects/:project_id/columns": [ ProjectsCreateColumnEndpoint, ProjectsCreateColumnRequestOptions @@ -1789,20 +2002,34 @@ export interface Endpoints { | ScimProvisionInviteUsersRequestOptions ]; "POST /teams/:team_id/discussions": [ - TeamsCreateDiscussionEndpoint, - TeamsCreateDiscussionRequestOptions + TeamsCreateDiscussionLegacyEndpoint | TeamsCreateDiscussionEndpoint, + + | TeamsCreateDiscussionLegacyRequestOptions + | TeamsCreateDiscussionRequestOptions ]; "POST /teams/:team_id/discussions/:discussion_number/comments": [ - TeamsCreateDiscussionCommentEndpoint, - TeamsCreateDiscussionCommentRequestOptions + + | TeamsCreateDiscussionCommentLegacyEndpoint + | TeamsCreateDiscussionCommentEndpoint, + + | TeamsCreateDiscussionCommentLegacyRequestOptions + | TeamsCreateDiscussionCommentRequestOptions ]; "POST /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": [ - ReactionsCreateForTeamDiscussionCommentEndpoint, - ReactionsCreateForTeamDiscussionCommentRequestOptions + + | ReactionsCreateForTeamDiscussionCommentLegacyEndpoint + | ReactionsCreateForTeamDiscussionCommentEndpoint, + + | ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions + | ReactionsCreateForTeamDiscussionCommentRequestOptions ]; "POST /teams/:team_id/discussions/:discussion_number/reactions": [ - ReactionsCreateForTeamDiscussionEndpoint, - ReactionsCreateForTeamDiscussionRequestOptions + + | ReactionsCreateForTeamDiscussionLegacyEndpoint + | ReactionsCreateForTeamDiscussionEndpoint, + + | ReactionsCreateForTeamDiscussionLegacyRequestOptions + | ReactionsCreateForTeamDiscussionRequestOptions ]; "POST /user/emails": [UsersAddEmailsEndpoint, UsersAddEmailsRequestOptions]; "POST /user/gpg_keys": [ @@ -1866,6 +2093,18 @@ export interface Endpoints { OrgsPublicizeMembershipEndpoint, OrgsPublicizeMembershipRequestOptions ]; + "PUT /orgs/:org/teams/:team_slug/memberships/:username": [ + TeamsAddOrUpdateMembershipInOrgEndpoint, + TeamsAddOrUpdateMembershipInOrgRequestOptions + ]; + "PUT /orgs/:org/teams/:team_slug/projects/:project_id": [ + TeamsAddOrUpdateProjectInOrgEndpoint, + TeamsAddOrUpdateProjectInOrgRequestOptions + ]; + "PUT /orgs/:org/teams/:team_slug/repos/:owner/:repo": [ + TeamsAddOrUpdateRepoInOrgEndpoint, + TeamsAddOrUpdateRepoInOrgRequestOptions + ]; "PUT /projects/:project_id/collaborators/:username": [ ProjectsAddCollaboratorEndpoint, ProjectsAddCollaboratorRequestOptions @@ -1969,20 +2208,28 @@ export interface Endpoints { | ScimUpdateProvisionedOrgMembershipRequestOptions ]; "PUT /teams/:team_id/members/:username": [ - TeamsAddMemberEndpoint, - TeamsAddMemberRequestOptions + TeamsAddMemberLegacyEndpoint | TeamsAddMemberEndpoint, + TeamsAddMemberLegacyRequestOptions | TeamsAddMemberRequestOptions ]; "PUT /teams/:team_id/memberships/:username": [ - TeamsAddOrUpdateMembershipEndpoint, - TeamsAddOrUpdateMembershipRequestOptions + + | TeamsAddOrUpdateMembershipLegacyEndpoint + | TeamsAddOrUpdateMembershipEndpoint, + + | TeamsAddOrUpdateMembershipLegacyRequestOptions + | TeamsAddOrUpdateMembershipRequestOptions ]; "PUT /teams/:team_id/projects/:project_id": [ - TeamsAddOrUpdateProjectEndpoint, - TeamsAddOrUpdateProjectRequestOptions + TeamsAddOrUpdateProjectLegacyEndpoint | TeamsAddOrUpdateProjectEndpoint, + + | TeamsAddOrUpdateProjectLegacyRequestOptions + | TeamsAddOrUpdateProjectRequestOptions ]; "PUT /teams/:team_id/repos/:owner/:repo": [ - TeamsAddOrUpdateRepoEndpoint, - TeamsAddOrUpdateRepoRequestOptions + TeamsAddOrUpdateRepoLegacyEndpoint | TeamsAddOrUpdateRepoEndpoint, + + | TeamsAddOrUpdateRepoLegacyRequestOptions + | TeamsAddOrUpdateRepoRequestOptions ]; "PUT /user/blocks/:username": [UsersBlockEndpoint, UsersBlockRequestOptions]; "PUT /user/following/:username": [ @@ -2122,6 +2369,38 @@ type OauthAuthorizationsDeleteGrantRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type AppsDeleteAuthorizationEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +type AppsDeleteAuthorizationRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type AppsRevokeGrantForApplicationEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * access_token parameter + */ + access_token: string; +}; +type AppsRevokeGrantForApplicationRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type OauthAuthorizationsRevokeGrantForApplicationEndpoint = { /** * client_id parameter @@ -2138,6 +2417,70 @@ type OauthAuthorizationsRevokeGrantForApplicationRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type AppsCheckTokenEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +type AppsCheckTokenRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type AppsResetTokenEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +type AppsResetTokenRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type AppsDeleteTokenEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +type AppsDeleteTokenRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type AppsCheckAuthorizationEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * access_token parameter + */ + access_token: string; +}; +type AppsCheckAuthorizationRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type OauthAuthorizationsCheckAuthorizationEndpoint = { /** * client_id parameter @@ -2154,6 +2497,22 @@ type OauthAuthorizationsCheckAuthorizationRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type AppsResetAuthorizationEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * access_token parameter + */ + access_token: string; +}; +type AppsResetAuthorizationRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type OauthAuthorizationsResetAuthorizationEndpoint = { /** * client_id parameter @@ -2170,6 +2529,22 @@ type OauthAuthorizationsResetAuthorizationRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type AppsRevokeAuthorizationForApplicationEndpoint = { + /** + * client_id parameter + */ + client_id: string; + /** + * access_token parameter + */ + access_token: string; +}; +type AppsRevokeAuthorizationForApplicationRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type OauthAuthorizationsRevokeAuthorizationForApplicationEndpoint = { /** * client_id parameter @@ -2822,6 +3197,13 @@ type AppsListReposRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type AppsRevokeInstallationTokenEndpoint = {}; +type AppsRevokeInstallationTokenRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type IssuesListEndpoint = { /** * Indicates which sorts of issues to return. Can be one of: @@ -3344,11 +3726,11 @@ type OrgsUpdateEndpoint = { */ description?: string; /** - * Toggles whether organization projects are enabled for the organization. + * Toggles whether an organization can use organization projects. */ has_organization_projects?: boolean; /** - * Toggles whether repository projects are enabled for repositories that belong to the organization. + * Toggles whether repositories that belong to the organization can use repository projects. */ has_repository_projects?: boolean; /** @@ -3362,17 +3744,38 @@ type OrgsUpdateEndpoint = { /** * Toggles the ability of non-admin organization members to create repositories. Can be one of: * \* `true` - all organization members can create repositories. - * \* `false` - only admin members can create repositories. + * \* `false` - only organization owners can create repositories. * Default: `true` - * **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. **Note:** Another parameter can override the this parameter. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. + * **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. **Note:** A parameter can override this parameter. See `members_allowed_repository_creation_type` in this table for details. */ members_can_create_repositories?: boolean; + /** + * Toggles whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud. Can be one of: + * \* `true` - all organization members can create internal repositories. + * \* `false` - only organization owners can create internal repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_internal_repositories?: boolean; + /** + * Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: + * \* `true` - all organization members can create private repositories. + * \* `false` - only organization owners can create private repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_private_repositories?: boolean; + /** + * Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: + * \* `true` - all organization members can create public repositories. + * \* `false` - only organization owners can create public repositories. + * Default: `true`. For more information, see "[Restricting repository creation in your organization](https://help.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. + */ + members_can_create_public_repositories?: boolean; /** * Specifies which types of repositories non-admin organization members can create. Can be one of: * \* `all` - all organization members can create public and private repositories. - * \* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on [GitHub Business Cloud](https://github.com/pricing/business-cloud). + * \* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. * \* `none` - only admin members can create repositories. - * **Note:** Using this parameter will override values set in `members_can_create_repositories`. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. + * **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. */ members_allowed_repository_creation_type?: "all" | "private" | "none"; }; @@ -3638,6 +4041,26 @@ type AppsFindOrgInstallationRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type OrgsListInstallationsEndpoint = { + /** + * org parameter + */ + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type OrgsListInstallationsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type InteractionsGetRestrictionsForOrgEndpoint = { /** * org parameter @@ -4033,6 +4456,30 @@ type MigrationsUnlockRepoForOrgRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type MigrationsListReposForOrgEndpoint = { + /** + * org parameter + */ + org: string; + /** + * migration_id parameter + */ + migration_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type MigrationsListReposForOrgRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type OrgsListOutsideCollaboratorsEndpoint = { /** * org parameter @@ -4209,9 +4656,16 @@ type ReposListForOrgEndpoint = { */ org: string; /** - * Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`. + * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `type` can also be `internal`. */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + type?: + | "all" + | "public" + | "private" + | "forks" + | "sources" + | "member" + | "internal"; /** * Can be one of `created`, `updated`, `pushed`, `full_name`. */ @@ -4256,6 +4710,11 @@ type ReposCreateInOrgEndpoint = { * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. */ private?: boolean; + /** + * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. + * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; /** * Either `true` to enable issues for this repository or `false` to disable them. */ @@ -4300,6 +4759,10 @@ type ReposCreateInOrgEndpoint = { * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. */ allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; }; type ReposCreateInOrgRequestOptions = { method: "POST"; @@ -4361,7 +4824,7 @@ type TeamsCreateEndpoint = { */ description?: string; /** - * The logins of organization members to add as maintainers of the team. + * List GitHub IDs for organization members who will become team maintainers. */ maintainers?: string[]; /** @@ -4377,7 +4840,6 @@ type TeamsCreateEndpoint = { * **For a parent or child team:** * \* `closed` - visible to all members of this organization. * Default for child team: `closed` - * **Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. */ privacy?: "secret" | "closed"; /** @@ -4388,7 +4850,7 @@ type TeamsCreateEndpoint = { */ permission?: "pull" | "push" | "admin"; /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. + * The ID of a team to set as the parent team. */ parent_team_id?: number; }; @@ -4414,119 +4876,79 @@ type TeamsGetByNameRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsGetCardEndpoint = { +type TeamsUpdateInOrgEndpoint = { /** - * card_id parameter + * org parameter */ - card_id: number; -}; -type ProjectsGetCardRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsUpdateCardEndpoint = { + org: string; /** - * card_id parameter + * team_slug parameter */ - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; -}; -type ProjectsUpdateCardRequestOptions = { - method: "PATCH"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsDeleteCardEndpoint = { + team_slug: string; /** - * card_id parameter + * The name of the team. */ - card_id: number; -}; -type ProjectsDeleteCardRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsMoveCardEndpoint = { + name: string; /** - * card_id parameter + * The description of the team. */ - card_id: number; + description?: string; /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. */ - position: string; + privacy?: "secret" | "closed"; /** - * The `id` value of a column in the same project. + * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: + * \* `pull` - team members can pull, but not push to or administer newly-added repositories. + * \* `push` - team members can pull and push, but not administer newly-added repositories. + * \* `admin` - team members can pull, push and administer newly-added repositories. */ - column_id?: number; -}; -type ProjectsMoveCardRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsGetColumnEndpoint = { + permission?: "pull" | "push" | "admin"; /** - * column_id parameter + * The ID of a team to set as the parent team. */ - column_id: number; + parent_team_id?: number; }; -type ProjectsGetColumnRequestOptions = { - method: "GET"; +type TeamsUpdateInOrgRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsUpdateColumnEndpoint = { +type TeamsDeleteInOrgEndpoint = { /** - * column_id parameter + * org parameter */ - column_id: number; + org: string; /** - * The new name of the column. + * team_slug parameter */ - name: string; + team_slug: string; }; -type ProjectsUpdateColumnRequestOptions = { - method: "PATCH"; +type TeamsDeleteInOrgRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsDeleteColumnEndpoint = { +type TeamsListDiscussionsInOrgEndpoint = { /** - * column_id parameter + * org parameter */ - column_id: number; -}; -type ProjectsDeleteColumnRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsListCardsEndpoint = { + org: string; /** - * column_id parameter + * team_slug parameter */ - column_id: number; + team_slug: string; /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. */ - archived_state?: "all" | "archived" | "not_archived"; + direction?: "asc" | "desc"; /** * Results per page (max 100) */ @@ -4536,141 +4958,125 @@ type ProjectsListCardsEndpoint = { */ page?: number; }; -type ProjectsListCardsRequestOptions = { +type TeamsListDiscussionsInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsCreateCardEndpoint = { - /** - * column_id parameter - */ - column_id: number; +type TeamsCreateDiscussionInOrgEndpoint = { /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. + * org parameter */ - note?: string; + org: string; /** - * The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. - * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. + * team_slug parameter */ - content_id?: number; + team_slug: string; /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. + * The discussion post's title. */ - content_type?: string; -}; -type ProjectsCreateCardRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsMoveColumnEndpoint = { + title: string; /** - * column_id parameter + * The discussion post's body text. */ - column_id: number; + body: string; /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. + * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. */ - position: string; + private?: boolean; }; -type ProjectsMoveColumnRequestOptions = { +type TeamsCreateDiscussionInOrgRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsGetEndpoint = { +type TeamsGetDiscussionInOrgEndpoint = { /** - * project_id parameter + * org parameter */ - project_id: number; + org: string; /** - * Results per page (max 100) + * team_slug parameter */ - per_page?: number; + team_slug: string; /** - * Page number of the results to fetch. + * discussion_number parameter */ - page?: number; + discussion_number: number; }; -type ProjectsGetRequestOptions = { +type TeamsGetDiscussionInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsUpdateEndpoint = { - /** - * project_id parameter - */ - project_id: number; +type TeamsUpdateDiscussionInOrgEndpoint = { /** - * The name of the project. + * org parameter */ - name?: string; + org: string; /** - * The description of the project. + * team_slug parameter */ - body?: string; + team_slug: string; /** - * State of the project. Either `open` or `closed`. + * discussion_number parameter */ - state?: "open" | "closed"; + discussion_number: number; /** - * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). - * - * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. - * - * Can be one of: - * \* `read` - Organization members can read, but not write to or administer this project. - * \* `write` - Organization members can read and write, but not administer this project. - * \* `admin` - Organization members can read, write and administer this project. - * \* `none` - Organization members can only see this project if it is public. + * The discussion post's title. */ - organization_permission?: string; + title?: string; /** - * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. - * - * Can be one of: - * \* `false` - Anyone can see the project. - * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. + * The discussion post's body text. */ - private?: boolean; + body?: string; }; -type ProjectsUpdateRequestOptions = { +type TeamsUpdateDiscussionInOrgRequestOptions = { method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsDeleteEndpoint = { +type TeamsDeleteDiscussionInOrgEndpoint = { /** - * project_id parameter + * org parameter */ - project_id: number; + org: string; + /** + * team_slug parameter + */ + team_slug: string; + /** + * discussion_number parameter + */ + discussion_number: number; }; -type ProjectsDeleteRequestOptions = { +type TeamsDeleteDiscussionInOrgRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsListCollaboratorsEndpoint = { +type TeamsListDiscussionCommentsInOrgEndpoint = { /** - * project_id parameter + * org parameter */ - project_id: number; + org: string; /** - * Filters the collaborators by their affiliation. Can be one of: - * \* `outside`: Outside collaborators of a project that are not a member of the project's organization. - * \* `direct`: Collaborators with permissions to a project, regardless of organization membership status. - * \* `all`: All collaborators the authenticated user can see. + * team_slug parameter */ - affiliation?: "outside" | "direct" | "all"; + team_slug: string; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. + */ + direction?: "asc" | "desc"; /** * Results per page (max 100) */ @@ -4680,232 +5086,273 @@ type ProjectsListCollaboratorsEndpoint = { */ page?: number; }; -type ProjectsListCollaboratorsRequestOptions = { +type TeamsListDiscussionCommentsInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsAddCollaboratorEndpoint = { +type TeamsCreateDiscussionCommentInOrgEndpoint = { /** - * project_id parameter + * org parameter */ - project_id: number; + org: string; /** - * username parameter + * team_slug parameter */ - username: string; + team_slug: string; /** - * The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." Can be one of: - * \* `read` - can read, but not write to or administer this project. - * \* `write` - can read and write, but not administer this project. - * \* `admin` - can read, write and administer this project. + * discussion_number parameter */ - permission?: "read" | "write" | "admin"; + discussion_number: number; + /** + * The discussion comment's body text. + */ + body: string; }; -type ProjectsAddCollaboratorRequestOptions = { - method: "PUT"; +type TeamsCreateDiscussionCommentInOrgRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsRemoveCollaboratorEndpoint = { +type TeamsGetDiscussionCommentInOrgEndpoint = { /** - * project_id parameter + * org parameter */ - project_id: number; + org: string; /** - * username parameter + * team_slug parameter */ - username: string; -}; -type ProjectsRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsReviewUserPermissionLevelEndpoint = { + team_slug: string; /** - * project_id parameter + * discussion_number parameter */ - project_id: number; + discussion_number: number; /** - * username parameter + * comment_number parameter */ - username: string; + comment_number: number; }; -type ProjectsReviewUserPermissionLevelRequestOptions = { +type TeamsGetDiscussionCommentInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsListColumnsEndpoint = { +type TeamsUpdateDiscussionCommentInOrgEndpoint = { /** - * project_id parameter + * org parameter */ - project_id: number; + org: string; /** - * Results per page (max 100) + * team_slug parameter */ - per_page?: number; + team_slug: string; /** - * Page number of the results to fetch. + * discussion_number parameter */ - page?: number; -}; -type ProjectsListColumnsRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ProjectsCreateColumnEndpoint = { + discussion_number: number; /** - * project_id parameter + * comment_number parameter */ - project_id: number; + comment_number: number; /** - * The name of the column. + * The discussion comment's body text. */ - name: string; -}; -type ProjectsCreateColumnRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; + body: string; }; -type RateLimitGetEndpoint = {}; -type RateLimitGetRequestOptions = { - method: "GET"; +type TeamsUpdateDiscussionCommentInOrgRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsDeleteEndpoint = { +type TeamsDeleteDiscussionCommentInOrgEndpoint = { /** - * reaction_id parameter + * org parameter */ - reaction_id: number; + org: string; + /** + * team_slug parameter + */ + team_slug: string; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * comment_number parameter + */ + comment_number: number; }; -type ReactionsDeleteRequestOptions = { +type TeamsDeleteDiscussionCommentInOrgRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetEndpoint = { +type ReactionsListForTeamDiscussionCommentInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; -}; -type ReposGetRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposUpdateEndpoint = { + team_slug: string; /** - * owner parameter + * discussion_number parameter */ - owner: string; + discussion_number: number; /** - * repo parameter + * comment_number parameter */ - repo: string; + comment_number: number; /** - * The name of the repository. + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. */ - name?: string; + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** - * A short description of the repository. + * Results per page (max 100) */ - description?: string; + per_page?: number; /** - * A URL with more information about the repository. + * Page number of the results to fetch. */ - homepage?: string; + page?: number; +}; +type ReactionsListForTeamDiscussionCommentInOrgRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReactionsCreateForTeamDiscussionCommentInOrgEndpoint = { /** - * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. - * **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. + * org parameter */ - private?: boolean; + org: string; /** - * Either `true` to enable issues for this repository or `false` to disable them. + * team_slug parameter */ - has_issues?: boolean; + team_slug: string; /** - * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. + * discussion_number parameter */ - has_projects?: boolean; + discussion_number: number; /** - * Either `true` to enable the wiki for this repository or `false` to disable it. + * comment_number parameter */ - has_wiki?: boolean; + comment_number: number; /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. */ - is_template?: boolean; + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; +}; +type ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReactionsListForTeamDiscussionInOrgEndpoint = { /** - * Updates the default branch for this repository. + * org parameter */ - default_branch?: string; + org: string; /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + * team_slug parameter */ - allow_squash_merge?: boolean; + team_slug: string; /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + * discussion_number parameter */ - allow_merge_commit?: boolean; + discussion_number: number; /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. */ - allow_rebase_merge?: boolean; + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. + * Results per page (max 100) */ - archived?: boolean; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposUpdateRequestOptions = { - method: "PATCH"; +type ReactionsListForTeamDiscussionInOrgRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteEndpoint = { +type ReactionsCreateForTeamDiscussionInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; -type ReposDeleteRequestOptions = { - method: "DELETE"; +type ReactionsCreateForTeamDiscussionInOrgRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListAssigneesEndpoint = { +type TeamsListPendingInvitationsInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** * Results per page (max 100) */ @@ -4915,77 +5362,118 @@ type IssuesListAssigneesEndpoint = { */ page?: number; }; -type IssuesListAssigneesRequestOptions = { +type TeamsListPendingInvitationsInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesCheckAssigneeEndpoint = { +type TeamsListMembersInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** - * assignee parameter + * Filters members returned by their role in the team. Can be one of: + * \* `member` - normal members of the team. + * \* `maintainer` - team maintainers. + * \* `all` - all members of the team. */ - assignee: string; + role?: "member" | "maintainer" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type IssuesCheckAssigneeRequestOptions = { +type TeamsListMembersInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposEnableAutomatedSecurityFixesEndpoint = { +type TeamsGetMembershipInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; + /** + * username parameter + */ + username: string; }; -type ReposEnableAutomatedSecurityFixesRequestOptions = { - method: "PUT"; +type TeamsGetMembershipInOrgRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDisableAutomatedSecurityFixesEndpoint = { +type TeamsAddOrUpdateMembershipInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; + /** + * username parameter + */ + username: string; + /** + * The role that this user should have in the team. Can be one of: + * \* `member` - a normal member of the team. + * \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. + */ + role?: "member" | "maintainer"; }; -type ReposDisableAutomatedSecurityFixesRequestOptions = { - method: "DELETE"; +type TeamsAddOrUpdateMembershipInOrgRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListBranchesEndpoint = { +type TeamsRemoveMembershipInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** - * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. + * username parameter */ - protected?: boolean; + username: string; +}; +type TeamsRemoveMembershipInOrgRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsListProjectsInOrgEndpoint = { + /** + * org parameter + */ + org: string; + /** + * team_slug parameter + */ + team_slug: string; /** * Results per page (max 100) */ @@ -4995,109 +5483,113 @@ type ReposListBranchesEndpoint = { */ page?: number; }; -type ReposListBranchesRequestOptions = { +type TeamsListProjectsInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetBranchEndpoint = { +type TeamsReviewProjectInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** - * branch parameter + * project_id parameter */ - branch: string; + project_id: number; }; -type ReposGetBranchRequestOptions = { +type TeamsReviewProjectInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetBranchProtectionEndpoint = { +type TeamsAddOrUpdateProjectInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** - * branch parameter + * project_id parameter */ - branch: string; + project_id: number; + /** + * The permission to grant to the team for this project. Can be one of: + * \* `read` - team members can read, but not write to or administer this project. + * \* `write` - team members can read and write, but not administer this project. + * \* `admin` - team members can read, write and administer this project. + * Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + */ + permission?: "read" | "write" | "admin"; }; -type ReposGetBranchProtectionRequestOptions = { - method: "GET"; +type TeamsAddOrUpdateProjectInOrgRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateBranchProtectionEndpoint = { +type TeamsRemoveProjectInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** - * branch parameter + * project_id parameter */ - branch: string; + project_id: number; +}; +type TeamsRemoveProjectInOrgRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsListReposInOrgEndpoint = { /** - * Require status checks to pass before merging. Set to `null` to disable. + * org parameter */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; + org: string; /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. + * team_slug parameter */ - enforce_admins: boolean | null; + team_slug: string; /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. + * Results per page (max 100) */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; + per_page?: number; /** - * Restrict who can push to this branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. + * Page number of the results to fetch. */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; + page?: number; }; -type ReposUpdateBranchProtectionRequestOptions = { - method: "PUT"; +type TeamsListReposInOrgRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; +type TeamsCheckManagesRepoInOrgEndpoint = { /** - * repo parameter + * org parameter */ - repo: string; + org: string; /** - * branch parameter + * team_slug parameter */ - branch: string; -}; -type ReposRemoveBranchProtectionRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposGetProtectedBranchAdminEnforcementEndpoint = { + team_slug: string; /** * owner parameter */ @@ -5106,18 +5598,22 @@ type ReposGetProtectedBranchAdminEnforcementEndpoint = { * repo parameter */ repo: string; - /** - * branch parameter - */ - branch: string; }; -type ReposGetProtectedBranchAdminEnforcementRequestOptions = { +type TeamsCheckManagesRepoInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddProtectedBranchAdminEnforcementEndpoint = { +type TeamsAddOrUpdateRepoInOrgEndpoint = { + /** + * org parameter + */ + org: string; + /** + * team_slug parameter + */ + team_slug: string; /** * owner parameter */ @@ -5127,17 +5623,30 @@ type ReposAddProtectedBranchAdminEnforcementEndpoint = { */ repo: string; /** - * branch parameter + * The permission to grant the team on this repository. Can be one of: + * \* `pull` - team members can pull, but not push to or administer this repository. + * \* `push` - team members can pull and push, but not administer this repository. + * \* `admin` - team members can pull, push and administer this repository. + * + * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. */ - branch: string; + permission?: "pull" | "push" | "admin"; }; -type ReposAddProtectedBranchAdminEnforcementRequestOptions = { - method: "POST"; +type TeamsAddOrUpdateRepoInOrgRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchAdminEnforcementEndpoint = { +type TeamsRemoveRepoInOrgEndpoint = { + /** + * org parameter + */ + org: string; + /** + * team_slug parameter + */ + team_slug: string; /** * owner parameter */ @@ -5146,506 +5655,456 @@ type ReposRemoveProtectedBranchAdminEnforcementEndpoint = { * repo parameter */ repo: string; - /** - * branch parameter - */ - branch: string; }; -type ReposRemoveProtectedBranchAdminEnforcementRequestOptions = { +type TeamsRemoveRepoInOrgRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint = { +type TeamsListIdPGroupsInOrgEndpoint = { /** - * owner parameter - */ - owner: string; - /** - * repo parameter + * org parameter */ - repo: string; + org: string; /** - * branch parameter + * team_slug parameter */ - branch: string; + team_slug: string; }; -type ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions = { +type TeamsListIdPGroupsInOrgRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = { +type TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint = { /** - * owner parameter + * org parameter */ - owner: string; + org: string; /** - * repo parameter + * team_slug parameter */ - repo: string; + team_slug: string; /** - * branch parameter + * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. */ - branch: string; + groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups[]; +}; +type TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsListChildInOrgEndpoint = { /** - * Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. + * org parameter */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; + org: string; /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. + * team_slug parameter */ - dismiss_stale_reviews?: boolean; + team_slug: string; /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. + * Results per page (max 100) */ - require_code_owner_reviews?: boolean; + per_page?: number; /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. + * Page number of the results to fetch. */ - required_approving_review_count?: number; + page?: number; }; -type ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "PATCH"; +type TeamsListChildInOrgRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint = { +type ProjectsGetCardEndpoint = { /** - * owner parameter + * card_id parameter */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; + card_id: number; }; -type ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "DELETE"; +type ProjectsGetCardRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetProtectedBranchRequiredSignaturesEndpoint = { +type ProjectsUpdateCardEndpoint = { /** - * owner parameter + * card_id parameter */ - owner: string; + card_id: number; /** - * repo parameter + * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. */ - repo: string; + note?: string; /** - * branch parameter + * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. */ - branch: string; + archived?: boolean; }; -type ReposGetProtectedBranchRequiredSignaturesRequestOptions = { - method: "GET"; +type ProjectsUpdateCardRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsDeleteCardEndpoint = { /** - * branch parameter + * card_id parameter */ - branch: string; + card_id: number; }; -type ReposAddProtectedBranchRequiredSignaturesRequestOptions = { - method: "POST"; +type ProjectsDeleteCardRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchRequiredSignaturesEndpoint = { +type ProjectsMoveCardEndpoint = { /** - * owner parameter + * card_id parameter */ - owner: string; + card_id: number; /** - * repo parameter + * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. */ - repo: string; + position: string; /** - * branch parameter + * The `id` value of a column in the same project. */ - branch: string; + column_id?: number; }; -type ReposRemoveProtectedBranchRequiredSignaturesRequestOptions = { - method: "DELETE"; +type ProjectsMoveCardRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsGetColumnEndpoint = { /** - * branch parameter + * column_id parameter */ - branch: string; + column_id: number; }; -type ReposGetProtectedBranchRequiredStatusChecksRequestOptions = { +type ProjectsGetColumnRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; +type ProjectsUpdateColumnEndpoint = { /** - * Require branches to be up to date before merging. + * column_id parameter */ - strict?: boolean; + column_id: number; /** - * The list of status checks to require in order to merge into this branch + * The new name of the column. */ - contexts?: string[]; + name: string; }; -type ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions = { +type ProjectsUpdateColumnRequestOptions = { method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsDeleteColumnEndpoint = { /** - * branch parameter + * column_id parameter */ - branch: string; + column_id: number; }; -type ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions = { +type ProjectsDeleteColumnRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListProtectedBranchRequiredStatusChecksContextsEndpoint = { +type ProjectsListCardsEndpoint = { /** - * owner parameter + * column_id parameter */ - owner: string; + column_id: number; /** - * repo parameter + * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. */ - repo: string; + archived_state?: "all" | "archived" | "not_archived"; /** - * branch parameter + * Results per page (max 100) */ - branch: string; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions = { +type ProjectsListCardsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = { +type ProjectsCreateCardEndpoint = { /** - * owner parameter + * column_id parameter */ - owner: string; + column_id: number; /** - * repo parameter + * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. */ - repo: string; + note?: string; /** - * branch parameter + * The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. + * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. */ - branch: string; + content_id?: number; /** - * contexts parameter + * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. */ - contexts: string[]; + content_type?: string; }; -type ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "PUT"; +type ProjectsCreateCardRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsMoveColumnEndpoint = { /** - * branch parameter + * column_id parameter */ - branch: string; + column_id: number; /** - * contexts parameter + * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. */ - contexts: string[]; + position: string; }; -type ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions = { +type ProjectsMoveColumnRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; +type ProjectsGetEndpoint = { /** - * repo parameter + * project_id parameter */ - repo: string; + project_id: number; /** - * branch parameter + * Results per page (max 100) */ - branch: string; + per_page?: number; /** - * contexts parameter + * Page number of the results to fetch. */ - contexts: string[]; + page?: number; }; -type ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "DELETE"; +type ProjectsGetRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetProtectedBranchRestrictionsEndpoint = { +type ProjectsUpdateEndpoint = { /** - * owner parameter + * project_id parameter */ - owner: string; + project_id: number; /** - * repo parameter + * The name of the project. */ - repo: string; + name?: string; /** - * branch parameter + * The description of the project. */ - branch: string; -}; -type ReposGetProtectedBranchRestrictionsRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposRemoveProtectedBranchRestrictionsEndpoint = { + body?: string; /** - * owner parameter + * State of the project. Either `open` or `closed`. */ - owner: string; + state?: "open" | "closed"; /** - * repo parameter + * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). + * + * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. + * + * Can be one of: + * \* `read` - Organization members can read, but not write to or administer this project. + * \* `write` - Organization members can read and write, but not administer this project. + * \* `admin` - Organization members can read, write and administer this project. + * \* `none` - Organization members can only see this project if it is public. */ - repo: string; + organization_permission?: string; /** - * branch parameter + * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. + * + * Can be one of: + * \* `false` - Anyone can see the project. + * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. */ - branch: string; + private?: boolean; }; -type ReposRemoveProtectedBranchRestrictionsRequestOptions = { - method: "DELETE"; - url: Url; +type ProjectsUpdateRequestOptions = { + method: "PATCH"; + url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetAppsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsDeleteEndpoint = { /** - * branch parameter + * project_id parameter */ - branch: string; + project_id: number; }; -type ReposGetAppsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; +type ProjectsDeleteRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListAppsWithAccessToProtectedBranchEndpoint = { +type ProjectsListCollaboratorsEndpoint = { /** - * owner parameter + * project_id parameter */ - owner: string; + project_id: number; /** - * repo parameter + * Filters the collaborators by their affiliation. Can be one of: + * \* `outside`: Outside collaborators of a project that are not a member of the project's organization. + * \* `direct`: Collaborators with permissions to a project, regardless of organization membership status. + * \* `all`: All collaborators the authenticated user can see. */ - repo: string; + affiliation?: "outside" | "direct" | "all"; /** - * branch parameter + * Results per page (max 100) */ - branch: string; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposListAppsWithAccessToProtectedBranchRequestOptions = { +type ProjectsListCollaboratorsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposReplaceProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; +type ProjectsAddCollaboratorEndpoint = { /** - * repo parameter + * project_id parameter */ - repo: string; + project_id: number; /** - * branch parameter + * username parameter */ - branch: string; + username: string; /** - * apps parameter + * The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." Can be one of: + * \* `read` - can read, but not write to or administer this project. + * \* `write` - can read and write, but not administer this project. + * \* `admin` - can read, write and administer this project. */ - apps: string[]; + permission?: "read" | "write" | "admin"; }; -type ReposReplaceProtectedBranchAppRestrictionsRequestOptions = { +type ProjectsAddCollaboratorRequestOptions = { method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsRemoveCollaboratorEndpoint = { /** - * branch parameter + * project_id parameter */ - branch: string; + project_id: number; /** - * apps parameter + * username parameter */ - apps: string[]; + username: string; }; -type ReposAddProtectedBranchAppRestrictionsRequestOptions = { - method: "POST"; +type ProjectsRemoveCollaboratorRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; +type ProjectsReviewUserPermissionLevelEndpoint = { /** - * branch parameter + * project_id parameter */ - branch: string; + project_id: number; /** - * apps parameter + * username parameter */ - apps: string[]; + username: string; }; -type ReposRemoveProtectedBranchAppRestrictionsRequestOptions = { - method: "DELETE"; +type ProjectsReviewUserPermissionLevelRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetTeamsWithAccessToProtectedBranchEndpoint = { +type ProjectsListColumnsEndpoint = { /** - * owner parameter + * project_id parameter */ - owner: string; + project_id: number; /** - * repo parameter + * Results per page (max 100) */ - repo: string; + per_page?: number; /** - * branch parameter + * Page number of the results to fetch. */ - branch: string; + page?: number; }; -type ReposGetTeamsWithAccessToProtectedBranchRequestOptions = { +type ProjectsListColumnsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListProtectedBranchTeamRestrictionsEndpoint = { +type ProjectsCreateColumnEndpoint = { /** - * owner parameter + * project_id parameter */ - owner: string; + project_id: number; /** - * repo parameter + * The name of the column. */ - repo: string; + name: string; +}; +type ProjectsCreateColumnRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type RateLimitGetEndpoint = {}; +type RateLimitGetRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReactionsDeleteEndpoint = { /** - * branch parameter + * reaction_id parameter */ - branch: string; + reaction_id: number; }; -type ReposListProtectedBranchTeamRestrictionsRequestOptions = { - method: "GET"; +type ReactionsDeleteRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListTeamsWithAccessToProtectedBranchEndpoint = { +type ReposGetEndpoint = { /** * owner parameter */ @@ -5654,18 +6113,14 @@ type ReposListTeamsWithAccessToProtectedBranchEndpoint = { * repo parameter */ repo: string; - /** - * branch parameter - */ - branch: string; }; -type ReposListTeamsWithAccessToProtectedBranchRequestOptions = { +type ReposGetRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = { +type ReposUpdateEndpoint = { /** * owner parameter */ @@ -5675,45 +6130,74 @@ type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = { */ repo: string; /** - * branch parameter + * The name of the repository. */ - branch: string; + name?: string; /** - * teams parameter + * A short description of the repository. */ - teams: string[]; -}; -type ReposReplaceProtectedBranchTeamRestrictionsRequestOptions = { - method: "PUT"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposAddProtectedBranchTeamRestrictionsEndpoint = { + description?: string; /** - * owner parameter + * A URL with more information about the repository. */ - owner: string; + homepage?: string; /** - * repo parameter + * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. + * **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. */ - repo: string; + private?: boolean; /** - * branch parameter + * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header. */ - branch: string; + visibility?: "public" | "private" | "visibility" | "internal"; /** - * teams parameter + * Either `true` to enable issues for this repository or `false` to disable them. */ - teams: string[]; + has_issues?: boolean; + /** + * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. + */ + has_projects?: boolean; + /** + * Either `true` to enable the wiki for this repository or `false` to disable it. + */ + has_wiki?: boolean; + /** + * Either `true` to make this repo available as a template repository or `false` to prevent it. + */ + is_template?: boolean; + /** + * Updates the default branch for this repository. + */ + default_branch?: string; + /** + * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + */ + allow_squash_merge?: boolean; + /** + * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + */ + allow_merge_commit?: boolean; + /** + * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + */ + allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; + /** + * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. + */ + archived?: boolean; }; -type ReposAddProtectedBranchTeamRestrictionsRequestOptions = { - method: "POST"; +type ReposUpdateRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = { +type ReposDeleteEndpoint = { /** * owner parameter */ @@ -5722,22 +6206,14 @@ type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = { * repo parameter */ repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; }; -type ReposRemoveProtectedBranchTeamRestrictionsRequestOptions = { +type ReposDeleteRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetUsersWithAccessToProtectedBranchEndpoint = { +type IssuesListAssigneesEndpoint = { /** * owner parameter */ @@ -5747,17 +6223,21 @@ type ReposGetUsersWithAccessToProtectedBranchEndpoint = { */ repo: string; /** - * branch parameter + * Results per page (max 100) */ - branch: string; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposGetUsersWithAccessToProtectedBranchRequestOptions = { +type IssuesListAssigneesRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListProtectedBranchUserRestrictionsEndpoint = { +type IssuesCheckAssigneeEndpoint = { /** * owner parameter */ @@ -5767,17 +6247,17 @@ type ReposListProtectedBranchUserRestrictionsEndpoint = { */ repo: string; /** - * branch parameter + * assignee parameter */ - branch: string; + assignee: string; }; -type ReposListProtectedBranchUserRestrictionsRequestOptions = { +type IssuesCheckAssigneeRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListUsersWithAccessToProtectedBranchEndpoint = { +type ReposEnableAutomatedSecurityFixesEndpoint = { /** * owner parameter */ @@ -5786,18 +6266,14 @@ type ReposListUsersWithAccessToProtectedBranchEndpoint = { * repo parameter */ repo: string; - /** - * branch parameter - */ - branch: string; }; -type ReposListUsersWithAccessToProtectedBranchRequestOptions = { - method: "GET"; +type ReposEnableAutomatedSecurityFixesRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposReplaceProtectedBranchUserRestrictionsEndpoint = { +type ReposDisableAutomatedSecurityFixesEndpoint = { /** * owner parameter */ @@ -5806,22 +6282,14 @@ type ReposReplaceProtectedBranchUserRestrictionsEndpoint = { * repo parameter */ repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; }; -type ReposReplaceProtectedBranchUserRestrictionsRequestOptions = { - method: "PUT"; +type ReposDisableAutomatedSecurityFixesRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddProtectedBranchUserRestrictionsEndpoint = { +type ReposListBranchesEndpoint = { /** * owner parameter */ @@ -5831,21 +6299,25 @@ type ReposAddProtectedBranchUserRestrictionsEndpoint = { */ repo: string; /** - * branch parameter + * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. */ - branch: string; + protected?: boolean; /** - * users parameter + * Results per page (max 100) */ - users: string[]; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposAddProtectedBranchUserRestrictionsRequestOptions = { - method: "POST"; +type ReposListBranchesRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveProtectedBranchUserRestrictionsEndpoint = { +type ReposGetBranchEndpoint = { /** * owner parameter */ @@ -5858,18 +6330,14 @@ type ReposRemoveProtectedBranchUserRestrictionsEndpoint = { * branch parameter */ branch: string; - /** - * users parameter - */ - users: string[]; }; -type ReposRemoveProtectedBranchUserRestrictionsRequestOptions = { - method: "DELETE"; +type ReposGetBranchRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksCreateEndpoint = { +type ReposGetBranchProtectionEndpoint = { /** * owner parameter */ @@ -5879,60 +6347,17 @@ type ChecksCreateEndpoint = { */ repo: string; /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. - */ - conclusion?: - | "success" - | "failure" - | "neutral" - | "cancelled" - | "timed_out" - | "action_required"; - /** - * The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - completed_at?: string; - /** - * Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object) description. - */ - output?: ChecksCreateParamsOutput; - /** - * Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." + * branch parameter */ - actions?: ChecksCreateParamsActions[]; + branch: string; }; -type ChecksCreateRequestOptions = { - method: "POST"; +type ReposGetBranchProtectionRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksUpdateEndpoint = { +type ReposUpdateBranchProtectionEndpoint = { /** * owner parameter */ @@ -5942,60 +6367,45 @@ type ChecksUpdateEndpoint = { */ repo: string; /** - * check_run_id parameter - */ - check_run_id: number; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * The URL of the integrator's site that has the full details of the check. + * branch parameter */ - details_url?: string; + branch: string; /** - * A reference for the run on the integrator's system. + * Require status checks to pass before merging. Set to `null` to disable. */ - external_id?: string; + required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. */ - started_at?: string; + enforce_admins: boolean | null; /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. + * Require at least one approving review on a pull request, before merging. Set to `null` to disable. */ - status?: "queued" | "in_progress" | "completed"; + required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. + * Restrict who can push to the protected branch. User, app, and team `restrictions` are only available for organization-owned repositories. Set to `null` to disable. */ - conclusion?: - | "success" - | "failure" - | "neutral" - | "cancelled" - | "timed_out" - | "action_required"; + restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; /** - * The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * Enforces a linear commit Git history, which prevents anyone from pushing merge commits to a branch. Set to `true` to enforce a linear commit history. Set to `false` to disable a linear commit Git history. Your repository must allow squash merging or rebase merging before you can enable a linear commit history. Default: `false`. For more information, see "[Requiring a linear commit history](https://help.github.com/github/administering-a-repository/requiring-a-linear-commit-history)" in the GitHub Help documentation. */ - completed_at?: string; + required_linear_history?: boolean; /** - * Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object-1) description. + * Permits force pushes to the protected branch by anyone with write access to the repository. Set to `true` to allow force pushes. Set to `false` or `null` to block force pushes. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation." */ - output?: ChecksUpdateParamsOutput; + allow_force_pushes?: boolean | null; /** - * Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." + * Allows deletion of the protected branch by anyone with write access to the repository. Set to `false` to prevent deletion of the protected branch. Default: `false`. For more information, see "[Enabling force pushes to a protected branch](https://help.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)" in the GitHub Help documentation. */ - actions?: ChecksUpdateParamsActions[]; + allow_deletions?: boolean; }; -type ChecksUpdateRequestOptions = { - method: "PATCH"; +type ReposUpdateBranchProtectionRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksGetEndpoint = { +type ReposRemoveBranchProtectionEndpoint = { /** * owner parameter */ @@ -6005,17 +6415,17 @@ type ChecksGetEndpoint = { */ repo: string; /** - * check_run_id parameter + * branch parameter */ - check_run_id: number; + branch: string; }; -type ChecksGetRequestOptions = { - method: "GET"; +type ReposRemoveBranchProtectionRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksListAnnotationsEndpoint = { +type ReposGetProtectedBranchAdminEnforcementEndpoint = { /** * owner parameter */ @@ -6025,25 +6435,17 @@ type ChecksListAnnotationsEndpoint = { */ repo: string; /** - * check_run_id parameter - */ - check_run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * branch parameter */ - page?: number; + branch: string; }; -type ChecksListAnnotationsRequestOptions = { +type ReposGetProtectedBranchAdminEnforcementRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksCreateSuiteEndpoint = { +type ReposAddProtectedBranchAdminEnforcementEndpoint = { /** * owner parameter */ @@ -6053,17 +6455,17 @@ type ChecksCreateSuiteEndpoint = { */ repo: string; /** - * The sha of the head commit. + * branch parameter */ - head_sha: string; + branch: string; }; -type ChecksCreateSuiteRequestOptions = { +type ReposAddProtectedBranchAdminEnforcementRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksSetSuitesPreferencesEndpoint = { +type ReposRemoveProtectedBranchAdminEnforcementEndpoint = { /** * owner parameter */ @@ -6073,17 +6475,17 @@ type ChecksSetSuitesPreferencesEndpoint = { */ repo: string; /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. + * branch parameter */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; + branch: string; }; -type ChecksSetSuitesPreferencesRequestOptions = { - method: "PATCH"; +type ReposRemoveProtectedBranchAdminEnforcementRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksGetSuiteEndpoint = { +type ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint = { /** * owner parameter */ @@ -6093,17 +6495,17 @@ type ChecksGetSuiteEndpoint = { */ repo: string; /** - * check_suite_id parameter + * branch parameter */ - check_suite_id: number; + branch: string; }; -type ChecksGetSuiteRequestOptions = { +type ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksListForSuiteEndpoint = { +type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = { /** * owner parameter */ @@ -6113,37 +6515,33 @@ type ChecksListForSuiteEndpoint = { */ repo: string; /** - * check_suite_id parameter - */ - check_suite_id: number; - /** - * Returns check runs with the specified `name`. + * branch parameter */ - check_name?: string; + branch: string; /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. + * Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. */ - status?: "queued" | "in_progress" | "completed"; + dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. + * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. */ - filter?: "latest" | "all"; + dismiss_stale_reviews?: boolean; /** - * Results per page (max 100) + * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. */ - per_page?: number; + require_code_owner_reviews?: boolean; /** - * Page number of the results to fetch. + * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. */ - page?: number; + required_approving_review_count?: number; }; -type ChecksListForSuiteRequestOptions = { - method: "GET"; +type ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksRerequestSuiteEndpoint = { +type ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint = { /** * owner parameter */ @@ -6153,17 +6551,17 @@ type ChecksRerequestSuiteEndpoint = { */ repo: string; /** - * check_suite_id parameter + * branch parameter */ - check_suite_id: number; + branch: string; }; -type ChecksRerequestSuiteRequestOptions = { - method: "POST"; +type ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListCollaboratorsEndpoint = { +type ReposGetProtectedBranchRequiredSignaturesEndpoint = { /** * owner parameter */ @@ -6173,28 +6571,17 @@ type ReposListCollaboratorsEndpoint = { */ repo: string; /** - * Filter collaborators returned by their affiliation. Can be one of: - * \* `outside`: All outside collaborators of an organization-owned repository. - * \* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. - * \* `all`: All collaborators the authenticated user can see. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * branch parameter */ - page?: number; + branch: string; }; -type ReposListCollaboratorsRequestOptions = { +type ReposGetProtectedBranchRequiredSignaturesRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCheckCollaboratorEndpoint = { +type ReposAddProtectedBranchRequiredSignaturesEndpoint = { /** * owner parameter */ @@ -6204,17 +6591,17 @@ type ReposCheckCollaboratorEndpoint = { */ repo: string; /** - * username parameter + * branch parameter */ - username: string; + branch: string; }; -type ReposCheckCollaboratorRequestOptions = { - method: "GET"; +type ReposAddProtectedBranchRequiredSignaturesRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddCollaboratorEndpoint = { +type ReposRemoveProtectedBranchRequiredSignaturesEndpoint = { /** * owner parameter */ @@ -6224,24 +6611,17 @@ type ReposAddCollaboratorEndpoint = { */ repo: string; /** - * username parameter - */ - username: string; - /** - * The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: - * \* `pull` - can pull, but not push to or administer this repository. - * \* `push` - can pull and push, but not administer this repository. - * \* `admin` - can pull, push and administer this repository. + * branch parameter */ - permission?: "pull" | "push" | "admin"; + branch: string; }; -type ReposAddCollaboratorRequestOptions = { - method: "PUT"; +type ReposRemoveProtectedBranchRequiredSignaturesRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveCollaboratorEndpoint = { +type ReposGetProtectedBranchRequiredStatusChecksEndpoint = { /** * owner parameter */ @@ -6251,17 +6631,17 @@ type ReposRemoveCollaboratorEndpoint = { */ repo: string; /** - * username parameter + * branch parameter */ - username: string; + branch: string; }; -type ReposRemoveCollaboratorRequestOptions = { - method: "DELETE"; +type ReposGetProtectedBranchRequiredStatusChecksRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetCollaboratorPermissionLevelEndpoint = { +type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = { /** * owner parameter */ @@ -6271,17 +6651,25 @@ type ReposGetCollaboratorPermissionLevelEndpoint = { */ repo: string; /** - * username parameter + * branch parameter */ - username: string; + branch: string; + /** + * Require branches to be up to date before merging. + */ + strict?: boolean; + /** + * The list of status checks to require in order to merge into this branch + */ + contexts?: string[]; }; -type ReposGetCollaboratorPermissionLevelRequestOptions = { - method: "GET"; +type ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListCommitCommentsEndpoint = { +type ReposRemoveProtectedBranchRequiredStatusChecksEndpoint = { /** * owner parameter */ @@ -6291,21 +6679,17 @@ type ReposListCommitCommentsEndpoint = { */ repo: string; /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * branch parameter */ - page?: number; + branch: string; }; -type ReposListCommitCommentsRequestOptions = { - method: "GET"; +type ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetCommitCommentEndpoint = { +type ReposListProtectedBranchRequiredStatusChecksContextsEndpoint = { /** * owner parameter */ @@ -6315,17 +6699,17 @@ type ReposGetCommitCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * branch parameter */ - comment_id: number; + branch: string; }; -type ReposGetCommitCommentRequestOptions = { +type ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateCommitCommentEndpoint = { +type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = { /** * owner parameter */ @@ -6335,21 +6719,21 @@ type ReposUpdateCommitCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * branch parameter */ - comment_id: number; + branch: string; /** - * The contents of the comment + * contexts parameter */ - body: string; + contexts: string[]; }; -type ReposUpdateCommitCommentRequestOptions = { - method: "PATCH"; +type ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteCommitCommentEndpoint = { +type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = { /** * owner parameter */ @@ -6359,17 +6743,21 @@ type ReposDeleteCommitCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * branch parameter */ - comment_id: number; + branch: string; + /** + * contexts parameter + */ + contexts: string[]; }; -type ReposDeleteCommitCommentRequestOptions = { - method: "DELETE"; +type ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsListForCommitCommentEndpoint = { +type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = { /** * owner parameter */ @@ -6379,37 +6767,21 @@ type ReactionsListForCommitCommentEndpoint = { */ repo: string; /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - /** - * Results per page (max 100) + * branch parameter */ - per_page?: number; + branch: string; /** - * Page number of the results to fetch. + * contexts parameter */ - page?: number; + contexts: string[]; }; -type ReactionsListForCommitCommentRequestOptions = { - method: "GET"; +type ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsCreateForCommitCommentEndpoint = { +type ReposGetProtectedBranchRestrictionsEndpoint = { /** * owner parameter */ @@ -6419,29 +6791,17 @@ type ReactionsCreateForCommitCommentEndpoint = { */ repo: string; /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. + * branch parameter */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; + branch: string; }; -type ReactionsCreateForCommitCommentRequestOptions = { - method: "POST"; +type ReposGetProtectedBranchRestrictionsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListCommitsEndpoint = { +type ReposRemoveProtectedBranchRestrictionsEndpoint = { /** * owner parameter */ @@ -6451,41 +6811,37 @@ type ReposListCommitsEndpoint = { */ repo: string; /** - * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). - */ - sha?: string; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - /** - * Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * branch parameter */ - since?: string; + branch: string; +}; +type ReposRemoveProtectedBranchRestrictionsRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetAppsWithAccessToProtectedBranchEndpoint = { /** - * Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * owner parameter */ - until?: string; + owner: string; /** - * Results per page (max 100) + * repo parameter */ - per_page?: number; + repo: string; /** - * Page number of the results to fetch. + * branch parameter */ - page?: number; + branch: string; }; -type ReposListCommitsRequestOptions = { +type ReposGetAppsWithAccessToProtectedBranchRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListBranchesForHeadCommitEndpoint = { +type ReposListAppsWithAccessToProtectedBranchEndpoint = { /** * owner parameter */ @@ -6495,17 +6851,17 @@ type ReposListBranchesForHeadCommitEndpoint = { */ repo: string; /** - * commit_sha parameter + * branch parameter */ - commit_sha: string; + branch: string; }; -type ReposListBranchesForHeadCommitRequestOptions = { +type ReposListAppsWithAccessToProtectedBranchRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListCommentsForCommitEndpoint = { +type ReposReplaceProtectedBranchAppRestrictionsEndpoint = { /** * owner parameter */ @@ -6515,25 +6871,21 @@ type ReposListCommentsForCommitEndpoint = { */ repo: string; /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) + * branch parameter */ - per_page?: number; + branch: string; /** - * Page number of the results to fetch. + * apps parameter */ - page?: number; + apps: string[]; }; -type ReposListCommentsForCommitRequestOptions = { - method: "GET"; +type ReposReplaceProtectedBranchAppRestrictionsRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateCommitCommentEndpoint = { +type ReposAddProtectedBranchAppRestrictionsEndpoint = { /** * owner parameter */ @@ -6543,33 +6895,21 @@ type ReposCreateCommitCommentEndpoint = { */ repo: string; /** - * commit_sha parameter - */ - commit_sha: string; - /** - * The contents of the comment. + * branch parameter */ - body: string; + branch: string; /** - * Relative path of the file to comment on. + * apps parameter */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - */ - line?: number; + apps: string[]; }; -type ReposCreateCommitCommentRequestOptions = { +type ReposAddProtectedBranchAppRestrictionsRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListPullRequestsAssociatedWithCommitEndpoint = { +type ReposRemoveProtectedBranchAppRestrictionsEndpoint = { /** * owner parameter */ @@ -6579,25 +6919,21 @@ type ReposListPullRequestsAssociatedWithCommitEndpoint = { */ repo: string; /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) + * branch parameter */ - per_page?: number; + branch: string; /** - * Page number of the results to fetch. + * apps parameter */ - page?: number; + apps: string[]; }; -type ReposListPullRequestsAssociatedWithCommitRequestOptions = { - method: "GET"; +type ReposRemoveProtectedBranchAppRestrictionsRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetCommitEndpoint = { +type ReposGetTeamsWithAccessToProtectedBranchEndpoint = { /** * owner parameter */ @@ -6607,17 +6943,17 @@ type ReposGetCommitEndpoint = { */ repo: string; /** - * ref parameter + * branch parameter */ - ref: string; + branch: string; }; -type ReposGetCommitRequestOptions = { +type ReposGetTeamsWithAccessToProtectedBranchRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksListForRefEndpoint = { +type ReposListProtectedBranchTeamRestrictionsEndpoint = { /** * owner parameter */ @@ -6627,37 +6963,17 @@ type ChecksListForRefEndpoint = { */ repo: string; /** - * ref parameter - */ - ref: string; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * branch parameter */ - page?: number; + branch: string; }; -type ChecksListForRefRequestOptions = { +type ReposListProtectedBranchTeamRestrictionsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ChecksListSuitesForRefEndpoint = { +type ReposListTeamsWithAccessToProtectedBranchEndpoint = { /** * owner parameter */ @@ -6667,33 +6983,17 @@ type ChecksListSuitesForRefEndpoint = { */ repo: string; /** - * ref parameter - */ - ref: string; - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * branch parameter */ - page?: number; + branch: string; }; -type ChecksListSuitesForRefRequestOptions = { +type ReposListTeamsWithAccessToProtectedBranchRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetCombinedStatusForRefEndpoint = { +type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = { /** * owner parameter */ @@ -6703,17 +7003,21 @@ type ReposGetCombinedStatusForRefEndpoint = { */ repo: string; /** - * ref parameter + * branch parameter */ - ref: string; + branch: string; + /** + * teams parameter + */ + teams: string[]; }; -type ReposGetCombinedStatusForRefRequestOptions = { - method: "GET"; +type ReposReplaceProtectedBranchTeamRestrictionsRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListStatusesForRefEndpoint = { +type ReposAddProtectedBranchTeamRestrictionsEndpoint = { /** * owner parameter */ @@ -6723,25 +7027,21 @@ type ReposListStatusesForRefEndpoint = { */ repo: string; /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) + * branch parameter */ - per_page?: number; + branch: string; /** - * Page number of the results to fetch. + * teams parameter */ - page?: number; + teams: string[]; }; -type ReposListStatusesForRefRequestOptions = { - method: "GET"; +type ReposAddProtectedBranchTeamRestrictionsRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type CodesOfConductGetForRepoEndpoint = { +type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = { /** * owner parameter */ @@ -6750,14 +7050,22 @@ type CodesOfConductGetForRepoEndpoint = { * repo parameter */ repo: string; + /** + * branch parameter + */ + branch: string; + /** + * teams parameter + */ + teams: string[]; }; -type CodesOfConductGetForRepoRequestOptions = { - method: "GET"; +type ReposRemoveProtectedBranchTeamRestrictionsRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRetrieveCommunityProfileMetricsEndpoint = { +type ReposGetUsersWithAccessToProtectedBranchEndpoint = { /** * owner parameter */ @@ -6766,14 +7074,18 @@ type ReposRetrieveCommunityProfileMetricsEndpoint = { * repo parameter */ repo: string; + /** + * branch parameter + */ + branch: string; }; -type ReposRetrieveCommunityProfileMetricsRequestOptions = { +type ReposGetUsersWithAccessToProtectedBranchRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCompareCommitsEndpoint = { +type ReposListProtectedBranchUserRestrictionsEndpoint = { /** * owner parameter */ @@ -6783,21 +7095,17 @@ type ReposCompareCommitsEndpoint = { */ repo: string; /** - * base parameter - */ - base: string; - /** - * head parameter + * branch parameter */ - head: string; + branch: string; }; -type ReposCompareCommitsRequestOptions = { +type ReposListProtectedBranchUserRestrictionsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetContentsEndpoint = { +type ReposListUsersWithAccessToProtectedBranchEndpoint = { /** * owner parameter */ @@ -6807,21 +7115,17 @@ type ReposGetContentsEndpoint = { */ repo: string; /** - * path parameter - */ - path: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) + * branch parameter */ - ref?: string; + branch: string; }; -type ReposGetContentsRequestOptions = { +type ReposListUsersWithAccessToProtectedBranchRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateOrUpdateFileEndpoint = { +type ReposReplaceProtectedBranchUserRestrictionsEndpoint = { /** * owner parameter */ @@ -6831,41 +7135,21 @@ type ReposCreateOrUpdateFileEndpoint = { */ repo: string; /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. + * branch parameter */ - committer?: ReposCreateOrUpdateFileParamsCommitter; + branch: string; /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. + * users parameter */ - author?: ReposCreateOrUpdateFileParamsAuthor; + users: string[]; }; -type ReposCreateOrUpdateFileRequestOptions = { +type ReposReplaceProtectedBranchUserRestrictionsRequestOptions = { method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateFileEndpoint = { +type ReposAddProtectedBranchUserRestrictionsEndpoint = { /** * owner parameter */ @@ -6875,41 +7159,45 @@ type ReposCreateFileEndpoint = { */ repo: string; /** - * path parameter - */ - path: string; - /** - * The commit message. + * branch parameter */ - message: string; + branch: string; /** - * The new file content, using Base64 encoding. + * users parameter */ - content: string; + users: string[]; +}; +type ReposAddProtectedBranchUserRestrictionsRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposRemoveProtectedBranchUserRestrictionsEndpoint = { /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. + * owner parameter */ - sha?: string; + owner: string; /** - * The branch name. Default: the repository’s default branch (usually `master`) + * repo parameter */ - branch?: string; + repo: string; /** - * The person that committed the file. Default: the authenticated user. + * branch parameter */ - committer?: ReposCreateFileParamsCommitter; + branch: string; /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. + * users parameter */ - author?: ReposCreateFileParamsAuthor; + users: string[]; }; -type ReposCreateFileRequestOptions = { - method: "PUT"; +type ReposRemoveProtectedBranchUserRestrictionsRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateFileEndpoint = { +type ChecksCreateEndpoint = { /** * owner parameter */ @@ -6919,41 +7207,60 @@ type ReposUpdateFileEndpoint = { */ repo: string; /** - * path parameter + * The name of the check. For example, "code-coverage". */ - path: string; + name: string; /** - * The commit message. + * The SHA of the commit. */ - message: string; + head_sha: string; /** - * The new file content, using Base64 encoding. + * The URL of the integrator's site that has the full details of the check. */ - content: string; + details_url?: string; /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. + * A reference for the run on the integrator's system. */ - sha?: string; + external_id?: string; /** - * The branch name. Default: the repository’s default branch (usually `master`) + * The current status. Can be one of `queued`, `in_progress`, or `completed`. */ - branch?: string; + status?: "queued" | "in_progress" | "completed"; /** - * The person that committed the file. Default: the authenticated user. + * The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ - committer?: ReposUpdateFileParamsCommitter; + started_at?: string; /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. + * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. + * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. */ - author?: ReposUpdateFileParamsAuthor; + conclusion?: + | "success" + | "failure" + | "neutral" + | "cancelled" + | "timed_out" + | "action_required"; + /** + * The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + completed_at?: string; + /** + * Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object) description. + */ + output?: ChecksCreateParamsOutput; + /** + * Displays a button on GitHub that can be clicked to alert your app to do additional tasks. For example, a code linting app can display a button that automatically fixes detected errors. The button created in this object is displayed after the check run completes. When a user clicks the button, GitHub sends the [`check_run.requested_action` webhook](https://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." + */ + actions?: ChecksCreateParamsActions[]; }; -type ReposUpdateFileRequestOptions = { - method: "PUT"; +type ChecksCreateRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteFileEndpoint = { +type ChecksUpdateEndpoint = { /** * owner parameter */ @@ -6963,37 +7270,60 @@ type ReposDeleteFileEndpoint = { */ repo: string; /** - * path parameter + * check_run_id parameter */ - path: string; + check_run_id: number; /** - * The commit message. + * The name of the check. For example, "code-coverage". */ - message: string; + name?: string; /** - * The blob SHA of the file being replaced. + * The URL of the integrator's site that has the full details of the check. */ - sha: string; + details_url?: string; /** - * The branch name. Default: the repository’s default branch (usually `master`) + * A reference for the run on the integrator's system. */ - branch?: string; + external_id?: string; /** - * object containing information about the committer. + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ - committer?: ReposDeleteFileParamsCommitter; + started_at?: string; /** - * object containing information about the author. + * The current status. Can be one of `queued`, `in_progress`, or `completed`. */ - author?: ReposDeleteFileParamsAuthor; + status?: "queued" | "in_progress" | "completed"; + /** + * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. + * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. + */ + conclusion?: + | "success" + | "failure" + | "neutral" + | "cancelled" + | "timed_out" + | "action_required"; + /** + * The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + completed_at?: string; + /** + * Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](https://developer.github.com/v3/checks/runs/#output-object-1) description. + */ + output?: ChecksUpdateParamsOutput; + /** + * Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." + */ + actions?: ChecksUpdateParamsActions[]; }; -type ReposDeleteFileRequestOptions = { - method: "DELETE"; +type ChecksUpdateRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListContributorsEndpoint = { +type ChecksGetEndpoint = { /** * owner parameter */ @@ -7003,9 +7333,29 @@ type ReposListContributorsEndpoint = { */ repo: string; /** - * Set to `1` or `true` to include anonymous contributors in results. + * check_run_id parameter */ - anon?: string; + check_run_id: number; +}; +type ChecksGetRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ChecksListAnnotationsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * check_run_id parameter + */ + check_run_id: number; /** * Results per page (max 100) */ @@ -7015,13 +7365,13 @@ type ReposListContributorsEndpoint = { */ page?: number; }; -type ReposListContributorsRequestOptions = { +type ChecksListAnnotationsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListDeploymentsEndpoint = { +type ChecksCreateSuiteEndpoint = { /** * owner parameter */ @@ -7031,37 +7381,37 @@ type ReposListDeploymentsEndpoint = { */ repo: string; /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). + * The sha of the head commit. */ - task?: string; + head_sha: string; +}; +type ChecksCreateSuiteRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ChecksSetSuitesPreferencesEndpoint = { /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). + * owner parameter */ - environment?: string; + owner: string; /** - * Results per page (max 100) + * repo parameter */ - per_page?: number; + repo: string; /** - * Page number of the results to fetch. + * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. */ - page?: number; + auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; }; -type ReposListDeploymentsRequestOptions = { - method: "GET"; +type ChecksSetSuitesPreferencesRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateDeploymentEndpoint = { +type ChecksGetSuiteEndpoint = { /** * owner parameter */ @@ -7071,51 +7421,57 @@ type ReposCreateDeploymentEndpoint = { */ repo: string; /** - * The ref to deploy. This can be a branch, tag, or SHA. + * check_suite_id parameter */ - ref: string; + check_suite_id: number; +}; +type ChecksGetSuiteRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ChecksListForSuiteEndpoint = { /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). + * owner parameter */ - task?: string; + owner: string; /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. + * repo parameter */ - auto_merge?: boolean; + repo: string; /** - * The [status](https://developer.github.com/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts. + * check_suite_id parameter */ - required_contexts?: string[]; + check_suite_id: number; /** - * JSON payload with extra information about the deployment. + * Returns check runs with the specified `name`. */ - payload?: string; + check_name?: string; /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). + * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. */ - environment?: string; + status?: "queued" | "in_progress" | "completed"; /** - * Short description of the deployment. + * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. */ - description?: string; + filter?: "latest" | "all"; /** - * Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + * Results per page (max 100) */ - transient_environment?: boolean; + per_page?: number; /** - * Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + * Page number of the results to fetch. */ - production_environment?: boolean; + page?: number; }; -type ReposCreateDeploymentRequestOptions = { - method: "POST"; +type ChecksListForSuiteRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetDeploymentEndpoint = { +type ChecksRerequestSuiteEndpoint = { /** * owner parameter */ @@ -7125,17 +7481,17 @@ type ReposGetDeploymentEndpoint = { */ repo: string; /** - * deployment_id parameter + * check_suite_id parameter */ - deployment_id: number; + check_suite_id: number; }; -type ReposGetDeploymentRequestOptions = { - method: "GET"; +type ChecksRerequestSuiteRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListDeploymentStatusesEndpoint = { +type ReposListCollaboratorsEndpoint = { /** * owner parameter */ @@ -7145,9 +7501,12 @@ type ReposListDeploymentStatusesEndpoint = { */ repo: string; /** - * deployment_id parameter + * Filter collaborators returned by their affiliation. Can be one of: + * \* `outside`: All outside collaborators of an organization-owned repository. + * \* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. + * \* `all`: All collaborators the authenticated user can see. */ - deployment_id: number; + affiliation?: "outside" | "direct" | "all"; /** * Results per page (max 100) */ @@ -7157,13 +7516,13 @@ type ReposListDeploymentStatusesEndpoint = { */ page?: number; }; -type ReposListDeploymentStatusesRequestOptions = { +type ReposListCollaboratorsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateDeploymentStatusEndpoint = { +type ReposCheckCollaboratorEndpoint = { /** * owner parameter */ @@ -7173,56 +7532,44 @@ type ReposCreateDeploymentStatusEndpoint = { */ repo: string; /** - * deployment_id parameter + * username parameter */ - deployment_id: number; + username: string; +}; +type ReposCheckCollaboratorRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposAddCollaboratorEndpoint = { /** - * The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. + * owner parameter */ - state: - | "error" - | "failure" - | "inactive" - | "in_progress" - | "queued" - | "pending" - | "success"; + owner: string; /** - * The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`. - */ - target_url?: string; - /** - * The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. + * repo parameter */ - environment?: "production" | "staging" | "qa"; + repo: string; /** - * Sets the URL for accessing your environment. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + * username parameter */ - environment_url?: string; + username: string; /** - * Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` - * **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + * The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: + * \* `pull` - can pull, but not push to or administer this repository. + * \* `push` - can pull and push, but not administer this repository. + * \* `admin` - can pull, push and administer this repository. */ - auto_inactive?: boolean; + permission?: "pull" | "push" | "admin"; }; -type ReposCreateDeploymentStatusRequestOptions = { - method: "POST"; +type ReposAddCollaboratorRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetDeploymentStatusEndpoint = { +type ReposRemoveCollaboratorEndpoint = { /** * owner parameter */ @@ -7232,21 +7579,17 @@ type ReposGetDeploymentStatusEndpoint = { */ repo: string; /** - * deployment_id parameter - */ - deployment_id: number; - /** - * status_id parameter + * username parameter */ - status_id: number; + username: string; }; -type ReposGetDeploymentStatusRequestOptions = { - method: "GET"; +type ReposRemoveCollaboratorRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateDispatchEventEndpoint = { +type ReposGetCollaboratorPermissionLevelEndpoint = { /** * owner parameter */ @@ -7256,17 +7599,17 @@ type ReposCreateDispatchEventEndpoint = { */ repo: string; /** - * **Required:** A custom webhook event name. + * username parameter */ - event_type?: string; + username: string; }; -type ReposCreateDispatchEventRequestOptions = { - method: "POST"; +type ReposGetCollaboratorPermissionLevelRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListDownloadsEndpoint = { +type ReposListCommitCommentsEndpoint = { /** * owner parameter */ @@ -7284,13 +7627,13 @@ type ReposListDownloadsEndpoint = { */ page?: number; }; -type ReposListDownloadsRequestOptions = { +type ReposListCommitCommentsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetDownloadEndpoint = { +type ReposGetCommitCommentEndpoint = { /** * owner parameter */ @@ -7300,17 +7643,17 @@ type ReposGetDownloadEndpoint = { */ repo: string; /** - * download_id parameter + * comment_id parameter */ - download_id: number; + comment_id: number; }; -type ReposGetDownloadRequestOptions = { +type ReposGetCommitCommentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteDownloadEndpoint = { +type ReposUpdateCommitCommentEndpoint = { /** * owner parameter */ @@ -7320,17 +7663,21 @@ type ReposDeleteDownloadEndpoint = { */ repo: string; /** - * download_id parameter + * comment_id parameter */ - download_id: number; + comment_id: number; + /** + * The contents of the comment + */ + body: string; }; -type ReposDeleteDownloadRequestOptions = { - method: "DELETE"; +type ReposUpdateCommitCommentRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ActivityListRepoEventsEndpoint = { +type ReposDeleteCommitCommentEndpoint = { /** * owner parameter */ @@ -7340,21 +7687,17 @@ type ActivityListRepoEventsEndpoint = { */ repo: string; /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * comment_id parameter */ - page?: number; + comment_id: number; }; -type ActivityListRepoEventsRequestOptions = { - method: "GET"; +type ReposDeleteCommitCommentRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListForksEndpoint = { +type ReactionsListForCommitCommentEndpoint = { /** * owner parameter */ @@ -7364,9 +7707,21 @@ type ReposListForksEndpoint = { */ repo: string; /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. + * comment_id parameter */ - sort?: "newest" | "oldest" | "stargazers"; + comment_id: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * Results per page (max 100) */ @@ -7376,13 +7731,13 @@ type ReposListForksEndpoint = { */ page?: number; }; -type ReposListForksRequestOptions = { +type ReactionsListForCommitCommentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateForkEndpoint = { +type ReactionsCreateForCommitCommentEndpoint = { /** * owner parameter */ @@ -7392,17 +7747,29 @@ type ReposCreateForkEndpoint = { */ repo: string; /** - * Optional parameter to specify the organization name if forking into an organization. + * comment_id parameter */ - organization?: string; + comment_id: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; -type ReposCreateForkRequestOptions = { +type ReactionsCreateForCommitCommentRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitCreateBlobEndpoint = { +type ReposListCommitsEndpoint = { /** * owner parameter */ @@ -7412,21 +7779,41 @@ type GitCreateBlobEndpoint = { */ repo: string; /** - * The new blob's content. + * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). */ - content: string; + sha?: string; /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. + * Only commits containing this file path will be returned. */ - encoding?: string; + path?: string; + /** + * GitHub login or email address by which to filter by commit author. + */ + author?: string; + /** + * Only commits after this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Only commits before this date will be returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + until?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type GitCreateBlobRequestOptions = { - method: "POST"; +type ReposListCommitsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitGetBlobEndpoint = { +type ReposListBranchesForHeadCommitEndpoint = { /** * owner parameter */ @@ -7436,17 +7823,17 @@ type GitGetBlobEndpoint = { */ repo: string; /** - * file_sha parameter + * commit_sha parameter */ - file_sha: string; + commit_sha: string; }; -type GitGetBlobRequestOptions = { +type ReposListBranchesForHeadCommitRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitCreateCommitEndpoint = { +type ReposListCommentsForCommitEndpoint = { /** * owner parameter */ @@ -7456,37 +7843,25 @@ type GitCreateCommitEndpoint = { */ repo: string; /** - * The commit message - */ - message: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; - /** - * The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. - */ - parents: string[]; - /** - * Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details. + * commit_sha parameter */ - author?: GitCreateCommitParamsAuthor; + commit_sha: string; /** - * Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details. + * Results per page (max 100) */ - committer?: GitCreateCommitParamsCommitter; + per_page?: number; /** - * The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits. + * Page number of the results to fetch. */ - signature?: string; + page?: number; }; -type GitCreateCommitRequestOptions = { - method: "POST"; +type ReposListCommentsForCommitRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitGetCommitEndpoint = { +type ReposCreateCommitCommentEndpoint = { /** * owner parameter */ @@ -7499,14 +7874,30 @@ type GitGetCommitEndpoint = { * commit_sha parameter */ commit_sha: string; + /** + * The contents of the comment. + */ + body: string; + /** + * Relative path of the file to comment on. + */ + path?: string; + /** + * Line index in the diff to comment on. + */ + position?: number; + /** + * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. + */ + line?: number; }; -type GitGetCommitRequestOptions = { - method: "GET"; +type ReposCreateCommitCommentRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitListMatchingRefsEndpoint = { +type ReposListPullRequestsAssociatedWithCommitEndpoint = { /** * owner parameter */ @@ -7516,9 +7907,9 @@ type GitListMatchingRefsEndpoint = { */ repo: string; /** - * ref parameter + * commit_sha parameter */ - ref: string; + commit_sha: string; /** * Results per page (max 100) */ @@ -7528,13 +7919,13 @@ type GitListMatchingRefsEndpoint = { */ page?: number; }; -type GitListMatchingRefsRequestOptions = { +type ReposListPullRequestsAssociatedWithCommitRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitGetRefEndpoint = { +type ReposGetCommitEndpoint = { /** * owner parameter */ @@ -7548,13 +7939,13 @@ type GitGetRefEndpoint = { */ ref: string; }; -type GitGetRefRequestOptions = { +type ReposGetCommitRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitCreateRefEndpoint = { +type ChecksListForRefEndpoint = { /** * owner parameter */ @@ -7564,21 +7955,37 @@ type GitCreateRefEndpoint = { */ repo: string; /** - * The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected. + * ref parameter */ ref: string; /** - * The SHA1 value for this reference. + * Returns check runs with the specified `name`. */ - sha: string; -}; -type GitCreateRefRequestOptions = { - method: "POST"; - url: Url; + check_name?: string; + /** + * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. + */ + filter?: "latest" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ChecksListForRefRequestOptions = { + method: "GET"; + url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitUpdateRefEndpoint = { +type ChecksListSuitesForRefEndpoint = { /** * owner parameter */ @@ -7592,21 +7999,29 @@ type GitUpdateRefEndpoint = { */ ref: string; /** - * The SHA1 value to set this reference to + * Filters check suites by GitHub App `id`. */ - sha: string; + app_id?: number; /** - * Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work. + * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). */ - force?: boolean; + check_name?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type GitUpdateRefRequestOptions = { - method: "PATCH"; +type ChecksListSuitesForRefRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitDeleteRefEndpoint = { +type ReposGetCombinedStatusForRefEndpoint = { /** * owner parameter */ @@ -7620,13 +8035,13 @@ type GitDeleteRefEndpoint = { */ ref: string; }; -type GitDeleteRefRequestOptions = { - method: "DELETE"; +type ReposGetCombinedStatusForRefRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitCreateTagEndpoint = { +type ReposListStatusesForRefEndpoint = { /** * owner parameter */ @@ -7636,33 +8051,25 @@ type GitCreateTagEndpoint = { */ repo: string; /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. + * ref parameter */ - object: string; + ref: string; /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. + * Results per page (max 100) */ - type: "commit" | "tree" | "blob"; + per_page?: number; /** - * An object with information about the individual creating the tag. + * Page number of the results to fetch. */ - tagger?: GitCreateTagParamsTagger; + page?: number; }; -type GitCreateTagRequestOptions = { - method: "POST"; +type ReposListStatusesForRefRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitGetTagEndpoint = { +type CodesOfConductGetForRepoEndpoint = { /** * owner parameter */ @@ -7671,18 +8078,14 @@ type GitGetTagEndpoint = { * repo parameter */ repo: string; - /** - * tag_sha parameter - */ - tag_sha: string; }; -type GitGetTagRequestOptions = { +type CodesOfConductGetForRepoRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitCreateTreeEndpoint = { +type ReposRetrieveCommunityProfileMetricsEndpoint = { /** * owner parameter */ @@ -7691,22 +8094,14 @@ type GitCreateTreeEndpoint = { * repo parameter */ repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - */ - tree: GitCreateTreeParamsTree[]; - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; }; -type GitCreateTreeRequestOptions = { - method: "POST"; +type ReposRetrieveCommunityProfileMetricsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type GitGetTreeEndpoint = { +type ReposCompareCommitsEndpoint = { /** * owner parameter */ @@ -7716,21 +8111,21 @@ type GitGetTreeEndpoint = { */ repo: string; /** - * tree_sha parameter + * base parameter */ - tree_sha: string; + base: string; /** - * recursive parameter + * head parameter */ - recursive?: "1"; + head: string; }; -type GitGetTreeRequestOptions = { +type ReposCompareCommitsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListHooksEndpoint = { +type ReposGetContentsEndpoint = { /** * owner parameter */ @@ -7740,21 +8135,21 @@ type ReposListHooksEndpoint = { */ repo: string; /** - * Results per page (max 100) + * path parameter */ - per_page?: number; + path: string; /** - * Page number of the results to fetch. + * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) */ - page?: number; + ref?: string; }; -type ReposListHooksRequestOptions = { +type ReposGetContentsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateHookEndpoint = { +type ReposCreateOrUpdateFileEndpoint = { /** * owner parameter */ @@ -7764,49 +8159,41 @@ type ReposCreateHookEndpoint = { */ repo: string; /** - * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. + * path parameter */ - name?: string; + path: string; /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). + * The commit message. */ - config: ReposCreateHookParamsConfig; + message: string; /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. + * The new file content, using Base64 encoding. */ - events?: string[]; + content: string; /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + * **Required if you are updating a file**. The blob SHA of the file being replaced. */ - active?: boolean; -}; -type ReposCreateHookRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposGetHookEndpoint = { + sha?: string; /** - * owner parameter + * The branch name. Default: the repository’s default branch (usually `master`) */ - owner: string; + branch?: string; /** - * repo parameter + * The person that committed the file. Default: the authenticated user. */ - repo: string; + committer?: ReposCreateOrUpdateFileParamsCommitter; /** - * hook_id parameter + * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. */ - hook_id: number; + author?: ReposCreateOrUpdateFileParamsAuthor; }; -type ReposGetHookRequestOptions = { - method: "GET"; +type ReposCreateOrUpdateFileRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateHookEndpoint = { +type ReposCreateFileEndpoint = { /** * owner parameter */ @@ -7816,37 +8203,41 @@ type ReposUpdateHookEndpoint = { */ repo: string; /** - * hook_id parameter + * path parameter */ - hook_id: number; + path: string; /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). + * The commit message. */ - config?: ReposUpdateHookParamsConfig; + message: string; /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. + * The new file content, using Base64 encoding. */ - events?: string[]; + content: string; /** - * Determines a list of events to be added to the list of events that the Hook triggers for. + * **Required if you are updating a file**. The blob SHA of the file being replaced. */ - add_events?: string[]; + sha?: string; /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. + * The branch name. Default: the repository’s default branch (usually `master`) */ - remove_events?: string[]; + branch?: string; /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + * The person that committed the file. Default: the authenticated user. */ - active?: boolean; + committer?: ReposCreateFileParamsCommitter; + /** + * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. + */ + author?: ReposCreateFileParamsAuthor; }; -type ReposUpdateHookRequestOptions = { - method: "PATCH"; +type ReposCreateFileRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteHookEndpoint = { +type ReposUpdateFileEndpoint = { /** * owner parameter */ @@ -7856,57 +8247,41 @@ type ReposDeleteHookEndpoint = { */ repo: string; /** - * hook_id parameter + * path parameter */ - hook_id: number; -}; -type ReposDeleteHookRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposPingHookEndpoint = { + path: string; /** - * owner parameter + * The commit message. */ - owner: string; + message: string; /** - * repo parameter + * The new file content, using Base64 encoding. */ - repo: string; + content: string; /** - * hook_id parameter + * **Required if you are updating a file**. The blob SHA of the file being replaced. */ - hook_id: number; -}; -type ReposPingHookRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposTestPushHookEndpoint = { + sha?: string; /** - * owner parameter + * The branch name. Default: the repository’s default branch (usually `master`) */ - owner: string; + branch?: string; /** - * repo parameter + * The person that committed the file. Default: the authenticated user. */ - repo: string; + committer?: ReposUpdateFileParamsCommitter; /** - * hook_id parameter + * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. */ - hook_id: number; + author?: ReposUpdateFileParamsAuthor; }; -type ReposTestPushHookRequestOptions = { - method: "POST"; +type ReposUpdateFileRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsStartImportEndpoint = { +type ReposDeleteFileEndpoint = { /** * owner parameter */ @@ -7916,33 +8291,37 @@ type MigrationsStartImportEndpoint = { */ repo: string; /** - * The URL of the originating repository. + * path parameter */ - vcs_url: string; + path: string; /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. + * The commit message. */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; + message: string; /** - * If authentication is required, the username to provide to `vcs_url`. + * The blob SHA of the file being replaced. */ - vcs_username?: string; + sha: string; /** - * If authentication is required, the password to provide to `vcs_url`. + * The branch name. Default: the repository’s default branch (usually `master`) */ - vcs_password?: string; + branch?: string; /** - * For a tfvc import, the name of the project that is being imported. + * object containing information about the committer. */ - tfvc_project?: string; + committer?: ReposDeleteFileParamsCommitter; + /** + * object containing information about the author. + */ + author?: ReposDeleteFileParamsAuthor; }; -type MigrationsStartImportRequestOptions = { - method: "PUT"; +type ReposDeleteFileRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsGetImportProgressEndpoint = { +type ReposListContributorsEndpoint = { /** * owner parameter */ @@ -7951,14 +8330,26 @@ type MigrationsGetImportProgressEndpoint = { * repo parameter */ repo: string; + /** + * Set to `1` or `true` to include anonymous contributors in results. + */ + anon?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type MigrationsGetImportProgressRequestOptions = { +type ReposListContributorsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsUpdateImportEndpoint = { +type ReposListDeploymentsEndpoint = { /** * owner parameter */ @@ -7968,21 +8359,37 @@ type MigrationsUpdateImportEndpoint = { */ repo: string; /** - * The username to provide to the originating repository. + * The SHA recorded at creation time. */ - vcs_username?: string; + sha?: string; /** - * The password to provide to the originating repository. + * The name of the ref. This can be a branch, tag, or SHA. */ - vcs_password?: string; + ref?: string; + /** + * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). + */ + task?: string; + /** + * The name of the environment that was deployed to (e.g., `staging` or `production`). + */ + environment?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type MigrationsUpdateImportRequestOptions = { - method: "PATCH"; +type ReposListDeploymentsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsCancelImportEndpoint = { +type ReposCreateDeploymentEndpoint = { /** * owner parameter */ @@ -7991,14 +8398,52 @@ type MigrationsCancelImportEndpoint = { * repo parameter */ repo: string; + /** + * The ref to deploy. This can be a branch, tag, or SHA. + */ + ref: string; + /** + * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). + */ + task?: string; + /** + * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. + */ + auto_merge?: boolean; + /** + * The [status](https://developer.github.com/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts. + */ + required_contexts?: string[]; + /** + * JSON payload with extra information about the deployment. + */ + payload?: string; + /** + * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). + */ + environment?: string; + /** + * Short description of the deployment. + */ + description?: string; + /** + * Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + transient_environment?: boolean; + /** + * Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + production_environment?: boolean; }; -type MigrationsCancelImportRequestOptions = { - method: "DELETE"; +type ReposCreateDeploymentRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsGetCommitAuthorsEndpoint = { +type ReposGetDeploymentEndpoint = { /** * owner parameter */ @@ -8008,17 +8453,17 @@ type MigrationsGetCommitAuthorsEndpoint = { */ repo: string; /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. + * deployment_id parameter */ - since?: string; + deployment_id: number; }; -type MigrationsGetCommitAuthorsRequestOptions = { +type ReposGetDeploymentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsMapCommitAuthorEndpoint = { +type ReposListDeploymentStatusesEndpoint = { /** * owner parameter */ @@ -8028,25 +8473,25 @@ type MigrationsMapCommitAuthorEndpoint = { */ repo: string; /** - * author_id parameter + * deployment_id parameter */ - author_id: number; + deployment_id: number; /** - * The new Git author email. + * Results per page (max 100) */ - email?: string; + per_page?: number; /** - * The new Git author name. + * Page number of the results to fetch. */ - name?: string; + page?: number; }; -type MigrationsMapCommitAuthorRequestOptions = { - method: "PATCH"; +type ReposListDeploymentStatusesRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type MigrationsGetLargeFilesEndpoint = { +type ReposCreateDeploymentStatusEndpoint = { /** * owner parameter */ @@ -8055,34 +8500,57 @@ type MigrationsGetLargeFilesEndpoint = { * repo parameter */ repo: string; -}; -type MigrationsGetLargeFilesRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type MigrationsSetLfsPreferenceEndpoint = { /** - * owner parameter + * deployment_id parameter */ - owner: string; + deployment_id: number; /** - * repo parameter + * The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. */ - repo: string; + state: + | "error" + | "failure" + | "inactive" + | "in_progress" + | "queued" + | "pending" + | "success"; /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). + * The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`. */ - use_lfs: "opt_in" | "opt_out"; + target_url?: string; + /** + * The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""` + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + log_url?: string; + /** + * A short description of the status. The maximum description length is 140 characters. + */ + description?: string; + /** + * Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. + */ + environment?: "production" | "staging" | "qa"; + /** + * Sets the URL for accessing your environment. Default: `""` + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + environment_url?: string; + /** + * Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` + * **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + auto_inactive?: boolean; }; -type MigrationsSetLfsPreferenceRequestOptions = { - method: "PATCH"; +type ReposCreateDeploymentStatusRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type AppsGetRepoInstallationEndpoint = { +type ReposGetDeploymentStatusEndpoint = { /** * owner parameter */ @@ -8091,14 +8559,22 @@ type AppsGetRepoInstallationEndpoint = { * repo parameter */ repo: string; + /** + * deployment_id parameter + */ + deployment_id: number; + /** + * status_id parameter + */ + status_id: number; }; -type AppsGetRepoInstallationRequestOptions = { +type ReposGetDeploymentStatusRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type AppsFindRepoInstallationEndpoint = { +type ReposCreateDispatchEventEndpoint = { /** * owner parameter */ @@ -8107,14 +8583,22 @@ type AppsFindRepoInstallationEndpoint = { * repo parameter */ repo: string; + /** + * **Required:** A custom webhook event name. + */ + event_type?: string; + /** + * JSON payload with extra information about the webhook event that your action or worklow may use. + */ + client_payload?: ReposCreateDispatchEventParamsClientPayload; }; -type AppsFindRepoInstallationRequestOptions = { - method: "GET"; +type ReposCreateDispatchEventRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type InteractionsGetRestrictionsForRepoEndpoint = { +type ReposListDownloadsEndpoint = { /** * owner parameter */ @@ -8123,14 +8607,22 @@ type InteractionsGetRestrictionsForRepoEndpoint = { * repo parameter */ repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type InteractionsGetRestrictionsForRepoRequestOptions = { +type ReposListDownloadsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type InteractionsAddOrUpdateRestrictionsForRepoEndpoint = { +type ReposGetDownloadEndpoint = { /** * owner parameter */ @@ -8140,17 +8632,17 @@ type InteractionsAddOrUpdateRestrictionsForRepoEndpoint = { */ repo: string; /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. + * download_id parameter */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; + download_id: number; }; -type InteractionsAddOrUpdateRestrictionsForRepoRequestOptions = { - method: "PUT"; +type ReposGetDownloadRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type InteractionsRemoveRestrictionsForRepoEndpoint = { +type ReposDeleteDownloadEndpoint = { /** * owner parameter */ @@ -8159,14 +8651,18 @@ type InteractionsRemoveRestrictionsForRepoEndpoint = { * repo parameter */ repo: string; + /** + * download_id parameter + */ + download_id: number; }; -type InteractionsRemoveRestrictionsForRepoRequestOptions = { +type ReposDeleteDownloadRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListInvitationsEndpoint = { +type ActivityListRepoEventsEndpoint = { /** * owner parameter */ @@ -8184,13 +8680,13 @@ type ReposListInvitationsEndpoint = { */ page?: number; }; -type ReposListInvitationsRequestOptions = { +type ActivityListRepoEventsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteInvitationEndpoint = { +type ReposListForksEndpoint = { /** * owner parameter */ @@ -8200,17 +8696,25 @@ type ReposDeleteInvitationEndpoint = { */ repo: string; /** - * invitation_id parameter + * The sort order. Can be either `newest`, `oldest`, or `stargazers`. */ - invitation_id: number; + sort?: "newest" | "oldest" | "stargazers"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposDeleteInvitationRequestOptions = { - method: "DELETE"; +type ReposListForksRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateInvitationEndpoint = { +type ReposCreateForkEndpoint = { /** * owner parameter */ @@ -8220,21 +8724,17 @@ type ReposUpdateInvitationEndpoint = { */ repo: string; /** - * invitation_id parameter - */ - invitation_id: number; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`. + * Optional parameter to specify the organization name if forking into an organization. */ - permissions?: "read" | "write" | "admin"; + organization?: string; }; -type ReposUpdateInvitationRequestOptions = { - method: "PATCH"; +type ReposCreateForkRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListForRepoEndpoint = { +type GitCreateBlobEndpoint = { /** * owner parameter */ @@ -8244,57 +8744,41 @@ type IssuesListForRepoEndpoint = { */ repo: string; /** - * If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned. - */ - milestone?: string; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. + * The new blob's content. */ - sort?: "created" | "updated" | "comments"; + content: string; /** - * The direction of the sort. Can be either `asc` or `desc`. + * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. */ - direction?: "asc" | "desc"; + encoding?: string; +}; +type GitCreateBlobRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type GitGetBlobEndpoint = { /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * owner parameter */ - since?: string; + owner: string; /** - * Results per page (max 100) + * repo parameter */ - per_page?: number; + repo: string; /** - * Page number of the results to fetch. + * file_sha parameter */ - page?: number; + file_sha: string; }; -type IssuesListForRepoRequestOptions = { +type GitGetBlobRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesCreateEndpoint = { +type GitCreateCommitEndpoint = { /** * owner parameter */ @@ -8304,37 +8788,37 @@ type IssuesCreateEndpoint = { */ repo: string; /** - * The title of the issue. + * The commit message */ - title: string; + message: string; /** - * The contents of the issue. + * The SHA of the tree object this commit points to */ - body?: string; + tree: string; /** - * Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ + * The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. */ - assignee?: string; + parents: string[]; /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ + * Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details. */ - milestone?: number; + author?: GitCreateCommitParamsAuthor; /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ + * Information about the person who is making the commit. By default, `committer` will use the information set in `author`. See the `author` and `committer` object below for details. */ - labels?: string[]; + committer?: GitCreateCommitParamsCommitter; /** - * Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ + * The [PGP signature](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) of the commit. GitHub adds the signature to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database. To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits. */ - assignees?: string[]; + signature?: string; }; -type IssuesCreateRequestOptions = { +type GitCreateCommitRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListCommentsForRepoEndpoint = { +type GitGetCommitEndpoint = { /** * owner parameter */ @@ -8344,25 +8828,17 @@ type IssuesListCommentsForRepoEndpoint = { */ repo: string; /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * commit_sha parameter */ - since?: string; + commit_sha: string; }; -type IssuesListCommentsForRepoRequestOptions = { +type GitGetCommitRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesGetCommentEndpoint = { +type GitListMatchingRefsEndpoint = { /** * owner parameter */ @@ -8372,9 +8848,9 @@ type IssuesGetCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * ref parameter */ - comment_id: number; + ref: string; /** * Results per page (max 100) */ @@ -8384,13 +8860,13 @@ type IssuesGetCommentEndpoint = { */ page?: number; }; -type IssuesGetCommentRequestOptions = { +type GitListMatchingRefsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesUpdateCommentEndpoint = { +type GitGetRefEndpoint = { /** * owner parameter */ @@ -8400,21 +8876,17 @@ type IssuesUpdateCommentEndpoint = { */ repo: string; /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment. + * ref parameter */ - body: string; + ref: string; }; -type IssuesUpdateCommentRequestOptions = { - method: "PATCH"; +type GitGetRefRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesDeleteCommentEndpoint = { +type GitCreateRefEndpoint = { /** * owner parameter */ @@ -8424,17 +8896,21 @@ type IssuesDeleteCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected. */ - comment_id: number; + ref: string; + /** + * The SHA1 value for this reference. + */ + sha: string; }; -type IssuesDeleteCommentRequestOptions = { - method: "DELETE"; +type GitCreateRefRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsListForIssueCommentEndpoint = { +type GitUpdateRefEndpoint = { /** * owner parameter */ @@ -8444,37 +8920,25 @@ type ReactionsListForIssueCommentEndpoint = { */ repo: string; /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. + * ref parameter */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; + ref: string; /** - * Results per page (max 100) + * The SHA1 value to set this reference to */ - per_page?: number; + sha: string; /** - * Page number of the results to fetch. + * Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work. */ - page?: number; + force?: boolean; }; -type ReactionsListForIssueCommentRequestOptions = { - method: "GET"; +type GitUpdateRefRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsCreateForIssueCommentEndpoint = { +type GitDeleteRefEndpoint = { /** * owner parameter */ @@ -8484,29 +8948,17 @@ type ReactionsCreateForIssueCommentEndpoint = { */ repo: string; /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. + * ref parameter */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; + ref: string; }; -type ReactionsCreateForIssueCommentRequestOptions = { - method: "POST"; +type GitDeleteRefRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListEventsForRepoEndpoint = { +type GitCreateTagEndpoint = { /** * owner parameter */ @@ -8516,21 +8968,33 @@ type IssuesListEventsForRepoEndpoint = { */ repo: string; /** - * Results per page (max 100) + * The tag's name. This is typically a version (e.g., "v0.0.1"). */ - per_page?: number; + tag: string; /** - * Page number of the results to fetch. + * The tag message. */ - page?: number; + message: string; + /** + * The SHA of the git object this is tagging. + */ + object: string; + /** + * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. + */ + type: "commit" | "tree" | "blob"; + /** + * An object with information about the individual creating the tag. + */ + tagger?: GitCreateTagParamsTagger; }; -type IssuesListEventsForRepoRequestOptions = { - method: "GET"; +type GitCreateTagRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesGetEventEndpoint = { +type GitGetTagEndpoint = { /** * owner parameter */ @@ -8540,17 +9004,17 @@ type IssuesGetEventEndpoint = { */ repo: string; /** - * event_id parameter + * tag_sha parameter */ - event_id: number; + tag_sha: string; }; -type IssuesGetEventRequestOptions = { +type GitGetTagRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesGetEndpoint = { +type GitCreateTreeEndpoint = { /** * owner parameter */ @@ -8560,17 +9024,21 @@ type IssuesGetEndpoint = { */ repo: string; /** - * issue_number parameter + * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. */ - issue_number: number; -}; -type IssuesGetRequestOptions = { - method: "GET"; + tree: GitCreateTreeParamsTree[]; + /** + * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. + */ + base_tree?: string; +}; +type GitCreateTreeRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesUpdateEndpoint = { +type GitGetTreeEndpoint = { /** * owner parameter */ @@ -8580,45 +9048,45 @@ type IssuesUpdateEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * The title of the issue. - */ - title?: string; - /** - * The contents of the issue. + * tree_sha parameter */ - body?: string; + tree_sha: string; /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** + * recursive parameter */ - assignee?: string; + recursive?: "1"; +}; +type GitGetTreeRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListHooksEndpoint = { /** - * State of the issue. Either `open` or `closed`. + * owner parameter */ - state?: "open" | "closed"; + owner: string; /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ + * repo parameter */ - milestone?: number | null; + repo: string; /** - * Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._ + * Results per page (max 100) */ - labels?: string[]; + per_page?: number; /** - * Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ + * Page number of the results to fetch. */ - assignees?: string[]; + page?: number; }; -type IssuesUpdateRequestOptions = { - method: "PATCH"; +type ReposListHooksRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesAddAssigneesEndpoint = { +type ReposCreateHookEndpoint = { /** * owner parameter */ @@ -8628,21 +9096,29 @@ type IssuesAddAssigneesEndpoint = { */ repo: string; /** - * issue_number parameter + * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. */ - issue_number: number; + name?: string; /** - * Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._ + * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). */ - assignees?: string[]; + config: ReposCreateHookParamsConfig; + /** + * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; }; -type IssuesAddAssigneesRequestOptions = { +type ReposCreateHookRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesRemoveAssigneesEndpoint = { +type ReposGetHookEndpoint = { /** * owner parameter */ @@ -8652,21 +9128,17 @@ type IssuesRemoveAssigneesEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ + * hook_id parameter */ - assignees?: string[]; + hook_id: number; }; -type IssuesRemoveAssigneesRequestOptions = { - method: "DELETE"; +type ReposGetHookRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListCommentsEndpoint = { +type ReposUpdateHookEndpoint = { /** * owner parameter */ @@ -8676,29 +9148,37 @@ type IssuesListCommentsEndpoint = { */ repo: string; /** - * issue_number parameter + * hook_id parameter */ - issue_number: number; + hook_id: number; /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). */ - since?: string; + config?: ReposUpdateHookParamsConfig; /** - * Results per page (max 100) + * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. */ - per_page?: number; + events?: string[]; /** - * Page number of the results to fetch. + * Determines a list of events to be added to the list of events that the Hook triggers for. */ - page?: number; + add_events?: string[]; + /** + * Determines a list of events to be removed from the list of events that the Hook triggers for. + */ + remove_events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; }; -type IssuesListCommentsRequestOptions = { - method: "GET"; +type ReposUpdateHookRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesCreateCommentEndpoint = { +type ReposDeleteHookEndpoint = { /** * owner parameter */ @@ -8708,21 +9188,17 @@ type IssuesCreateCommentEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * The contents of the comment. + * hook_id parameter */ - body: string; + hook_id: number; }; -type IssuesCreateCommentRequestOptions = { - method: "POST"; +type ReposDeleteHookRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListEventsEndpoint = { +type ReposPingHookEndpoint = { /** * owner parameter */ @@ -8732,25 +9208,17 @@ type IssuesListEventsEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * hook_id parameter */ - page?: number; + hook_id: number; }; -type IssuesListEventsRequestOptions = { - method: "GET"; +type ReposPingHookRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListLabelsOnIssueEndpoint = { +type ReposTestPushHookEndpoint = { /** * owner parameter */ @@ -8760,25 +9228,17 @@ type IssuesListLabelsOnIssueEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * hook_id parameter */ - page?: number; + hook_id: number; }; -type IssuesListLabelsOnIssueRequestOptions = { - method: "GET"; +type ReposTestPushHookRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesAddLabelsEndpoint = { +type MigrationsStartImportEndpoint = { /** * owner parameter */ @@ -8788,21 +9248,33 @@ type IssuesAddLabelsEndpoint = { */ repo: string; /** - * issue_number parameter + * The URL of the originating repository. */ - issue_number: number; + vcs_url: string; /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. + * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. */ - labels: string[]; + vcs?: "subversion" | "git" | "mercurial" | "tfvc"; + /** + * If authentication is required, the username to provide to `vcs_url`. + */ + vcs_username?: string; + /** + * If authentication is required, the password to provide to `vcs_url`. + */ + vcs_password?: string; + /** + * For a tfvc import, the name of the project that is being imported. + */ + tfvc_project?: string; }; -type IssuesAddLabelsRequestOptions = { - method: "POST"; +type MigrationsStartImportRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesReplaceLabelsEndpoint = { +type MigrationsGetImportProgressEndpoint = { /** * owner parameter */ @@ -8811,22 +9283,14 @@ type IssuesReplaceLabelsEndpoint = { * repo parameter */ repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; }; -type IssuesReplaceLabelsRequestOptions = { - method: "PUT"; +type MigrationsGetImportProgressRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesRemoveLabelsEndpoint = { +type MigrationsUpdateImportEndpoint = { /** * owner parameter */ @@ -8836,17 +9300,21 @@ type IssuesRemoveLabelsEndpoint = { */ repo: string; /** - * issue_number parameter + * The username to provide to the originating repository. */ - issue_number: number; + vcs_username?: string; + /** + * The password to provide to the originating repository. + */ + vcs_password?: string; }; -type IssuesRemoveLabelsRequestOptions = { - method: "DELETE"; +type MigrationsUpdateImportRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesRemoveLabelEndpoint = { +type MigrationsCancelImportEndpoint = { /** * owner parameter */ @@ -8855,22 +9323,14 @@ type IssuesRemoveLabelEndpoint = { * repo parameter */ repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * name parameter - */ - name: string; }; -type IssuesRemoveLabelRequestOptions = { +type MigrationsCancelImportRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesLockEndpoint = { +type MigrationsGetCommitAuthorsEndpoint = { /** * owner parameter */ @@ -8880,25 +9340,17 @@ type IssuesLockEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: - * \* `off-topic` - * \* `too heated` - * \* `resolved` - * \* `spam` + * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; + since?: string; }; -type IssuesLockRequestOptions = { - method: "PUT"; +type MigrationsGetCommitAuthorsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesUnlockEndpoint = { +type MigrationsMapCommitAuthorEndpoint = { /** * owner parameter */ @@ -8908,17 +9360,25 @@ type IssuesUnlockEndpoint = { */ repo: string; /** - * issue_number parameter + * author_id parameter */ - issue_number: number; + author_id: number; + /** + * The new Git author email. + */ + email?: string; + /** + * The new Git author name. + */ + name?: string; }; -type IssuesUnlockRequestOptions = { - method: "DELETE"; +type MigrationsMapCommitAuthorRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsListForIssueEndpoint = { +type MigrationsGetLargeFilesEndpoint = { /** * owner parameter */ @@ -8927,38 +9387,14 @@ type ReactionsListForIssueEndpoint = { * repo parameter */ repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; }; -type ReactionsListForIssueRequestOptions = { +type MigrationsGetLargeFilesRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsCreateForIssueEndpoint = { +type MigrationsSetLfsPreferenceEndpoint = { /** * owner parameter */ @@ -8968,29 +9404,17 @@ type ReactionsCreateForIssueEndpoint = { */ repo: string; /** - * issue_number parameter - */ - issue_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. + * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; + use_lfs: "opt_in" | "opt_out"; }; -type ReactionsCreateForIssueRequestOptions = { - method: "POST"; +type MigrationsSetLfsPreferenceRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListEventsForTimelineEndpoint = { +type AppsGetRepoInstallationEndpoint = { /** * owner parameter */ @@ -8999,26 +9423,14 @@ type IssuesListEventsForTimelineEndpoint = { * repo parameter */ repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; }; -type IssuesListEventsForTimelineRequestOptions = { +type AppsGetRepoInstallationRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListDeployKeysEndpoint = { +type AppsFindRepoInstallationEndpoint = { /** * owner parameter */ @@ -9027,22 +9439,14 @@ type ReposListDeployKeysEndpoint = { * repo parameter */ repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; }; -type ReposListDeployKeysRequestOptions = { +type AppsFindRepoInstallationRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposAddDeployKeyEndpoint = { +type InteractionsGetRestrictionsForRepoEndpoint = { /** * owner parameter */ @@ -9051,28 +9455,14 @@ type ReposAddDeployKeyEndpoint = { * repo parameter */ repo: string; - /** - * A name for the key. - */ - title?: string; - /** - * The contents of the key. - */ - key: string; - /** - * If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. - * - * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/)." - */ - read_only?: boolean; }; -type ReposAddDeployKeyRequestOptions = { - method: "POST"; +type InteractionsGetRestrictionsForRepoRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetDeployKeyEndpoint = { +type InteractionsAddOrUpdateRestrictionsForRepoEndpoint = { /** * owner parameter */ @@ -9082,17 +9472,17 @@ type ReposGetDeployKeyEndpoint = { */ repo: string; /** - * key_id parameter + * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. */ - key_id: number; + limit: "existing_users" | "contributors_only" | "collaborators_only"; }; -type ReposGetDeployKeyRequestOptions = { - method: "GET"; +type InteractionsAddOrUpdateRestrictionsForRepoRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRemoveDeployKeyEndpoint = { +type InteractionsRemoveRestrictionsForRepoEndpoint = { /** * owner parameter */ @@ -9101,18 +9491,14 @@ type ReposRemoveDeployKeyEndpoint = { * repo parameter */ repo: string; - /** - * key_id parameter - */ - key_id: number; }; -type ReposRemoveDeployKeyRequestOptions = { +type InteractionsRemoveRestrictionsForRepoRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListLabelsForRepoEndpoint = { +type ReposListInvitationsEndpoint = { /** * owner parameter */ @@ -9130,13 +9516,13 @@ type IssuesListLabelsForRepoEndpoint = { */ page?: number; }; -type IssuesListLabelsForRepoRequestOptions = { +type ReposListInvitationsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesCreateLabelEndpoint = { +type ReposDeleteInvitationEndpoint = { /** * owner parameter */ @@ -9146,25 +9532,17 @@ type IssuesCreateLabelEndpoint = { */ repo: string; /** - * The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/). - */ - name: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. + * invitation_id parameter */ - description?: string; + invitation_id: number; }; -type IssuesCreateLabelRequestOptions = { - method: "POST"; +type ReposDeleteInvitationRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesGetLabelEndpoint = { +type ReposUpdateInvitationEndpoint = { /** * owner parameter */ @@ -9174,17 +9552,21 @@ type IssuesGetLabelEndpoint = { */ repo: string; /** - * name parameter + * invitation_id parameter */ - name: string; + invitation_id: number; + /** + * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`. + */ + permissions?: "read" | "write" | "admin"; }; -type IssuesGetLabelRequestOptions = { - method: "GET"; +type ReposUpdateInvitationRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesUpdateLabelEndpoint = { +type IssuesListForRepoEndpoint = { /** * owner parameter */ @@ -9194,81 +9576,57 @@ type IssuesUpdateLabelEndpoint = { */ repo: string; /** - * name parameter + * If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned. */ - name: string; + milestone?: string; /** - * The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/). + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. */ - new_name?: string; + state?: "open" | "closed" | "all"; /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. + * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. */ - color?: string; + assignee?: string; /** - * A short description of the label. + * The user that created the issue. */ - description?: string; -}; -type IssuesUpdateLabelRequestOptions = { - method: "PATCH"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type IssuesDeleteLabelEndpoint = { + creator?: string; /** - * owner parameter + * A user that's mentioned in the issue. */ - owner: string; + mentioned?: string; /** - * repo parameter + * A list of comma separated label names. Example: `bug,ui,@high` */ - repo: string; + labels?: string; /** - * name parameter + * What to sort results by. Can be either `created`, `updated`, `comments`. */ - name: string; -}; -type IssuesDeleteLabelRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposListLanguagesEndpoint = { + sort?: "created" | "updated" | "comments"; /** - * owner parameter + * The direction of the sort. Can be either `asc` or `desc`. */ - owner: string; + direction?: "asc" | "desc"; /** - * repo parameter + * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ - repo: string; -}; -type ReposListLanguagesRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type LicensesGetForRepoEndpoint = { + since?: string; /** - * owner parameter + * Results per page (max 100) */ - owner: string; + per_page?: number; /** - * repo parameter + * Page number of the results to fetch. */ - repo: string; + page?: number; }; -type LicensesGetForRepoRequestOptions = { +type IssuesListForRepoRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposMergeEndpoint = { +type IssuesCreateEndpoint = { /** * owner parameter */ @@ -9278,61 +9636,37 @@ type ReposMergeEndpoint = { */ repo: string; /** - * The name of the base branch that the head will be merged into. + * The title of the issue. */ - base: string; + title: string; /** - * The head to merge. This can be a branch name or a commit SHA1. + * The contents of the issue. */ - head: string; + body?: string; /** - * Commit message to use for the merge commit. If omitted, a default message will be used. + * Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ */ - commit_message?: string; -}; -type ReposMergeRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type IssuesListMilestonesForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; + assignee?: string; /** - * The direction of the sort. Either `asc` or `desc`. + * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ */ - direction?: "asc" | "desc"; + milestone?: number; /** - * Results per page (max 100) + * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ */ - per_page?: number; + labels?: string[]; /** - * Page number of the results to fetch. + * Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ */ - page?: number; + assignees?: string[]; }; -type IssuesListMilestonesForRepoRequestOptions = { - method: "GET"; +type IssuesCreateRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesCreateMilestoneEndpoint = { +type IssuesListCommentsForRepoEndpoint = { /** * owner parameter */ @@ -9342,29 +9676,25 @@ type IssuesCreateMilestoneEndpoint = { */ repo: string; /** - * The title of the milestone. - */ - title: string; - /** - * The state of the milestone. Either `open` or `closed`. + * Either `created` or `updated`. */ - state?: "open" | "closed"; + sort?: "created" | "updated"; /** - * A description of the milestone. + * Either `asc` or `desc`. Ignored without the `sort` parameter. */ - description?: string; + direction?: "asc" | "desc"; /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ - due_on?: string; + since?: string; }; -type IssuesCreateMilestoneRequestOptions = { - method: "POST"; +type IssuesListCommentsForRepoRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesGetMilestoneEndpoint = { +type IssuesGetCommentEndpoint = { /** * owner parameter */ @@ -9374,17 +9704,25 @@ type IssuesGetMilestoneEndpoint = { */ repo: string; /** - * milestone_number parameter + * comment_id parameter */ - milestone_number: number; + comment_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type IssuesGetMilestoneRequestOptions = { +type IssuesGetCommentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesUpdateMilestoneEndpoint = { +type IssuesUpdateCommentEndpoint = { /** * owner parameter */ @@ -9394,33 +9732,21 @@ type IssuesUpdateMilestoneEndpoint = { */ repo: string; /** - * milestone_number parameter - */ - milestone_number: number; - /** - * The title of the milestone. - */ - title?: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. + * comment_id parameter */ - description?: string; + comment_id: number; /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * The contents of the comment. */ - due_on?: string; + body: string; }; -type IssuesUpdateMilestoneRequestOptions = { +type IssuesUpdateCommentRequestOptions = { method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesDeleteMilestoneEndpoint = { +type IssuesDeleteCommentEndpoint = { /** * owner parameter */ @@ -9430,17 +9756,17 @@ type IssuesDeleteMilestoneEndpoint = { */ repo: string; /** - * milestone_number parameter + * comment_id parameter */ - milestone_number: number; + comment_id: number; }; -type IssuesDeleteMilestoneRequestOptions = { +type IssuesDeleteCommentRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type IssuesListLabelsForMilestoneEndpoint = { +type ReactionsListForIssueCommentEndpoint = { /** * owner parameter */ @@ -9450,9 +9776,21 @@ type IssuesListLabelsForMilestoneEndpoint = { */ repo: string; /** - * milestone_number parameter + * comment_id parameter */ - milestone_number: number; + comment_id: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * Results per page (max 100) */ @@ -9462,13 +9800,13 @@ type IssuesListLabelsForMilestoneEndpoint = { */ page?: number; }; -type IssuesListLabelsForMilestoneRequestOptions = { +type ReactionsListForIssueCommentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ActivityListNotificationsForRepoEndpoint = { +type ReactionsCreateForIssueCommentEndpoint = { /** * owner parameter */ @@ -9478,21 +9816,37 @@ type ActivityListNotificationsForRepoEndpoint = { */ repo: string; /** - * If `true`, show notifications marked as read. + * comment_id parameter */ - all?: boolean; + comment_id: number; /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. */ - participating?: boolean; + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; +}; +type ReactionsCreateForIssueCommentRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type IssuesListEventsForRepoEndpoint = { /** - * Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * owner parameter */ - since?: string; + owner: string; /** - * Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + * repo parameter */ - before?: string; + repo: string; /** * Results per page (max 100) */ @@ -9502,13 +9856,13 @@ type ActivityListNotificationsForRepoEndpoint = { */ page?: number; }; -type ActivityListNotificationsForRepoRequestOptions = { +type IssuesListEventsForRepoRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ActivityMarkNotificationsAsReadForRepoEndpoint = { +type IssuesGetEventEndpoint = { /** * owner parameter */ @@ -9518,17 +9872,17 @@ type ActivityMarkNotificationsAsReadForRepoEndpoint = { */ repo: string; /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. + * event_id parameter */ - last_read_at?: string; + event_id: number; }; -type ActivityMarkNotificationsAsReadForRepoRequestOptions = { - method: "PUT"; +type IssuesGetEventRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetPagesEndpoint = { +type IssuesGetEndpoint = { /** * owner parameter */ @@ -9537,14 +9891,18 @@ type ReposGetPagesEndpoint = { * repo parameter */ repo: string; + /** + * issue_number parameter + */ + issue_number: number; }; -type ReposGetPagesRequestOptions = { +type IssuesGetRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposEnablePagesSiteEndpoint = { +type IssuesUpdateEndpoint = { /** * owner parameter */ @@ -9554,57 +9912,45 @@ type ReposEnablePagesSiteEndpoint = { */ repo: string; /** - * source parameter + * issue_number parameter */ - source?: ReposEnablePagesSiteParamsSource; -}; -type ReposEnablePagesSiteRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposDisablePagesSiteEndpoint = { + issue_number: number; /** - * owner parameter + * The title of the issue. */ - owner: string; + title?: string; /** - * repo parameter + * The contents of the issue. */ - repo: string; -}; -type ReposDisablePagesSiteRequestOptions = { - method: "DELETE"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposUpdateInformationAboutPagesSiteEndpoint = { + body?: string; /** - * owner parameter + * Login for the user that this issue should be assigned to. **This field is deprecated.** */ - owner: string; + assignee?: string; /** - * repo parameter + * State of the issue. Either `open` or `closed`. */ - repo: string; + state?: "open" | "closed"; /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." + * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ */ - cname?: string; + milestone?: number | null; /** - * Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `"gh-pages"`, `"master"`, and `"master /docs"`. + * Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._ */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; + labels?: string[]; + /** + * Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ + */ + assignees?: string[]; }; -type ReposUpdateInformationAboutPagesSiteRequestOptions = { - method: "PUT"; +type IssuesUpdateRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposRequestPageBuildEndpoint = { +type IssuesAddAssigneesEndpoint = { /** * owner parameter */ @@ -9613,14 +9959,22 @@ type ReposRequestPageBuildEndpoint = { * repo parameter */ repo: string; + /** + * issue_number parameter + */ + issue_number: number; + /** + * Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._ + */ + assignees?: string[]; }; -type ReposRequestPageBuildRequestOptions = { +type IssuesAddAssigneesRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListPagesBuildsEndpoint = { +type IssuesRemoveAssigneesEndpoint = { /** * owner parameter */ @@ -9630,21 +9984,21 @@ type ReposListPagesBuildsEndpoint = { */ repo: string; /** - * Results per page (max 100) + * issue_number parameter */ - per_page?: number; + issue_number: number; /** - * Page number of the results to fetch. + * Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ */ - page?: number; + assignees?: string[]; }; -type ReposListPagesBuildsRequestOptions = { - method: "GET"; +type IssuesRemoveAssigneesRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetLatestPagesBuildEndpoint = { +type IssuesListCommentsEndpoint = { /** * owner parameter */ @@ -9653,34 +10007,30 @@ type ReposGetLatestPagesBuildEndpoint = { * repo parameter */ repo: string; -}; -type ReposGetLatestPagesBuildRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposGetPagesBuildEndpoint = { /** - * owner parameter + * issue_number parameter */ - owner: string; + issue_number: number; /** - * repo parameter + * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. */ - repo: string; + since?: string; /** - * build_id parameter + * Results per page (max 100) */ - build_id: number; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposGetPagesBuildRequestOptions = { +type IssuesListCommentsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsListForRepoEndpoint = { +type IssuesCreateCommentEndpoint = { /** * owner parameter */ @@ -9690,25 +10040,21 @@ type ProjectsListForRepoEndpoint = { */ repo: string; /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) + * issue_number parameter */ - per_page?: number; + issue_number: number; /** - * Page number of the results to fetch. + * The contents of the comment. */ - page?: number; + body: string; }; -type ProjectsListForRepoRequestOptions = { - method: "GET"; +type IssuesCreateCommentRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ProjectsCreateForRepoEndpoint = { +type IssuesListEventsEndpoint = { /** * owner parameter */ @@ -9718,21 +10064,25 @@ type ProjectsCreateForRepoEndpoint = { */ repo: string; /** - * The name of the project. + * issue_number parameter */ - name: string; + issue_number: number; /** - * The description of the project. + * Results per page (max 100) */ - body?: string; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ProjectsCreateForRepoRequestOptions = { - method: "POST"; +type IssuesListEventsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListEndpoint = { +type IssuesListLabelsOnIssueEndpoint = { /** * owner parameter */ @@ -9742,25 +10092,9 @@ type PullsListEndpoint = { */ repo: string; /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; - /** - * Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`. - */ - head?: string; - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. + * issue_number parameter */ - direction?: "asc" | "desc"; + issue_number: number; /** * Results per page (max 100) */ @@ -9770,13 +10104,13 @@ type PullsListEndpoint = { */ page?: number; }; -type PullsListRequestOptions = { +type IssuesListLabelsOnIssueRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCreateEndpoint = { +type IssuesAddLabelsEndpoint = { /** * owner parameter */ @@ -9786,37 +10120,21 @@ type PullsCreateEndpoint = { */ repo: string; /** - * The title of the new pull request. - */ - title: string; - /** - * The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`. - */ - head: string; - /** - * The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + * issue_number parameter */ - maintainer_can_modify?: boolean; + issue_number: number; /** - * Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more. + * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. */ - draft?: boolean; + labels: string[]; }; -type PullsCreateRequestOptions = { +type IssuesAddLabelsRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListCommentsForRepoEndpoint = { +type IssuesReplaceLabelsEndpoint = { /** * owner parameter */ @@ -9826,33 +10144,41 @@ type PullsListCommentsForRepoEndpoint = { */ repo: string; /** - * Can be either `created` or `updated` comments. + * issue_number parameter */ - sort?: "created" | "updated"; + issue_number: number; /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. + * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. */ - direction?: "asc" | "desc"; + labels?: string[]; +}; +type IssuesReplaceLabelsRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type IssuesRemoveLabelsEndpoint = { /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. + * owner parameter */ - since?: string; + owner: string; /** - * Results per page (max 100) + * repo parameter */ - per_page?: number; + repo: string; /** - * Page number of the results to fetch. + * issue_number parameter */ - page?: number; + issue_number: number; }; -type PullsListCommentsForRepoRequestOptions = { - method: "GET"; +type IssuesRemoveLabelsRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsGetCommentEndpoint = { +type IssuesRemoveLabelEndpoint = { /** * owner parameter */ @@ -9862,17 +10188,21 @@ type PullsGetCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * issue_number parameter */ - comment_id: number; + issue_number: number; + /** + * name parameter + */ + name: string; }; -type PullsGetCommentRequestOptions = { - method: "GET"; +type IssuesRemoveLabelRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsUpdateCommentEndpoint = { +type IssuesLockEndpoint = { /** * owner parameter */ @@ -9882,21 +10212,25 @@ type PullsUpdateCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * issue_number parameter */ - comment_id: number; + issue_number: number; /** - * The text of the reply to the review comment. + * The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: + * \* `off-topic` + * \* `too heated` + * \* `resolved` + * \* `spam` */ - body: string; + lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; }; -type PullsUpdateCommentRequestOptions = { - method: "PATCH"; +type IssuesLockRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsDeleteCommentEndpoint = { +type IssuesUnlockEndpoint = { /** * owner parameter */ @@ -9906,17 +10240,17 @@ type PullsDeleteCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * issue_number parameter */ - comment_id: number; + issue_number: number; }; -type PullsDeleteCommentRequestOptions = { +type IssuesUnlockRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsListForPullRequestReviewCommentEndpoint = { +type ReactionsListForIssueEndpoint = { /** * owner parameter */ @@ -9926,11 +10260,11 @@ type ReactionsListForPullRequestReviewCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * issue_number parameter */ - comment_id: number; + issue_number: number; /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. */ content?: | "+1" @@ -9950,13 +10284,13 @@ type ReactionsListForPullRequestReviewCommentEndpoint = { */ page?: number; }; -type ReactionsListForPullRequestReviewCommentRequestOptions = { +type ReactionsListForIssueRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReactionsCreateForPullRequestReviewCommentEndpoint = { +type ReactionsCreateForIssueEndpoint = { /** * owner parameter */ @@ -9966,11 +10300,11 @@ type ReactionsCreateForPullRequestReviewCommentEndpoint = { */ repo: string; /** - * comment_id parameter + * issue_number parameter */ - comment_id: number; + issue_number: number; /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. */ content: | "+1" @@ -9982,13 +10316,13 @@ type ReactionsCreateForPullRequestReviewCommentEndpoint = { | "rocket" | "eyes"; }; -type ReactionsCreateForPullRequestReviewCommentRequestOptions = { +type ReactionsCreateForIssueRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsGetEndpoint = { +type IssuesListEventsForTimelineEndpoint = { /** * owner parameter */ @@ -9998,17 +10332,25 @@ type PullsGetEndpoint = { */ repo: string; /** - * pull_number parameter + * issue_number parameter */ - pull_number: number; + issue_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type PullsGetRequestOptions = { +type IssuesListEventsForTimelineRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsUpdateEndpoint = { +type ReposListDeployKeysEndpoint = { /** * owner parameter */ @@ -10018,37 +10360,51 @@ type PullsUpdateEndpoint = { */ repo: string; /** - * pull_number parameter + * Results per page (max 100) */ - pull_number: number; + per_page?: number; /** - * The title of the pull request. + * Page number of the results to fetch. */ - title?: string; + page?: number; +}; +type ReposListDeployKeysRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposAddDeployKeyEndpoint = { /** - * The contents of the pull request. + * owner parameter */ - body?: string; + owner: string; /** - * State of this Pull Request. Either `open` or `closed`. + * repo parameter */ - state?: "open" | "closed"; + repo: string; /** - * The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. + * A name for the key. */ - base?: string; + title?: string; /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + * The contents of the key. */ - maintainer_can_modify?: boolean; + key: string; + /** + * If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. + * + * Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ + read_only?: boolean; }; -type PullsUpdateRequestOptions = { - method: "PATCH"; +type ReposAddDeployKeyRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListCommentsEndpoint = { +type ReposGetDeployKeyEndpoint = { /** * owner parameter */ @@ -10058,37 +10414,17 @@ type PullsListCommentsEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * key_id parameter */ - page?: number; + key_id: number; }; -type PullsListCommentsRequestOptions = { +type ReposGetDeployKeyRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCreateCommentEndpoint = { +type ReposRemoveDeployKeyEndpoint = { /** * owner parameter */ @@ -10098,49 +10434,17 @@ type PullsCreateCommentEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. + * key_id parameter */ - start_side?: "LEFT" | "RIGHT" | "side"; + key_id: number; }; -type PullsCreateCommentRequestOptions = { - method: "POST"; +type ReposRemoveDeployKeyRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCreateCommentReplyEndpoint = { +type IssuesListLabelsForRepoEndpoint = { /** * owner parameter */ @@ -10150,49 +10454,49 @@ type PullsCreateCommentReplyEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. + * Results per page (max 100) */ - commit_id: string; + per_page?: number; /** - * The relative path to the file that necessitates a comment. + * Page number of the results to fetch. */ - path: string; + page?: number; +}; +type IssuesListLabelsForRepoRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type IssuesCreateLabelEndpoint = { /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. + * owner parameter */ - position?: number; + owner: string; /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. + * repo parameter */ - side?: "LEFT" | "RIGHT"; + repo: string; /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. + * The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/). */ - line?: number; + name: string; /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. + * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. */ - start_line?: number; + color: string; /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. + * A short description of the label. */ - start_side?: "LEFT" | "RIGHT" | "side"; + description?: string; }; -type PullsCreateCommentReplyRequestOptions = { +type IssuesCreateLabelRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCreateReviewCommentReplyEndpoint = { +type IssuesGetLabelEndpoint = { /** * owner parameter */ @@ -10202,25 +10506,17 @@ type PullsCreateReviewCommentReplyEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the review comment. + * name parameter */ - body: string; + name: string; }; -type PullsCreateReviewCommentReplyRequestOptions = { - method: "POST"; +type IssuesGetLabelRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListCommitsEndpoint = { +type IssuesUpdateLabelEndpoint = { /** * owner parameter */ @@ -10230,25 +10526,29 @@ type PullsListCommitsEndpoint = { */ repo: string; /** - * pull_number parameter + * name parameter */ - pull_number: number; + name: string; /** - * Results per page (max 100) + * The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://github.githubassets.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/). */ - per_page?: number; + new_name?: string; /** - * Page number of the results to fetch. + * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. */ - page?: number; + color?: string; + /** + * A short description of the label. + */ + description?: string; }; -type PullsListCommitsRequestOptions = { - method: "GET"; +type IssuesUpdateLabelRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListFilesEndpoint = { +type IssuesDeleteLabelEndpoint = { /** * owner parameter */ @@ -10258,25 +10558,33 @@ type PullsListFilesEndpoint = { */ repo: string; /** - * pull_number parameter + * name parameter */ - pull_number: number; + name: string; +}; +type IssuesDeleteLabelRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListLanguagesEndpoint = { /** - * Results per page (max 100) + * owner parameter */ - per_page?: number; + owner: string; /** - * Page number of the results to fetch. + * repo parameter */ - page?: number; + repo: string; }; -type PullsListFilesRequestOptions = { +type ReposListLanguagesRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCheckIfMergedEndpoint = { +type LicensesGetForRepoEndpoint = { /** * owner parameter */ @@ -10285,18 +10593,14 @@ type PullsCheckIfMergedEndpoint = { * repo parameter */ repo: string; - /** - * pull_number parameter - */ - pull_number: number; }; -type PullsCheckIfMergedRequestOptions = { +type LicensesGetForRepoRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsMergeEndpoint = { +type ReposMergeEndpoint = { /** * owner parameter */ @@ -10306,33 +10610,25 @@ type PullsMergeEndpoint = { */ repo: string; /** - * pull_number parameter + * The name of the base branch that the head will be merged into. */ - pull_number: number; + base: string; /** - * Title for the automatic commit message. + * The head to merge. This can be a branch name or a commit SHA1. */ - commit_title?: string; + head: string; /** - * Extra detail to append to automatic commit message. + * Commit message to use for the merge commit. If omitted, a default message will be used. */ commit_message?: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; }; -type PullsMergeRequestOptions = { - method: "PUT"; +type ReposMergeRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListReviewRequestsEndpoint = { +type IssuesListMilestonesForRepoEndpoint = { /** * owner parameter */ @@ -10342,9 +10638,17 @@ type PullsListReviewRequestsEndpoint = { */ repo: string; /** - * pull_number parameter + * The state of the milestone. Either `open`, `closed`, or `all`. */ - pull_number: number; + state?: "open" | "closed" | "all"; + /** + * What to sort results by. Either `due_on` or `completeness`. + */ + sort?: "due_on" | "completeness"; + /** + * The direction of the sort. Either `asc` or `desc`. + */ + direction?: "asc" | "desc"; /** * Results per page (max 100) */ @@ -10354,13 +10658,13 @@ type PullsListReviewRequestsEndpoint = { */ page?: number; }; -type PullsListReviewRequestsRequestOptions = { +type IssuesListMilestonesForRepoRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCreateReviewRequestEndpoint = { +type IssuesCreateMilestoneEndpoint = { /** * owner parameter */ @@ -10370,25 +10674,29 @@ type PullsCreateReviewRequestEndpoint = { */ repo: string; /** - * pull_number parameter + * The title of the milestone. */ - pull_number: number; + title: string; /** - * An array of user `login`s that will be requested. + * The state of the milestone. Either `open` or `closed`. */ - reviewers?: string[]; + state?: "open" | "closed"; /** - * An array of team `slug`s that will be requested. + * A description of the milestone. */ - team_reviewers?: string[]; + description?: string; + /** + * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + due_on?: string; }; -type PullsCreateReviewRequestRequestOptions = { +type IssuesCreateMilestoneRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsDeleteReviewRequestEndpoint = { +type IssuesGetMilestoneEndpoint = { /** * owner parameter */ @@ -10398,25 +10706,17 @@ type PullsDeleteReviewRequestEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. + * milestone_number parameter */ - team_reviewers?: string[]; + milestone_number: number; }; -type PullsDeleteReviewRequestRequestOptions = { - method: "DELETE"; +type IssuesGetMilestoneRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsListReviewsEndpoint = { +type IssuesUpdateMilestoneEndpoint = { /** * owner parameter */ @@ -10426,25 +10726,33 @@ type PullsListReviewsEndpoint = { */ repo: string; /** - * pull_number parameter + * milestone_number parameter */ - pull_number: number; + milestone_number: number; /** - * Results per page (max 100) + * The title of the milestone. */ - per_page?: number; + title?: string; /** - * Page number of the results to fetch. + * The state of the milestone. Either `open` or `closed`. */ - page?: number; + state?: "open" | "closed"; + /** + * A description of the milestone. + */ + description?: string; + /** + * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + due_on?: string; }; -type PullsListReviewsRequestOptions = { - method: "GET"; +type IssuesUpdateMilestoneRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsCreateReviewEndpoint = { +type IssuesDeleteMilestoneEndpoint = { /** * owner parameter */ @@ -10454,33 +10762,17 @@ type PullsCreateReviewEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value. - */ - commit_id?: string; - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. + * milestone_number parameter */ - comments?: PullsCreateReviewParamsComments[]; + milestone_number: number; }; -type PullsCreateReviewRequestOptions = { - method: "POST"; +type IssuesDeleteMilestoneRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsGetReviewEndpoint = { +type IssuesListLabelsForMilestoneEndpoint = { /** * owner parameter */ @@ -10490,21 +10782,25 @@ type PullsGetReviewEndpoint = { */ repo: string; /** - * pull_number parameter + * milestone_number parameter */ - pull_number: number; + milestone_number: number; /** - * review_id parameter + * Results per page (max 100) */ - review_id: number; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type PullsGetReviewRequestOptions = { +type IssuesListLabelsForMilestoneRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsDeletePendingReviewEndpoint = { +type ActivityListNotificationsForRepoEndpoint = { /** * owner parameter */ @@ -10514,21 +10810,37 @@ type PullsDeletePendingReviewEndpoint = { */ repo: string; /** - * pull_number parameter + * If `true`, show notifications marked as read. */ - pull_number: number; + all?: boolean; /** - * review_id parameter + * If `true`, only shows notifications in which the user is directly participating or mentioned. */ - review_id: number; + participating?: boolean; + /** + * Only show notifications updated after the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Only show notifications updated before the given time. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + before?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type PullsDeletePendingReviewRequestOptions = { - method: "DELETE"; +type ActivityListNotificationsForRepoRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsUpdateReviewEndpoint = { +type ActivityMarkNotificationsAsReadForRepoEndpoint = { /** * owner parameter */ @@ -10538,25 +10850,17 @@ type PullsUpdateReviewEndpoint = { */ repo: string; /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review. + * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. */ - body: string; + last_read_at?: string; }; -type PullsUpdateReviewRequestOptions = { +type ActivityMarkNotificationsAsReadForRepoRequestOptions = { method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsGetCommentsForReviewEndpoint = { +type ReposGetPagesEndpoint = { /** * owner parameter */ @@ -10565,30 +10869,14 @@ type PullsGetCommentsForReviewEndpoint = { * repo parameter */ repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; }; -type PullsGetCommentsForReviewRequestOptions = { +type ReposGetPagesRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsDismissReviewEndpoint = { +type ReposEnablePagesSiteEndpoint = { /** * owner parameter */ @@ -10598,25 +10886,33 @@ type PullsDismissReviewEndpoint = { */ repo: string; /** - * pull_number parameter + * source parameter */ - pull_number: number; + source?: ReposEnablePagesSiteParamsSource; +}; +type ReposEnablePagesSiteRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposDisablePagesSiteEndpoint = { /** - * review_id parameter + * owner parameter */ - review_id: number; + owner: string; /** - * The message for the pull request review dismissal + * repo parameter */ - message: string; + repo: string; }; -type PullsDismissReviewRequestOptions = { - method: "PUT"; +type ReposDisablePagesSiteRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsSubmitReviewEndpoint = { +type ReposUpdateInformationAboutPagesSiteEndpoint = { /** * owner parameter */ @@ -10626,29 +10922,37 @@ type PullsSubmitReviewEndpoint = { */ repo: string; /** - * pull_number parameter + * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." */ - pull_number: number; + cname?: string; /** - * review_id parameter + * Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `"gh-pages"`, `"master"`, and `"master /docs"`. */ - review_id: number; + source?: '"gh-pages"' | '"master"' | '"master /docs"'; +}; +type ReposUpdateInformationAboutPagesSiteRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposRequestPageBuildEndpoint = { /** - * The body text of the pull request review + * owner parameter */ - body?: string; + owner: string; /** - * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action. + * repo parameter */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; + repo: string; }; -type PullsSubmitReviewRequestOptions = { +type ReposRequestPageBuildRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type PullsUpdateBranchEndpoint = { +type ReposListPagesBuildsEndpoint = { /** * owner parameter */ @@ -10658,21 +10962,21 @@ type PullsUpdateBranchEndpoint = { */ repo: string; /** - * pull_number parameter + * Results per page (max 100) */ - pull_number: number; + per_page?: number; /** - * The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. + * Page number of the results to fetch. */ - expected_head_sha?: string; + page?: number; }; -type PullsUpdateBranchRequestOptions = { - method: "PUT"; +type ReposListPagesBuildsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetReadmeEndpoint = { +type ReposGetLatestPagesBuildEndpoint = { /** * owner parameter */ @@ -10681,18 +10985,14 @@ type ReposGetReadmeEndpoint = { * repo parameter */ repo: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; }; -type ReposGetReadmeRequestOptions = { +type ReposGetLatestPagesBuildRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListReleasesEndpoint = { +type ReposGetPagesBuildEndpoint = { /** * owner parameter */ @@ -10702,21 +11002,17 @@ type ReposListReleasesEndpoint = { */ repo: string; /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. + * build_id parameter */ - page?: number; + build_id: number; }; -type ReposListReleasesRequestOptions = { +type ReposGetPagesBuildRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateReleaseEndpoint = { +type ProjectsListForRepoEndpoint = { /** * owner parameter */ @@ -10726,37 +11022,25 @@ type ReposCreateReleaseEndpoint = { */ repo: string; /** - * The name of the tag. - */ - tag_name: string; - /** - * Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. */ - body?: string; + state?: "open" | "closed" | "all"; /** - * `true` to create a draft (unpublished) release, `false` to create a published one. + * Results per page (max 100) */ - draft?: boolean; + per_page?: number; /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. + * Page number of the results to fetch. */ - prerelease?: boolean; + page?: number; }; -type ReposCreateReleaseRequestOptions = { - method: "POST"; +type ProjectsListForRepoRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetReleaseAssetEndpoint = { +type ProjectsCreateForRepoEndpoint = { /** * owner parameter */ @@ -10766,17 +11050,21 @@ type ReposGetReleaseAssetEndpoint = { */ repo: string; /** - * asset_id parameter + * The name of the project. */ - asset_id: number; + name: string; + /** + * The description of the project. + */ + body?: string; }; -type ReposGetReleaseAssetRequestOptions = { - method: "GET"; +type ProjectsCreateForRepoRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateReleaseAssetEndpoint = { +type PullsListEndpoint = { /** * owner parameter */ @@ -10786,45 +11074,41 @@ type ReposUpdateReleaseAssetEndpoint = { */ repo: string; /** - * asset_id parameter + * Either `open`, `closed`, or `all` to filter by state. */ - asset_id: number; + state?: "open" | "closed" | "all"; /** - * The file name of the asset. + * Filter pulls by head user or head organization and branch name in the format of `user:ref-name` or `organization:ref-name`. For example: `github:new-script-format` or `octocat:test-branch`. */ - name?: string; + head?: string; /** - * An alternate short description of the asset. Used in place of the filename. + * Filter pulls by base branch name. Example: `gh-pages`. */ - label?: string; -}; -type ReposUpdateReleaseAssetRequestOptions = { - method: "PATCH"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposDeleteReleaseAssetEndpoint = { + base?: string; /** - * owner parameter + * What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month). */ - owner: string; + sort?: "created" | "updated" | "popularity" | "long-running"; /** - * repo parameter + * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. */ - repo: string; + direction?: "asc" | "desc"; /** - * asset_id parameter + * Results per page (max 100) */ - asset_id: number; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposDeleteReleaseAssetRequestOptions = { - method: "DELETE"; +type PullsListRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetLatestReleaseEndpoint = { +type PullsCreateEndpoint = { /** * owner parameter */ @@ -10833,14 +11117,38 @@ type ReposGetLatestReleaseEndpoint = { * repo parameter */ repo: string; + /** + * The title of the new pull request. + */ + title: string; + /** + * The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`. + */ + head: string; + /** + * The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. + */ + base: string; + /** + * The contents of the pull request. + */ + body?: string; + /** + * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + */ + maintainer_can_modify?: boolean; + /** + * Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://help.github.com/en/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more. + */ + draft?: boolean; }; -type ReposGetLatestReleaseRequestOptions = { - method: "GET"; +type PullsCreateRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetReleaseByTagEndpoint = { +type PullsListCommentsForRepoEndpoint = { /** * owner parameter */ @@ -10850,17 +11158,33 @@ type ReposGetReleaseByTagEndpoint = { */ repo: string; /** - * tag parameter + * Can be either `created` or `updated` comments. */ - tag: string; + sort?: "created" | "updated"; + /** + * Can be either `asc` or `desc`. Ignored without `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposGetReleaseByTagRequestOptions = { +type PullsListCommentsForRepoRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetReleaseEndpoint = { +type PullsGetCommentEndpoint = { /** * owner parameter */ @@ -10870,17 +11194,17 @@ type ReposGetReleaseEndpoint = { */ repo: string; /** - * release_id parameter + * comment_id parameter */ - release_id: number; + comment_id: number; }; -type ReposGetReleaseRequestOptions = { +type PullsGetCommentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposUpdateReleaseEndpoint = { +type PullsUpdateCommentEndpoint = { /** * owner parameter */ @@ -10890,41 +11214,21 @@ type ReposUpdateReleaseEndpoint = { */ repo: string; /** - * release_id parameter - */ - release_id: number; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. + * comment_id parameter */ - draft?: boolean; + comment_id: number; /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. + * The text of the reply to the review comment. */ - prerelease?: boolean; + body: string; }; -type ReposUpdateReleaseRequestOptions = { +type PullsUpdateCommentRequestOptions = { method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposDeleteReleaseEndpoint = { +type PullsDeleteCommentEndpoint = { /** * owner parameter */ @@ -10934,17 +11238,17 @@ type ReposDeleteReleaseEndpoint = { */ repo: string; /** - * release_id parameter + * comment_id parameter */ - release_id: number; + comment_id: number; }; -type ReposDeleteReleaseRequestOptions = { +type PullsDeleteCommentRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListAssetsForReleaseEndpoint = { +type ReactionsListForPullRequestReviewCommentEndpoint = { /** * owner parameter */ @@ -10954,9 +11258,21 @@ type ReposListAssetsForReleaseEndpoint = { */ repo: string; /** - * release_id parameter + * comment_id parameter */ - release_id: number; + comment_id: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; /** * Results per page (max 100) */ @@ -10966,13 +11282,13 @@ type ReposListAssetsForReleaseEndpoint = { */ page?: number; }; -type ReposListAssetsForReleaseRequestOptions = { +type ReactionsListForPullRequestReviewCommentRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ActivityListStargazersForRepoEndpoint = { +type ReactionsCreateForPullRequestReviewCommentEndpoint = { /** * owner parameter */ @@ -10982,21 +11298,29 @@ type ActivityListStargazersForRepoEndpoint = { */ repo: string; /** - * Results per page (max 100) + * comment_id parameter */ - per_page?: number; + comment_id: number; /** - * Page number of the results to fetch. + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. */ - page?: number; + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; }; -type ActivityListStargazersForRepoRequestOptions = { - method: "GET"; +type ReactionsCreateForPullRequestReviewCommentRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetCodeFrequencyStatsEndpoint = { +type PullsGetEndpoint = { /** * owner parameter */ @@ -11005,14 +11329,18 @@ type ReposGetCodeFrequencyStatsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; }; -type ReposGetCodeFrequencyStatsRequestOptions = { +type PullsGetRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetCommitActivityStatsEndpoint = { +type PullsUpdateEndpoint = { /** * owner parameter */ @@ -11021,46 +11349,38 @@ type ReposGetCommitActivityStatsEndpoint = { * repo parameter */ repo: string; -}; -type ReposGetCommitActivityStatsRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposGetContributorsStatsEndpoint = { /** - * owner parameter + * pull_number parameter */ - owner: string; + pull_number: number; /** - * repo parameter + * The title of the pull request. */ - repo: string; -}; -type ReposGetContributorsStatsRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposGetParticipationStatsEndpoint = { + title?: string; /** - * owner parameter + * The contents of the pull request. */ - owner: string; + body?: string; /** - * repo parameter + * State of this Pull Request. Either `open` or `closed`. */ - repo: string; + state?: "open" | "closed"; + /** + * The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. + */ + base?: string; + /** + * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + */ + maintainer_can_modify?: boolean; }; -type ReposGetParticipationStatsRequestOptions = { - method: "GET"; +type PullsUpdateRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetPunchCardStatsEndpoint = { +type PullsListCommentsEndpoint = { /** * owner parameter */ @@ -11069,14 +11389,38 @@ type ReposGetPunchCardStatsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; + /** + * Can be either `created` or `updated` comments. + */ + sort?: "created" | "updated"; + /** + * Can be either `asc` or `desc`. Ignored without `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposGetPunchCardStatsRequestOptions = { +type PullsListCommentsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateStatusEndpoint = { +type PullsCreateCommentEndpoint = { /** * owner parameter */ @@ -11086,35 +11430,49 @@ type ReposCreateStatusEndpoint = { */ repo: string; /** - * sha parameter + * pull_number parameter */ - sha: string; + pull_number: number; /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. + * The text of the review comment. */ - state: "error" | "failure" | "pending" | "success"; + body: string; /** - * The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. - * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: - * `http://ci.example.com/user/repo/build/sha` + * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. */ - target_url?: string; + commit_id: string; /** - * A short description of the status. + * The relative path to the file that necessitates a comment. */ - description?: string; + path: string; /** - * A string label to differentiate this status from the status of other systems. + * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. */ - context?: string; + position?: number; + /** + * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. + */ + side?: "LEFT" | "RIGHT"; + /** + * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. + */ + line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. + */ + start_line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. + */ + start_side?: "LEFT" | "RIGHT" | "side"; }; -type ReposCreateStatusRequestOptions = { +type PullsCreateCommentRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ActivityListWatchersForRepoEndpoint = { +type PullsCreateCommentReplyEndpoint = { /** * owner parameter */ @@ -11124,61 +11482,49 @@ type ActivityListWatchersForRepoEndpoint = { */ repo: string; /** - * Results per page (max 100) + * pull_number parameter */ - per_page?: number; + pull_number: number; /** - * Page number of the results to fetch. + * The text of the review comment. */ - page?: number; -}; -type ActivityListWatchersForRepoRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ActivityGetRepoSubscriptionEndpoint = { + body: string; /** - * owner parameter + * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. */ - owner: string; + commit_id: string; /** - * repo parameter + * The relative path to the file that necessitates a comment. */ - repo: string; -}; -type ActivityGetRepoSubscriptionRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ActivitySetRepoSubscriptionEndpoint = { + path: string; /** - * owner parameter + * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. */ - owner: string; + position?: number; /** - * repo parameter + * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. */ - repo: string; + side?: "LEFT" | "RIGHT"; /** - * Determines if notifications should be received from this repository. + * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. */ - subscribed?: boolean; + line?: number; /** - * Determines if all notifications should be blocked from this repository. + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. */ - ignored?: boolean; + start_line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. + */ + start_side?: "LEFT" | "RIGHT" | "side"; }; -type ActivitySetRepoSubscriptionRequestOptions = { - method: "PUT"; +type PullsCreateCommentReplyRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ActivityDeleteRepoSubscriptionEndpoint = { +type PullsCreateReviewCommentReplyEndpoint = { /** * owner parameter */ @@ -11187,14 +11533,26 @@ type ActivityDeleteRepoSubscriptionEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; + /** + * comment_id parameter + */ + comment_id: number; + /** + * The text of the review comment. + */ + body: string; }; -type ActivityDeleteRepoSubscriptionRequestOptions = { - method: "DELETE"; +type PullsCreateReviewCommentReplyRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListTagsEndpoint = { +type PullsListCommitsEndpoint = { /** * owner parameter */ @@ -11203,6 +11561,10 @@ type ReposListTagsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; /** * Results per page (max 100) */ @@ -11212,13 +11574,13 @@ type ReposListTagsEndpoint = { */ page?: number; }; -type ReposListTagsRequestOptions = { +type PullsListCommitsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListTeamsEndpoint = { +type PullsListFilesEndpoint = { /** * owner parameter */ @@ -11227,6 +11589,10 @@ type ReposListTeamsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; /** * Results per page (max 100) */ @@ -11236,13 +11602,13 @@ type ReposListTeamsEndpoint = { */ page?: number; }; -type ReposListTeamsRequestOptions = { +type PullsListFilesRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListTopicsEndpoint = { +type PullsCheckIfMergedEndpoint = { /** * owner parameter */ @@ -11251,14 +11617,18 @@ type ReposListTopicsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; }; -type ReposListTopicsRequestOptions = { +type PullsCheckIfMergedRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposReplaceTopicsEndpoint = { +type PullsMergeEndpoint = { /** * owner parameter */ @@ -11268,17 +11638,33 @@ type ReposReplaceTopicsEndpoint = { */ repo: string; /** - * An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters. + * pull_number parameter */ - names: string[]; + pull_number: number; + /** + * Title for the automatic commit message. + */ + commit_title?: string; + /** + * Extra detail to append to automatic commit message. + */ + commit_message?: string; + /** + * SHA that pull request head must match to allow merge. + */ + sha?: string; + /** + * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. + */ + merge_method?: "merge" | "squash" | "rebase"; }; -type ReposReplaceTopicsRequestOptions = { +type PullsMergeRequestOptions = { method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetClonesEndpoint = { +type PullsListReviewRequestsEndpoint = { /** * owner parameter */ @@ -11288,17 +11674,25 @@ type ReposGetClonesEndpoint = { */ repo: string; /** - * Must be one of: `day`, `week`. + * pull_number parameter */ - per?: "day" | "week"; + pull_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposGetClonesRequestOptions = { +type PullsListReviewRequestsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetTopPathsEndpoint = { +type PullsCreateReviewRequestEndpoint = { /** * owner parameter */ @@ -11307,14 +11701,26 @@ type ReposGetTopPathsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; + /** + * An array of user `login`s that will be requested. + */ + reviewers?: string[]; + /** + * An array of team `slug`s that will be requested. + */ + team_reviewers?: string[]; }; -type ReposGetTopPathsRequestOptions = { - method: "GET"; +type PullsCreateReviewRequestRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetTopReferrersEndpoint = { +type PullsDeleteReviewRequestEndpoint = { /** * owner parameter */ @@ -11323,14 +11729,26 @@ type ReposGetTopReferrersEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; + /** + * An array of user `login`s that will be removed. + */ + reviewers?: string[]; + /** + * An array of team `slug`s that will be removed. + */ + team_reviewers?: string[]; }; -type ReposGetTopReferrersRequestOptions = { - method: "GET"; +type PullsDeleteReviewRequestRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetViewsEndpoint = { +type PullsListReviewsEndpoint = { /** * owner parameter */ @@ -11340,17 +11758,25 @@ type ReposGetViewsEndpoint = { */ repo: string; /** - * Must be one of: `day`, `week`. + * pull_number parameter */ - per?: "day" | "week"; + pull_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ReposGetViewsRequestOptions = { +type PullsListReviewsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposTransferEndpoint = { +type PullsCreateReviewEndpoint = { /** * owner parameter */ @@ -11360,21 +11786,33 @@ type ReposTransferEndpoint = { */ repo: string; /** - * **Required:** The username or organization name the repository will be transferred to. + * pull_number parameter */ - new_owner?: string; + pull_number: number; /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. + * The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value. */ - team_ids?: number[]; + commit_id?: string; + /** + * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. + */ + body?: string; + /** + * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. + */ + event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; + /** + * Use the following table to specify the location, destination, and contents of the draft review comment. + */ + comments?: PullsCreateReviewParamsComments[]; }; -type ReposTransferRequestOptions = { +type PullsCreateReviewRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCheckVulnerabilityAlertsEndpoint = { +type PullsGetReviewEndpoint = { /** * owner parameter */ @@ -11383,14 +11821,22 @@ type ReposCheckVulnerabilityAlertsEndpoint = { * repo parameter */ repo: string; + /** + * pull_number parameter + */ + pull_number: number; + /** + * review_id parameter + */ + review_id: number; }; -type ReposCheckVulnerabilityAlertsRequestOptions = { +type PullsGetReviewRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposEnableVulnerabilityAlertsEndpoint = { +type PullsDeletePendingReviewEndpoint = { /** * owner parameter */ @@ -11399,30 +11845,22 @@ type ReposEnableVulnerabilityAlertsEndpoint = { * repo parameter */ repo: string; -}; -type ReposEnableVulnerabilityAlertsRequestOptions = { - method: "PUT"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ReposDisableVulnerabilityAlertsEndpoint = { /** - * owner parameter + * pull_number parameter */ - owner: string; + pull_number: number; /** - * repo parameter + * review_id parameter */ - repo: string; + review_id: number; }; -type ReposDisableVulnerabilityAlertsRequestOptions = { +type PullsDeletePendingReviewRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposGetArchiveLinkEndpoint = { +type PullsUpdateReviewEndpoint = { /** * owner parameter */ @@ -11432,209 +11870,1261 @@ type ReposGetArchiveLinkEndpoint = { */ repo: string; /** - * archive_format parameter + * pull_number parameter */ - archive_format: string; + pull_number: number; /** - * ref parameter + * review_id parameter */ - ref: string; + review_id: number; + /** + * The body text of the pull request review. + */ + body: string; }; -type ReposGetArchiveLinkRequestOptions = { - method: "GET"; +type PullsUpdateReviewRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposCreateUsingTemplateEndpoint = { +type PullsGetCommentsForReviewEndpoint = { /** - * template_owner parameter + * owner parameter */ - template_owner: string; + owner: string; /** - * template_repo parameter + * repo parameter */ - template_repo: string; + repo: string; /** - * The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization. + * pull_number parameter */ - owner?: string; + pull_number: number; /** - * The name of the new repository. + * review_id parameter */ - name: string; + review_id: number; /** - * A short description of the new repository. + * Results per page (max 100) */ - description?: string; + per_page?: number; /** - * Either `true` to create a new private repository or `false` to create a new public one. + * Page number of the results to fetch. */ - private?: boolean; + page?: number; }; -type ReposCreateUsingTemplateRequestOptions = { - method: "POST"; +type PullsGetCommentsForReviewRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ReposListPublicEndpoint = { +type PullsDismissReviewEndpoint = { /** - * The integer ID of the last Repository that you've seen. + * owner parameter */ - since?: string; + owner: string; /** - * Results per page (max 100) + * repo parameter */ - per_page?: number; + repo: string; /** - * Page number of the results to fetch. + * pull_number parameter */ - page?: number; + pull_number: number; + /** + * review_id parameter + */ + review_id: number; + /** + * The message for the pull request review dismissal + */ + message: string; }; -type ReposListPublicRequestOptions = { - method: "GET"; +type PullsDismissReviewRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ScimListProvisionedIdentitiesEndpoint = { +type PullsSubmitReviewEndpoint = { /** - * org parameter + * owner parameter */ - org: string; + owner: string; /** - * Used for pagination: the index of the first result to return. + * repo parameter */ - startIndex?: number; + repo: string; /** - * Used for pagination: the number of results to return. + * pull_number parameter */ - count?: number; + pull_number: number; /** - * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\"Octocat\"`. + * review_id parameter */ - filter?: string; -}; -type ScimListProvisionedIdentitiesRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ScimProvisionAndInviteUsersEndpoint = { + review_id: number; /** - * org parameter + * The body text of the pull request review */ - org: string; -}; -type ScimProvisionAndInviteUsersRequestOptions = { - method: "POST"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ScimProvisionInviteUsersEndpoint = { + body?: string; /** - * org parameter + * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action. */ - org: string; + event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; }; -type ScimProvisionInviteUsersRequestOptions = { +type PullsSubmitReviewRequestOptions = { method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ScimGetProvisioningDetailsForUserEndpoint = { +type PullsUpdateBranchEndpoint = { /** - * org parameter + * owner parameter */ - org: string; + owner: string; /** - * scim_user_id parameter + * repo parameter */ - scim_user_id: number; -}; -type ScimGetProvisioningDetailsForUserRequestOptions = { - method: "GET"; - url: Url; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -type ScimReplaceProvisionedUserInformationEndpoint = { + repo: string; /** - * org parameter + * pull_number parameter */ - org: string; + pull_number: number; /** - * scim_user_id parameter + * The expected SHA of the pull request's HEAD ref. This is the most recent commit on the pull request's branch. If the expected SHA does not match the pull request's HEAD, you will receive a `422 Unprocessable Entity` status. You can use the "[List commits on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. */ - scim_user_id: number; + expected_head_sha?: string; }; -type ScimReplaceProvisionedUserInformationRequestOptions = { +type PullsUpdateBranchRequestOptions = { method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ScimUpdateProvisionedOrgMembershipEndpoint = { +type ReposGetReadmeEndpoint = { /** - * org parameter + * owner parameter */ - org: string; + owner: string; /** - * scim_user_id parameter + * repo parameter */ - scim_user_id: number; + repo: string; + /** + * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) + */ + ref?: string; }; -type ScimUpdateProvisionedOrgMembershipRequestOptions = { - method: "PUT"; +type ReposGetReadmeRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ScimUpdateUserAttributeEndpoint = { +type ReposListReleasesEndpoint = { /** - * org parameter + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ReposListReleasesRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposCreateReleaseEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * The name of the tag. + */ + tag_name: string; + /** + * Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`). + */ + target_commitish?: string; + /** + * The name of the release. + */ + name?: string; + /** + * Text describing the contents of the tag. + */ + body?: string; + /** + * `true` to create a draft (unpublished) release, `false` to create a published one. + */ + draft?: boolean; + /** + * `true` to identify the release as a prerelease. `false` to identify the release as a full release. + */ + prerelease?: boolean; +}; +type ReposCreateReleaseRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetReleaseAssetEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * asset_id parameter + */ + asset_id: number; +}; +type ReposGetReleaseAssetRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposUpdateReleaseAssetEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * asset_id parameter + */ + asset_id: number; + /** + * The file name of the asset. + */ + name?: string; + /** + * An alternate short description of the asset. Used in place of the filename. + */ + label?: string; +}; +type ReposUpdateReleaseAssetRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposDeleteReleaseAssetEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * asset_id parameter + */ + asset_id: number; +}; +type ReposDeleteReleaseAssetRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetLatestReleaseEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetLatestReleaseRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetReleaseByTagEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * tag parameter + */ + tag: string; +}; +type ReposGetReleaseByTagRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetReleaseEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * release_id parameter + */ + release_id: number; +}; +type ReposGetReleaseRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposUpdateReleaseEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * release_id parameter + */ + release_id: number; + /** + * The name of the tag. + */ + tag_name?: string; + /** + * Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually `master`). + */ + target_commitish?: string; + /** + * The name of the release. + */ + name?: string; + /** + * Text describing the contents of the tag. + */ + body?: string; + /** + * `true` makes the release a draft, and `false` publishes the release. + */ + draft?: boolean; + /** + * `true` to identify the release as a prerelease, `false` to identify the release as a full release. + */ + prerelease?: boolean; +}; +type ReposUpdateReleaseRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposDeleteReleaseEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * release_id parameter + */ + release_id: number; +}; +type ReposDeleteReleaseRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListAssetsForReleaseEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * release_id parameter + */ + release_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ReposListAssetsForReleaseRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ActivityListStargazersForRepoEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ActivityListStargazersForRepoRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetCodeFrequencyStatsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetCodeFrequencyStatsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetCommitActivityStatsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetCommitActivityStatsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetContributorsStatsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetContributorsStatsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetParticipationStatsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetParticipationStatsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetPunchCardStatsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetPunchCardStatsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposCreateStatusEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * sha parameter + */ + sha: string; + /** + * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. + */ + state: "error" | "failure" | "pending" | "success"; + /** + * The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. + * For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: + * `http://ci.example.com/user/repo/build/sha` + */ + target_url?: string; + /** + * A short description of the status. + */ + description?: string; + /** + * A string label to differentiate this status from the status of other systems. + */ + context?: string; +}; +type ReposCreateStatusRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ActivityListWatchersForRepoEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ActivityListWatchersForRepoRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ActivityGetRepoSubscriptionEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ActivityGetRepoSubscriptionRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ActivitySetRepoSubscriptionEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Determines if notifications should be received from this repository. + */ + subscribed?: boolean; + /** + * Determines if all notifications should be blocked from this repository. + */ + ignored?: boolean; +}; +type ActivitySetRepoSubscriptionRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ActivityDeleteRepoSubscriptionEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ActivityDeleteRepoSubscriptionRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListTagsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ReposListTagsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListTeamsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ReposListTeamsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListTopicsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposListTopicsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposReplaceTopicsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters. + */ + names: string[]; +}; +type ReposReplaceTopicsRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetClonesEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Must be one of: `day`, `week`. + */ + per?: "day" | "week"; +}; +type ReposGetClonesRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetTopPathsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetTopPathsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetTopReferrersEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposGetTopReferrersRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetViewsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * Must be one of: `day`, `week`. + */ + per?: "day" | "week"; +}; +type ReposGetViewsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposTransferEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * **Required:** The username or organization name the repository will be transferred to. + */ + new_owner?: string; + /** + * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. + */ + team_ids?: number[]; +}; +type ReposTransferRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposCheckVulnerabilityAlertsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposCheckVulnerabilityAlertsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposEnableVulnerabilityAlertsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposEnableVulnerabilityAlertsRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposDisableVulnerabilityAlertsEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type ReposDisableVulnerabilityAlertsRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposGetArchiveLinkEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * archive_format parameter + */ + archive_format: string; + /** + * ref parameter + */ + ref: string; +}; +type ReposGetArchiveLinkRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposCreateUsingTemplateEndpoint = { + /** + * template_owner parameter + */ + template_owner: string; + /** + * template_repo parameter + */ + template_repo: string; + /** + * The organization or person who will own the new repository. To create a new repository in an organization, the authenticated user must be a member of the specified organization. + */ + owner?: string; + /** + * The name of the new repository. + */ + name: string; + /** + * A short description of the new repository. + */ + description?: string; + /** + * Either `true` to create a new private repository or `false` to create a new public one. + */ + private?: boolean; +}; +type ReposCreateUsingTemplateRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ReposListPublicEndpoint = { + /** + * The integer ID of the last Repository that you've seen. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ReposListPublicRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimListProvisionedIdentitiesEndpoint = { + /** + * org parameter + */ + org: string; + /** + * Used for pagination: the index of the first result to return. + */ + startIndex?: number; + /** + * Used for pagination: the number of results to return. + */ + count?: number; + /** + * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\"Octocat\"`. + */ + filter?: string; +}; +type ScimListProvisionedIdentitiesRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimProvisionAndInviteUsersEndpoint = { + /** + * org parameter + */ + org: string; +}; +type ScimProvisionAndInviteUsersRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimProvisionInviteUsersEndpoint = { + /** + * org parameter + */ + org: string; +}; +type ScimProvisionInviteUsersRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimGetProvisioningDetailsForUserEndpoint = { + /** + * org parameter + */ + org: string; + /** + * scim_user_id parameter + */ + scim_user_id: number; +}; +type ScimGetProvisioningDetailsForUserRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimReplaceProvisionedUserInformationEndpoint = { + /** + * org parameter + */ + org: string; + /** + * scim_user_id parameter + */ + scim_user_id: number; +}; +type ScimReplaceProvisionedUserInformationRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimUpdateProvisionedOrgMembershipEndpoint = { + /** + * org parameter + */ + org: string; + /** + * scim_user_id parameter + */ + scim_user_id: number; +}; +type ScimUpdateProvisionedOrgMembershipRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimUpdateUserAttributeEndpoint = { + /** + * org parameter + */ + org: string; + /** + * scim_user_id parameter + */ + scim_user_id: number; +}; +type ScimUpdateUserAttributeRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type ScimRemoveUserFromOrgEndpoint = { + /** + * org parameter */ org: string; /** - * scim_user_id parameter + * scim_user_id parameter + */ + scim_user_id: number; +}; +type ScimRemoveUserFromOrgRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type SearchCodeEndpoint = { + /** + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "indexed"; + /** + * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type SearchCodeRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type SearchCommitsEndpoint = { + /** + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "author-date" | "committer-date"; + /** + * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type SearchCommitsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type SearchIssuesAndPullRequestsEndpoint = { + /** + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) */ - scim_user_id: number; + sort?: + | "comments" + | "reactions" + | "reactions-+1" + | "reactions--1" + | "reactions-smile" + | "reactions-thinking_face" + | "reactions-heart" + | "reactions-tada" + | "interactions" + | "created" + | "updated"; + /** + * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ScimUpdateUserAttributeRequestOptions = { - method: "PATCH"; +type SearchIssuesAndPullRequestsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type ScimRemoveUserFromOrgEndpoint = { +type SearchIssuesEndpoint = { /** - * org parameter + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)" for a detailed list of qualifiers. */ - org: string; + q: string; /** - * scim_user_id parameter + * Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) */ - scim_user_id: number; + sort?: + | "comments" + | "reactions" + | "reactions-+1" + | "reactions--1" + | "reactions-smile" + | "reactions-thinking_face" + | "reactions-heart" + | "reactions-tada" + | "interactions" + | "created" + | "updated"; + /** + * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type ScimRemoveUserFromOrgRequestOptions = { - method: "DELETE"; +type SearchIssuesRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchCodeEndpoint = { +type SearchLabelsEndpoint = { /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. + * The id of the repository. + */ + repository_id: number; + /** + * The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). */ q: string; /** - * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) */ - sort?: "indexed"; + sort?: "created" | "updated"; + /** + * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + */ + order?: "desc" | "asc"; +}; +type SearchLabelsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type SearchReposEndpoint = { + /** + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; /** * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. */ @@ -11648,21 +13138,33 @@ type SearchCodeEndpoint = { */ page?: number; }; -type SearchCodeRequestOptions = { +type SearchReposRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchCommitsEndpoint = { +type SearchTopicsEndpoint = { /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). + */ + q: string; +}; +type SearchTopicsRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type SearchUsersEndpoint = { + /** + * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. */ q: string; /** - * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) */ - sort?: "author-date" | "committer-date"; + sort?: "followers" | "repositories" | "joined"; /** * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. */ @@ -11676,36 +13178,149 @@ type SearchCommitsEndpoint = { */ page?: number; }; -type SearchCommitsRequestOptions = { +type SearchUsersRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchIssuesAndPullRequestsEndpoint = { +type TeamsGetLegacyEndpoint = { /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)" for a detailed list of qualifiers. + * team_id parameter */ - q: string; + team_id: number; +}; +type TeamsGetLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsGetEndpoint = { /** - * Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + * team_id parameter */ - sort?: - | "comments" - | "reactions" - | "reactions-+1" - | "reactions--1" - | "reactions-smile" - | "reactions-thinking_face" - | "reactions-heart" - | "reactions-tada" - | "interactions" - | "created" - | "updated"; + team_id: number; +}; +type TeamsGetRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsUpdateLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. + */ + privacy?: "secret" | "closed"; + /** + * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: + * \* `pull` - team members can pull, but not push to or administer newly-added repositories. + * \* `push` - team members can pull and push, but not administer newly-added repositories. + * \* `admin` - team members can pull, push and administer newly-added repositories. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; +}; +type TeamsUpdateLegacyRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsUpdateEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: + * **For a non-nested team:** + * \* `secret` - only visible to organization owners and members of this team. + * \* `closed` - visible to all members of this organization. + * **For a parent or child team:** + * \* `closed` - visible to all members of this organization. + */ + privacy?: "secret" | "closed"; + /** + * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: + * \* `pull` - team members can pull, but not push to or administer newly-added repositories. + * \* `push` - team members can pull and push, but not administer newly-added repositories. + * \* `admin` - team members can pull, push and administer newly-added repositories. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; +}; +type TeamsUpdateRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsDeleteLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; +}; +type TeamsDeleteLegacyRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsDeleteEndpoint = { + /** + * team_id parameter + */ + team_id: number; +}; +type TeamsDeleteRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsListDiscussionsLegacyEndpoint = { /** - * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + * team_id parameter */ - order?: "desc" | "asc"; + team_id: number; + /** + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. + */ + direction?: "asc" | "desc"; /** * Results per page (max 100) */ @@ -11715,36 +13330,21 @@ type SearchIssuesAndPullRequestsEndpoint = { */ page?: number; }; -type SearchIssuesAndPullRequestsRequestOptions = { +type TeamsListDiscussionsLegacyRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchIssuesEndpoint = { - /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching issues and pull requests](https://help.github.com/articles/searching-issues-and-pull-requests/)" for a detailed list of qualifiers. - */ - q: string; +type TeamsListDiscussionsEndpoint = { /** - * Sorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `updated`, Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + * team_id parameter */ - sort?: - | "comments" - | "reactions" - | "reactions-+1" - | "reactions--1" - | "reactions-smile" - | "reactions-thinking_face" - | "reactions-heart" - | "reactions-tada" - | "interactions" - | "created" - | "updated"; + team_id: number; /** - * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. */ - order?: "desc" | "asc"; + direction?: "asc" | "desc"; /** * Results per page (max 100) */ @@ -11754,173 +13354,181 @@ type SearchIssuesEndpoint = { */ page?: number; }; -type SearchIssuesRequestOptions = { +type TeamsListDiscussionsRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchLabelsEndpoint = { +type TeamsCreateDiscussionLegacyEndpoint = { /** - * The id of the repository. + * team_id parameter */ - repository_id: number; + team_id: number; /** - * The search keywords. This endpoint does not accept qualifiers in the query. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). + * The discussion post's title. */ - q: string; + title: string; /** - * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + * The discussion post's body text. */ - sort?: "created" | "updated"; + body: string; /** - * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. */ - order?: "desc" | "asc"; + private?: boolean; }; -type SearchLabelsRequestOptions = { - method: "GET"; +type TeamsCreateDiscussionLegacyRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchReposEndpoint = { - /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. - */ - q: string; +type TeamsCreateDiscussionEndpoint = { /** - * Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + * team_id parameter */ - sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; + team_id: number; /** - * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + * The discussion post's title. */ - order?: "desc" | "asc"; + title: string; /** - * Results per page (max 100) + * The discussion post's body text. */ - per_page?: number; + body: string; /** - * Page number of the results to fetch. + * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. */ - page?: number; + private?: boolean; }; -type SearchReposRequestOptions = { - method: "GET"; +type TeamsCreateDiscussionRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchTopicsEndpoint = { +type TeamsGetDiscussionLegacyEndpoint = { /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). + * team_id parameter */ - q: string; + team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; }; -type SearchTopicsRequestOptions = { +type TeamsGetDiscussionLegacyRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type SearchUsersEndpoint = { - /** - * The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as GitHub.com. To learn more about the format of the query, see [Constructing a search query](https://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "followers" | "repositories" | "joined"; - /** - * Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. - */ - order?: "desc" | "asc"; +type TeamsGetDiscussionEndpoint = { /** - * Results per page (max 100) + * team_id parameter */ - per_page?: number; + team_id: number; /** - * Page number of the results to fetch. + * discussion_number parameter */ - page?: number; + discussion_number: number; }; -type SearchUsersRequestOptions = { +type TeamsGetDiscussionRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsGetEndpoint = { +type TeamsUpdateDiscussionLegacyEndpoint = { /** * team_id parameter */ team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * The discussion post's title. + */ + title?: string; + /** + * The discussion post's body text. + */ + body?: string; }; -type TeamsGetRequestOptions = { - method: "GET"; +type TeamsUpdateDiscussionLegacyRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsUpdateEndpoint = { +type TeamsUpdateDiscussionEndpoint = { /** * team_id parameter */ team_id: number; /** - * The name of the team. + * discussion_number parameter */ - name: string; + discussion_number: number; /** - * The description of the team. + * The discussion post's title. */ - description?: string; + title?: string; /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: - * **For a non-nested team:** - * \* `secret` - only visible to organization owners and members of this team. - * \* `closed` - visible to all members of this organization. - * **For a parent or child team:** - * \* `closed` - visible to all members of this organization. + * The discussion post's body text. */ - privacy?: "secret" | "closed"; + body?: string; +}; +type TeamsUpdateDiscussionRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsDeleteDiscussionLegacyEndpoint = { /** - * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: - * \* `pull` - team members can pull, but not push to or administer newly-added repositories. - * \* `push` - team members can pull and push, but not administer newly-added repositories. - * \* `admin` - team members can pull, push and administer newly-added repositories. + * team_id parameter */ - permission?: "pull" | "push" | "admin"; + team_id: number; /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. + * discussion_number parameter */ - parent_team_id?: number; + discussion_number: number; }; -type TeamsUpdateRequestOptions = { - method: "PATCH"; +type TeamsDeleteDiscussionLegacyRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsDeleteEndpoint = { +type TeamsDeleteDiscussionEndpoint = { /** * team_id parameter */ team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; }; -type TeamsDeleteRequestOptions = { +type TeamsDeleteDiscussionRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsListDiscussionsEndpoint = { +type TeamsListDiscussionCommentsLegacyEndpoint = { /** * team_id parameter */ team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; /** * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. */ @@ -11934,37 +13542,41 @@ type TeamsListDiscussionsEndpoint = { */ page?: number; }; -type TeamsListDiscussionsRequestOptions = { +type TeamsListDiscussionCommentsLegacyRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsCreateDiscussionEndpoint = { +type TeamsListDiscussionCommentsEndpoint = { /** * team_id parameter */ team_id: number; /** - * The discussion post's title. + * discussion_number parameter */ - title: string; + discussion_number: number; /** - * The discussion post's body text. + * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. */ - body: string; + direction?: "asc" | "desc"; /** - * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. + * Results per page (max 100) */ - private?: boolean; + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type TeamsCreateDiscussionRequestOptions = { - method: "POST"; +type TeamsListDiscussionCommentsRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsGetDiscussionEndpoint = { +type TeamsCreateDiscussionCommentLegacyEndpoint = { /** * team_id parameter */ @@ -11973,14 +13585,18 @@ type TeamsGetDiscussionEndpoint = { * discussion_number parameter */ discussion_number: number; + /** + * The discussion comment's body text. + */ + body: string; }; -type TeamsGetDiscussionRequestOptions = { - method: "GET"; +type TeamsCreateDiscussionCommentLegacyRequestOptions = { + method: "POST"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsUpdateDiscussionEndpoint = { +type TeamsCreateDiscussionCommentEndpoint = { /** * team_id parameter */ @@ -11990,21 +13606,37 @@ type TeamsUpdateDiscussionEndpoint = { */ discussion_number: number; /** - * The discussion post's title. + * The discussion comment's body text. */ - title?: string; + body: string; +}; +type TeamsCreateDiscussionCommentRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsGetDiscussionCommentLegacyEndpoint = { /** - * The discussion post's body text. + * team_id parameter */ - body?: string; + team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * comment_number parameter + */ + comment_number: number; }; -type TeamsUpdateDiscussionRequestOptions = { - method: "PATCH"; +type TeamsGetDiscussionCommentLegacyRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsDeleteDiscussionEndpoint = { +type TeamsGetDiscussionCommentEndpoint = { /** * team_id parameter */ @@ -12013,14 +13645,18 @@ type TeamsDeleteDiscussionEndpoint = { * discussion_number parameter */ discussion_number: number; + /** + * comment_number parameter + */ + comment_number: number; }; -type TeamsDeleteDiscussionRequestOptions = { - method: "DELETE"; +type TeamsGetDiscussionCommentRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsListDiscussionCommentsEndpoint = { +type TeamsUpdateDiscussionCommentLegacyEndpoint = { /** * team_id parameter */ @@ -12030,25 +13666,21 @@ type TeamsListDiscussionCommentsEndpoint = { */ discussion_number: number; /** - * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) + * comment_number parameter */ - per_page?: number; + comment_number: number; /** - * Page number of the results to fetch. + * The discussion comment's body text. */ - page?: number; + body: string; }; -type TeamsListDiscussionCommentsRequestOptions = { - method: "GET"; +type TeamsUpdateDiscussionCommentLegacyRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsCreateDiscussionCommentEndpoint = { +type TeamsUpdateDiscussionCommentEndpoint = { /** * team_id parameter */ @@ -12057,18 +13689,22 @@ type TeamsCreateDiscussionCommentEndpoint = { * discussion_number parameter */ discussion_number: number; + /** + * comment_number parameter + */ + comment_number: number; /** * The discussion comment's body text. */ body: string; }; -type TeamsCreateDiscussionCommentRequestOptions = { - method: "POST"; +type TeamsUpdateDiscussionCommentRequestOptions = { + method: "PATCH"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsGetDiscussionCommentEndpoint = { +type TeamsDeleteDiscussionCommentLegacyEndpoint = { /** * team_id parameter */ @@ -12082,13 +13718,13 @@ type TeamsGetDiscussionCommentEndpoint = { */ comment_number: number; }; -type TeamsGetDiscussionCommentRequestOptions = { - method: "GET"; +type TeamsDeleteDiscussionCommentLegacyRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsUpdateDiscussionCommentEndpoint = { +type TeamsDeleteDiscussionCommentEndpoint = { /** * team_id parameter */ @@ -12101,18 +13737,14 @@ type TeamsUpdateDiscussionCommentEndpoint = { * comment_number parameter */ comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; }; -type TeamsUpdateDiscussionCommentRequestOptions = { - method: "PATCH"; +type TeamsDeleteDiscussionCommentRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsDeleteDiscussionCommentEndpoint = { +type ReactionsListForTeamDiscussionCommentLegacyEndpoint = { /** * team_id parameter */ @@ -12125,9 +13757,29 @@ type TeamsDeleteDiscussionCommentEndpoint = { * comment_number parameter */ comment_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; }; -type TeamsDeleteDiscussionCommentRequestOptions = { - method: "DELETE"; +type ReactionsListForTeamDiscussionCommentLegacyRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; @@ -12172,6 +13824,38 @@ type ReactionsListForTeamDiscussionCommentRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type ReactionsCreateForTeamDiscussionCommentLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * comment_number parameter + */ + comment_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; +}; +type ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type ReactionsCreateForTeamDiscussionCommentEndpoint = { /** * team_id parameter @@ -12204,6 +13888,42 @@ type ReactionsCreateForTeamDiscussionCommentRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type ReactionsListForTeamDiscussionLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type ReactionsListForTeamDiscussionLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type ReactionsListForTeamDiscussionEndpoint = { /** * team_id parameter @@ -12240,6 +13960,34 @@ type ReactionsListForTeamDiscussionRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type ReactionsCreateForTeamDiscussionLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * discussion_number parameter + */ + discussion_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; +}; +type ReactionsCreateForTeamDiscussionLegacyRequestOptions = { + method: "POST"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type ReactionsCreateForTeamDiscussionEndpoint = { /** * team_id parameter @@ -12268,6 +14016,26 @@ type ReactionsCreateForTeamDiscussionRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsListPendingInvitationsLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type TeamsListPendingInvitationsLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsListPendingInvitationsEndpoint = { /** * team_id parameter @@ -12288,6 +14056,33 @@ type TeamsListPendingInvitationsRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsListMembersLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * Filters members returned by their role in the team. Can be one of: + * \* `member` - normal members of the team. + * \* `maintainer` - team maintainers. + * \* `all` - all members of the team. + */ + role?: "member" | "maintainer" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type TeamsListMembersLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsListMembersEndpoint = { /** * team_id parameter @@ -12301,21 +14096,85 @@ type TeamsListMembersEndpoint = { */ role?: "member" | "maintainer" | "all"; /** - * Results per page (max 100) + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type TeamsListMembersRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsGetMemberLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * username parameter + */ + username: string; +}; +type TeamsGetMemberLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsGetMemberEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * username parameter + */ + username: string; +}; +type TeamsGetMemberRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsAddMemberLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * username parameter + */ + username: string; +}; +type TeamsAddMemberLegacyRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsAddMemberEndpoint = { + /** + * team_id parameter */ - per_page?: number; + team_id: number; /** - * Page number of the results to fetch. + * username parameter */ - page?: number; + username: string; }; -type TeamsListMembersRequestOptions = { - method: "GET"; +type TeamsAddMemberRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsGetMemberEndpoint = { +type TeamsRemoveMemberLegacyEndpoint = { /** * team_id parameter */ @@ -12325,13 +14184,13 @@ type TeamsGetMemberEndpoint = { */ username: string; }; -type TeamsGetMemberRequestOptions = { - method: "GET"; +type TeamsRemoveMemberLegacyRequestOptions = { + method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsAddMemberEndpoint = { +type TeamsGetMembershipLegacyEndpoint = { /** * team_id parameter */ @@ -12341,13 +14200,13 @@ type TeamsAddMemberEndpoint = { */ username: string; }; -type TeamsAddMemberRequestOptions = { - method: "PUT"; +type TeamsGetMembershipLegacyRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsRemoveMemberEndpoint = { +type TeamsGetMembershipEndpoint = { /** * team_id parameter */ @@ -12357,13 +14216,13 @@ type TeamsRemoveMemberEndpoint = { */ username: string; }; -type TeamsRemoveMemberRequestOptions = { - method: "DELETE"; +type TeamsGetMembershipRequestOptions = { + method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsGetMembershipEndpoint = { +type TeamsAddOrUpdateMembershipLegacyEndpoint = { /** * team_id parameter */ @@ -12372,9 +14231,15 @@ type TeamsGetMembershipEndpoint = { * username parameter */ username: string; + /** + * The role that this user should have in the team. Can be one of: + * \* `member` - a normal member of the team. + * \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. + */ + role?: "member" | "maintainer"; }; -type TeamsGetMembershipRequestOptions = { - method: "GET"; +type TeamsAddOrUpdateMembershipLegacyRequestOptions = { + method: "PUT"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; @@ -12401,7 +14266,7 @@ type TeamsAddOrUpdateMembershipRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsRemoveMembershipEndpoint = { +type TeamsRemoveMembershipLegacyEndpoint = { /** * team_id parameter */ @@ -12411,12 +14276,32 @@ type TeamsRemoveMembershipEndpoint = { */ username: string; }; -type TeamsRemoveMembershipRequestOptions = { +type TeamsRemoveMembershipLegacyRequestOptions = { method: "DELETE"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsListProjectsLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type TeamsListProjectsLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsListProjectsEndpoint = { /** * team_id parameter @@ -12437,6 +14322,22 @@ type TeamsListProjectsRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsReviewProjectLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * project_id parameter + */ + project_id: number; +}; +type TeamsReviewProjectLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsReviewProjectEndpoint = { /** * team_id parameter @@ -12453,6 +14354,30 @@ type TeamsReviewProjectRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsAddOrUpdateProjectLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * project_id parameter + */ + project_id: number; + /** + * The permission to grant to the team for this project. Can be one of: + * \* `read` - team members can read, but not write to or administer this project. + * \* `write` - team members can read and write, but not administer this project. + * \* `admin` - team members can read, write and administer this project. + * Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." + */ + permission?: "read" | "write" | "admin"; +}; +type TeamsAddOrUpdateProjectLegacyRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsAddOrUpdateProjectEndpoint = { /** * team_id parameter @@ -12468,7 +14393,6 @@ type TeamsAddOrUpdateProjectEndpoint = { * \* `write` - team members can read and write, but not administer this project. * \* `admin` - team members can read, write and administer this project. * Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team. */ permission?: "read" | "write" | "admin"; }; @@ -12478,6 +14402,22 @@ type TeamsAddOrUpdateProjectRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsRemoveProjectLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * project_id parameter + */ + project_id: number; +}; +type TeamsRemoveProjectLegacyRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsRemoveProjectEndpoint = { /** * team_id parameter @@ -12494,6 +14434,26 @@ type TeamsRemoveProjectRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsListReposLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type TeamsListReposLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsListReposEndpoint = { /** * team_id parameter @@ -12514,6 +14474,26 @@ type TeamsListReposRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsCheckManagesRepoLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type TeamsCheckManagesRepoLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsCheckManagesRepoEndpoint = { /** * team_id parameter @@ -12534,6 +14514,35 @@ type TeamsCheckManagesRepoRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsAddOrUpdateRepoLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * The permission to grant the team on this repository. Can be one of: + * \* `pull` - team members can pull, but not push to or administer this repository. + * \* `push` - team members can pull and push, but not administer this repository. + * \* `admin` - team members can pull, push and administer this repository. + * + * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. + */ + permission?: "pull" | "push" | "admin"; +}; +type TeamsAddOrUpdateRepoLegacyRequestOptions = { + method: "PUT"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsAddOrUpdateRepoEndpoint = { /** * team_id parameter @@ -12554,7 +14563,6 @@ type TeamsAddOrUpdateRepoEndpoint = { * \* `admin` - team members can pull, push and administer this repository. * * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. - * **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team. */ permission?: "pull" | "push" | "admin"; }; @@ -12564,6 +14572,26 @@ type TeamsAddOrUpdateRepoRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsRemoveRepoLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; +}; +type TeamsRemoveRepoLegacyRequestOptions = { + method: "DELETE"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsRemoveRepoEndpoint = { /** * team_id parameter @@ -12584,18 +14612,46 @@ type TeamsRemoveRepoRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; -type TeamsListIdPGroupsEndpoint = { +type TeamsListIdPGroupsForLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; +}; +type TeamsListIdPGroupsForLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +type TeamsListIdPGroupsForEndpoint = { /** * team_id parameter */ team_id: number; }; -type TeamsListIdPGroupsRequestOptions = { +type TeamsListIdPGroupsForRequestOptions = { method: "GET"; url: Url; headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. + */ + groups: TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups[]; +}; +type TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions = { + method: "PATCH"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsCreateOrUpdateIdPGroupConnectionsEndpoint = { /** * team_id parameter @@ -12612,6 +14668,26 @@ type TeamsCreateOrUpdateIdPGroupConnectionsRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type TeamsListChildLegacyEndpoint = { + /** + * team_id parameter + */ + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type TeamsListChildLegacyRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type TeamsListChildEndpoint = { /** * team_id parameter @@ -13337,6 +15413,11 @@ type ReposCreateForAuthenticatedUserEndpoint = { * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. */ private?: boolean; + /** + * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. + * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; /** * Either `true` to enable issues for this repository or `false` to disable them. */ @@ -13381,6 +15462,10 @@ type ReposCreateForAuthenticatedUserEndpoint = { * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. */ allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; }; type ReposCreateForAuthenticatedUserRequestOptions = { method: "POST"; @@ -13580,6 +15665,26 @@ type TeamsListForAuthenticatedUserRequestOptions = { headers: RequestHeaders; request: RequestRequestOptions; }; +type MigrationsListReposForUserEndpoint = { + /** + * migration_id parameter + */ + migration_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +type MigrationsListReposForUserRequestOptions = { + method: "GET"; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; +}; type UsersListEndpoint = { /** * The integer ID of the last User that you've seen. @@ -14025,6 +16130,11 @@ export type OrgsUpdateHookParamsConfig = { secret?: string; insecure_ssl?: string; }; +export type TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups = { + group_id: string; + group_name: string; + group_description: string; +}; export type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { strict: boolean; contexts: string[]; @@ -14140,6 +16250,7 @@ export type ReposDeleteFileParamsAuthor = { name?: string; email?: string; }; +export type ReposCreateDispatchEventParamsClientPayload = {}; export type GitCreateCommitParamsAuthor = { name?: string; email?: string; @@ -14159,7 +16270,7 @@ export type GitCreateTreeParamsTree = { path?: string; mode?: "100644" | "100755" | "040000" | "160000" | "120000"; type?: "blob" | "tree" | "commit"; - sha?: string; + sha?: string | null; content?: string; }; export type ReposCreateHookParamsConfig = { @@ -14183,6 +16294,11 @@ export type PullsCreateReviewParamsComments = { position: number; body: string; }; +export type TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups = { + group_id: string; + group_name: string; + group_description: string; +}; export type TeamsCreateOrUpdateIdPGroupConnectionsParamsGroups = { group_id: string; group_name: string; diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md index b640ff0aa..ebde7a93a 100644 --- a/node_modules/@types/node/README.md +++ b/node_modules/@types/node/README.md @@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://nodejs.org/). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. ### Additional Details - * Last updated: Wed, 18 Dec 2019 14:37:03 GMT + * Last updated: Fri, 17 Jan 2020 18:31:08 GMT * Dependencies: none - * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` + * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` # Credits These definitions were written by Microsoft TypeScript (https://github.com/Microsoft), DefinitelyTyped (https://github.com/DefinitelyTyped), Alberto Schiabel (https://github.com/jkomyno), Alexander T. (https://github.com/a-tarasyuk), Alvis HT Tang (https://github.com/alvis), Andrew Makarov (https://github.com/r3nya), Benjamin Toueg (https://github.com/btoueg), Bruno Scheufler (https://github.com/brunoscheufler), Chigozirim C. (https://github.com/smac89), Christian Vaagland Tellnes (https://github.com/tellnes), David Junger (https://github.com/touffy), Deividas Bakanas (https://github.com/DeividasBakanas), Eugene Y. Q. Shen (https://github.com/eyqs), Flarna (https://github.com/Flarna), Hannes Magnusson (https://github.com/Hannes-Magnusson-CK), Hoàng Văn Khải (https://github.com/KSXGitHub), Huw (https://github.com/hoo29), Kelvin Jin (https://github.com/kjin), Klaus Meinhardt (https://github.com/ajafff), Lishude (https://github.com/islishude), Mariusz Wiktorczyk (https://github.com/mwiktorczyk), Mohsen Azimi (https://github.com/mohsen1), Nicolas Even (https://github.com/n-e), Nicolas Voigt (https://github.com/octo-sniffle), Nikita Galkin (https://github.com/galkin), Parambir Singh (https://github.com/parambirs), Sebastian Silbermann (https://github.com/eps1lon), Simon Schick (https://github.com/SimonSchick), Thomas den Hollander (https://github.com/ThomasdenH), Wilco Bakker (https://github.com/WilcoBakker), wwwy3y3 (https://github.com/wwwy3y3), Zane Hannan AU (https://github.com/ZaneHannanAU), Samuel Ainsworth (https://github.com/samuela), Kyle Uehlein (https://github.com/kuehlein), Jordi Oliveras Rovira (https://github.com/j-oliveras), Thanik Bhongbhibhat (https://github.com/bhongy), Marcin Kopacz (https://github.com/chyzwar), Trivikram Kamat (https://github.com/trivikr), Minh Son Nguyen (https://github.com/nguymin4), Junxiao Shi (https://github.com/yoursunny), and Ilia Baryshnikov (https://github.com/qwelias). diff --git a/node_modules/@types/node/assert.d.ts b/node_modules/@types/node/assert.d.ts index 124481336..dd662a130 100644 --- a/node_modules/@types/node/assert.d.ts +++ b/node_modules/@types/node/assert.d.ts @@ -16,6 +16,8 @@ declare module "assert" { }); } + type AssertPredicate = RegExp | (new() => object) | ((thrown: any) => boolean) | object | Error; + function fail(message?: string | Error): never; /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never; @@ -30,14 +32,14 @@ declare module "assert" { function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void; function throws(block: () => any, message?: string | Error): void; - function throws(block: () => any, error: RegExp | Function | Object | Error, message?: string | Error): void; + function throws(block: () => any, error: AssertPredicate, message?: string | Error): void; function doesNotThrow(block: () => any, message?: string | Error): void; function doesNotThrow(block: () => any, error: RegExp | Function, message?: string | Error): void; function ifError(value: any): void; function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; - function rejects(block: (() => Promise) | Promise, error: RegExp | Function | Object | Error, message?: string | Error): Promise; + function rejects(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise; function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise; function doesNotReject(block: (() => Promise) | Promise, error: RegExp | Function, message?: string | Error): Promise; diff --git a/node_modules/@types/node/async_hooks.d.ts b/node_modules/@types/node/async_hooks.d.ts index cca992ec3..6487c3872 100644 --- a/node_modules/@types/node/async_hooks.d.ts +++ b/node_modules/@types/node/async_hooks.d.ts @@ -20,7 +20,7 @@ declare module "async_hooks" { * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created * @param resource reference to the resource representing the async operation, needs to be released during destroy */ - init?(asyncId: number, type: string, triggerAsyncId: number, resource: Object): void; + init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; /** * When an asynchronous operation is initiated or completes a callback is called to notify the user. diff --git a/node_modules/@types/node/child_process.d.ts b/node_modules/@types/node/child_process.d.ts index 963db9f26..ed2e13a51 100644 --- a/node_modules/@types/node/child_process.d.ts +++ b/node_modules/@types/node/child_process.d.ts @@ -3,6 +3,9 @@ declare module "child_process" { import * as net from "net"; import { Writable, Readable, Stream, Pipe } from "stream"; + type Serializable = string | object | number | boolean; + type SendHandle = net.Socket | net.Server; + interface ChildProcess extends events.EventEmitter { stdin: Writable | null; stdout: Readable | null; @@ -19,9 +22,9 @@ declare module "child_process" { readonly pid: number; readonly connected: boolean; kill(signal?: NodeJS.Signals | number): void; - send(message: any, callback?: (error: Error | null) => void): boolean; - send(message: any, sendHandle?: net.Socket | net.Server, callback?: (error: Error | null) => void): boolean; - send(message: any, sendHandle?: net.Socket | net.Server, options?: MessageOptions, callback?: (error: Error | null) => void): boolean; + send(message: Serializable, callback?: (error: Error | null) => void): boolean; + send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; + send(message: Serializable, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean; disconnect(): void; unref(): void; ref(): void; @@ -40,42 +43,42 @@ declare module "child_process" { addListener(event: "disconnect", listener: () => void): this; addListener(event: "error", listener: (err: Error) => void): this; addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; emit(event: string | symbol, ...args: any[]): boolean; emit(event: "close", code: number, signal: NodeJS.Signals): boolean; emit(event: "disconnect"): boolean; emit(event: "error", err: Error): boolean; emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "message", message: any, sendHandle: net.Socket | net.Server): boolean; + emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean; on(event: string, listener: (...args: any[]) => void): this; on(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; on(event: "disconnect", listener: () => void): this; on(event: "error", listener: (err: Error) => void): this; on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; once(event: string, listener: (...args: any[]) => void): this; once(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; once(event: "disconnect", listener: () => void): this; once(event: "error", listener: (err: Error) => void): this; once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; prependListener(event: string, listener: (...args: any[]) => void): this; prependListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; prependListener(event: "disconnect", listener: () => void): this; prependListener(event: "error", listener: (err: Error) => void): this; prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; prependOnceListener(event: string, listener: (...args: any[]) => void): this; prependOnceListener(event: "close", listener: (code: number, signal: NodeJS.Signals) => void): this; prependOnceListener(event: "disconnect", listener: () => void): this; prependOnceListener(event: "error", listener: (err: Error) => void): this; prependOnceListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependOnceListener(event: "message", listener: (message: any, sendHandle: net.Socket | net.Server) => void): this; + prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; } // return this object when stdio option is undefined or not specified @@ -116,6 +119,16 @@ declare module "child_process" { type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | Stream | number | null | undefined)>; + type SerializationType = 'json' | 'advanced'; + + interface MessagingOptions { + /** + * Specify the kind of serialization used for sending messages between processes. + * @default 'json' + */ + serialization?: SerializationType; + } + interface ProcessEnvOptions { uid?: number; gid?: number; @@ -134,14 +147,17 @@ declare module "child_process" { timeout?: number; } - interface SpawnOptions extends CommonOptions { + interface CommonSpawnOptions extends CommonOptions, MessagingOptions { argv0?: string; stdio?: StdioOptions; - detached?: boolean; shell?: boolean | string; windowsVerbatimArguments?: boolean; } + interface SpawnOptions extends CommonSpawnOptions { + detached?: boolean; + } + interface SpawnOptionsWithoutStdio extends SpawnOptions { stdio?: 'pipe' | Array; } @@ -397,7 +413,7 @@ declare module "child_process" { ): PromiseWithChild<{ stdout: string | Buffer, stderr: string | Buffer }>; } - interface ForkOptions extends ProcessEnvOptions { + interface ForkOptions extends ProcessEnvOptions, MessagingOptions { execPath?: string; execArgv?: string[]; silent?: boolean; @@ -407,15 +423,11 @@ declare module "child_process" { } function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess; - interface SpawnSyncOptions extends CommonOptions { - argv0?: string; // Not specified in the docs + interface SpawnSyncOptions extends CommonSpawnOptions { input?: string | NodeJS.ArrayBufferView; - stdio?: StdioOptions; killSignal?: NodeJS.Signals | number; maxBuffer?: number; encoding?: string; - shell?: boolean | string; - windowsVerbatimArguments?: boolean; } interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { encoding: BufferEncoding; diff --git a/node_modules/@types/node/cluster.d.ts b/node_modules/@types/node/cluster.d.ts index 43340ff80..2992af8ca 100644 --- a/node_modules/@types/node/cluster.d.ts +++ b/node_modules/@types/node/cluster.d.ts @@ -24,7 +24,7 @@ declare module "cluster" { class Worker extends events.EventEmitter { id: number; process: child.ChildProcess; - send(message: any, sendHandle?: any, callback?: (error: Error | null) => void): boolean; + send(message: child.Serializable, sendHandle?: child.SendHandle, callback?: (error: Error | null) => void): boolean; kill(signal?: string): void; destroy(signal?: string): void; disconnect(): void; @@ -96,7 +96,7 @@ declare module "cluster" { fork(env?: any): Worker; isMaster: boolean; isWorker: boolean; - // TODO: cluster.schedulingPolicy + schedulingPolicy: number; settings: ClusterSettings; setupMaster(settings?: ClusterSettings): void; worker?: Worker; @@ -104,6 +104,9 @@ declare module "cluster" { [index: string]: Worker | undefined }; + readonly SCHED_NONE: number; + readonly SCHED_RR: number; + /** * events.EventEmitter * 1. disconnect @@ -170,11 +173,14 @@ declare module "cluster" { prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this; } + const SCHED_NONE: number; + const SCHED_RR: number; + function disconnect(callback?: () => void): void; function fork(env?: any): Worker; const isMaster: boolean; const isWorker: boolean; - // TODO: cluster.schedulingPolicy + let schedulingPolicy: number; const settings: ClusterSettings; function setupMaster(settings?: ClusterSettings): void; const worker: Worker; diff --git a/node_modules/@types/node/constants.d.ts b/node_modules/@types/node/constants.d.ts index ebd463b2a..d124ae66c 100644 --- a/node_modules/@types/node/constants.d.ts +++ b/node_modules/@types/node/constants.d.ts @@ -1,448 +1,8 @@ /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ declare module "constants" { - /** @deprecated since v6.3.0 - use `os.constants.errno.E2BIG` instead. */ - const E2BIG: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EACCES` instead. */ - const EACCES: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EADDRINUSE` instead. */ - const EADDRINUSE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EADDRNOTAVAIL` instead. */ - const EADDRNOTAVAIL: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EAFNOSUPPORT` instead. */ - const EAFNOSUPPORT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EAGAIN` instead. */ - const EAGAIN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EALREADY` instead. */ - const EALREADY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EBADF` instead. */ - const EBADF: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EBADMSG` instead. */ - const EBADMSG: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EBUSY` instead. */ - const EBUSY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ECANCELED` instead. */ - const ECANCELED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ECHILD` instead. */ - const ECHILD: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNABORTED` instead. */ - const ECONNABORTED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNREFUSED` instead. */ - const ECONNREFUSED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ECONNRESET` instead. */ - const ECONNRESET: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EDEADLK` instead. */ - const EDEADLK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EDESTADDRREQ` instead. */ - const EDESTADDRREQ: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EDOM` instead. */ - const EDOM: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EEXIST` instead. */ - const EEXIST: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EFAULT` instead. */ - const EFAULT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EFBIG` instead. */ - const EFBIG: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EHOSTUNREACH` instead. */ - const EHOSTUNREACH: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EIDRM` instead. */ - const EIDRM: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EILSEQ` instead. */ - const EILSEQ: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EINPROGRESS` instead. */ - const EINPROGRESS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EINTR` instead. */ - const EINTR: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EINVAL` instead. */ - const EINVAL: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EIO` instead. */ - const EIO: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EISCONN` instead. */ - const EISCONN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EISDIR` instead. */ - const EISDIR: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ELOOP` instead. */ - const ELOOP: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EMFILE` instead. */ - const EMFILE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EMLINK` instead. */ - const EMLINK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EMSGSIZE` instead. */ - const EMSGSIZE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENAMETOOLONG` instead. */ - const ENAMETOOLONG: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENETDOWN` instead. */ - const ENETDOWN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENETRESET` instead. */ - const ENETRESET: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENETUNREACH` instead. */ - const ENETUNREACH: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENFILE` instead. */ - const ENFILE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOBUFS` instead. */ - const ENOBUFS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENODATA` instead. */ - const ENODATA: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENODEV` instead. */ - const ENODEV: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOENT` instead. */ - const ENOENT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOEXEC` instead. */ - const ENOEXEC: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOLCK` instead. */ - const ENOLCK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOLINK` instead. */ - const ENOLINK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOMEM` instead. */ - const ENOMEM: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOMSG` instead. */ - const ENOMSG: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOPROTOOPT` instead. */ - const ENOPROTOOPT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSPC` instead. */ - const ENOSPC: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSR` instead. */ - const ENOSR: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSTR` instead. */ - const ENOSTR: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOSYS` instead. */ - const ENOSYS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTCONN` instead. */ - const ENOTCONN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTDIR` instead. */ - const ENOTDIR: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTEMPTY` instead. */ - const ENOTEMPTY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTSOCK` instead. */ - const ENOTSOCK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTSUP` instead. */ - const ENOTSUP: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENOTTY` instead. */ - const ENOTTY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ENXIO` instead. */ - const ENXIO: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EOPNOTSUPP` instead. */ - const EOPNOTSUPP: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EOVERFLOW` instead. */ - const EOVERFLOW: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EPERM` instead. */ - const EPERM: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EPIPE` instead. */ - const EPIPE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTO` instead. */ - const EPROTO: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTONOSUPPORT` instead. */ - const EPROTONOSUPPORT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EPROTOTYPE` instead. */ - const EPROTOTYPE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ERANGE` instead. */ - const ERANGE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EROFS` instead. */ - const EROFS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ESPIPE` instead. */ - const ESPIPE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ESRCH` instead. */ - const ESRCH: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ETIME` instead. */ - const ETIME: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ETIMEDOUT` instead. */ - const ETIMEDOUT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.ETXTBSY` instead. */ - const ETXTBSY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EWOULDBLOCK` instead. */ - const EWOULDBLOCK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.EXDEV` instead. */ - const EXDEV: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINTR` instead. */ - const WSAEINTR: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEBADF` instead. */ - const WSAEBADF: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEACCES` instead. */ - const WSAEACCES: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEFAULT` instead. */ - const WSAEFAULT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVAL` instead. */ - const WSAEINVAL: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEMFILE` instead. */ - const WSAEMFILE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEWOULDBLOCK` instead. */ - const WSAEWOULDBLOCK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINPROGRESS` instead. */ - const WSAEINPROGRESS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEALREADY` instead. */ - const WSAEALREADY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTSOCK` instead. */ - const WSAENOTSOCK: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDESTADDRREQ` instead. */ - const WSAEDESTADDRREQ: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEMSGSIZE` instead. */ - const WSAEMSGSIZE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROTOTYPE` instead. */ - const WSAEPROTOTYPE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOPROTOOPT` instead. */ - const WSAENOPROTOOPT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROTONOSUPPORT` instead. */ - const WSAEPROTONOSUPPORT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESOCKTNOSUPPORT` instead. */ - const WSAESOCKTNOSUPPORT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEOPNOTSUPP` instead. */ - const WSAEOPNOTSUPP: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPFNOSUPPORT` instead. */ - const WSAEPFNOSUPPORT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEAFNOSUPPORT` instead. */ - const WSAEAFNOSUPPORT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEADDRINUSE` instead. */ - const WSAEADDRINUSE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEADDRNOTAVAIL` instead. */ - const WSAEADDRNOTAVAIL: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETDOWN` instead. */ - const WSAENETDOWN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETUNREACH` instead. */ - const WSAENETUNREACH: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENETRESET` instead. */ - const WSAENETRESET: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNABORTED` instead. */ - const WSAECONNABORTED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNRESET` instead. */ - const WSAECONNRESET: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOBUFS` instead. */ - const WSAENOBUFS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEISCONN` instead. */ - const WSAEISCONN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTCONN` instead. */ - const WSAENOTCONN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESHUTDOWN` instead. */ - const WSAESHUTDOWN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAETOOMANYREFS` instead. */ - const WSAETOOMANYREFS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAETIMEDOUT` instead. */ - const WSAETIMEDOUT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECONNREFUSED` instead. */ - const WSAECONNREFUSED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAELOOP` instead. */ - const WSAELOOP: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENAMETOOLONG` instead. */ - const WSAENAMETOOLONG: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEHOSTDOWN` instead. */ - const WSAEHOSTDOWN: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEHOSTUNREACH` instead. */ - const WSAEHOSTUNREACH: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOTEMPTY` instead. */ - const WSAENOTEMPTY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROCLIM` instead. */ - const WSAEPROCLIM: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEUSERS` instead. */ - const WSAEUSERS: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDQUOT` instead. */ - const WSAEDQUOT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAESTALE` instead. */ - const WSAESTALE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEREMOTE` instead. */ - const WSAEREMOTE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSASYSNOTREADY` instead. */ - const WSASYSNOTREADY: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAVERNOTSUPPORTED` instead. */ - const WSAVERNOTSUPPORTED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSANOTINITIALISED` instead. */ - const WSANOTINITIALISED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEDISCON` instead. */ - const WSAEDISCON: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAENOMORE` instead. */ - const WSAENOMORE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAECANCELLED` instead. */ - const WSAECANCELLED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVALIDPROCTABLE` instead. */ - const WSAEINVALIDPROCTABLE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEINVALIDPROVIDER` instead. */ - const WSAEINVALIDPROVIDER: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEPROVIDERFAILEDINIT` instead. */ - const WSAEPROVIDERFAILEDINIT: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSASYSCALLFAILURE` instead. */ - const WSASYSCALLFAILURE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSASERVICE_NOT_FOUND` instead. */ - const WSASERVICE_NOT_FOUND: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSATYPE_NOT_FOUND` instead. */ - const WSATYPE_NOT_FOUND: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSA_E_NO_MORE` instead. */ - const WSA_E_NO_MORE: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSA_E_CANCELLED` instead. */ - const WSA_E_CANCELLED: number; - /** @deprecated since v6.3.0 - use `os.constants.errno.WSAEREFUSED` instead. */ - const WSAEREFUSED: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGHUP` instead. */ - const SIGHUP: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGINT` instead. */ - const SIGINT: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGILL` instead. */ - const SIGILL: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGABRT` instead. */ - const SIGABRT: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGFPE` instead. */ - const SIGFPE: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGKILL` instead. */ - const SIGKILL: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSEGV` instead. */ - const SIGSEGV: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTERM` instead. */ - const SIGTERM: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBREAK` instead. */ - const SIGBREAK: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGWINCH` instead. */ - const SIGWINCH: number; - const SSL_OP_ALL: number; - const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; - const SSL_OP_CIPHER_SERVER_PREFERENCE: number; - const SSL_OP_CISCO_ANYCONNECT: number; - const SSL_OP_COOKIE_EXCHANGE: number; - const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; - const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; - const SSL_OP_EPHEMERAL_RSA: number; - const SSL_OP_LEGACY_SERVER_CONNECT: number; - const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number; - const SSL_OP_MICROSOFT_SESS_ID_BUG: number; - const SSL_OP_MSIE_SSLV2_RSA_PADDING: number; - const SSL_OP_NETSCAPE_CA_DN_BUG: number; - const SSL_OP_NETSCAPE_CHALLENGE_BUG: number; - const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number; - const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number; - const SSL_OP_NO_COMPRESSION: number; - const SSL_OP_NO_QUERY_MTU: number; - const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; - const SSL_OP_NO_SSLv2: number; - const SSL_OP_NO_SSLv3: number; - const SSL_OP_NO_TICKET: number; - const SSL_OP_NO_TLSv1: number; - const SSL_OP_NO_TLSv1_1: number; - const SSL_OP_NO_TLSv1_2: number; - const SSL_OP_PKCS1_CHECK_1: number; - const SSL_OP_PKCS1_CHECK_2: number; - const SSL_OP_SINGLE_DH_USE: number; - const SSL_OP_SINGLE_ECDH_USE: number; - const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number; - const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number; - const SSL_OP_TLS_BLOCK_PADDING_BUG: number; - const SSL_OP_TLS_D5_BUG: number; - const SSL_OP_TLS_ROLLBACK_BUG: number; - const ENGINE_METHOD_DSA: number; - const ENGINE_METHOD_DH: number; - const ENGINE_METHOD_RAND: number; - const ENGINE_METHOD_ECDH: number; - const ENGINE_METHOD_ECDSA: number; - const ENGINE_METHOD_CIPHERS: number; - const ENGINE_METHOD_DIGESTS: number; - const ENGINE_METHOD_STORE: number; - const ENGINE_METHOD_PKEY_METHS: number; - const ENGINE_METHOD_PKEY_ASN1_METHS: number; - const ENGINE_METHOD_ALL: number; - const ENGINE_METHOD_NONE: number; - const DH_CHECK_P_NOT_SAFE_PRIME: number; - const DH_CHECK_P_NOT_PRIME: number; - const DH_UNABLE_TO_CHECK_GENERATOR: number; - const DH_NOT_SUITABLE_GENERATOR: number; - const RSA_PKCS1_PADDING: number; - const RSA_SSLV23_PADDING: number; - const RSA_NO_PADDING: number; - const RSA_PKCS1_OAEP_PADDING: number; - const RSA_X931_PADDING: number; - const RSA_PKCS1_PSS_PADDING: number; - const POINT_CONVERSION_COMPRESSED: number; - const POINT_CONVERSION_UNCOMPRESSED: number; - const POINT_CONVERSION_HYBRID: number; - const O_RDONLY: number; - const O_WRONLY: number; - const O_RDWR: number; - const S_IFMT: number; - const S_IFREG: number; - const S_IFDIR: number; - const S_IFCHR: number; - const S_IFBLK: number; - const S_IFIFO: number; - const S_IFSOCK: number; - const S_IRWXU: number; - const S_IRUSR: number; - const S_IWUSR: number; - const S_IXUSR: number; - const S_IRWXG: number; - const S_IRGRP: number; - const S_IWGRP: number; - const S_IXGRP: number; - const S_IRWXO: number; - const S_IROTH: number; - const S_IWOTH: number; - const S_IXOTH: number; - const S_IFLNK: number; - const O_CREAT: number; - const O_EXCL: number; - const O_NOCTTY: number; - const O_DIRECTORY: number; - const O_NOATIME: number; - const O_NOFOLLOW: number; - const O_SYNC: number; - const O_DSYNC: number; - const O_SYMLINK: number; - const O_DIRECT: number; - const O_NONBLOCK: number; - const O_TRUNC: number; - const O_APPEND: number; - const F_OK: number; - const R_OK: number; - const W_OK: number; - const X_OK: number; - const COPYFILE_EXCL: number; - const COPYFILE_FICLONE: number; - const COPYFILE_FICLONE_FORCE: number; - const UV_UDP_REUSEADDR: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGQUIT` instead. */ - const SIGQUIT: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTRAP` instead. */ - const SIGTRAP: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIOT` instead. */ - const SIGIOT: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGBUS` instead. */ - const SIGBUS: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR1` instead. */ - const SIGUSR1: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUSR2` instead. */ - const SIGUSR2: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPIPE` instead. */ - const SIGPIPE: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGALRM` instead. */ - const SIGALRM: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCHLD` instead. */ - const SIGCHLD: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTKFLT` instead. */ - const SIGSTKFLT: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGCONT` instead. */ - const SIGCONT: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSTOP` instead. */ - const SIGSTOP: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTSTP` instead. */ - const SIGTSTP: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTIN` instead. */ - const SIGTTIN: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGTTOU` instead. */ - const SIGTTOU: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGURG` instead. */ - const SIGURG: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXCPU` instead. */ - const SIGXCPU: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGXFSZ` instead. */ - const SIGXFSZ: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGVTALRM` instead. */ - const SIGVTALRM: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPROF` instead. */ - const SIGPROF: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGIO` instead. */ - const SIGIO: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPOLL` instead. */ - const SIGPOLL: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGPWR` instead. */ - const SIGPWR: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGSYS` instead. */ - const SIGSYS: number; - /** @deprecated since v6.3.0 - use `os.constants.signals.SIGUNUSED` instead. */ - const SIGUNUSED: number; - const defaultCoreCipherList: string; - const defaultCipherList: string; - const ENGINE_METHOD_RSA: number; - const ALPN_ENABLED: number; + import { constants as osConstants, SignalConstants } from 'os'; + import { constants as cryptoConstants } from 'crypto'; + import { constants as fsConstants } from 'fs'; + const exp: typeof osConstants.errno & typeof osConstants.priority & SignalConstants & typeof cryptoConstants & typeof fsConstants; + export = exp; } diff --git a/node_modules/@types/node/crypto.d.ts b/node_modules/@types/node/crypto.d.ts index b7ecb7fff..87555f92c 100644 --- a/node_modules/@types/node/crypto.d.ts +++ b/node_modules/@types/node/crypto.d.ts @@ -128,6 +128,7 @@ declare module "crypto" { class Hash extends stream.Transform { private constructor(); + copy(): Hash; update(data: BinaryLike): Hash; update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Hash; digest(): Buffer; @@ -164,7 +165,7 @@ declare module "crypto" { type: KeyObjectType; } - type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm'; + type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305'; type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm'; type BinaryLike = string | NodeJS.ArrayBufferView; @@ -309,8 +310,8 @@ declare module "crypto" { update(data: BinaryLike): Verify; update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Verify; - verify(object: Object | KeyLike, signature: NodeJS.ArrayBufferView): boolean; - verify(object: Object | KeyLike, signature: string, signature_format?: HexBase64Latin1Encoding): boolean; + verify(object: object | KeyLike, signature: NodeJS.ArrayBufferView): boolean; + verify(object: object | KeyLike, signature: string, signature_format?: HexBase64Latin1Encoding): boolean; // https://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format // The signature field accepts a TypedArray type, but it is only available starting ES2017 } @@ -610,5 +611,5 @@ declare module "crypto" { * If `key` is not a [`KeyObject`][], this function behaves as if `key` had been * passed to [`crypto.createPublicKey()`][]. */ - function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyWithOptions, signature: NodeJS.ArrayBufferView): Buffer; + function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyWithOptions, signature: NodeJS.ArrayBufferView): boolean; } diff --git a/node_modules/@types/node/dgram.d.ts b/node_modules/@types/node/dgram.d.ts index f04e9a22b..91fb0cbc3 100644 --- a/node_modules/@types/node/dgram.d.ts +++ b/node_modules/@types/node/dgram.d.ts @@ -64,6 +64,29 @@ declare module "dgram" { setSendBufferSize(size: number): void; setTTL(ttl: number): void; unref(): this; + /** + * Tells the kernel to join a source-specific multicast channel at the given + * `sourceAddress` and `groupAddress`, using the `multicastInterface` with the + * `IP_ADD_SOURCE_MEMBERSHIP` socket option. + * If the `multicastInterface` argument + * is not specified, the operating system will choose one interface and will add + * membership to it. + * To add membership to every available interface, call + * `socket.addSourceSpecificMembership()` multiple times, once per interface. + */ + addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; + + /** + * Instructs the kernel to leave a source-specific multicast channel at the given + * `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` + * socket option. This method is automatically called by the kernel when the + * socket is closed or the process terminates, so most apps will never have + * reason to call this. + * + * If `multicastInterface` is not specified, the operating system will attempt to + * drop membership on all valid interfaces. + */ + dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; /** * events.EventEmitter diff --git a/node_modules/@types/node/domain.d.ts b/node_modules/@types/node/domain.d.ts index 45e388c46..c7fa9b859 100644 --- a/node_modules/@types/node/domain.d.ts +++ b/node_modules/@types/node/domain.d.ts @@ -1,13 +1,13 @@ declare module "domain" { - import * as events from "events"; + import { EventEmitter } from "events"; - class Domain extends events.EventEmitter implements NodeJS.Domain { + class Domain extends EventEmitter implements NodeJS.Domain { run(fn: (...args: any[]) => T, ...args: any[]): T; - add(emitter: events.EventEmitter | NodeJS.Timer): void; - remove(emitter: events.EventEmitter | NodeJS.Timer): void; + add(emitter: EventEmitter | NodeJS.Timer): void; + remove(emitter: EventEmitter | NodeJS.Timer): void; bind(cb: T): T; intercept(cb: T): T; - members: Array; + members: Array; enter(): void; exit(): void; } diff --git a/node_modules/@types/node/events.d.ts b/node_modules/@types/node/events.d.ts index 03f5b905e..0951d1c4a 100644 --- a/node_modules/@types/node/events.d.ts +++ b/node_modules/@types/node/events.d.ts @@ -1,5 +1,6 @@ declare module "events" { - class internal extends NodeJS.EventEmitter { } + interface internal extends NodeJS.EventEmitter {} + class internal { } interface NodeEventTarget { once(event: string | symbol, listener: (...args: any[]) => void): this; diff --git a/node_modules/@types/node/fs.d.ts b/node_modules/@types/node/fs.d.ts index 6992b5f9f..c7b3ef135 100644 --- a/node_modules/@types/node/fs.d.ts +++ b/node_modules/@types/node/fs.d.ts @@ -1824,6 +1824,7 @@ declare module "fs" { fd?: number; mode?: number; autoClose?: boolean; + emitClose?: boolean; start?: number; highWaterMark?: number; }): WriteStream; @@ -1935,6 +1936,13 @@ declare module "fs" { interface OpenDirOptions { encoding?: BufferEncoding; + /** + * Number of directory entries that are buffered + * internally when reading from the directory. Higher values lead to better + * performance but higher memory usage. + * @default 32 + */ + bufferSize?: number; } function opendirSync(path: string, options?: OpenDirOptions): Dir; diff --git a/node_modules/@types/node/globals.d.ts b/node_modules/@types/node/globals.d.ts index d9505f16d..e5fcc204d 100644 --- a/node_modules/@types/node/globals.d.ts +++ b/node_modules/@types/node/globals.d.ts @@ -85,13 +85,6 @@ interface Console { warn(message?: any, ...optionalParams: any[]): void; // --- Inspector mode only --- - /** - * This method does not display anything unless used in the inspector. - * The console.markTimeline() method is the deprecated form of console.timeStamp(). - * - * @deprecated Use console.timeStamp() instead. - */ - markTimeline(label?: string): void; /** * This method does not display anything unless used in the inspector. * Starts a JavaScript CPU profile with an optional label. @@ -107,30 +100,12 @@ interface Console { * Adds an event with the label `label` to the Timeline panel of the inspector. */ timeStamp(label?: string): void; - /** - * This method does not display anything unless used in the inspector. - * The console.timeline() method is the deprecated form of console.time(). - * - * @deprecated Use console.time() instead. - */ - timeline(label?: string): void; - /** - * This method does not display anything unless used in the inspector. - * The console.timelineEnd() method is the deprecated form of console.timeEnd(). - * - * @deprecated Use console.timeEnd() instead. - */ - timelineEnd(label?: string): void; -} - -interface Error { - stack?: string; } // Declare "static" methods in Error interface ErrorConstructor { /** Create .stack property on a target object */ - captureStackTrace(targetObject: Object, constructorOpt?: Function): void; + captureStackTrace(targetObject: object, constructorOpt?: Function): void; /** * Optional override for formatting stack traces @@ -142,10 +117,6 @@ interface ErrorConstructor { stackTraceLimit: number; } -interface SymbolConstructor { - readonly observable: symbol; -} - // Node.js ESNEXT support interface String { /** Removes whitespace from the left end of a string. */ @@ -163,6 +134,12 @@ interface ImportMeta { * GLOBAL * * * ------------------------------------------------*/ + +// For backwards compability +interface NodeRequire extends NodeJS.Require {} +interface RequireResolve extends NodeJS.RequireResolve {} +interface NodeModule extends NodeJS.Module {} + declare var process: NodeJS.Process; declare var global: NodeJS.Global; declare var console: Console; @@ -187,51 +164,7 @@ declare function clearImmediate(immediateId: NodeJS.Immediate): void; declare function queueMicrotask(callback: () => void): void; -// TODO: change to `type NodeRequireFunction = (id: string) => any;` in next mayor version. -interface NodeRequireFunction { - /* tslint:disable-next-line:callable-types */ - (id: string): any; -} - -interface NodeRequireCache { - [path: string]: NodeModule; -} - -interface NodeRequire extends NodeRequireFunction { - resolve: RequireResolve; - cache: NodeRequireCache; - /** - * @deprecated - */ - extensions: NodeExtensions; - main: NodeModule | undefined; -} - -interface RequireResolve { - (id: string, options?: { paths?: string[]; }): string; - paths(request: string): string[] | null; -} - -interface NodeExtensions { - '.js': (m: NodeModule, filename: string) => any; - '.json': (m: NodeModule, filename: string) => any; - '.node': (m: NodeModule, filename: string) => any; - [ext: string]: (m: NodeModule, filename: string) => any; -} - declare var require: NodeRequire; - -interface NodeModule { - exports: any; - require: NodeRequireFunction; - id: string; - filename: string; - loaded: boolean; - parent: NodeModule | null; - children: NodeModule[]; - paths: string[]; -} - declare var module: NodeModule; // Same as module.exports @@ -240,10 +173,6 @@ declare var exports: any; // Buffer class type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; -interface Buffer { - constructor: typeof Buffer; -} - /** * Raw data is stored in instances of the Buffer class. * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. @@ -608,7 +537,7 @@ declare namespace NodeJS { stack?: string; } - class EventEmitter { + interface EventEmitter { addListener(event: string | symbol, listener: (...args: any[]) => void): this; on(event: string | symbol, listener: (...args: any[]) => void): this; once(event: string | symbol, listener: (...args: any[]) => void): this; @@ -894,7 +823,7 @@ declare namespace NodeJS { title: string; arch: string; platform: Platform; - mainModule?: NodeModule; + mainModule?: Module; memoryUsage(): MemoryUsage; cpuUsage(previousValue?: CpuUsage): CpuUsage; nextTick(callback: Function, ...args: any[]): void; @@ -1066,7 +995,7 @@ declare namespace NodeJS { NaN: typeof NaN; Number: typeof Number; Object: typeof Object; - Promise: Function; + Promise: typeof Promise; RangeError: typeof RangeError; ReferenceError: typeof ReferenceError; RegExp: typeof RegExp; @@ -1079,7 +1008,7 @@ declare namespace NodeJS { Uint16Array: typeof Uint16Array; Uint32Array: typeof Uint32Array; Uint8Array: typeof Uint8Array; - Uint8ClampedArray: Function; + Uint8ClampedArray: typeof Uint8ClampedArray; WeakMap: WeakMapConstructor; WeakSet: WeakSetConstructor; clearImmediate: (immediateId: Immediate) => void; @@ -1098,6 +1027,9 @@ declare namespace NodeJS { parseFloat: typeof parseFloat; parseInt: typeof parseInt; process: Process; + /** + * @deprecated Use `global`. + */ root: Global; setImmediate: (callback: (...args: any[]) => void, ...args: any[]) => Immediate; setInterval: (callback: (...args: any[]) => void, ms: number, ...args: any[]) => Timeout; @@ -1109,57 +1041,65 @@ declare namespace NodeJS { v8debug?: any; } + interface RefCounted { + ref(): this; + unref(): this; + } + // compatibility with older typings - interface Timer { + interface Timer extends RefCounted { hasRef(): boolean; - ref(): this; refresh(): this; - unref(): this; } - class Immediate { + interface Immediate extends RefCounted { hasRef(): boolean; - ref(): this; - unref(): this; _onImmediate: Function; // to distinguish it from the Timeout class } - class Timeout implements Timer { + interface Timeout extends Timer { hasRef(): boolean; - ref(): this; refresh(): this; - unref(): this; } - class Module { - static runMain(): void; - static wrap(code: string): string; + type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array; + type ArrayBufferView = TypedArray | DataView; + interface NodeRequireCache { + [path: string]: NodeModule; + } + + interface Require { + /* tslint:disable-next-line:callable-types */ + (id: string): any; + resolve: RequireResolve; + cache: NodeRequireCache; /** - * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead. + * @deprecated */ - static createRequireFromPath(path: string): NodeRequire; - static createRequire(path: string): NodeRequire; - static builtinModules: string[]; + extensions: RequireExtensions; + main: Module | undefined; + } - static Module: typeof Module; + interface RequireResolve { + (id: string, options?: { paths?: string[]; }): string; + paths(request: string): string[] | null; + } + interface RequireExtensions { + '.js': (m: Module, filename: string) => any; + '.json': (m: Module, filename: string) => any; + '.node': (m: Module, filename: string) => any; + [ext: string]: (m: Module, filename: string) => any; + } + interface Module { exports: any; - require: NodeRequireFunction; + require: Require; id: string; filename: string; loaded: boolean; parent: Module | null; children: Module[]; paths: string[]; - - constructor(id: string, parent?: Module); } - - type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - // The value type here is a "poor man's `unknown`". When these types support TypeScript - // 3.0+, we can replace this with `unknown`. - type PoorMansUnknown = {} | null | undefined; } diff --git a/node_modules/@types/node/http.d.ts b/node_modules/@types/node/http.d.ts index 139a9fb42..a82fd0e57 100644 --- a/node_modules/@types/node/http.d.ts +++ b/node_modules/@types/node/http.d.ts @@ -127,7 +127,11 @@ declare module "http" { sendDate: boolean; finished: boolean; headersSent: boolean; + /** + * @deprecate Use `socket` instead. + */ connection: Socket; + socket: Socket; constructor(); @@ -178,7 +182,8 @@ declare module "http" { constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); - readonly path: string; + method: string; + path: string; abort(): void; onSocket(socket: Socket): void; setTimeout(timeout: number, callback?: () => void): this; @@ -273,7 +278,11 @@ declare module "http" { httpVersionMajor: number; httpVersionMinor: number; complete: boolean; + /** + * @deprecate Use `socket` instead. + */ connection: Socket; + socket: Socket; headers: IncomingHttpHeaders; rawHeaders: string[]; trailers: { [key: string]: string | undefined }; @@ -295,7 +304,6 @@ declare module "http" { * Only valid for response obtained from http.ClientRequest. */ statusMessage?: string; - socket: Socket; destroy(error?: Error): void; } diff --git a/node_modules/@types/node/index.d.ts b/node_modules/@types/node/index.d.ts index 60f72c927..452b842d8 100644 --- a/node_modules/@types/node/index.d.ts +++ b/node_modules/@types/node/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for non-npm package Node.js 12.12 +// Type definitions for non-npm package Node.js 13.1 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped @@ -47,7 +47,7 @@ // NOTE: TypeScript version-specific augmentations can be found in the following paths: // - ~/base.d.ts - Shared definitions common to all TypeScript versions -// - ~/index.d.ts - Definitions specific to TypeScript 2.1 +// - ~/index.d.ts - Definitions specific to TypeScript 2.8 // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 // NOTE: Augmentations for TypeScript 3.2 and later should use individual files for overrides @@ -57,29 +57,14 @@ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: /// -// TypeScript 2.1-specific augmentations: - // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`) // Empty interfaces are used here which merge fine with the real declarations in the lib XXX files -// just to ensure the names are known and node typings can be sued without importing these libs. +// just to ensure the names are known and node typings can be used without importing these libs. // if someone really needs these types the libs need to be added via --lib or in tsconfig.json -interface MapConstructor { } -interface WeakMapConstructor { } -interface SetConstructor { } -interface WeakSetConstructor { } -interface Set {} -interface Map {} -interface ReadonlySet {} -interface Iterable { } -interface IteratorResult { } interface AsyncIterable { } -interface Iterator { - next(value?: any): IteratorResult; -} interface IterableIterator { } interface AsyncIterableIterator {} interface SymbolConstructor { - readonly iterator: symbol; readonly asyncIterator: symbol; } declare var Symbol: SymbolConstructor; @@ -91,12 +76,6 @@ interface SharedArrayBuffer { } declare module "util" { - namespace inspect { - const custom: symbol; - } - namespace promisify { - const custom: symbol; - } namespace types { function isBigInt64Array(value: any): boolean; function isBigUint64Array(value: any): boolean; diff --git a/node_modules/@types/node/module.d.ts b/node_modules/@types/node/module.d.ts index f512be7e5..4fbfbbb45 100644 --- a/node_modules/@types/node/module.d.ts +++ b/node_modules/@types/node/module.d.ts @@ -1,3 +1,21 @@ declare module "module" { - export = NodeJS.Module; + import { URL } from "url"; + namespace Module {} + interface Module extends NodeModule {} + class Module { + static runMain(): void; + static wrap(code: string): string; + + /** + * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead. + */ + static createRequireFromPath(path: string): NodeRequire; + static createRequire(path: string | URL): NodeRequire; + static builtinModules: string[]; + + static Module: typeof Module; + + constructor(id: string, parent?: Module); + } + export = Module; } diff --git a/node_modules/@types/node/net.d.ts b/node_modules/@types/node/net.d.ts index 1e4f97187..8eb5c7b16 100644 --- a/node_modules/@types/node/net.d.ts +++ b/node_modules/@types/node/net.d.ts @@ -72,8 +72,8 @@ declare module "net" { setNoDelay(noDelay?: boolean): this; setKeepAlive(enable?: boolean, initialDelay?: number): this; address(): AddressInfo | string; - unref(): void; - ref(): void; + unref(): this; + ref(): this; readonly bufferSize: number; readonly bytesRead: number; diff --git a/node_modules/@types/node/os.d.ts b/node_modules/@types/node/os.d.ts index 37c45a9fb..59980e742 100644 --- a/node_modules/@types/node/os.d.ts +++ b/node_modules/@types/node/os.d.ts @@ -50,196 +50,164 @@ declare module "os" { function homedir(): string; function userInfo(options: { encoding: 'buffer' }): UserInfo; function userInfo(options?: { encoding: string }): UserInfo; - const constants: { - UV_UDP_REUSEADDR: number; - // signals: { [key in NodeJS.Signals]: number; }; @todo: change after migration to typescript 2.1 - signals: { - SIGHUP: number; - SIGINT: number; - SIGQUIT: number; - SIGILL: number; - SIGTRAP: number; - SIGABRT: number; - SIGIOT: number; - SIGBUS: number; - SIGFPE: number; - SIGKILL: number; - SIGUSR1: number; - SIGSEGV: number; - SIGUSR2: number; - SIGPIPE: number; - SIGALRM: number; - SIGTERM: number; - SIGCHLD: number; - SIGSTKFLT: number; - SIGCONT: number; - SIGSTOP: number; - SIGTSTP: number; - SIGBREAK: number; - SIGTTIN: number; - SIGTTOU: number; - SIGURG: number; - SIGXCPU: number; - SIGXFSZ: number; - SIGVTALRM: number; - SIGPROF: number; - SIGWINCH: number; - SIGIO: number; - SIGPOLL: number; - SIGLOST: number; - SIGPWR: number; - SIGINFO: number; - SIGSYS: number; - SIGUNUSED: number; - }; - errno: { - E2BIG: number; - EACCES: number; - EADDRINUSE: number; - EADDRNOTAVAIL: number; - EAFNOSUPPORT: number; - EAGAIN: number; - EALREADY: number; - EBADF: number; - EBADMSG: number; - EBUSY: number; - ECANCELED: number; - ECHILD: number; - ECONNABORTED: number; - ECONNREFUSED: number; - ECONNRESET: number; - EDEADLK: number; - EDESTADDRREQ: number; - EDOM: number; - EDQUOT: number; - EEXIST: number; - EFAULT: number; - EFBIG: number; - EHOSTUNREACH: number; - EIDRM: number; - EILSEQ: number; - EINPROGRESS: number; - EINTR: number; - EINVAL: number; - EIO: number; - EISCONN: number; - EISDIR: number; - ELOOP: number; - EMFILE: number; - EMLINK: number; - EMSGSIZE: number; - EMULTIHOP: number; - ENAMETOOLONG: number; - ENETDOWN: number; - ENETRESET: number; - ENETUNREACH: number; - ENFILE: number; - ENOBUFS: number; - ENODATA: number; - ENODEV: number; - ENOENT: number; - ENOEXEC: number; - ENOLCK: number; - ENOLINK: number; - ENOMEM: number; - ENOMSG: number; - ENOPROTOOPT: number; - ENOSPC: number; - ENOSR: number; - ENOSTR: number; - ENOSYS: number; - ENOTCONN: number; - ENOTDIR: number; - ENOTEMPTY: number; - ENOTSOCK: number; - ENOTSUP: number; - ENOTTY: number; - ENXIO: number; - EOPNOTSUPP: number; - EOVERFLOW: number; - EPERM: number; - EPIPE: number; - EPROTO: number; - EPROTONOSUPPORT: number; - EPROTOTYPE: number; - ERANGE: number; - EROFS: number; - ESPIPE: number; - ESRCH: number; - ESTALE: number; - ETIME: number; - ETIMEDOUT: number; - ETXTBSY: number; - EWOULDBLOCK: number; - EXDEV: number; - WSAEINTR: number; - WSAEBADF: number; - WSAEACCES: number; - WSAEFAULT: number; - WSAEINVAL: number; - WSAEMFILE: number; - WSAEWOULDBLOCK: number; - WSAEINPROGRESS: number; - WSAEALREADY: number; - WSAENOTSOCK: number; - WSAEDESTADDRREQ: number; - WSAEMSGSIZE: number; - WSAEPROTOTYPE: number; - WSAENOPROTOOPT: number; - WSAEPROTONOSUPPORT: number; - WSAESOCKTNOSUPPORT: number; - WSAEOPNOTSUPP: number; - WSAEPFNOSUPPORT: number; - WSAEAFNOSUPPORT: number; - WSAEADDRINUSE: number; - WSAEADDRNOTAVAIL: number; - WSAENETDOWN: number; - WSAENETUNREACH: number; - WSAENETRESET: number; - WSAECONNABORTED: number; - WSAECONNRESET: number; - WSAENOBUFS: number; - WSAEISCONN: number; - WSAENOTCONN: number; - WSAESHUTDOWN: number; - WSAETOOMANYREFS: number; - WSAETIMEDOUT: number; - WSAECONNREFUSED: number; - WSAELOOP: number; - WSAENAMETOOLONG: number; - WSAEHOSTDOWN: number; - WSAEHOSTUNREACH: number; - WSAENOTEMPTY: number; - WSAEPROCLIM: number; - WSAEUSERS: number; - WSAEDQUOT: number; - WSAESTALE: number; - WSAEREMOTE: number; - WSASYSNOTREADY: number; - WSAVERNOTSUPPORTED: number; - WSANOTINITIALISED: number; - WSAEDISCON: number; - WSAENOMORE: number; - WSAECANCELLED: number; - WSAEINVALIDPROCTABLE: number; - WSAEINVALIDPROVIDER: number; - WSAEPROVIDERFAILEDINIT: number; - WSASYSCALLFAILURE: number; - WSASERVICE_NOT_FOUND: number; - WSATYPE_NOT_FOUND: number; - WSA_E_NO_MORE: number; - WSA_E_CANCELLED: number; - WSAEREFUSED: number; - }; - priority: { - PRIORITY_LOW: number; - PRIORITY_BELOW_NORMAL: number; - PRIORITY_NORMAL: number; - PRIORITY_ABOVE_NORMAL: number; - PRIORITY_HIGH: number; - PRIORITY_HIGHEST: number; - } + + type SignalConstants = { + [key in NodeJS.Signals]: number; }; + + namespace constants { + const UV_UDP_REUSEADDR: number; + namespace signals {} + const signals: SignalConstants; + namespace errno { + const E2BIG: number; + const EACCES: number; + const EADDRINUSE: number; + const EADDRNOTAVAIL: number; + const EAFNOSUPPORT: number; + const EAGAIN: number; + const EALREADY: number; + const EBADF: number; + const EBADMSG: number; + const EBUSY: number; + const ECANCELED: number; + const ECHILD: number; + const ECONNABORTED: number; + const ECONNREFUSED: number; + const ECONNRESET: number; + const EDEADLK: number; + const EDESTADDRREQ: number; + const EDOM: number; + const EDQUOT: number; + const EEXIST: number; + const EFAULT: number; + const EFBIG: number; + const EHOSTUNREACH: number; + const EIDRM: number; + const EILSEQ: number; + const EINPROGRESS: number; + const EINTR: number; + const EINVAL: number; + const EIO: number; + const EISCONN: number; + const EISDIR: number; + const ELOOP: number; + const EMFILE: number; + const EMLINK: number; + const EMSGSIZE: number; + const EMULTIHOP: number; + const ENAMETOOLONG: number; + const ENETDOWN: number; + const ENETRESET: number; + const ENETUNREACH: number; + const ENFILE: number; + const ENOBUFS: number; + const ENODATA: number; + const ENODEV: number; + const ENOENT: number; + const ENOEXEC: number; + const ENOLCK: number; + const ENOLINK: number; + const ENOMEM: number; + const ENOMSG: number; + const ENOPROTOOPT: number; + const ENOSPC: number; + const ENOSR: number; + const ENOSTR: number; + const ENOSYS: number; + const ENOTCONN: number; + const ENOTDIR: number; + const ENOTEMPTY: number; + const ENOTSOCK: number; + const ENOTSUP: number; + const ENOTTY: number; + const ENXIO: number; + const EOPNOTSUPP: number; + const EOVERFLOW: number; + const EPERM: number; + const EPIPE: number; + const EPROTO: number; + const EPROTONOSUPPORT: number; + const EPROTOTYPE: number; + const ERANGE: number; + const EROFS: number; + const ESPIPE: number; + const ESRCH: number; + const ESTALE: number; + const ETIME: number; + const ETIMEDOUT: number; + const ETXTBSY: number; + const EWOULDBLOCK: number; + const EXDEV: number; + const WSAEINTR: number; + const WSAEBADF: number; + const WSAEACCES: number; + const WSAEFAULT: number; + const WSAEINVAL: number; + const WSAEMFILE: number; + const WSAEWOULDBLOCK: number; + const WSAEINPROGRESS: number; + const WSAEALREADY: number; + const WSAENOTSOCK: number; + const WSAEDESTADDRREQ: number; + const WSAEMSGSIZE: number; + const WSAEPROTOTYPE: number; + const WSAENOPROTOOPT: number; + const WSAEPROTONOSUPPORT: number; + const WSAESOCKTNOSUPPORT: number; + const WSAEOPNOTSUPP: number; + const WSAEPFNOSUPPORT: number; + const WSAEAFNOSUPPORT: number; + const WSAEADDRINUSE: number; + const WSAEADDRNOTAVAIL: number; + const WSAENETDOWN: number; + const WSAENETUNREACH: number; + const WSAENETRESET: number; + const WSAECONNABORTED: number; + const WSAECONNRESET: number; + const WSAENOBUFS: number; + const WSAEISCONN: number; + const WSAENOTCONN: number; + const WSAESHUTDOWN: number; + const WSAETOOMANYREFS: number; + const WSAETIMEDOUT: number; + const WSAECONNREFUSED: number; + const WSAELOOP: number; + const WSAENAMETOOLONG: number; + const WSAEHOSTDOWN: number; + const WSAEHOSTUNREACH: number; + const WSAENOTEMPTY: number; + const WSAEPROCLIM: number; + const WSAEUSERS: number; + const WSAEDQUOT: number; + const WSAESTALE: number; + const WSAEREMOTE: number; + const WSASYSNOTREADY: number; + const WSAVERNOTSUPPORTED: number; + const WSANOTINITIALISED: number; + const WSAEDISCON: number; + const WSAENOMORE: number; + const WSAECANCELLED: number; + const WSAEINVALIDPROCTABLE: number; + const WSAEINVALIDPROVIDER: number; + const WSAEPROVIDERFAILEDINIT: number; + const WSASYSCALLFAILURE: number; + const WSASERVICE_NOT_FOUND: number; + const WSATYPE_NOT_FOUND: number; + const WSA_E_NO_MORE: number; + const WSA_E_CANCELLED: number; + const WSAEREFUSED: number; + } + namespace priority { + const PRIORITY_LOW: number; + const PRIORITY_BELOW_NORMAL: number; + const PRIORITY_NORMAL: number; + const PRIORITY_ABOVE_NORMAL: number; + const PRIORITY_HIGH: number; + const PRIORITY_HIGHEST: number; + } + } + function arch(): string; function platform(): NodeJS.Platform; function tmpdir(): string; diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json index 4292782d2..14125544d 100644 --- a/node_modules/@types/node/package.json +++ b/node_modules/@types/node/package.json @@ -1,26 +1,20 @@ { - "_args": [ - [ - "@types/node@12.12.21", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "@types/node@12.12.21", - "_id": "@types/node@12.12.21", + "_from": "@types/node@^13.1.8", + "_id": "@types/node@13.1.8", "_inBundle": false, - "_integrity": "sha512-8sRGhbpU+ck1n0PGAUgVrWrWdjSW2aqNeyC15W88GRsMpSwzv6RJGlLhE7s2RhVSOdyDmxbqlWSeThq4/7xqlA==", + "_integrity": "sha512-6XzyyNM9EKQW4HKuzbo/CkOIjn/evtCmsU+MUM1xDfJ+3/rNjBttM1NgN7AOQvN6tP1Sl1D1PIKMreTArnxM9A==", "_location": "/@types/node", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@types/node@12.12.21", + "raw": "@types/node@^13.1.8", "name": "@types/node", "escapedName": "@types%2fnode", "scope": "@types", - "rawSpec": "12.12.21", + "rawSpec": "^13.1.8", "saveSpec": null, - "fetchSpec": "12.12.21" + "fetchSpec": "^13.1.8" }, "_requiredBy": [ "#DEV:/", @@ -31,12 +25,14 @@ "/@types/rimraf", "/cheerio/parse5" ], - "_resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.21.tgz", - "_spec": "12.12.21", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@types/node/-/node-13.1.8.tgz", + "_shasum": "1d590429fe8187a02707720ecf38a6fe46ce294b", + "_spec": "@types/node@^13.1.8", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "Microsoft TypeScript", @@ -204,6 +200,7 @@ } ], "dependencies": {}, + "deprecated": false, "description": "TypeScript definitions for Node.js", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped#readme", "license": "MIT", @@ -217,7 +214,7 @@ "scripts": {}, "typeScriptVersion": "2.8", "types": "index.d.ts", - "typesPublisherContentHash": "95df00620e4725d6d034583a81fab4ba24e188951cedc7dc940fd055b4643f0c", + "typesPublisherContentHash": "0badd9e8c83ca280ae46f1520423742e02143c5a86c6b97568ebe3cecbf37efe", "typesVersions": { ">=3.2.0-0": { "*": [ @@ -225,5 +222,5 @@ ] } }, - "version": "12.12.21" + "version": "13.1.8" } diff --git a/node_modules/@types/node/path.d.ts b/node_modules/@types/node/path.d.ts index 2f4a54918..0273d58ea 100644 --- a/node_modules/@types/node/path.d.ts +++ b/node_modules/@types/node/path.d.ts @@ -1,159 +1,153 @@ declare module "path" { - /** - * A parsed path object generated by path.parse() or consumed by path.format(). - */ - interface ParsedPath { + namespace path { /** - * The root of the path such as '/' or 'c:\' + * A parsed path object generated by path.parse() or consumed by path.format(). */ - root: string; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir: string; - /** - * The file name including extension (if any) such as 'index.html' - */ - base: string; - /** - * The file extension (if any) such as '.html' - */ - ext: string; - /** - * The file name without extension (if any) such as 'index' - */ - name: string; - } - interface FormatInputPathObject { - /** - * The root of the path such as '/' or 'c:\' - */ - root?: string; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir?: string; - /** - * The file name including extension (if any) such as 'index.html' - */ - base?: string; - /** - * The file extension (if any) such as '.html' - */ - ext?: string; - /** - * The file name without extension (if any) such as 'index' - */ - name?: string; - } + interface ParsedPath { + /** + * The root of the path such as '/' or 'c:\' + */ + root: string; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir: string; + /** + * The file name including extension (if any) such as 'index.html' + */ + base: string; + /** + * The file extension (if any) such as '.html' + */ + ext: string; + /** + * The file name without extension (if any) such as 'index' + */ + name: string; + } - /** - * Normalize a string path, reducing '..' and '.' parts. - * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. - * - * @param p string path to normalize. - */ - function normalize(p: string): string; - /** - * Join all arguments together and normalize the resulting path. - * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. - * - * @param paths paths to join. - */ - function join(...paths: string[]): string; - /** - * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. - * - * Starting from leftmost {from} parameter, resolves {to} to an absolute path. - * - * If {to} isn't already absolute, {from} arguments are prepended in right to left order, - * until an absolute path is found. If after using all {from} paths still no absolute path is found, - * the current working directory is used as well. The resulting path is normalized, - * and trailing slashes are removed unless the path gets resolved to the root directory. - * - * @param pathSegments string paths to join. Non-string arguments are ignored. - */ - function resolve(...pathSegments: string[]): string; - /** - * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. - * - * @param path path to test. - */ - function isAbsolute(path: string): boolean; - /** - * Solve the relative path from {from} to {to}. - * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. - */ - function relative(from: string, to: string): string; - /** - * Return the directory name of a path. Similar to the Unix dirname command. - * - * @param p the path to evaluate. - */ - function dirname(p: string): string; - /** - * Return the last portion of a path. Similar to the Unix basename command. - * Often used to extract the file name from a fully qualified path. - * - * @param p the path to evaluate. - * @param ext optionally, an extension to remove from the result. - */ - function basename(p: string, ext?: string): string; - /** - * Return the extension of the path, from the last '.' to end of string in the last portion of the path. - * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string - * - * @param p the path to evaluate. - */ - function extname(p: string): string; - /** - * The platform-specific file separator. '\\' or '/'. - */ - const sep: '\\' | '/'; - /** - * The platform-specific file delimiter. ';' or ':'. - */ - const delimiter: ';' | ':'; - /** - * Returns an object from a path string - the opposite of format(). - * - * @param pathString path to evaluate. - */ - function parse(pathString: string): ParsedPath; - /** - * Returns a path string from an object - the opposite of parse(). - * - * @param pathString path to evaluate. - */ - function format(pathObject: FormatInputPathObject): string; - - namespace posix { - function normalize(p: string): string; - function join(...paths: string[]): string; - function resolve(...pathSegments: string[]): string; - function isAbsolute(p: string): boolean; - function relative(from: string, to: string): string; - function dirname(p: string): string; - function basename(p: string, ext?: string): string; - function extname(p: string): string; - const sep: string; - const delimiter: string; - function parse(p: string): ParsedPath; - function format(pP: FormatInputPathObject): string; - } + interface FormatInputPathObject { + /** + * The root of the path such as '/' or 'c:\' + */ + root?: string; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir?: string; + /** + * The file name including extension (if any) such as 'index.html' + */ + base?: string; + /** + * The file extension (if any) such as '.html' + */ + ext?: string; + /** + * The file name without extension (if any) such as 'index' + */ + name?: string; + } - namespace win32 { - function normalize(p: string): string; - function join(...paths: string[]): string; - function resolve(...pathSegments: string[]): string; - function isAbsolute(p: string): boolean; - function relative(from: string, to: string): string; - function dirname(p: string): string; - function basename(p: string, ext?: string): string; - function extname(p: string): string; - const sep: string; - const delimiter: string; - function parse(p: string): ParsedPath; - function format(pP: FormatInputPathObject): string; + interface PlatformPath { + /** + * Normalize a string path, reducing '..' and '.' parts. + * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. + * + * @param p string path to normalize. + */ + normalize(p: string): string; + /** + * Join all arguments together and normalize the resulting path. + * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. + * + * @param paths paths to join. + */ + join(...paths: string[]): string; + /** + * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. + * + * Starting from leftmost {from} parameter, resolves {to} to an absolute path. + * + * If {to} isn't already absolute, {from} arguments are prepended in right to left order, + * until an absolute path is found. If after using all {from} paths still no absolute path is found, + * the current working directory is used as well. The resulting path is normalized, + * and trailing slashes are removed unless the path gets resolved to the root directory. + * + * @param pathSegments string paths to join. Non-string arguments are ignored. + */ + resolve(...pathSegments: string[]): string; + /** + * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. + * + * @param path path to test. + */ + isAbsolute(p: string): boolean; + /** + * Solve the relative path from {from} to {to}. + * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. + */ + relative(from: string, to: string): string; + /** + * Return the directory name of a path. Similar to the Unix dirname command. + * + * @param p the path to evaluate. + */ + dirname(p: string): string; + /** + * Return the last portion of a path. Similar to the Unix basename command. + * Often used to extract the file name from a fully qualified path. + * + * @param p the path to evaluate. + * @param ext optionally, an extension to remove from the result. + */ + basename(p: string, ext?: string): string; + /** + * Return the extension of the path, from the last '.' to end of string in the last portion of the path. + * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string + * + * @param p the path to evaluate. + */ + extname(p: string): string; + /** + * The platform-specific file separator. '\\' or '/'. + */ + readonly sep: string; + /** + * The platform-specific file delimiter. ';' or ':'. + */ + readonly delimiter: string; + /** + * Returns an object from a path string - the opposite of format(). + * + * @param pathString path to evaluate. + */ + parse(p: string): ParsedPath; + /** + * Returns a path string from an object - the opposite of parse(). + * + * @param pathString path to evaluate. + */ + format(pP: FormatInputPathObject): string; + /** + * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. + * If path is not a string, path will be returned without modifications. + * This method is meaningful only on Windows system. + * On POSIX systems, the method is non-operational and always returns path without modifications. + */ + toNamespacedPath(path: string): string; + /** + * Posix specific pathing. + * Same as parent object on posix. + */ + readonly posix: PlatformPath; + /** + * Windows specific pathing. + * Same as parent object on windows + */ + readonly win32: PlatformPath; + } } + const path: path.PlatformPath; + export = path; } diff --git a/node_modules/@types/node/repl.d.ts b/node_modules/@types/node/repl.d.ts index 9496fcdf0..a22df6560 100644 --- a/node_modules/@types/node/repl.d.ts +++ b/node_modules/@types/node/repl.d.ts @@ -353,13 +353,13 @@ declare module "repl" { /** * A flag passed in the REPL options. Evaluates expressions in sloppy mode. */ - const REPL_MODE_SLOPPY: symbol; // TODO: unique symbol + const REPL_MODE_SLOPPY: unique symbol; /** * A flag passed in the REPL options. Evaluates expressions in strict mode. * This is equivalent to prefacing every repl statement with `'use strict'`. */ - const REPL_MODE_STRICT: symbol; // TODO: unique symbol + const REPL_MODE_STRICT: unique symbol; /** * Creates and starts a `repl.REPLServer` instance. diff --git a/node_modules/@types/node/stream.d.ts b/node_modules/@types/node/stream.d.ts index a271af89c..17afed5cb 100644 --- a/node_modules/@types/node/stream.d.ts +++ b/node_modules/@types/node/stream.d.ts @@ -123,6 +123,7 @@ declare module "stream" { readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; + readonly writableCorked: number; destroyed: boolean; constructor(opts?: WritableOptions); _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void; @@ -212,6 +213,7 @@ declare module "stream" { writableObjectMode?: boolean; readableHighWaterMark?: number; writableHighWaterMark?: number; + writableCorked?: number; read?(this: Duplex, size: number): void; write?(this: Duplex, chunk: any, encoding: string, callback: (error?: Error | null) => void): void; writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; @@ -227,6 +229,7 @@ declare module "stream" { readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; + readonly writableCorked: number; constructor(opts?: DuplexOptions); _write(chunk: any, encoding: string, callback: (error?: Error | null) => void): void; _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void; diff --git a/node_modules/@types/node/ts3.2/index.d.ts b/node_modules/@types/node/ts3.2/index.d.ts index ee076935e..4814cd8df 100644 --- a/node_modules/@types/node/ts3.2/index.d.ts +++ b/node_modules/@types/node/ts3.2/index.d.ts @@ -1,10 +1,5 @@ // NOTE: These definitions support NodeJS and TypeScript 3.2. -// NOTE: TypeScript version-specific augmentations can be found in the following paths: -// - ~/base.d.ts - Shared definitions common to all TypeScript versions -// - ~/index.d.ts - Definitions specific to TypeScript 2.1 -// - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 - // Reference required types from the default lib: /// /// diff --git a/node_modules/@types/node/ts3.2/util.d.ts b/node_modules/@types/node/ts3.2/util.d.ts index a8b2487ef..5c57e6e41 100644 --- a/node_modules/@types/node/ts3.2/util.d.ts +++ b/node_modules/@types/node/ts3.2/util.d.ts @@ -2,12 +2,6 @@ /// declare module "util" { - namespace inspect { - const custom: unique symbol; - } - namespace promisify { - const custom: unique symbol; - } namespace types { function isBigInt64Array(value: any): value is BigInt64Array; function isBigUint64Array(value: any): value is BigUint64Array; diff --git a/node_modules/@types/node/url.d.ts b/node_modules/@types/node/url.d.ts index e5b7e2856..d3a395b0c 100644 --- a/node_modules/@types/node/url.d.ts +++ b/node_modules/@types/node/url.d.ts @@ -8,7 +8,6 @@ declare module "url" { host?: string | null; hostname?: string | null; href?: string | null; - path?: string | null; pathname?: string | null; protocol?: string | null; search?: string | null; diff --git a/node_modules/@types/node/util.d.ts b/node_modules/@types/node/util.d.ts index e0b6c8953..abbf49b89 100644 --- a/node_modules/@types/node/util.d.ts +++ b/node_modules/@types/node/util.d.ts @@ -18,6 +18,7 @@ declare module "util" { * Allows changing inspect settings from the repl. */ let replDefaults: InspectOptions; + const custom: unique symbol; } /** @deprecated since v4.0.0 - use `Array.isArray()` instead. */ function isArray(object: any): object is any[]; @@ -177,4 +178,8 @@ declare module "util" { encode(input?: string): Uint8Array; encodeInto(input: string, output: Uint8Array): EncodeIntoResult; } + + namespace promisify { + const custom: unique symbol; + } } diff --git a/node_modules/@types/node/v8.d.ts b/node_modules/@types/node/v8.d.ts index 2e2706e20..7d950824f 100644 --- a/node_modules/@types/node/v8.d.ts +++ b/node_modules/@types/node/v8.d.ts @@ -64,9 +64,6 @@ declare module "v8" { function getHeapCodeStatistics(): HeapCodeStatistics; - /** - * @experimental - */ class Serializer { /** * Writes out a header, which includes the serialization format version. @@ -117,14 +114,10 @@ declare module "v8" { /** * A subclass of `Serializer` that serializes `TypedArray` (in particular `Buffer`) and `DataView` objects as host objects, * and only stores the part of their underlying `ArrayBuffers` that they are referring to. - * @experimental */ class DefaultSerializer extends Serializer { } - /** - * @experimental - */ class Deserializer { constructor(data: NodeJS.TypedArray); /** @@ -178,20 +171,17 @@ declare module "v8" { /** * A subclass of `Serializer` that serializes `TypedArray` (in particular `Buffer`) and `DataView` objects as host objects, * and only stores the part of their underlying `ArrayBuffers` that they are referring to. - * @experimental */ class DefaultDeserializer extends Deserializer { } /** * Uses a `DefaultSerializer` to serialize value into a buffer. - * @experimental */ function serialize(value: any): Buffer; /** * Uses a `DefaultDeserializer` with default options to read a JS value from a buffer. - * @experimental */ function deserialize(data: NodeJS.TypedArray): any; } diff --git a/node_modules/@types/node/worker_threads.d.ts b/node_modules/@types/node/worker_threads.d.ts index 45ea85e0a..67048a8cd 100644 --- a/node_modules/@types/node/worker_threads.d.ts +++ b/node_modules/@types/node/worker_threads.d.ts @@ -60,6 +60,13 @@ declare module "worker_threads" { stdout?: boolean; stderr?: boolean; execArgv?: string[]; + resourceLimits?: ResourceLimits; + } + + interface ResourceLimits { + maxYoungGenerationSizeMb?: number; + maxOldGenerationSizeMb?: number; + codeRangeSizeMb?: number; } class Worker extends EventEmitter { @@ -67,6 +74,7 @@ declare module "worker_threads" { readonly stdout: Readable; readonly stderr: Readable; readonly threadId: number; + readonly resourceLimits?: ResourceLimits; constructor(filename: string, options?: WorkerOptions); diff --git a/node_modules/atob-lite/package.json b/node_modules/atob-lite/package.json index ede4c1a0c..06e9ccd60 100644 --- a/node_modules/atob-lite/package.json +++ b/node_modules/atob-lite/package.json @@ -2,7 +2,7 @@ "_args": [ [ "atob-lite@2.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "atob-lite@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", diff --git a/node_modules/before-after-hook/package.json b/node_modules/before-after-hook/package.json index 5d38db445..d9eed1826 100644 --- a/node_modules/before-after-hook/package.json +++ b/node_modules/before-after-hook/package.json @@ -2,7 +2,7 @@ "_args": [ [ "before-after-hook@2.1.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "before-after-hook@2.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz", "_spec": "2.1.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus" }, diff --git a/node_modules/btoa-lite/package.json b/node_modules/btoa-lite/package.json index b17634a06..492ec5762 100644 --- a/node_modules/btoa-lite/package.json +++ b/node_modules/btoa-lite/package.json @@ -2,7 +2,7 @@ "_args": [ [ "btoa-lite@1.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "btoa-lite@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json index 1ee59629d..a55ff5620 100644 --- a/node_modules/cross-spawn/package.json +++ b/node_modules/cross-spawn/package.json @@ -2,7 +2,7 @@ "_args": [ [ "cross-spawn@6.0.5", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "cross-spawn@6.0.5", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "_spec": "6.0.5", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "André Cruz", "email": "andre@moxy.studio" diff --git a/node_modules/deprecation/package.json b/node_modules/deprecation/package.json index d3732ef86..97af1a991 100644 --- a/node_modules/deprecation/package.json +++ b/node_modules/deprecation/package.json @@ -2,7 +2,7 @@ "_args": [ [ "deprecation@2.3.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "deprecation@2.3.1", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", "_spec": "2.3.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/gr2m/deprecation/issues" }, diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json index ce9c4d6c0..d3948609c 100644 --- a/node_modules/end-of-stream/package.json +++ b/node_modules/end-of-stream/package.json @@ -2,7 +2,7 @@ "_args": [ [ "end-of-stream@1.4.4", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "end-of-stream@1.4.4", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "_spec": "1.4.4", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Mathias Buus", "email": "mathiasbuus@gmail.com" diff --git a/node_modules/execa/package.json b/node_modules/execa/package.json index 8f42d25a1..3407ed4c8 100644 --- a/node_modules/execa/package.json +++ b/node_modules/execa/package.json @@ -2,7 +2,7 @@ "_args": [ [ "execa@1.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "execa@1.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/get-stream/package.json b/node_modules/get-stream/package.json index f288e68f5..f91438a8a 100644 --- a/node_modules/get-stream/package.json +++ b/node_modules/get-stream/package.json @@ -2,7 +2,7 @@ "_args": [ [ "get-stream@4.1.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "get-stream@4.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "_spec": "4.1.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/is-plain-object/package.json b/node_modules/is-plain-object/package.json index c6331a002..477df9be8 100644 --- a/node_modules/is-plain-object/package.json +++ b/node_modules/is-plain-object/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-plain-object@3.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "is-plain-object@3.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index 6fbd6fb90..044460570 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-stream@1.1.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "is-stream@1.1.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/isexe/package.json b/node_modules/isexe/package.json index 4447d5b36..890213452 100644 --- a/node_modules/isexe/package.json +++ b/node_modules/isexe/package.json @@ -2,7 +2,7 @@ "_args": [ [ "isexe@2.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "isexe@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/node_modules/isobject/package.json b/node_modules/isobject/package.json index 642a8d671..949755bb3 100644 --- a/node_modules/isobject/package.json +++ b/node_modules/isobject/package.json @@ -2,7 +2,7 @@ "_args": [ [ "isobject@4.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "isobject@4.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/lodash.get/package.json b/node_modules/lodash.get/package.json index 73eb11c90..d36e8e3b8 100644 --- a/node_modules/lodash.get/package.json +++ b/node_modules/lodash.get/package.json @@ -2,7 +2,7 @@ "_args": [ [ "lodash.get@4.4.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "lodash.get@4.4.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", "_spec": "4.4.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", diff --git a/node_modules/lodash.set/package.json b/node_modules/lodash.set/package.json index f0c573ae0..4fd62303f 100644 --- a/node_modules/lodash.set/package.json +++ b/node_modules/lodash.set/package.json @@ -2,7 +2,7 @@ "_args": [ [ "lodash.set@4.3.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "lodash.set@4.3.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "_spec": "4.3.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", diff --git a/node_modules/lodash.uniq/package.json b/node_modules/lodash.uniq/package.json index 66db97e20..b880e2008 100644 --- a/node_modules/lodash.uniq/package.json +++ b/node_modules/lodash.uniq/package.json @@ -2,7 +2,7 @@ "_args": [ [ "lodash.uniq@4.5.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "lodash.uniq@4.5.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", "_spec": "4.5.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", diff --git a/node_modules/macos-release/package.json b/node_modules/macos-release/package.json index 471be7def..09aff48b5 100644 --- a/node_modules/macos-release/package.json +++ b/node_modules/macos-release/package.json @@ -2,7 +2,7 @@ "_args": [ [ "macos-release@2.3.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "macos-release@2.3.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz", "_spec": "2.3.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/nice-try/package.json b/node_modules/nice-try/package.json index c337ad668..c9a88fbb0 100644 --- a/node_modules/nice-try/package.json +++ b/node_modules/nice-try/package.json @@ -2,7 +2,7 @@ "_args": [ [ "nice-try@1.0.5", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "nice-try@1.0.5", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", "_spec": "1.0.5", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "authors": [ "Tobias Reich " ], diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json index 8e4d5bf5e..a52dd134b 100644 --- a/node_modules/node-fetch/package.json +++ b/node_modules/node-fetch/package.json @@ -2,7 +2,7 @@ "_args": [ [ "node-fetch@2.6.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "node-fetch@2.6.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", "_spec": "2.6.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "David Frank" }, diff --git a/node_modules/npm-run-path/package.json b/node_modules/npm-run-path/package.json index d38185dc4..f1831a7fe 100644 --- a/node_modules/npm-run-path/package.json +++ b/node_modules/npm-run-path/package.json @@ -2,7 +2,7 @@ "_args": [ [ "npm-run-path@2.0.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "npm-run-path@2.0.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "_spec": "2.0.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/octokit-pagination-methods/package.json b/node_modules/octokit-pagination-methods/package.json index 9aa9b39db..6677dd0db 100644 --- a/node_modules/octokit-pagination-methods/package.json +++ b/node_modules/octokit-pagination-methods/package.json @@ -2,7 +2,7 @@ "_args": [ [ "octokit-pagination-methods@1.1.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "octokit-pagination-methods@1.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" diff --git a/node_modules/once/package.json b/node_modules/once/package.json index 052fc8288..2b37d69df 100644 --- a/node_modules/once/package.json +++ b/node_modules/once/package.json @@ -2,7 +2,7 @@ "_args": [ [ "once@1.4.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "once@1.4.0", @@ -33,7 +33,7 @@ ], "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "_spec": "1.4.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/node_modules/os-name/package.json b/node_modules/os-name/package.json index 961c8689f..2004cc340 100644 --- a/node_modules/os-name/package.json +++ b/node_modules/os-name/package.json @@ -2,7 +2,7 @@ "_args": [ [ "os-name@3.1.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "os-name@3.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", "_spec": "3.1.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json index f21a65eb8..2171288de 100644 --- a/node_modules/p-finally/package.json +++ b/node_modules/p-finally/package.json @@ -2,7 +2,7 @@ "_args": [ [ "p-finally@1.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "p-finally@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/path-key/package.json b/node_modules/path-key/package.json index 31021911d..acd6c8656 100644 --- a/node_modules/path-key/package.json +++ b/node_modules/path-key/package.json @@ -2,7 +2,7 @@ "_args": [ [ "path-key@2.0.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "path-key@2.0.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json index 1109c52c1..88fe0446f 100644 --- a/node_modules/pump/package.json +++ b/node_modules/pump/package.json @@ -2,7 +2,7 @@ "_args": [ [ "pump@3.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "pump@3.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Mathias Buus Madsen", "email": "mathiasbuus@gmail.com" diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json index 57e4c8bbc..6066ab352 100644 --- a/node_modules/semver/package.json +++ b/node_modules/semver/package.json @@ -2,7 +2,7 @@ "_args": [ [ "semver@5.7.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "semver@5.7.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "_spec": "5.7.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bin": { "semver": "bin/semver" }, diff --git a/node_modules/shebang-command/package.json b/node_modules/shebang-command/package.json index 6f1b6c4f3..b67c7259a 100644 --- a/node_modules/shebang-command/package.json +++ b/node_modules/shebang-command/package.json @@ -2,7 +2,7 @@ "_args": [ [ "shebang-command@1.2.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "shebang-command@1.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Kevin Martensson", "email": "kevinmartensson@gmail.com", diff --git a/node_modules/shebang-regex/package.json b/node_modules/shebang-regex/package.json index c8e75dc38..d55665b77 100644 --- a/node_modules/shebang-regex/package.json +++ b/node_modules/shebang-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "shebang-regex@1.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "shebang-regex@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json index 4c099dfce..a8427e75f 100644 --- a/node_modules/signal-exit/package.json +++ b/node_modules/signal-exit/package.json @@ -2,7 +2,7 @@ "_args": [ [ "signal-exit@3.0.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "signal-exit@3.0.2", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "_spec": "3.0.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" diff --git a/node_modules/strip-eof/package.json b/node_modules/strip-eof/package.json index cbe8b6d48..6d9188d50 100644 --- a/node_modules/strip-eof/package.json +++ b/node_modules/strip-eof/package.json @@ -2,7 +2,7 @@ "_args": [ [ "strip-eof@1.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "strip-eof@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/universal-user-agent/package.json b/node_modules/universal-user-agent/package.json index f41c93ed2..c05bf6f4e 100644 --- a/node_modules/universal-user-agent/package.json +++ b/node_modules/universal-user-agent/package.json @@ -2,7 +2,7 @@ "_args": [ [ "universal-user-agent@4.0.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "universal-user-agent@4.0.0", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/gr2m/universal-user-agent/issues" }, diff --git a/node_modules/which/package.json b/node_modules/which/package.json index ad27b3c96..94ccd85f0 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -2,7 +2,7 @@ "_args": [ [ "which@1.3.1", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "which@1.3.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "_spec": "1.3.1", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/node_modules/windows-release/package.json b/node_modules/windows-release/package.json index af2ffd836..bbed9b222 100644 --- a/node_modules/windows-release/package.json +++ b/node_modules/windows-release/package.json @@ -2,7 +2,7 @@ "_args": [ [ "windows-release@3.2.0", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "windows-release@3.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.2.0.tgz", "_spec": "3.2.0", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json index d7f440477..bfa6e388b 100644 --- a/node_modules/wrappy/package.json +++ b/node_modules/wrappy/package.json @@ -2,7 +2,7 @@ "_args": [ [ "wrappy@1.0.2", - "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "wrappy@1.0.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/Users/rhysd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/package-lock.json b/package-lock.json index e70a67d66..c9f137a1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,86 +5,120 @@ "requires": true, "dependencies": { "@actions/core": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz", - "integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.1.tgz", + "integrity": "sha512-xD+CQd9p4lU7ZfRqmUcbJpqR+Ss51rJRVeXMyOLrZQImN9/8Sy/BEUBnHO/UKD3z03R686PVTLfEPmkropGuLw==" }, "@actions/exec": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.2.tgz", - "integrity": "sha512-Yo/wfcFuxbVjAaAfvx3aGLhMEuonOahas2jf8BwyA52IkXTAmLi7YVZTpGAQG/lTxuGoNLg9slTWQD4rr7rMDQ==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.3.tgz", + "integrity": "sha512-TogJGnueOmM7ntCi0ASTUj4LapRRtDfj57Ja4IhPmg2fls28uVOPbAn8N+JifaOumN2UG3oEO/Ixek2A4NcYSA==", "requires": { "@actions/io": "^1.0.1" } }, "@actions/github": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-2.0.0.tgz", - "integrity": "sha512-sNpZ5dJyJyfJIO5lNYx8r/Gha4Tlm8R0MLO2cBkGdOnAAEn3t1M/MHVcoBhY/VPfjGVe5RNAUPz+6INrViiUPA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-2.0.1.tgz", + "integrity": "sha512-C7dAsCkpPi1HxTzLldz+oY+9c5G+nnaK7xgk8KA83VVGlrGK7d603E3snUAFocWrqEu/uvdYD82ytggjcpYSQA==", "requires": { "@octokit/graphql": "^4.3.1", "@octokit/rest": "^16.15.0" } }, "@actions/io": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz", - "integrity": "sha512-rhq+tfZukbtaus7xyUtwKfuiCRXd1hWSfmJNEpFgBQJ4woqPEpsBw04awicjwz9tyG2/MVhAEMfVn664Cri5zA==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.2.tgz", + "integrity": "sha512-J8KuFqVPr3p6U8W93DOXlXW6zFvrQAJANdS+vw0YhusLIq+bszW8zmK2Fh1C2kDPX8FMvwIl1OUcFgvJoXLbAg==" }, "@babel/code-frame": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", - "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", + "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", "dev": true, "requires": { - "@babel/highlight": "^7.0.0" + "@babel/highlight": "^7.8.3" + } + }, + "@babel/core": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.8.3.tgz", + "integrity": "sha512-4XFkf8AwyrEG7Ziu3L2L0Cv+WyY47Tcsp70JFmpftbAA1K7YL/sgE9jh9HyNj08Y/U50ItUchpN0w6HxAoX1rA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.8.3", + "@babel/helpers": "^7.8.3", + "@babel/parser": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.1", + "json5": "^2.1.0", + "lodash": "^4.17.13", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" } }, "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.3.tgz", + "integrity": "sha512-WjoPk8hRpDRqqzRpvaR8/gDUPkrnOOeuT2m8cNICJtZH6mwaCo3v0OKMI7Y6SM1pBtyijnLtAL0HDi41pf41ug==", "dev": true, "requires": { - "@babel/types": "^7.7.4", + "@babel/types": "^7.8.3", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, "@babel/helper-function-name": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", - "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz", + "integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.7.4", - "@babel/template": "^7.7.4", - "@babel/types": "^7.7.4" + "@babel/helper-get-function-arity": "^7.8.3", + "@babel/template": "^7.8.3", + "@babel/types": "^7.8.3" } }, "@babel/helper-get-function-arity": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", - "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz", + "integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==", "dev": true, "requires": { - "@babel/types": "^7.7.4" + "@babel/types": "^7.8.3" } }, "@babel/helper-split-export-declaration": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", - "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz", + "integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==", "dev": true, "requires": { - "@babel/types": "^7.7.4" + "@babel/types": "^7.8.3" + } + }, + "@babel/helpers": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.8.3.tgz", + "integrity": "sha512-LmU3q9Pah/XyZU89QvBgGt+BCsTPoQa+73RxAQh8fb8qkDyIfeQnmgs+hvzhTCKTzqOyk7JTkS3MS1S8Mq5yrQ==", + "dev": true, + "requires": { + "@babel/template": "^7.8.3", + "@babel/traverse": "^7.8.3", + "@babel/types": "^7.8.3" } }, "@babel/highlight": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", - "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.8.3.tgz", + "integrity": "sha512-PX4y5xQUvy0fnEVHrYOarRPXVWafSjTW9T0Hab8gVIawpl2Sj0ORyrygANq+KjcNlSSTw0YCLSNA8OyZ1I4yEg==", "dev": true, "requires": { "chalk": "^2.0.0", @@ -93,54 +127,60 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.3.tgz", + "integrity": "sha512-/V72F4Yp/qmHaTALizEm9Gf2eQHV3QyTL3K0cNfijwnMnb1L+LDlAubb/ZnSdGAVzVSWakujHYs1I26x66sMeQ==", "dev": true }, + "@babel/runtime": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.8.3.tgz", + "integrity": "sha512-fVHx1rzEmwB130VTkLnxR+HmxcTjGzH12LYQcFFoBwakMd3aOMD4OsRN7tGG/UOYE2ektgFrS8uACAoRk1CY0w==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.13.2" + } + }, "@babel/template": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", - "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.3.tgz", + "integrity": "sha512-04m87AcQgAFdvuoyiQ2kgELr2tV8B4fP/xJAVUL3Yb3bkNdMedD3d0rlSQr3PegP0cms3eHjl1F7PWlvWbU8FQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.4", - "@babel/types": "^7.7.4" + "@babel/code-frame": "^7.8.3", + "@babel/parser": "^7.8.3", + "@babel/types": "^7.8.3" } }, "@babel/traverse": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", - "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.3.tgz", + "integrity": "sha512-we+a2lti+eEImHmEXp7bM9cTxGzxPmBiVJlLVD+FuuQMeeO7RaDbutbgeheDkw+Xe3mCfJHnGOWLswT74m2IPg==", "dev": true, "requires": { - "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.7.4", - "@babel/helper-function-name": "^7.7.4", - "@babel/helper-split-export-declaration": "^7.7.4", - "@babel/parser": "^7.7.4", - "@babel/types": "^7.7.4", + "@babel/code-frame": "^7.8.3", + "@babel/generator": "^7.8.3", + "@babel/helper-function-name": "^7.8.3", + "@babel/helper-split-export-declaration": "^7.8.3", + "@babel/parser": "^7.8.3", + "@babel/types": "^7.8.3", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" }, "dependencies": { - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true } } }, "@babel/types": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", - "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.3.tgz", + "integrity": "sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -148,6 +188,41 @@ "to-fast-properties": "^2.0.0" } }, + "@istanbuljs/load-nyc-config": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz", + "integrity": "sha512-ZR0rq/f/E4f4XcgnDvtMWXCUJpi8eO0rssVhmztsZqLIEFA9UUP9zmpE0VxlM+kv/E1ul2I876Fwil2ayptDVg==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + } + } + }, + "@istanbuljs/nyc-config-typescript": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@istanbuljs/nyc-config-typescript/-/nyc-config-typescript-1.0.1.tgz", + "integrity": "sha512-/gz6LgVpky205LuoOfwEZmnUtaSmdk0QIMcNFj9OvxhiMhPpKftMgZmGN7jNj7jR+lr8IB1Yks3QSSSNSxfoaQ==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2" + } + }, + "@istanbuljs/schema": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz", + "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", + "dev": true + }, "@octokit/endpoint": { "version": "5.5.1", "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.5.1.tgz", @@ -194,9 +269,9 @@ } }, "@octokit/rest": { - "version": "16.35.2", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.2.tgz", - "integrity": "sha512-iijaNZpn9hBpUdh8YdXqNiWazmq4R1vCUsmxpBB0kCQ0asHZpCx+HNs22eiHuwYKRhO31ZSAGBJLi0c+3XHaKQ==", + "version": "16.37.0", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.37.0.tgz", + "integrity": "sha512-qLPK9FOCK4iVpn6ghknNuv/gDDxXQG6+JBQvoCwWjQESyis9uemakjzN36nvvp8SCny7JuzHI2RV8ChbV5mYdQ==", "requires": { "@octokit/request": "^5.2.0", "@octokit/request-error": "^1.0.2", @@ -213,9 +288,9 @@ } }, "@octokit/types": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.0.2.tgz", - "integrity": "sha512-StASIL2lgT3TRjxv17z9pAqbnI7HGu9DrJlg3sEBFfCLaMEqp+O3IQPUF6EZtQ4xkAu2ml6kMBBCtGxjvmtmuQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.1.0.tgz", + "integrity": "sha512-n1GUYFgKm5glcy0E+U5jnqAFY2p04rnK4A0YhuM70C7Vm9Vyx+xYwd/WOTEr8nUJcbPSR/XL+/26+rirY6jJQA==", "requires": { "@types/node": ">= 8" } @@ -238,6 +313,12 @@ "@types/node": "*" } }, + "@types/color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", + "dev": true + }, "@types/deep-diff": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/deep-diff/-/deep-diff-1.0.0.tgz", @@ -280,9 +361,9 @@ } }, "@types/json-schema": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.3.tgz", - "integrity": "sha512-Il2DtDVRGDcqjDtE+rF8iqg1CArehSK84HZJCT7AMITlyXRBpuPhqGLDQMowraqqu1coEaimg4ZOqggt6L6L+A==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", + "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==", "dev": true }, "@types/linkify-it": { @@ -322,14 +403,14 @@ } }, "@types/node": { - "version": "12.12.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.21.tgz", - "integrity": "sha512-8sRGhbpU+ck1n0PGAUgVrWrWdjSW2aqNeyC15W88GRsMpSwzv6RJGlLhE7s2RhVSOdyDmxbqlWSeThq4/7xqlA==" + "version": "13.1.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.1.8.tgz", + "integrity": "sha512-6XzyyNM9EKQW4HKuzbo/CkOIjn/evtCmsU+MUM1xDfJ+3/rNjBttM1NgN7AOQvN6tP1Sl1D1PIKMreTArnxM9A==" }, - "@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", + "@types/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", "dev": true }, "@types/rimraf": { @@ -343,12 +424,12 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.12.0.tgz", - "integrity": "sha512-1t4r9rpLuEwl3hgt90jY18wJHSyb0E3orVL3DaqwmpiSDHmHiSspVsvsFF78BJ/3NNG3qmeso836jpuBWYziAA==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.17.0.tgz", + "integrity": "sha512-tg/OMOtPeXlvk0ES8mZzEZ4gd1ruSE03nsKcK+teJhxYv5CPCXK6Mb/OK6NpB4+CqGTHs4MVeoSZXNFqpT1PyQ==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.12.0", + "@typescript-eslint/experimental-utils": "2.17.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -356,52 +437,43 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.12.0.tgz", - "integrity": "sha512-jv4gYpw5N5BrWF3ntROvCuLe1IjRenLy5+U57J24NbPGwZFAjhnM45qpq0nDH1y/AZMb3Br25YiNVwyPbz6RkA==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.17.0.tgz", + "integrity": "sha512-2bNf+mZ/3mj5/3CP56v+ldRK3vFy9jOvmCPs/Gr2DeSJh+asPZrhFniv4QmQsHWQFPJFWhFHgkGgJeRmK4m8iQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.12.0", + "@typescript-eslint/typescript-estree": "2.17.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.12.0.tgz", - "integrity": "sha512-lPdkwpdzxEfjI8TyTzZqPatkrswLSVu4bqUgnB03fHSOwpC7KSerPgJRgIAf11UGNf7HKjJV6oaPZI4AghLU6g==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.17.0.tgz", + "integrity": "sha512-k1g3gRQ4fwfJoIfgUpz78AovicSWKFANmvTfkAHP24MgJHjWfZI6ya7tsQZt1sLczvP4G9BE5G5MgADHdmJB/w==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.12.0", - "@typescript-eslint/typescript-estree": "2.12.0", + "@typescript-eslint/experimental-utils": "2.17.0", + "@typescript-eslint/typescript-estree": "2.17.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.12.0.tgz", - "integrity": "sha512-rGehVfjHEn8Frh9UW02ZZIfJs6SIIxIu/K1bbci8rFfDE/1lQ8krIJy5OXOV3DVnNdDPtoiPOdEANkLMrwXbiQ==", + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.17.0.tgz", + "integrity": "sha512-g0eVRULGnEEUakxRfJO0s0Hr1LLQqsI6OrkiCLpdHtdJJek+wyd8mb00vedqAoWldeDcOcP8plqw8/jx9Gr3Lw==", "dev": true, "requires": { "debug": "^4.1.1", "eslint-visitor-keys": "^1.1.0", "glob": "^7.1.6", "is-glob": "^4.0.1", - "lodash.unescape": "4.0.1", + "lodash": "^4.17.15", "semver": "^6.3.0", "tsutils": "^3.17.1" }, "dependencies": { - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, "glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", @@ -436,13 +508,23 @@ "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", "dev": true }, + "aggregate-error": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz", + "integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==", + "dev": true, + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, "ajv": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", - "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", + "version": "6.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz", + "integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==", "dev": true, "requires": { - "fast-deep-equal": "^2.0.1", + "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" @@ -461,20 +543,12 @@ "dev": true, "requires": { "type-fest": "^0.8.1" - }, - "dependencies": { - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true - } } }, "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", "dev": true }, "ansi-styles": { @@ -486,13 +560,31 @@ "color-convert": "^1.9.0" } }, + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "dependencies": { + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + } + } + }, "append-transform": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-1.0.0.tgz", - "integrity": "sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", + "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", "dev": true, "requires": { - "default-require-extensions": "^2.0.0" + "default-require-extensions": "^3.0.0" } }, "archy": { @@ -532,6 +624,12 @@ "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz", "integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==" }, + "binary-extensions": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", + "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", + "dev": true + }, "boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", @@ -548,6 +646,15 @@ "concat-map": "0.0.1" } }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, "browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", @@ -560,39 +667,21 @@ "integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc=" }, "caching-transform": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-3.0.2.tgz", - "integrity": "sha512-Mtgcv3lh3U0zRii/6qVgQODdPA4G3zhG+jtbCWj39RXuUFTMzH0vcdMtaJS1jPowd+It2Pqr6y3NJMQqOqCE2w==", - "dev": true, - "requires": { - "hasha": "^3.0.0", - "make-dir": "^2.0.0", - "package-hash": "^3.0.0", - "write-file-atomic": "^2.4.2" - } - }, - "caller-callsite": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", - "dev": true, - "requires": { - "callsites": "^2.0.0" - } - }, - "caller-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", + "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", "dev": true, "requires": { - "caller-callsite": "^2.0.0" + "hasha": "^5.0.0", + "make-dir": "^3.0.0", + "package-hash": "^4.0.0", + "write-file-atomic": "^3.0.0" } }, "callsites": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, "camelcase": { @@ -654,12 +743,42 @@ } } }, + "chokidar": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz", + "integrity": "sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A==", + "dev": true, + "requires": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "fsevents": "~2.1.1", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.2.0" + }, + "dependencies": { + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + } + } + }, "ci-info": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", "dev": true }, + "clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "dev": true + }, "cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -686,10 +805,16 @@ "wrap-ansi": "^5.1.0" }, "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, "string-width": { @@ -702,15 +827,6 @@ "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^5.1.0" } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } } } }, @@ -729,13 +845,6 @@ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "dev": true }, - "commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "optional": true - }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -766,34 +875,34 @@ } }, "cosmiconfig": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz", - "integrity": "sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA==", - "dev": true, - "requires": { - "import-fresh": "^2.0.0", - "is-directory": "^0.3.1", - "js-yaml": "^3.13.1", - "parse-json": "^4.0.0" - } - }, - "cp-file": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/cp-file/-/cp-file-6.2.0.tgz", - "integrity": "sha512-fmvV4caBnofhPe8kOcitBwSn2f39QLjnAnGq3gO9dfd75mUytzKNZB1hde6QHunW2Rt+OwuBOMc3i1tNElbszA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", + "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "make-dir": "^2.0.0", - "nested-error-stacks": "^2.0.0", - "pify": "^4.0.1", - "safe-buffer": "^5.0.1" + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" }, "dependencies": { - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "parse-json": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", + "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + } + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "dev": true } } @@ -829,9 +938,9 @@ "dev": true }, "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { "ms": "^2.1.1" @@ -908,12 +1017,20 @@ "dev": true }, "default-require-extensions": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-2.0.0.tgz", - "integrity": "sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", + "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", "dev": true, "requires": { - "strip-bom": "^3.0.0" + "strip-bom": "^4.0.0" + }, + "dependencies": { + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + } } }, "define-properties": { @@ -981,9 +1098,9 @@ } }, "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "end-of-stream": { @@ -1099,9 +1216,9 @@ "dev": true }, "eslint": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.2.tgz", - "integrity": "sha512-qMlSWJaCSxDFr8fBPvJM9kJwbazrhNcBU3+DszDW1OlEwKBBRWsJc7NJFelvwQpanHCR14cOLD41x8Eqvo3Nng==", + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", + "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -1143,85 +1260,24 @@ "v8-compile-cache": "^2.0.3" }, "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "globals": { - "version": "12.3.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", - "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", - "dev": true, - "requires": { - "type-fest": "^0.8.1" - } - }, - "import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, "regexpp": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", "dev": true }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - }, - "strip-json-comments": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", - "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", - "dev": true - }, - "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true } } }, "eslint-config-prettier": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.7.0.tgz", - "integrity": "sha512-FamQVKM3jjUVwhG4hEMnbtsq7xOIDm+SY5iBPfR8gKsJoAB2IQnNF+bk1+8Fy44Nq7PPJaLvkRxILYdJWoguKQ==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.9.0.tgz", + "integrity": "sha512-k4E14HBtcLv0uqThaI6I/n1LEqROp8XaPu6SO9Z32u5NlGRC07Enu1Bh2KEFw4FNHbekH8yzbIU9kUGxbiGmCA==", "dev": true, "requires": { "get-stdin": "^6.0.0" @@ -1343,9 +1399,9 @@ } }, "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz", + "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==", "dev": true }, "fast-diff": { @@ -1355,9 +1411,9 @@ "dev": true }, "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, "fast-levenshtein": { @@ -1384,35 +1440,34 @@ "flat-cache": "^2.0.1" } }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, "find-cache-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", - "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.2.0.tgz", + "integrity": "sha512-1JKclkYYsf1q9WIJKLZa9S9muC+08RIjzAlLrK4QcYLJMS6mk9yombQ9qf+zJ7H9LS800k0s44L4sDq9VYzqyg==", "dev": true, "requires": { "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" - }, - "dependencies": { - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - } - } + "make-dir": "^3.0.0", + "pkg-dir": "^4.1.0" } }, "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" } }, "flat": { @@ -1453,33 +1508,77 @@ "dev": true }, "foreground-child": { - "version": "1.5.6", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-1.5.6.tgz", - "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", + "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", "dev": true, "requires": { - "cross-spawn": "^4", - "signal-exit": "^3.0.0" + "cross-spawn": "^7.0.0", + "signal-exit": "^3.0.2" }, "dependencies": { "cross-spawn": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz", - "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.1.tgz", + "integrity": "sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" + "isexe": "^2.0.0" } } } }, + "fromentries": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.2.0.tgz", + "integrity": "sha512-33X7H/wdfO99GdRLLgkjUrD4geAFdq/Uv0kl3HD4da6HDixd2GUg8Mw7dahLCV9r/EARkmtYBB6Tch4EEokFTQ==", + "dev": true + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, + "fsevents": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz", + "integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==", + "dev": true, + "optional": true + }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -1492,6 +1591,12 @@ "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "dev": true }, + "gensync": { + "version": "1.0.0-beta.1", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", + "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", + "dev": true + }, "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -1536,10 +1641,13 @@ } }, "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", + "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } }, "graceful-fs": { "version": "4.2.3", @@ -1553,30 +1661,10 @@ "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true }, - "handlebars": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz", - "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==", - "dev": true, - "requires": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "requires": { "function-bind": "^1.1.1" @@ -1595,12 +1683,21 @@ "dev": true }, "hasha": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-3.0.0.tgz", - "integrity": "sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.1.0.tgz", + "integrity": "sha512-OFPDWmzPN1l7atOV1TgBVmNtBxaIysToK6Ve9DK+vT6pYuklw/nPNT+HJbZi0KDcI6vWB+9tgvZ5YD7fA3CXcA==", "dev": true, "requires": { - "is-stream": "^1.0.1" + "is-stream": "^2.0.0", + "type-fest": "^0.8.0" + }, + "dependencies": { + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", + "dev": true + } } }, "he": { @@ -1615,6 +1712,12 @@ "integrity": "sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==", "dev": true }, + "html-escaper": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.0.tgz", + "integrity": "sha512-a4u9BeERWGu/S8JiWEAQcdrg9v4QArtP9keViQjGMdff20fBdd8waotXaNmODqBe6uZ3Nafi7K/ho4gCQHV3Ig==", + "dev": true + }, "htmlparser2": { "version": "3.10.1", "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", @@ -1630,28 +1733,54 @@ } }, "husky": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/husky/-/husky-3.1.0.tgz", - "integrity": "sha512-FJkPoHHB+6s4a+jwPqBudBDvYZsoQW5/HBuMSehC8qDiCe50kpcxeqFoDSlow+9I6wg47YxBoT3WxaURlrDIIQ==", + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/husky/-/husky-4.0.10.tgz", + "integrity": "sha512-Ptm4k2DqOwxeK/kzu5RaJmNRoGvESrgDXObFcZ8aJZcyXyMBHhM2FqZj6zYKdetadmP3wCwxEHCBuB9xGlRp8A==", "dev": true, "requires": { - "chalk": "^2.4.2", + "chalk": "^3.0.0", "ci-info": "^2.0.0", - "cosmiconfig": "^5.2.1", - "execa": "^1.0.0", - "get-stdin": "^7.0.0", + "cosmiconfig": "^6.0.0", "opencollective-postinstall": "^2.0.2", "pkg-dir": "^4.2.0", "please-upgrade-node": "^3.2.0", - "read-pkg": "^5.2.0", - "run-node": "^1.0.0", - "slash": "^3.0.0" + "slash": "^3.0.0", + "which-pm-runs": "^1.0.0" }, "dependencies": { - "get-stdin": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz", - "integrity": "sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ==", + "ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true } } @@ -1672,13 +1801,13 @@ "dev": true }, "import-fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", - "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { - "caller-path": "^2.0.0", - "resolve-from": "^3.0.0" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" } }, "imurmurhash": { @@ -1687,6 +1816,12 @@ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true + }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -1704,9 +1839,9 @@ "dev": true }, "inquirer": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.0.tgz", - "integrity": "sha512-rSdC7zelHdRQFkWnhsMu2+2SO41mpv2oF2zy4tMhmiLWkcKbOAs87fWAJhVXttKVwhdZvymvnuM95EyEXg2/tQ==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.3.tgz", + "integrity": "sha512-+OiOVeVydu4hnCGLCSX+wedovR/Yzskv9BFqUNNKq9uU2qg7LCcCo3R86S2E7WLo0y/x2pnEZfZe1CoYnORUAw==", "dev": true, "requires": { "ansi-escapes": "^4.2.1", @@ -1718,69 +1853,10 @@ "lodash": "^4.17.15", "mute-stream": "0.0.8", "run-async": "^2.2.0", - "rxjs": "^6.4.0", + "rxjs": "^6.5.3", "string-width": "^4.1.0", "strip-ansi": "^5.1.0", "through": "^2.3.6" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - } - } - } } }, "is-arguments": { @@ -1801,6 +1877,15 @@ "integrity": "sha512-t5mGUXC/xRheCK431ylNiSkGGpBp8bHENBcENTkDT6ppwPzEVxNGZRvgvmOEfbWkFhA7D2GEuE2mmQTr78sl2g==", "dev": true }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, "is-boolean-object": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.0.0.tgz", @@ -1825,12 +1910,6 @@ "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", "dev": true }, - "is-directory": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true - }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -1838,9 +1917,9 @@ "dev": true }, "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, "is-glob": { @@ -1858,6 +1937,12 @@ "integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==", "dev": true }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, "is-number-object": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz", @@ -1913,6 +1998,12 @@ "has-symbols": "^1.0.0" } }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, "is-weakmap": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", @@ -1925,6 +2016,12 @@ "integrity": "sha512-pi4vhbhVHGLxohUw7PhGsueT4vRGFoXhP7+RGN0jKIv9+8PWYCQTqtADngrxOm2g46hoH0+g8uZZBzMrvVGDmw==", "dev": true }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, "isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -1942,33 +2039,33 @@ "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==" }, "istanbul-lib-coverage": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", - "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", + "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", "dev": true }, "istanbul-lib-hook": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-2.0.7.tgz", - "integrity": "sha512-vrRztU9VRRFDyC+aklfLoeXyNdTfga2EI3udDGn4cZ6fpSXpHLV9X6CHvfoMCPtggg8zvDDmC4b9xfu0z6/llA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", + "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", "dev": true, "requires": { - "append-transform": "^1.0.0" + "append-transform": "^2.0.0" } }, "istanbul-lib-instrument": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz", - "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.0.tgz", + "integrity": "sha512-Nm4wVHdo7ZXSG30KjZ2Wl5SU/Bw7bDx1PdaiIFzEStdjs0H12mOTncn1GVYuqQSaZxpg87VGBRsVRPGD2cD1AQ==", "dev": true, "requires": { - "@babel/generator": "^7.4.0", - "@babel/parser": "^7.4.3", - "@babel/template": "^7.4.0", - "@babel/traverse": "^7.4.3", - "@babel/types": "^7.4.0", - "istanbul-lib-coverage": "^2.0.5", - "semver": "^6.0.0" + "@babel/core": "^7.7.5", + "@babel/parser": "^7.7.5", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" }, "dependencies": { "semver": { @@ -1979,59 +2076,86 @@ } } }, - "istanbul-lib-report": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz", - "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==", + "istanbul-lib-processinfo": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", + "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", "dev": true, "requires": { - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "supports-color": "^6.1.0" + "archy": "^1.0.0", + "cross-spawn": "^7.0.0", + "istanbul-lib-coverage": "^3.0.0-alpha.1", + "make-dir": "^3.0.0", + "p-map": "^3.0.0", + "rimraf": "^3.0.0", + "uuid": "^3.3.3" }, "dependencies": { - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "cross-spawn": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.1.tgz", + "integrity": "sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" } } } }, + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + } + }, "istanbul-lib-source-maps": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz", - "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", + "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", "dev": true, "requires": { "debug": "^4.1.1", - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "rimraf": "^2.6.3", + "istanbul-lib-coverage": "^3.0.0", "source-map": "^0.6.1" }, "dependencies": { - "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -2041,12 +2165,13 @@ } }, "istanbul-reports": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.6.tgz", - "integrity": "sha512-SKi4rnMyLBKe0Jy2uUdx28h8oG7ph2PPuQPvIAh31d+Ci+lSiEu4C+h3oBPuJ9+mPKhOyW0M8gY4U5NM1WLeXA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.0.tgz", + "integrity": "sha512-2osTcC8zcOSUkImzN2EWQta3Vdi4WjjKw99P2yWx5mLnigAM0Rd5uYFn1cf2i/Ois45GkNjaoTqc5CxgMSX80A==", "dev": true, "requires": { - "handlebars": "^4.1.2" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" } }, "js-tokens": { @@ -2089,6 +2214,23 @@ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, + "json5": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.1.tgz", + "integrity": "sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", @@ -2127,13 +2269,12 @@ } }, "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "p-locate": "^4.1.0" } }, "lodash": { @@ -2158,12 +2299,6 @@ "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=" }, - "lodash.unescape": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.unescape/-/lodash.unescape-4.0.1.tgz", - "integrity": "sha1-vyJJiGzlFM2hEvrpIYzcBlIR/Jw=", - "dev": true - }, "lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", @@ -2178,35 +2313,24 @@ "chalk": "^2.0.1" } }, - "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, "macos-release": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz", "integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==" }, "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.0.0.tgz", + "integrity": "sha512-grNJDhb8b1Jm1qeqW5R/O63wUo4UXo2v2HMic6YT9i/HBlF93S8jkMgH7yugvY9ABDShH4VZMn8I+U8+fCNegw==", "dev": true, "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" + "semver": "^6.0.0" }, "dependencies": { - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true } } @@ -2244,23 +2368,6 @@ "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=", "dev": true }, - "merge-source-map": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/merge-source-map/-/merge-source-map-1.1.0.tgz", - "integrity": "sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==", - "dev": true, - "requires": { - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, "mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -2292,13 +2399,14 @@ } }, "mocha": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.2.tgz", - "integrity": "sha512-FgDS9Re79yU1xz5d+C4rv1G7QagNGHZ+iXF81hO8zY35YZZcLEsJVfFolfsqKFWunATEvNzMK0r/CwWd/szO9A==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-7.0.0.tgz", + "integrity": "sha512-CirsOPbO3jU86YKjjMzFLcXIb5YiGLUrjrXFHoJ3e2z9vWiaZVCZQ2+gtRGMPWF+nFhN6AWwLM/juzAQ6KRkbA==", "dev": true, "requires": { "ansi-colors": "3.2.3", "browser-stdout": "1.3.1", + "chokidar": "3.3.0", "debug": "3.2.6", "diff": "3.5.0", "escape-string-regexp": "1.0.5", @@ -2311,7 +2419,7 @@ "minimatch": "3.0.4", "mkdirp": "0.5.1", "ms": "2.1.1", - "node-environment-flags": "1.0.5", + "node-environment-flags": "1.0.6", "object.assign": "4.1.0", "strip-json-comments": "2.0.1", "supports-color": "6.0.0", @@ -2320,6 +2428,72 @@ "yargs": "13.3.0", "yargs-parser": "13.1.1", "yargs-unparser": "1.6.0" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", + "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } } }, "mock-require": { @@ -2341,9 +2515,9 @@ } }, "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, "mute-stream": { @@ -2358,27 +2532,15 @@ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, - "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", - "dev": true - }, - "nested-error-stacks": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz", - "integrity": "sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==", - "dev": true - }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" }, "node-environment-flags": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", - "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz", + "integrity": "sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw==", "dev": true, "requires": { "object.getownpropertydescriptors": "^2.0.3", @@ -2390,6 +2552,15 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" }, + "node-preload": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", + "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", + "dev": true, + "requires": { + "process-on-spawn": "^1.0.0" + } + }, "normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", @@ -2459,51 +2630,144 @@ } }, "nyc": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-14.1.1.tgz", - "integrity": "sha512-OI0vm6ZGUnoGZv/tLdZ2esSVzDwUC88SNs+6JoSOMVxA+gKMB8Tk7jBwgemLx4O40lhhvZCVw1C+OYLOBOPXWw==", - "dev": true, - "requires": { - "archy": "^1.0.0", - "caching-transform": "^3.0.2", - "convert-source-map": "^1.6.0", - "cp-file": "^6.2.0", - "find-cache-dir": "^2.1.0", - "find-up": "^3.0.0", - "foreground-child": "^1.5.6", - "glob": "^7.1.3", - "istanbul-lib-coverage": "^2.0.5", - "istanbul-lib-hook": "^2.0.7", - "istanbul-lib-instrument": "^3.3.0", - "istanbul-lib-report": "^2.0.8", - "istanbul-lib-source-maps": "^3.0.6", - "istanbul-reports": "^2.2.4", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.0.0.tgz", + "integrity": "sha512-qcLBlNCKMDVuKb7d1fpxjPR8sHeMVX0CHarXAVzrVWoFrigCkYR8xcrjfXSPi5HXM7EU78L6ywO7w1c5rZNCNg==", + "dev": true, + "requires": { + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "caching-transform": "^4.0.0", + "convert-source-map": "^1.7.0", + "decamelize": "^1.2.0", + "find-cache-dir": "^3.2.0", + "find-up": "^4.1.0", + "foreground-child": "^2.0.0", + "glob": "^7.1.6", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-hook": "^3.0.0", + "istanbul-lib-instrument": "^4.0.0", + "istanbul-lib-processinfo": "^2.0.2", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.0", "js-yaml": "^3.13.1", - "make-dir": "^2.1.0", - "merge-source-map": "^1.1.0", - "resolve-from": "^4.0.0", - "rimraf": "^2.6.3", + "make-dir": "^3.0.0", + "node-preload": "^0.2.0", + "p-map": "^3.0.0", + "process-on-spawn": "^1.0.0", + "resolve-from": "^5.0.0", + "rimraf": "^3.0.0", "signal-exit": "^3.0.2", - "spawn-wrap": "^1.4.2", - "test-exclude": "^5.2.3", - "uuid": "^3.3.2", - "yargs": "^13.2.2", - "yargs-parser": "^13.0.0" + "spawn-wrap": "^2.0.0", + "test-exclude": "^6.0.0", + "uuid": "^3.3.3", + "yargs": "^15.0.2" }, "dependencies": { + "ansi-styles": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "dev": true, + "requires": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + } + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", "dev": true, "requires": { - "glob": "^7.1.3" + "ansi-regex": "^5.0.0" + } + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "yargs": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.1.0.tgz", + "integrity": "sha512-T39FNN1b6hCW4SOIk1XyTOWxtXdcen0t+XYrysQmChzSipvhBO8Bj0nK1ozAasdk24dNWuMZvr4k24nz+8HHLg==", + "dev": true, + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^16.1.0" + } + }, + "yargs-parser": { + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-16.1.0.tgz", + "integrity": "sha512-H/V41UNZQPkUMIT5h5hiwg4QKIY1RPvoBV4XcjUbRM8Bk2oKqqyZ0DIEbTFZB0XjbtSPG8SAa/0DxCQmiRgzKg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } @@ -2539,13 +2803,81 @@ } }, "object.getownpropertydescriptors": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", - "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz", + "integrity": "sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==", "dev": true, "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1" + }, + "dependencies": { + "es-abstract": { + "version": "1.17.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.3.tgz", + "integrity": "sha512-AwiVPKf3sKGMoWtFw0J7Y4MTZ4Iek67k4COWOwHqS8B9TOZ71DCfcoBmdamy8Y6mj4MDz0+VNUpC2HKHFHA3pg==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.1.5", + "is-regex": "^1.0.5", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimleft": "^2.1.1", + "string.prototype.trimright": "^2.1.1" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "is-callable": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz", + "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==", + "dev": true + }, + "is-regex": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz", + "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, + "object-inspect": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", + "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", + "dev": true + }, + "string.prototype.trimleft": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz", + "integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, + "string.prototype.trimright": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz", + "integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + } } }, "octokit-pagination-methods": { @@ -2576,16 +2908,6 @@ "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==", "dev": true }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - } - }, "optionator": { "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", @@ -2600,12 +2922,6 @@ "word-wrap": "~1.2.3" } }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, "os-name": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", @@ -2627,21 +2943,30 @@ "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" }, "p-limit": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", - "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.2.tgz", + "integrity": "sha512-WGR+xHecKTr7EbUEhyLSh5Dube9JtdiG78ufaeLxTgpudf/20KqyMioIUZJAezlTIi6evxuoUs9YXc11cU+yzQ==", "dev": true, "requires": { "p-try": "^2.0.0" } }, "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-map": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", + "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", "dev": true, "requires": { - "p-limit": "^2.0.0" + "aggregate-error": "^3.0.0" } }, "p-try": { @@ -2651,13 +2976,13 @@ "dev": true }, "package-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-3.0.0.tgz", - "integrity": "sha512-lOtmukMDVvtkL84rJHI7dpTYq+0rli8N2wlnqUcBuDWCfVhRUfOmnR9SsoHFMLpACvEV60dX7rd0rFaYDZI+FA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", + "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", "dev": true, "requires": { "graceful-fs": "^4.1.15", - "hasha": "^3.0.0", + "hasha": "^5.0.0", "lodash.flattendeep": "^4.4.0", "release-zalgo": "^1.0.0" } @@ -2669,14 +2994,6 @@ "dev": true, "requires": { "callsites": "^3.0.0" - }, - "dependencies": { - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - } } }, "parse-json": { @@ -2690,9 +3007,9 @@ } }, "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true }, "path-is-absolute": { @@ -2721,61 +3038,31 @@ "pify": "^3.0.0" } }, - "pidtree": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.0.tgz", - "integrity": "sha512-9CT4NFlDcosssyg8KVFltgokyKZIFjoBxw8CTGy+5F38Y1eQWrt8tRayiUOXE+zVKQnYu5BR8JjCtvK3BcnBhg==", - "dev": true - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - }, - "dependencies": { - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - } + "picomatch": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.1.tgz", + "integrity": "sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA==", + "dev": true + }, + "pidtree": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.0.tgz", + "integrity": "sha512-9CT4NFlDcosssyg8KVFltgokyKZIFjoBxw8CTGy+5F38Y1eQWrt8tRayiUOXE+zVKQnYu5BR8JjCtvK3BcnBhg==", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" } }, "please-upgrade-node": { @@ -2808,18 +3095,21 @@ "fast-diff": "^1.1.2" } }, + "process-on-spawn": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", + "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==", + "dev": true, + "requires": { + "fromentries": "^1.2.0" + } + }, "progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", "dev": true }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", - "dev": true - }, "pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -2841,55 +3131,6 @@ "integrity": "sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==", "dev": true }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - } - } - } - }, - "read-pkg-up": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-4.0.0.tgz", - "integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==", - "dev": true, - "requires": { - "find-up": "^3.0.0", - "read-pkg": "^3.0.0" - }, - "dependencies": { - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", - "dev": true, - "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - } - } - } - }, "readable-stream": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", @@ -2901,6 +3142,21 @@ "util-deprecate": "^1.0.1" } }, + "readdirp": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz", + "integrity": "sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ==", + "dev": true, + "requires": { + "picomatch": "^2.0.4" + } + }, + "regenerator-runtime": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz", + "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==", + "dev": true + }, "regexp.prototype.flags": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz", @@ -2987,9 +3243,9 @@ } }, "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "dev": true }, "restore-cursor": { @@ -3020,16 +3276,10 @@ "is-promise": "^2.1.0" } }, - "run-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz", - "integrity": "sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==", - "dev": true - }, "rxjs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.3.tgz", - "integrity": "sha512-wuYsAYYFdWTAnAaPoKGNhfpWwKZbJW+HgAJ+mImp+Epl7BG8oNWBCTyRM8gba9k4lk8BgWdoYm21Mo/RYhhbgA==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.4.tgz", + "integrity": "sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==", "dev": true, "requires": { "tslib": "^1.9.0" @@ -3145,6 +3395,14 @@ "ansi-styles": "^3.2.0", "astral-regex": "^1.0.0", "is-fullwidth-code-point": "^2.0.0" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + } } }, "source-map": { @@ -3154,26 +3412,26 @@ "dev": true }, "spawn-wrap": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-1.4.3.tgz", - "integrity": "sha512-IgB8md0QW/+tWqcavuFgKYR/qIRvJkRLPJDFaoXtLLUaVcCDK0+HeFTkmQHj3eprcYhc+gOl0aEA1w7qZlYezw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", + "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==", "dev": true, "requires": { - "foreground-child": "^1.5.6", - "mkdirp": "^0.5.0", - "os-homedir": "^1.0.1", - "rimraf": "^2.6.2", + "foreground-child": "^2.0.0", + "is-windows": "^1.0.2", + "make-dir": "^3.0.0", + "rimraf": "^3.0.0", "signal-exit": "^3.0.2", - "which": "^1.3.0" + "which": "^2.0.1" }, "dependencies": { - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { - "glob": "^7.1.3" + "isexe": "^2.0.0" } } } @@ -3217,13 +3475,25 @@ "dev": true }, "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "dev": true, "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + } } }, "string.prototype.padend": { @@ -3267,12 +3537,20 @@ } }, "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "^3.0.0" + "ansi-regex": "^4.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + } } }, "strip-bom": { @@ -3287,18 +3565,26 @@ "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" }, "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", + "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", "dev": true }, "supports-color": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", + "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + } } }, "table": { @@ -3313,10 +3599,16 @@ "string-width": "^3.0.0" }, "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, "string-width": { @@ -3329,28 +3621,34 @@ "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^5.1.0" } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } } } }, "test-exclude": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", - "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, "requires": { - "glob": "^7.1.3", - "minimatch": "^3.0.4", - "read-pkg-up": "^4.0.0", - "require-main-filename": "^2.0.0" + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "dependencies": { + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } } }, "text-table": { @@ -3380,6 +3678,15 @@ "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", @@ -3405,15 +3712,24 @@ } }, "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", "dev": true }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, "typescript": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz", - "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==", + "version": "3.7.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz", + "integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==", "dev": true }, "uc.micro": { @@ -3422,26 +3738,6 @@ "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", "dev": true }, - "uglify-js": { - "version": "3.6.9", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.9.tgz", - "integrity": "sha512-pcnnhaoG6RtrvHJ1dFncAe8Od6Nuy30oaJ82ts6//sGSXOP5UjBMEthiProjXmMNHOfd93sqlkztifFMcb+4yw==", - "dev": true, - "optional": true, - "requires": { - "commander": "~2.20.3", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, "universal-user-agent": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", @@ -3466,9 +3762,9 @@ "dev": true }, "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", "dev": true }, "v8-compile-cache": { @@ -3526,6 +3822,12 @@ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, + "which-pm-runs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz", + "integrity": "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=", + "dev": true + }, "wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", @@ -3533,6 +3835,39 @@ "dev": true, "requires": { "string-width": "^1.0.2 || 2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } } }, "windows-release": { @@ -3549,12 +3884,6 @@ "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", "dev": true }, - "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", - "dev": true - }, "wrap-ansi": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", @@ -3566,10 +3895,16 @@ "strip-ansi": "^5.0.0" }, "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, "string-width": { @@ -3582,15 +3917,6 @@ "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^5.1.0" } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } } } }, @@ -3609,14 +3935,15 @@ } }, "write-file-atomic": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", - "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.1.tgz", + "integrity": "sha512-JPStrIyyVJ6oCSz/691fAjFtefZ6q+fP6tm+OS4Qw6o+TGQxNp1ziY2PgS+X/m0V8OWhZiO/m4xSj+Pr4RrZvw==", "dev": true, "requires": { - "graceful-fs": "^4.1.11", "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" } }, "y18n": { @@ -3625,11 +3952,14 @@ "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", "dev": true }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", - "dev": true + "yaml": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.7.2.tgz", + "integrity": "sha512-qXROVp90sb83XtAoqE8bP9RwAkTTZbugRUTm5YeFCBfNRPEp2YzTeqWiz7m5OORHzEvrA/qcGS8hp/E+MMROYw==", + "dev": true, + "requires": { + "@babel/runtime": "^7.6.3" + } }, "yargs": { "version": "13.3.0", @@ -3649,10 +3979,50 @@ "yargs-parser": "^13.1.1" }, "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true }, "string-width": { @@ -3665,15 +4035,6 @@ "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^5.1.0" } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } } } }, diff --git a/package.json b/package.json index 73c9b52cf..0e98b8ad7 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,14 @@ }, "homepage": "https://github.com/rhysd/github-action-benchmark#readme", "dependencies": { - "@actions/core": "^1.2.0", - "@actions/exec": "^1.0.2", - "@actions/github": "^2.0.0", - "@actions/io": "^1.0.1", - "@octokit/rest": "^16.35.2" + "@actions/core": "^1.2.1", + "@actions/exec": "^1.0.3", + "@actions/github": "^2.0.1", + "@actions/io": "^1.0.2", + "@octokit/rest": "^16.37.0" }, "devDependencies": { + "@istanbuljs/nyc-config-typescript": "^1.0.1", "@types/acorn": "^4.0.5", "@types/cheerio": "^0.22.15", "@types/deep-diff": "^1.0.0", @@ -46,27 +47,27 @@ "@types/markdown-it": "0.0.9", "@types/mocha": "^5.2.7", "@types/mock-require": "^2.0.0", - "@types/node": "^12.12.21", + "@types/node": "^13.1.8", "@types/rimraf": "^2.0.3", - "@typescript-eslint/eslint-plugin": "^2.12.0", - "@typescript-eslint/parser": "^2.12.0", + "@typescript-eslint/eslint-plugin": "^2.17.0", + "@typescript-eslint/parser": "^2.17.0", "acorn": "^7.1.0", "cheerio": "^1.0.0-rc.3", "deep-diff": "^1.0.2", "deep-equal": "^2.0.1", - "eslint": "^6.7.2", - "eslint-config-prettier": "^6.7.0", + "eslint": "^6.8.0", + "eslint-config-prettier": "^6.9.0", "eslint-plugin-mocha": "^6.2.2", "eslint-plugin-prettier": "^3.1.2", - "husky": "^3.1.0", + "husky": "^4.0.10", "markdown-it": "^10.0.0", - "mocha": "^6.2.2", + "mocha": "^7.0.0", "mock-require": "^3.0.3", "npm-run-all": "^4.1.5", - "nyc": "^14.1.1", + "nyc": "^15.0.0", "prettier": "^1.19.1", "rimraf": "^3.0.0", - "typescript": "^3.7.3" + "typescript": "^3.7.5" }, "husky": { "hooks": { @@ -74,9 +75,6 @@ } }, "nyc": { - "extends": "@istanbuljs/nyc-config-typescript", - "extension": [ - ".ts" - ] + "extends": "@istanbuljs/nyc-config-typescript" } } diff --git a/src/config.js b/src/config.js index a45e96d97..d2880f50f 100644 --- a/src/config.js +++ b/src/config.js @@ -11,7 +11,7 @@ const core = __importStar(require("@actions/core")); const fs_1 = require("fs"); const os = __importStar(require("os")); const path = __importStar(require("path")); -exports.VALID_TOOLS = ['cargo', 'go', 'benchmarkjs', 'pytest', 'googlecpp']; +exports.VALID_TOOLS = ['cargo', 'go', 'benchmarkjs', 'pytest', 'googlecpp', 'catch2']; const RE_UINT = /^\d+$/; function validateToolType(tool) { if (exports.VALID_TOOLS.includes(tool)) { diff --git a/src/default_index_html.js b/src/default_index_html.js index 7003e950a..07e27658d 100644 --- a/src/default_index_html.js +++ b/src/default_index_html.js @@ -118,6 +118,7 @@ exports.DEFAULT_INDEX_HTML = String.raw ` benchmarkjs: '#f1e05a', pytest: '#3572a5', googlecpp: '#f34b7d', + catch2: '#f34b7d', _: '#333333' }; diff --git a/src/extract.js b/src/extract.js index 0fe808229..794bd7c73 100644 --- a/src/extract.js +++ b/src/extract.js @@ -162,6 +162,94 @@ function extractGoogleCppResult(output) { return { name, value, unit, extra }; }); } +function extractCatch2Result(output) { + // Example: + // benchmark name samples iterations estimated <-- Start benchmark section + // mean low mean high mean <-- Ignored + // std dev low std dev high std dev <-- Ignored + // ----------------------------------------------------- <-- Ignored + // Fibonacci 20 100 2 8.4318 ms <-- Start actual benchmark + // 43.186 us 41.402 us 46.246 us <-- Actual benchmark data + // 11.719 us 7.847 us 17.747 us <-- Ignored + const reTestCaseStart = /^benchmark name +samples +iterations +estimated/; + const reBenchmarkStart = /(\d+) +(\d+) +(?:\d+(\.\d+)?) (?:ns|ms|us|s)\s*$/; + const reBenchmarkValues = /^ +(\d+(?:\.\d+)?) (ns|us|ms|s) +(?:\d+(?:\.\d+)?) (?:ns|us|ms|s) +(?:\d+(?:\.\d+)?) (?:ns|us|ms|s)/; + const reEmptyLine = /^\s*$/; + const reSeparator = /^-+$/; + const lines = output.split('\n'); + lines.reverse(); + let lnum = 0; + function nextLine() { + var _a; + return [(_a = lines.pop(), (_a !== null && _a !== void 0 ? _a : null)), ++lnum]; + } + function extractBench() { + var _a, _b; + const startLine = nextLine()[0]; + if (startLine === null) { + return null; + } + const start = startLine.match(reBenchmarkStart); + if (start === null) { + return null; // No more benchmark found. Go to next benchmark suite + } + const extra = `${start[1]} samples\n${start[2]} iterations`; + const name = startLine.slice(0, start.index).trim(); + const [meanLine, meanLineNum] = nextLine(); + const mean = (_a = meanLine) === null || _a === void 0 ? void 0 : _a.match(reBenchmarkValues); + if (!mean) { + throw new Error(`Mean values cannot be retrieved for benchmark '${name}' on parsing input '${(meanLine !== null && meanLine !== void 0 ? meanLine : 'EOF')}' at line ${meanLineNum}`); + } + const value = parseFloat(mean[1]); + const unit = mean[2]; + const [stdDevLine, stdDevLineNum] = nextLine(); + const stdDev = (_b = stdDevLine) === null || _b === void 0 ? void 0 : _b.match(reBenchmarkValues); + if (!stdDev) { + throw new Error(`Std-dev values cannot be retrieved for benchmark '${name}' on parsing '${(stdDevLine !== null && stdDevLine !== void 0 ? stdDevLine : 'EOF')}' at line ${stdDevLineNum}`); + } + const range = '+/- ' + stdDev[1].trim(); + // Skip empty line + const [emptyLine, emptyLineNum] = nextLine(); + if (emptyLine === null || !reEmptyLine.test(emptyLine)) { + throw new Error(`Empty line is not following after 'std dev' line of benchmark '${name}' at line ${emptyLineNum}`); + } + return { name, value, range, unit, extra }; + } + const ret = []; + while (lines.length > 0) { + // Search header of benchmark section + const line = nextLine()[0]; + if (line === null) { + break; // All lines were eaten + } + if (!reTestCaseStart.test(line)) { + continue; + } + // Eat until a separator line appears + for (;;) { + const [line, num] = nextLine(); + if (line === null) { + throw new Error(`Separator '------' does not appear after benchmark suite at line ${num}`); + } + if (reSeparator.test(line)) { + break; + } + } + let benchFound = false; + for (;;) { + const res = extractBench(); + if (res === null) { + break; + } + ret.push(res); + benchFound = true; + } + if (!benchFound) { + throw new Error(`No benchmark found for bench suite. Possibly mangled output from Catch2:\n\n${output}`); + } + } + return ret; +} async function extractResult(config) { const output = await fs_1.promises.readFile(config.outputFilePath, 'utf8'); const { tool } = config; @@ -182,6 +270,9 @@ async function extractResult(config) { case 'googlecpp': benches = extractGoogleCppResult(output); break; + case 'catch2': + benches = extractCatch2Result(output); + break; default: throw new Error(`FATAL: Unexpected tool: '${tool}'`); } diff --git a/src/git.js b/src/git.js index c641df763..97e5e8cc9 100644 --- a/src/git.js +++ b/src/git.js @@ -38,7 +38,14 @@ async function capture(cmd, args) { } async function cmd(...args) { core.debug(`Executing Git: ${args.join(' ')}`); - const userArgs = ['-c', 'user.name=github-action-benchmark', '-c', 'user.email=github@users.noreply.github.com']; + const userArgs = [ + '-c', + 'user.name=github-action-benchmark', + '-c', + 'user.email=github@users.noreply.github.com', + '-c', + 'http.https://github.com/.extraheader=', + ]; const res = await capture('git', userArgs.concat(args)); if (res.code !== 0) { throw new Error(`Command 'git ${args.join(' ')}' failed: ${JSON.stringify(res)}`); diff --git a/src/write.js b/src/write.js index 9f8fca9a4..f158ce4a8 100644 --- a/src/write.js +++ b/src/write.js @@ -65,6 +65,8 @@ function biggerIsBetter(tool) { return true; case 'googlecpp': return false; + case 'catch2': + return false; } } function findAlerts(curSuite, prevSuite, threshold) {