@socketsecurity/cli-with-sentry 0.14.68 → 0.14.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +2 -2
- package/dist/instrument-with-sentry.js +2 -2
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/module-sync/cli.js +687 -707
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/config.d.ts +13 -1
- package/dist/module-sync/shadow-npm-inject.js +70 -18
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/module-sync/shadow-npm-paths.js +25 -10
- package/dist/module-sync/shadow-npm-paths.js.map +1 -1
- package/dist/module-sync/vendor.js +3883 -9
- package/dist/module-sync/vendor.js.map +1 -1
- package/dist/require/cli.js +686 -707
- package/dist/require/cli.js.map +1 -1
- package/package.json +7 -5
- package/dist/module-sync/fs.d.ts +0 -61
|
@@ -18,6 +18,7 @@ const colors = _socketInterop(require('yoctocolors-cjs'))
|
|
|
18
18
|
const process$2 = require('node:process')
|
|
19
19
|
const require$$0$1 = require('node:util')
|
|
20
20
|
const require$$0 = require('node:url')
|
|
21
|
+
const fastContentTypeParse = _socketInterop(require('fast-content-type-parse'))
|
|
21
22
|
const node_buffer = require('node:buffer')
|
|
22
23
|
const childProcess = require('node:child_process')
|
|
23
24
|
const fs$2 = require('node:fs/promises')
|
|
@@ -3850,7 +3851,7 @@ function upgradeGPLs(value) {
|
|
|
3850
3851
|
return value
|
|
3851
3852
|
}
|
|
3852
3853
|
}
|
|
3853
|
-
const parse = spdxExpressionParse
|
|
3854
|
+
const parse$7 = spdxExpressionParse
|
|
3854
3855
|
const correct = spdxCorrect
|
|
3855
3856
|
const genericWarning =
|
|
3856
3857
|
'license should be ' +
|
|
@@ -3874,7 +3875,7 @@ function usesLicenseRef(ast) {
|
|
|
3874
3875
|
const validateNpmPackageLicense = function (argument) {
|
|
3875
3876
|
let ast
|
|
3876
3877
|
try {
|
|
3877
|
-
ast = parse(argument)
|
|
3878
|
+
ast = parse$7(argument)
|
|
3878
3879
|
} catch (e) {
|
|
3879
3880
|
let match
|
|
3880
3881
|
if (argument === 'UNLICENSED' || argument === 'UNLICENCED') {
|
|
@@ -5557,7 +5558,7 @@ const fromUrl$1 = (giturl, opts, { gitHosts, protocols }) => {
|
|
|
5557
5558
|
const { LRUCache } = commonjs
|
|
5558
5559
|
const hosts = hosts_1
|
|
5559
5560
|
const fromUrl = fromUrl$1
|
|
5560
|
-
const parseUrl = parseUrl$2
|
|
5561
|
+
const parseUrl$3 = parseUrl$2
|
|
5561
5562
|
const cache$1 = new LRUCache({
|
|
5562
5563
|
max: 1000
|
|
5563
5564
|
})
|
|
@@ -5632,7 +5633,7 @@ class GitHost {
|
|
|
5632
5633
|
return cache$1.get(key)
|
|
5633
5634
|
}
|
|
5634
5635
|
static parseUrl(url) {
|
|
5635
|
-
return parseUrl(url)
|
|
5636
|
+
return parseUrl$3(url)
|
|
5636
5637
|
}
|
|
5637
5638
|
#fill(template, opts) {
|
|
5638
5639
|
if (typeof template !== 'function') {
|
|
@@ -5816,8 +5817,8 @@ const implementation = implementation$1
|
|
|
5816
5817
|
const functionBind = Function.prototype.bind || implementation
|
|
5817
5818
|
const call = Function.prototype.call
|
|
5818
5819
|
const $hasOwn = Object.prototype.hasOwnProperty
|
|
5819
|
-
const bind = functionBind
|
|
5820
|
-
const hasown = bind.call(call, $hasOwn)
|
|
5820
|
+
const bind$1 = functionBind
|
|
5821
|
+
const hasown = bind$1.call(call, $hasOwn)
|
|
5821
5822
|
const assert = true
|
|
5822
5823
|
const async_hooks = '>= 8'
|
|
5823
5824
|
const buffer_ieee754 = '>= 0.5 && < 0.9.7'
|
|
@@ -10038,7 +10039,7 @@ function isBuffer(val) {
|
|
|
10038
10039
|
}
|
|
10039
10040
|
return false
|
|
10040
10041
|
}
|
|
10041
|
-
const isPlainObject = isPlainObj
|
|
10042
|
+
const isPlainObject$2 = isPlainObj
|
|
10042
10043
|
const arrify = arrify$1
|
|
10043
10044
|
const kindOf = kindOf$1
|
|
10044
10045
|
const push = (obj, prop, value) => {
|
|
@@ -10103,7 +10104,7 @@ const buildOptions$1 = options => {
|
|
|
10103
10104
|
type: value
|
|
10104
10105
|
}
|
|
10105
10106
|
}
|
|
10106
|
-
if (isPlainObject(value)) {
|
|
10107
|
+
if (isPlainObject$2(value)) {
|
|
10107
10108
|
const props = value
|
|
10108
10109
|
const { type } = props
|
|
10109
10110
|
if (type) {
|
|
@@ -10632,6 +10633,3878 @@ const meow = (helpText, options = {}) => {
|
|
|
10632
10633
|
return result
|
|
10633
10634
|
}
|
|
10634
10635
|
|
|
10636
|
+
function getUserAgent() {
|
|
10637
|
+
if (typeof navigator === 'object' && 'userAgent' in navigator) {
|
|
10638
|
+
return navigator.userAgent
|
|
10639
|
+
}
|
|
10640
|
+
if (typeof process === 'object' && process.version !== undefined) {
|
|
10641
|
+
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`
|
|
10642
|
+
}
|
|
10643
|
+
return '<environment undetectable>'
|
|
10644
|
+
}
|
|
10645
|
+
|
|
10646
|
+
// @ts-check
|
|
10647
|
+
|
|
10648
|
+
function register(state, name, method, options) {
|
|
10649
|
+
if (typeof method !== 'function') {
|
|
10650
|
+
throw new Error('method for before hook must be a function')
|
|
10651
|
+
}
|
|
10652
|
+
if (!options) {
|
|
10653
|
+
options = {}
|
|
10654
|
+
}
|
|
10655
|
+
if (Array.isArray(name)) {
|
|
10656
|
+
return name.reverse().reduce((callback, name) => {
|
|
10657
|
+
return register.bind(null, state, name, callback, options)
|
|
10658
|
+
}, method)()
|
|
10659
|
+
}
|
|
10660
|
+
return Promise.resolve().then(() => {
|
|
10661
|
+
if (!state.registry[name]) {
|
|
10662
|
+
return method(options)
|
|
10663
|
+
}
|
|
10664
|
+
return state.registry[name].reduce((method, registered) => {
|
|
10665
|
+
return registered.hook.bind(null, method, options)
|
|
10666
|
+
}, method)()
|
|
10667
|
+
})
|
|
10668
|
+
}
|
|
10669
|
+
|
|
10670
|
+
// @ts-check
|
|
10671
|
+
|
|
10672
|
+
function addHook(state, kind, name, hook) {
|
|
10673
|
+
const orig = hook
|
|
10674
|
+
if (!state.registry[name]) {
|
|
10675
|
+
state.registry[name] = []
|
|
10676
|
+
}
|
|
10677
|
+
if (kind === 'before') {
|
|
10678
|
+
hook = (method, options) => {
|
|
10679
|
+
return Promise.resolve()
|
|
10680
|
+
.then(orig.bind(null, options))
|
|
10681
|
+
.then(method.bind(null, options))
|
|
10682
|
+
}
|
|
10683
|
+
}
|
|
10684
|
+
if (kind === 'after') {
|
|
10685
|
+
hook = (method, options) => {
|
|
10686
|
+
let result
|
|
10687
|
+
return Promise.resolve()
|
|
10688
|
+
.then(method.bind(null, options))
|
|
10689
|
+
.then(result_ => {
|
|
10690
|
+
result = result_
|
|
10691
|
+
return orig(result, options)
|
|
10692
|
+
})
|
|
10693
|
+
.then(() => {
|
|
10694
|
+
return result
|
|
10695
|
+
})
|
|
10696
|
+
}
|
|
10697
|
+
}
|
|
10698
|
+
if (kind === 'error') {
|
|
10699
|
+
hook = (method, options) => {
|
|
10700
|
+
return Promise.resolve()
|
|
10701
|
+
.then(method.bind(null, options))
|
|
10702
|
+
.catch(error => {
|
|
10703
|
+
return orig(error, options)
|
|
10704
|
+
})
|
|
10705
|
+
}
|
|
10706
|
+
}
|
|
10707
|
+
state.registry[name].push({
|
|
10708
|
+
hook: hook,
|
|
10709
|
+
orig: orig
|
|
10710
|
+
})
|
|
10711
|
+
}
|
|
10712
|
+
|
|
10713
|
+
// @ts-check
|
|
10714
|
+
|
|
10715
|
+
function removeHook(state, name, method) {
|
|
10716
|
+
if (!state.registry[name]) {
|
|
10717
|
+
return
|
|
10718
|
+
}
|
|
10719
|
+
const index = state.registry[name]
|
|
10720
|
+
.map(registered => {
|
|
10721
|
+
return registered.orig
|
|
10722
|
+
})
|
|
10723
|
+
.indexOf(method)
|
|
10724
|
+
if (index === -1) {
|
|
10725
|
+
return
|
|
10726
|
+
}
|
|
10727
|
+
state.registry[name].splice(index, 1)
|
|
10728
|
+
}
|
|
10729
|
+
|
|
10730
|
+
// @ts-check
|
|
10731
|
+
|
|
10732
|
+
// bind with array of arguments: https://stackoverflow.com/a/21792913
|
|
10733
|
+
const bind = Function.bind
|
|
10734
|
+
const bindable = bind.bind(bind)
|
|
10735
|
+
function bindApi(hook, state, name) {
|
|
10736
|
+
const removeHookRef = bindable(removeHook, null).apply(null, [state])
|
|
10737
|
+
hook.api = {
|
|
10738
|
+
remove: removeHookRef
|
|
10739
|
+
}
|
|
10740
|
+
hook.remove = removeHookRef
|
|
10741
|
+
;['before', 'error', 'after', 'wrap'].forEach(kind => {
|
|
10742
|
+
const args = [state, kind]
|
|
10743
|
+
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args)
|
|
10744
|
+
})
|
|
10745
|
+
}
|
|
10746
|
+
function Collection() {
|
|
10747
|
+
const state = {
|
|
10748
|
+
registry: {}
|
|
10749
|
+
}
|
|
10750
|
+
const hook = register.bind(null, state)
|
|
10751
|
+
bindApi(hook, state)
|
|
10752
|
+
return hook
|
|
10753
|
+
}
|
|
10754
|
+
const Hook = {
|
|
10755
|
+
Collection
|
|
10756
|
+
}
|
|
10757
|
+
|
|
10758
|
+
// pkg/dist-src/defaults.js
|
|
10759
|
+
|
|
10760
|
+
// pkg/dist-src/version.js
|
|
10761
|
+
const VERSION$7 = '0.0.0-development'
|
|
10762
|
+
|
|
10763
|
+
// pkg/dist-src/defaults.js
|
|
10764
|
+
const userAgent = `octokit-endpoint.js/${VERSION$7} ${getUserAgent()}`
|
|
10765
|
+
const DEFAULTS = {
|
|
10766
|
+
method: 'GET',
|
|
10767
|
+
baseUrl: 'https://api.github.com',
|
|
10768
|
+
headers: {
|
|
10769
|
+
accept: 'application/vnd.github.v3+json',
|
|
10770
|
+
'user-agent': userAgent
|
|
10771
|
+
},
|
|
10772
|
+
mediaType: {
|
|
10773
|
+
format: ''
|
|
10774
|
+
}
|
|
10775
|
+
}
|
|
10776
|
+
|
|
10777
|
+
// pkg/dist-src/util/lowercase-keys.js
|
|
10778
|
+
function lowercaseKeys(object) {
|
|
10779
|
+
if (!object) {
|
|
10780
|
+
return {}
|
|
10781
|
+
}
|
|
10782
|
+
return Object.keys(object).reduce((newObj, key) => {
|
|
10783
|
+
newObj[key.toLowerCase()] = object[key]
|
|
10784
|
+
return newObj
|
|
10785
|
+
}, {})
|
|
10786
|
+
}
|
|
10787
|
+
|
|
10788
|
+
// pkg/dist-src/util/is-plain-object.js
|
|
10789
|
+
function isPlainObject$1(value) {
|
|
10790
|
+
if (typeof value !== 'object' || value === null) {
|
|
10791
|
+
return false
|
|
10792
|
+
}
|
|
10793
|
+
if (Object.prototype.toString.call(value) !== '[object Object]') {
|
|
10794
|
+
return false
|
|
10795
|
+
}
|
|
10796
|
+
const proto = Object.getPrototypeOf(value)
|
|
10797
|
+
if (proto === null) {
|
|
10798
|
+
return true
|
|
10799
|
+
}
|
|
10800
|
+
const Ctor =
|
|
10801
|
+
Object.prototype.hasOwnProperty.call(proto, 'constructor') &&
|
|
10802
|
+
proto.constructor
|
|
10803
|
+
return (
|
|
10804
|
+
typeof Ctor === 'function' &&
|
|
10805
|
+
Ctor instanceof Ctor &&
|
|
10806
|
+
Function.prototype.call(Ctor) === Function.prototype.call(value)
|
|
10807
|
+
)
|
|
10808
|
+
}
|
|
10809
|
+
|
|
10810
|
+
// pkg/dist-src/util/merge-deep.js
|
|
10811
|
+
function mergeDeep(defaults, options) {
|
|
10812
|
+
const result = Object.assign({}, defaults)
|
|
10813
|
+
Object.keys(options).forEach(key => {
|
|
10814
|
+
if (isPlainObject$1(options[key])) {
|
|
10815
|
+
if (!(key in defaults)) {
|
|
10816
|
+
Object.assign(result, {
|
|
10817
|
+
[key]: options[key]
|
|
10818
|
+
})
|
|
10819
|
+
} else {
|
|
10820
|
+
result[key] = mergeDeep(defaults[key], options[key])
|
|
10821
|
+
}
|
|
10822
|
+
} else {
|
|
10823
|
+
Object.assign(result, {
|
|
10824
|
+
[key]: options[key]
|
|
10825
|
+
})
|
|
10826
|
+
}
|
|
10827
|
+
})
|
|
10828
|
+
return result
|
|
10829
|
+
}
|
|
10830
|
+
|
|
10831
|
+
// pkg/dist-src/util/remove-undefined-properties.js
|
|
10832
|
+
function removeUndefinedProperties(obj) {
|
|
10833
|
+
for (const key in obj) {
|
|
10834
|
+
if (obj[key] === void 0) {
|
|
10835
|
+
delete obj[key]
|
|
10836
|
+
}
|
|
10837
|
+
}
|
|
10838
|
+
return obj
|
|
10839
|
+
}
|
|
10840
|
+
|
|
10841
|
+
// pkg/dist-src/merge.js
|
|
10842
|
+
function merge(defaults, route, options) {
|
|
10843
|
+
if (typeof route === 'string') {
|
|
10844
|
+
const [method, url] = route.split(' ')
|
|
10845
|
+
options = Object.assign(
|
|
10846
|
+
url
|
|
10847
|
+
? {
|
|
10848
|
+
method,
|
|
10849
|
+
url
|
|
10850
|
+
}
|
|
10851
|
+
: {
|
|
10852
|
+
url: method
|
|
10853
|
+
},
|
|
10854
|
+
options
|
|
10855
|
+
)
|
|
10856
|
+
} else {
|
|
10857
|
+
options = Object.assign({}, route)
|
|
10858
|
+
}
|
|
10859
|
+
options.headers = lowercaseKeys(options.headers)
|
|
10860
|
+
removeUndefinedProperties(options)
|
|
10861
|
+
removeUndefinedProperties(options.headers)
|
|
10862
|
+
const mergedOptions = mergeDeep(defaults || {}, options)
|
|
10863
|
+
if (options.url === '/graphql') {
|
|
10864
|
+
if (defaults && defaults.mediaType.previews?.length) {
|
|
10865
|
+
mergedOptions.mediaType.previews = defaults.mediaType.previews
|
|
10866
|
+
.filter(preview => !mergedOptions.mediaType.previews.includes(preview))
|
|
10867
|
+
.concat(mergedOptions.mediaType.previews)
|
|
10868
|
+
}
|
|
10869
|
+
mergedOptions.mediaType.previews = (
|
|
10870
|
+
mergedOptions.mediaType.previews || []
|
|
10871
|
+
).map(preview => preview.replace(/-preview/, ''))
|
|
10872
|
+
}
|
|
10873
|
+
return mergedOptions
|
|
10874
|
+
}
|
|
10875
|
+
|
|
10876
|
+
// pkg/dist-src/util/add-query-parameters.js
|
|
10877
|
+
function addQueryParameters(url, parameters) {
|
|
10878
|
+
const separator = /\?/.test(url) ? '&' : '?'
|
|
10879
|
+
const names = Object.keys(parameters)
|
|
10880
|
+
if (names.length === 0) {
|
|
10881
|
+
return url
|
|
10882
|
+
}
|
|
10883
|
+
return (
|
|
10884
|
+
url +
|
|
10885
|
+
separator +
|
|
10886
|
+
names
|
|
10887
|
+
.map(name => {
|
|
10888
|
+
if (name === 'q') {
|
|
10889
|
+
return (
|
|
10890
|
+
'q=' + parameters.q.split('+').map(encodeURIComponent).join('+')
|
|
10891
|
+
)
|
|
10892
|
+
}
|
|
10893
|
+
return `${name}=${encodeURIComponent(parameters[name])}`
|
|
10894
|
+
})
|
|
10895
|
+
.join('&')
|
|
10896
|
+
)
|
|
10897
|
+
}
|
|
10898
|
+
|
|
10899
|
+
// pkg/dist-src/util/extract-url-variable-names.js
|
|
10900
|
+
const urlVariableRegex = /\{[^{}}]+\}/g
|
|
10901
|
+
function removeNonChars(variableName) {
|
|
10902
|
+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, '').split(/,/)
|
|
10903
|
+
}
|
|
10904
|
+
function extractUrlVariableNames(url) {
|
|
10905
|
+
const matches = url.match(urlVariableRegex)
|
|
10906
|
+
if (!matches) {
|
|
10907
|
+
return []
|
|
10908
|
+
}
|
|
10909
|
+
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), [])
|
|
10910
|
+
}
|
|
10911
|
+
|
|
10912
|
+
// pkg/dist-src/util/omit.js
|
|
10913
|
+
function omit(object, keysToOmit) {
|
|
10914
|
+
const result = {
|
|
10915
|
+
__proto__: null
|
|
10916
|
+
}
|
|
10917
|
+
for (const key of Object.keys(object)) {
|
|
10918
|
+
if (keysToOmit.indexOf(key) === -1) {
|
|
10919
|
+
result[key] = object[key]
|
|
10920
|
+
}
|
|
10921
|
+
}
|
|
10922
|
+
return result
|
|
10923
|
+
}
|
|
10924
|
+
|
|
10925
|
+
// pkg/dist-src/util/url-template.js
|
|
10926
|
+
function encodeReserved(str) {
|
|
10927
|
+
return str
|
|
10928
|
+
.split(/(%[0-9A-Fa-f]{2})/g)
|
|
10929
|
+
.map(function (part) {
|
|
10930
|
+
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
10931
|
+
part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']')
|
|
10932
|
+
}
|
|
10933
|
+
return part
|
|
10934
|
+
})
|
|
10935
|
+
.join('')
|
|
10936
|
+
}
|
|
10937
|
+
function encodeUnreserved(str) {
|
|
10938
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
|
|
10939
|
+
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
10940
|
+
})
|
|
10941
|
+
}
|
|
10942
|
+
function encodeValue(operator, value, key) {
|
|
10943
|
+
value =
|
|
10944
|
+
operator === '+' || operator === '#'
|
|
10945
|
+
? encodeReserved(value)
|
|
10946
|
+
: encodeUnreserved(value)
|
|
10947
|
+
if (key) {
|
|
10948
|
+
return encodeUnreserved(key) + '=' + value
|
|
10949
|
+
} else {
|
|
10950
|
+
return value
|
|
10951
|
+
}
|
|
10952
|
+
}
|
|
10953
|
+
function isDefined(value) {
|
|
10954
|
+
return value !== void 0 && value !== null
|
|
10955
|
+
}
|
|
10956
|
+
function isKeyOperator(operator) {
|
|
10957
|
+
return operator === ';' || operator === '&' || operator === '?'
|
|
10958
|
+
}
|
|
10959
|
+
function getValues(context, operator, key, modifier) {
|
|
10960
|
+
let value = context[key],
|
|
10961
|
+
result = []
|
|
10962
|
+
if (isDefined(value) && value !== '') {
|
|
10963
|
+
if (
|
|
10964
|
+
typeof value === 'string' ||
|
|
10965
|
+
typeof value === 'number' ||
|
|
10966
|
+
typeof value === 'boolean'
|
|
10967
|
+
) {
|
|
10968
|
+
value = value.toString()
|
|
10969
|
+
if (modifier && modifier !== '*') {
|
|
10970
|
+
value = value.substring(0, parseInt(modifier, 10))
|
|
10971
|
+
}
|
|
10972
|
+
result.push(
|
|
10973
|
+
encodeValue(operator, value, isKeyOperator(operator) ? key : '')
|
|
10974
|
+
)
|
|
10975
|
+
} else {
|
|
10976
|
+
if (modifier === '*') {
|
|
10977
|
+
if (Array.isArray(value)) {
|
|
10978
|
+
value.filter(isDefined).forEach(function (value2) {
|
|
10979
|
+
result.push(
|
|
10980
|
+
encodeValue(operator, value2, isKeyOperator(operator) ? key : '')
|
|
10981
|
+
)
|
|
10982
|
+
})
|
|
10983
|
+
} else {
|
|
10984
|
+
Object.keys(value).forEach(function (k) {
|
|
10985
|
+
if (isDefined(value[k])) {
|
|
10986
|
+
result.push(encodeValue(operator, value[k], k))
|
|
10987
|
+
}
|
|
10988
|
+
})
|
|
10989
|
+
}
|
|
10990
|
+
} else {
|
|
10991
|
+
const tmp = []
|
|
10992
|
+
if (Array.isArray(value)) {
|
|
10993
|
+
value.filter(isDefined).forEach(function (value2) {
|
|
10994
|
+
tmp.push(encodeValue(operator, value2))
|
|
10995
|
+
})
|
|
10996
|
+
} else {
|
|
10997
|
+
Object.keys(value).forEach(function (k) {
|
|
10998
|
+
if (isDefined(value[k])) {
|
|
10999
|
+
tmp.push(encodeUnreserved(k))
|
|
11000
|
+
tmp.push(encodeValue(operator, value[k].toString()))
|
|
11001
|
+
}
|
|
11002
|
+
})
|
|
11003
|
+
}
|
|
11004
|
+
if (isKeyOperator(operator)) {
|
|
11005
|
+
result.push(encodeUnreserved(key) + '=' + tmp.join(','))
|
|
11006
|
+
} else if (tmp.length !== 0) {
|
|
11007
|
+
result.push(tmp.join(','))
|
|
11008
|
+
}
|
|
11009
|
+
}
|
|
11010
|
+
}
|
|
11011
|
+
} else {
|
|
11012
|
+
if (operator === ';') {
|
|
11013
|
+
if (isDefined(value)) {
|
|
11014
|
+
result.push(encodeUnreserved(key))
|
|
11015
|
+
}
|
|
11016
|
+
} else if (value === '' && (operator === '&' || operator === '?')) {
|
|
11017
|
+
result.push(encodeUnreserved(key) + '=')
|
|
11018
|
+
} else if (value === '') {
|
|
11019
|
+
result.push('')
|
|
11020
|
+
}
|
|
11021
|
+
}
|
|
11022
|
+
return result
|
|
11023
|
+
}
|
|
11024
|
+
function parseUrl(template) {
|
|
11025
|
+
return {
|
|
11026
|
+
expand: expand.bind(null, template)
|
|
11027
|
+
}
|
|
11028
|
+
}
|
|
11029
|
+
function expand(template, context) {
|
|
11030
|
+
const operators = ['+', '#', '.', '/', ';', '?', '&']
|
|
11031
|
+
template = template.replace(
|
|
11032
|
+
/\{([^{}]+)\}|([^{}]+)/g,
|
|
11033
|
+
function (_, expression, literal) {
|
|
11034
|
+
if (expression) {
|
|
11035
|
+
let operator = ''
|
|
11036
|
+
const values = []
|
|
11037
|
+
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
11038
|
+
operator = expression.charAt(0)
|
|
11039
|
+
expression = expression.substr(1)
|
|
11040
|
+
}
|
|
11041
|
+
expression.split(/,/g).forEach(function (variable) {
|
|
11042
|
+
const tmp = /([^:*]*)(?::(\d+)|(\*))?/.exec(variable)
|
|
11043
|
+
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]))
|
|
11044
|
+
})
|
|
11045
|
+
if (operator && operator !== '+') {
|
|
11046
|
+
let separator = ','
|
|
11047
|
+
if (operator === '?') {
|
|
11048
|
+
separator = '&'
|
|
11049
|
+
} else if (operator !== '#') {
|
|
11050
|
+
separator = operator
|
|
11051
|
+
}
|
|
11052
|
+
return (values.length !== 0 ? operator : '') + values.join(separator)
|
|
11053
|
+
} else {
|
|
11054
|
+
return values.join(',')
|
|
11055
|
+
}
|
|
11056
|
+
} else {
|
|
11057
|
+
return encodeReserved(literal)
|
|
11058
|
+
}
|
|
11059
|
+
}
|
|
11060
|
+
)
|
|
11061
|
+
if (template === '/') {
|
|
11062
|
+
return template
|
|
11063
|
+
} else {
|
|
11064
|
+
return template.replace(/\/$/, '')
|
|
11065
|
+
}
|
|
11066
|
+
}
|
|
11067
|
+
|
|
11068
|
+
// pkg/dist-src/parse.js
|
|
11069
|
+
function parse(options) {
|
|
11070
|
+
const method = options.method.toUpperCase()
|
|
11071
|
+
let url = (options.url || '/').replace(/:([a-z]\w+)/g, '{$1}')
|
|
11072
|
+
const headers = Object.assign({}, options.headers)
|
|
11073
|
+
let body
|
|
11074
|
+
const parameters = omit(options, [
|
|
11075
|
+
'method',
|
|
11076
|
+
'baseUrl',
|
|
11077
|
+
'url',
|
|
11078
|
+
'headers',
|
|
11079
|
+
'request',
|
|
11080
|
+
'mediaType'
|
|
11081
|
+
])
|
|
11082
|
+
const urlVariableNames = extractUrlVariableNames(url)
|
|
11083
|
+
url = parseUrl(url).expand(parameters)
|
|
11084
|
+
if (!url.startsWith('http')) {
|
|
11085
|
+
url = options.baseUrl + url
|
|
11086
|
+
}
|
|
11087
|
+
const omittedParameters = Object.keys(options)
|
|
11088
|
+
.filter(option => urlVariableNames.includes(option))
|
|
11089
|
+
.concat('baseUrl')
|
|
11090
|
+
const remainingParameters = omit(parameters, omittedParameters)
|
|
11091
|
+
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept)
|
|
11092
|
+
if (!isBinaryRequest) {
|
|
11093
|
+
if (options.mediaType.format) {
|
|
11094
|
+
headers.accept = headers.accept
|
|
11095
|
+
.split(/,/)
|
|
11096
|
+
.map(format =>
|
|
11097
|
+
format.replace(
|
|
11098
|
+
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
11099
|
+
`application/vnd$1$2.${options.mediaType.format}`
|
|
11100
|
+
)
|
|
11101
|
+
)
|
|
11102
|
+
.join(',')
|
|
11103
|
+
}
|
|
11104
|
+
if (url.endsWith('/graphql')) {
|
|
11105
|
+
if (options.mediaType.previews?.length) {
|
|
11106
|
+
const previewsFromAcceptHeader =
|
|
11107
|
+
headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || []
|
|
11108
|
+
headers.accept = previewsFromAcceptHeader
|
|
11109
|
+
.concat(options.mediaType.previews)
|
|
11110
|
+
.map(preview => {
|
|
11111
|
+
const format = options.mediaType.format
|
|
11112
|
+
? `.${options.mediaType.format}`
|
|
11113
|
+
: '+json'
|
|
11114
|
+
return `application/vnd.github.${preview}-preview${format}`
|
|
11115
|
+
})
|
|
11116
|
+
.join(',')
|
|
11117
|
+
}
|
|
11118
|
+
}
|
|
11119
|
+
}
|
|
11120
|
+
if (['GET', 'HEAD'].includes(method)) {
|
|
11121
|
+
url = addQueryParameters(url, remainingParameters)
|
|
11122
|
+
} else {
|
|
11123
|
+
if ('data' in remainingParameters) {
|
|
11124
|
+
body = remainingParameters.data
|
|
11125
|
+
} else {
|
|
11126
|
+
if (Object.keys(remainingParameters).length) {
|
|
11127
|
+
body = remainingParameters
|
|
11128
|
+
}
|
|
11129
|
+
}
|
|
11130
|
+
}
|
|
11131
|
+
if (!headers['content-type'] && typeof body !== 'undefined') {
|
|
11132
|
+
headers['content-type'] = 'application/json; charset=utf-8'
|
|
11133
|
+
}
|
|
11134
|
+
if (['PATCH', 'PUT'].includes(method) && typeof body === 'undefined') {
|
|
11135
|
+
body = ''
|
|
11136
|
+
}
|
|
11137
|
+
return Object.assign(
|
|
11138
|
+
{
|
|
11139
|
+
method,
|
|
11140
|
+
url,
|
|
11141
|
+
headers
|
|
11142
|
+
},
|
|
11143
|
+
typeof body !== 'undefined'
|
|
11144
|
+
? {
|
|
11145
|
+
body
|
|
11146
|
+
}
|
|
11147
|
+
: null,
|
|
11148
|
+
options.request
|
|
11149
|
+
? {
|
|
11150
|
+
request: options.request
|
|
11151
|
+
}
|
|
11152
|
+
: null
|
|
11153
|
+
)
|
|
11154
|
+
}
|
|
11155
|
+
|
|
11156
|
+
// pkg/dist-src/endpoint-with-defaults.js
|
|
11157
|
+
function endpointWithDefaults(defaults, route, options) {
|
|
11158
|
+
return parse(merge(defaults, route, options))
|
|
11159
|
+
}
|
|
11160
|
+
|
|
11161
|
+
// pkg/dist-src/with-defaults.js
|
|
11162
|
+
function withDefaults$2(oldDefaults, newDefaults) {
|
|
11163
|
+
const DEFAULTS2 = merge(oldDefaults, newDefaults)
|
|
11164
|
+
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2)
|
|
11165
|
+
return Object.assign(endpoint2, {
|
|
11166
|
+
DEFAULTS: DEFAULTS2,
|
|
11167
|
+
defaults: withDefaults$2.bind(null, DEFAULTS2),
|
|
11168
|
+
merge: merge.bind(null, DEFAULTS2),
|
|
11169
|
+
parse
|
|
11170
|
+
})
|
|
11171
|
+
}
|
|
11172
|
+
|
|
11173
|
+
// pkg/dist-src/index.js
|
|
11174
|
+
const endpoint = withDefaults$2(null, DEFAULTS)
|
|
11175
|
+
|
|
11176
|
+
class RequestError extends Error {
|
|
11177
|
+
name
|
|
11178
|
+
/**
|
|
11179
|
+
* http status code
|
|
11180
|
+
*/
|
|
11181
|
+
status
|
|
11182
|
+
/**
|
|
11183
|
+
* Request options that lead to the error.
|
|
11184
|
+
*/
|
|
11185
|
+
request
|
|
11186
|
+
/**
|
|
11187
|
+
* Response object if a response was received
|
|
11188
|
+
*/
|
|
11189
|
+
response
|
|
11190
|
+
constructor(message, statusCode, options) {
|
|
11191
|
+
super(message)
|
|
11192
|
+
this.name = 'HttpError'
|
|
11193
|
+
this.status = Number.parseInt(statusCode)
|
|
11194
|
+
if (Number.isNaN(this.status)) {
|
|
11195
|
+
this.status = 0
|
|
11196
|
+
}
|
|
11197
|
+
if ('response' in options) {
|
|
11198
|
+
this.response = options.response
|
|
11199
|
+
}
|
|
11200
|
+
const requestCopy = Object.assign({}, options.request)
|
|
11201
|
+
if (options.request.headers.authorization) {
|
|
11202
|
+
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
11203
|
+
authorization: options.request.headers.authorization.replace(
|
|
11204
|
+
/(?<! ) .*$/,
|
|
11205
|
+
' [REDACTED]'
|
|
11206
|
+
)
|
|
11207
|
+
})
|
|
11208
|
+
}
|
|
11209
|
+
requestCopy.url = requestCopy.url
|
|
11210
|
+
.replace(/\bclient_secret=\w+/g, 'client_secret=[REDACTED]')
|
|
11211
|
+
.replace(/\baccess_token=\w+/g, 'access_token=[REDACTED]')
|
|
11212
|
+
this.request = requestCopy
|
|
11213
|
+
}
|
|
11214
|
+
}
|
|
11215
|
+
|
|
11216
|
+
// pkg/dist-src/index.js
|
|
11217
|
+
|
|
11218
|
+
// pkg/dist-src/version.js
|
|
11219
|
+
const VERSION$6 = '0.0.0-development'
|
|
11220
|
+
|
|
11221
|
+
// pkg/dist-src/defaults.js
|
|
11222
|
+
const defaults_default = {
|
|
11223
|
+
headers: {
|
|
11224
|
+
'user-agent': `octokit-request.js/${VERSION$6} ${getUserAgent()}`
|
|
11225
|
+
}
|
|
11226
|
+
}
|
|
11227
|
+
|
|
11228
|
+
// pkg/dist-src/is-plain-object.js
|
|
11229
|
+
function isPlainObject(value) {
|
|
11230
|
+
if (typeof value !== 'object' || value === null) {
|
|
11231
|
+
return false
|
|
11232
|
+
}
|
|
11233
|
+
if (Object.prototype.toString.call(value) !== '[object Object]') {
|
|
11234
|
+
return false
|
|
11235
|
+
}
|
|
11236
|
+
const proto = Object.getPrototypeOf(value)
|
|
11237
|
+
if (proto === null) {
|
|
11238
|
+
return true
|
|
11239
|
+
}
|
|
11240
|
+
const Ctor =
|
|
11241
|
+
Object.prototype.hasOwnProperty.call(proto, 'constructor') &&
|
|
11242
|
+
proto.constructor
|
|
11243
|
+
return (
|
|
11244
|
+
typeof Ctor === 'function' &&
|
|
11245
|
+
Ctor instanceof Ctor &&
|
|
11246
|
+
Function.prototype.call(Ctor) === Function.prototype.call(value)
|
|
11247
|
+
)
|
|
11248
|
+
}
|
|
11249
|
+
async function fetchWrapper(requestOptions) {
|
|
11250
|
+
const fetch = requestOptions.request?.fetch || globalThis.fetch
|
|
11251
|
+
if (!fetch) {
|
|
11252
|
+
throw new Error(
|
|
11253
|
+
'fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing'
|
|
11254
|
+
)
|
|
11255
|
+
}
|
|
11256
|
+
const log = requestOptions.request?.log || console
|
|
11257
|
+
const parseSuccessResponseBody =
|
|
11258
|
+
requestOptions.request?.parseSuccessResponseBody !== false
|
|
11259
|
+
const body =
|
|
11260
|
+
isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)
|
|
11261
|
+
? JSON.stringify(requestOptions.body)
|
|
11262
|
+
: requestOptions.body
|
|
11263
|
+
const requestHeaders = Object.fromEntries(
|
|
11264
|
+
Object.entries(requestOptions.headers).map(([name, value]) => [
|
|
11265
|
+
name,
|
|
11266
|
+
String(value)
|
|
11267
|
+
])
|
|
11268
|
+
)
|
|
11269
|
+
let fetchResponse
|
|
11270
|
+
try {
|
|
11271
|
+
fetchResponse = await fetch(requestOptions.url, {
|
|
11272
|
+
method: requestOptions.method,
|
|
11273
|
+
body,
|
|
11274
|
+
redirect: requestOptions.request?.redirect,
|
|
11275
|
+
headers: requestHeaders,
|
|
11276
|
+
signal: requestOptions.request?.signal,
|
|
11277
|
+
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
11278
|
+
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
11279
|
+
...(requestOptions.body && {
|
|
11280
|
+
duplex: 'half'
|
|
11281
|
+
})
|
|
11282
|
+
})
|
|
11283
|
+
} catch (error) {
|
|
11284
|
+
let message = 'Unknown Error'
|
|
11285
|
+
if (error instanceof Error) {
|
|
11286
|
+
if (error.name === 'AbortError') {
|
|
11287
|
+
error.status = 500
|
|
11288
|
+
throw error
|
|
11289
|
+
}
|
|
11290
|
+
message = error.message
|
|
11291
|
+
if (error.name === 'TypeError' && 'cause' in error) {
|
|
11292
|
+
if (error.cause instanceof Error) {
|
|
11293
|
+
message = error.cause.message
|
|
11294
|
+
} else if (typeof error.cause === 'string') {
|
|
11295
|
+
message = error.cause
|
|
11296
|
+
}
|
|
11297
|
+
}
|
|
11298
|
+
}
|
|
11299
|
+
const requestError = new RequestError(message, 500, {
|
|
11300
|
+
request: requestOptions
|
|
11301
|
+
})
|
|
11302
|
+
requestError.cause = error
|
|
11303
|
+
throw requestError
|
|
11304
|
+
}
|
|
11305
|
+
const status = fetchResponse.status
|
|
11306
|
+
const url = fetchResponse.url
|
|
11307
|
+
const responseHeaders = {}
|
|
11308
|
+
for (const [key, value] of fetchResponse.headers) {
|
|
11309
|
+
responseHeaders[key] = value
|
|
11310
|
+
}
|
|
11311
|
+
const octokitResponse = {
|
|
11312
|
+
url,
|
|
11313
|
+
status,
|
|
11314
|
+
headers: responseHeaders,
|
|
11315
|
+
data: ''
|
|
11316
|
+
}
|
|
11317
|
+
if ('deprecation' in responseHeaders) {
|
|
11318
|
+
const matches =
|
|
11319
|
+
responseHeaders.link &&
|
|
11320
|
+
responseHeaders.link.match(/<([^<>]+)>; rel="deprecation"/)
|
|
11321
|
+
const deprecationLink = matches && matches.pop()
|
|
11322
|
+
log.warn(
|
|
11323
|
+
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ''}`
|
|
11324
|
+
)
|
|
11325
|
+
}
|
|
11326
|
+
if (status === 204 || status === 205) {
|
|
11327
|
+
return octokitResponse
|
|
11328
|
+
}
|
|
11329
|
+
if (requestOptions.method === 'HEAD') {
|
|
11330
|
+
if (status < 400) {
|
|
11331
|
+
return octokitResponse
|
|
11332
|
+
}
|
|
11333
|
+
throw new RequestError(fetchResponse.statusText, status, {
|
|
11334
|
+
response: octokitResponse,
|
|
11335
|
+
request: requestOptions
|
|
11336
|
+
})
|
|
11337
|
+
}
|
|
11338
|
+
if (status === 304) {
|
|
11339
|
+
octokitResponse.data = await getResponseData(fetchResponse)
|
|
11340
|
+
throw new RequestError('Not modified', status, {
|
|
11341
|
+
response: octokitResponse,
|
|
11342
|
+
request: requestOptions
|
|
11343
|
+
})
|
|
11344
|
+
}
|
|
11345
|
+
if (status >= 400) {
|
|
11346
|
+
octokitResponse.data = await getResponseData(fetchResponse)
|
|
11347
|
+
throw new RequestError(toErrorMessage(octokitResponse.data), status, {
|
|
11348
|
+
response: octokitResponse,
|
|
11349
|
+
request: requestOptions
|
|
11350
|
+
})
|
|
11351
|
+
}
|
|
11352
|
+
octokitResponse.data = parseSuccessResponseBody
|
|
11353
|
+
? await getResponseData(fetchResponse)
|
|
11354
|
+
: fetchResponse.body
|
|
11355
|
+
return octokitResponse
|
|
11356
|
+
}
|
|
11357
|
+
async function getResponseData(response) {
|
|
11358
|
+
const contentType = response.headers.get('content-type')
|
|
11359
|
+
if (!contentType) {
|
|
11360
|
+
return response.text().catch(() => '')
|
|
11361
|
+
}
|
|
11362
|
+
const mimetype = fastContentTypeParse.safeParse(contentType)
|
|
11363
|
+
if (isJSONResponse(mimetype)) {
|
|
11364
|
+
let text = ''
|
|
11365
|
+
try {
|
|
11366
|
+
text = await response.text()
|
|
11367
|
+
return JSON.parse(text)
|
|
11368
|
+
} catch (err) {
|
|
11369
|
+
return text
|
|
11370
|
+
}
|
|
11371
|
+
} else if (
|
|
11372
|
+
mimetype.type.startsWith('text/') ||
|
|
11373
|
+
mimetype.parameters.charset?.toLowerCase() === 'utf-8'
|
|
11374
|
+
) {
|
|
11375
|
+
return response.text().catch(() => '')
|
|
11376
|
+
} else {
|
|
11377
|
+
return response.arrayBuffer().catch(() => new ArrayBuffer(0))
|
|
11378
|
+
}
|
|
11379
|
+
}
|
|
11380
|
+
function isJSONResponse(mimetype) {
|
|
11381
|
+
return (
|
|
11382
|
+
mimetype.type === 'application/json' ||
|
|
11383
|
+
mimetype.type === 'application/scim+json'
|
|
11384
|
+
)
|
|
11385
|
+
}
|
|
11386
|
+
function toErrorMessage(data) {
|
|
11387
|
+
if (typeof data === 'string') {
|
|
11388
|
+
return data
|
|
11389
|
+
}
|
|
11390
|
+
if (data instanceof ArrayBuffer) {
|
|
11391
|
+
return 'Unknown error'
|
|
11392
|
+
}
|
|
11393
|
+
if ('message' in data) {
|
|
11394
|
+
const suffix =
|
|
11395
|
+
'documentation_url' in data ? ` - ${data.documentation_url}` : ''
|
|
11396
|
+
return Array.isArray(data.errors)
|
|
11397
|
+
? `${data.message}: ${data.errors.map(v => JSON.stringify(v)).join(', ')}${suffix}`
|
|
11398
|
+
: `${data.message}${suffix}`
|
|
11399
|
+
}
|
|
11400
|
+
return `Unknown error: ${JSON.stringify(data)}`
|
|
11401
|
+
}
|
|
11402
|
+
|
|
11403
|
+
// pkg/dist-src/with-defaults.js
|
|
11404
|
+
function withDefaults$1(oldEndpoint, newDefaults) {
|
|
11405
|
+
const endpoint2 = oldEndpoint.defaults(newDefaults)
|
|
11406
|
+
const newApi = function (route, parameters) {
|
|
11407
|
+
const endpointOptions = endpoint2.merge(route, parameters)
|
|
11408
|
+
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
|
11409
|
+
return fetchWrapper(endpoint2.parse(endpointOptions))
|
|
11410
|
+
}
|
|
11411
|
+
const request2 = (route2, parameters2) => {
|
|
11412
|
+
return fetchWrapper(endpoint2.parse(endpoint2.merge(route2, parameters2)))
|
|
11413
|
+
}
|
|
11414
|
+
Object.assign(request2, {
|
|
11415
|
+
endpoint: endpoint2,
|
|
11416
|
+
defaults: withDefaults$1.bind(null, endpoint2)
|
|
11417
|
+
})
|
|
11418
|
+
return endpointOptions.request.hook(request2, endpointOptions)
|
|
11419
|
+
}
|
|
11420
|
+
return Object.assign(newApi, {
|
|
11421
|
+
endpoint: endpoint2,
|
|
11422
|
+
defaults: withDefaults$1.bind(null, endpoint2)
|
|
11423
|
+
})
|
|
11424
|
+
}
|
|
11425
|
+
|
|
11426
|
+
// pkg/dist-src/index.js
|
|
11427
|
+
const request = withDefaults$1(endpoint, defaults_default)
|
|
11428
|
+
|
|
11429
|
+
// pkg/dist-src/index.js
|
|
11430
|
+
|
|
11431
|
+
// pkg/dist-src/version.js
|
|
11432
|
+
const VERSION$5 = '0.0.0-development'
|
|
11433
|
+
|
|
11434
|
+
// pkg/dist-src/error.js
|
|
11435
|
+
function _buildMessageForResponseErrors(data) {
|
|
11436
|
+
return (
|
|
11437
|
+
`Request failed due to following response errors:
|
|
11438
|
+
` + data.errors.map(e => ` - ${e.message}`).join('\n')
|
|
11439
|
+
)
|
|
11440
|
+
}
|
|
11441
|
+
const GraphqlResponseError = class extends Error {
|
|
11442
|
+
constructor(request2, headers, response) {
|
|
11443
|
+
super(_buildMessageForResponseErrors(response))
|
|
11444
|
+
this.request = request2
|
|
11445
|
+
this.headers = headers
|
|
11446
|
+
this.response = response
|
|
11447
|
+
this.errors = response.errors
|
|
11448
|
+
this.data = response.data
|
|
11449
|
+
if (Error.captureStackTrace) {
|
|
11450
|
+
Error.captureStackTrace(this, this.constructor)
|
|
11451
|
+
}
|
|
11452
|
+
}
|
|
11453
|
+
name = 'GraphqlResponseError'
|
|
11454
|
+
errors
|
|
11455
|
+
data
|
|
11456
|
+
}
|
|
11457
|
+
|
|
11458
|
+
// pkg/dist-src/graphql.js
|
|
11459
|
+
const NON_VARIABLE_OPTIONS = [
|
|
11460
|
+
'method',
|
|
11461
|
+
'baseUrl',
|
|
11462
|
+
'url',
|
|
11463
|
+
'headers',
|
|
11464
|
+
'request',
|
|
11465
|
+
'query',
|
|
11466
|
+
'mediaType',
|
|
11467
|
+
'operationName'
|
|
11468
|
+
]
|
|
11469
|
+
const FORBIDDEN_VARIABLE_OPTIONS = ['query', 'method', 'url']
|
|
11470
|
+
const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/
|
|
11471
|
+
function graphql(request2, query, options) {
|
|
11472
|
+
if (options) {
|
|
11473
|
+
if (typeof query === 'string' && 'query' in options) {
|
|
11474
|
+
return Promise.reject(
|
|
11475
|
+
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
11476
|
+
)
|
|
11477
|
+
}
|
|
11478
|
+
for (const key in options) {
|
|
11479
|
+
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) {
|
|
11480
|
+
continue
|
|
11481
|
+
}
|
|
11482
|
+
return Promise.reject(
|
|
11483
|
+
new Error(`[@octokit/graphql] "${key}" cannot be used as variable name`)
|
|
11484
|
+
)
|
|
11485
|
+
}
|
|
11486
|
+
}
|
|
11487
|
+
const parsedOptions =
|
|
11488
|
+
typeof query === 'string'
|
|
11489
|
+
? Object.assign(
|
|
11490
|
+
{
|
|
11491
|
+
query
|
|
11492
|
+
},
|
|
11493
|
+
options
|
|
11494
|
+
)
|
|
11495
|
+
: query
|
|
11496
|
+
const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {
|
|
11497
|
+
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
11498
|
+
result[key] = parsedOptions[key]
|
|
11499
|
+
return result
|
|
11500
|
+
}
|
|
11501
|
+
if (!result.variables) {
|
|
11502
|
+
result.variables = {}
|
|
11503
|
+
}
|
|
11504
|
+
result.variables[key] = parsedOptions[key]
|
|
11505
|
+
return result
|
|
11506
|
+
}, {})
|
|
11507
|
+
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl
|
|
11508
|
+
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
|
11509
|
+
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, '/api/graphql')
|
|
11510
|
+
}
|
|
11511
|
+
return request2(requestOptions).then(response => {
|
|
11512
|
+
if (response.data.errors) {
|
|
11513
|
+
const headers = {}
|
|
11514
|
+
for (const key of Object.keys(response.headers)) {
|
|
11515
|
+
headers[key] = response.headers[key]
|
|
11516
|
+
}
|
|
11517
|
+
throw new GraphqlResponseError(requestOptions, headers, response.data)
|
|
11518
|
+
}
|
|
11519
|
+
return response.data.data
|
|
11520
|
+
})
|
|
11521
|
+
}
|
|
11522
|
+
|
|
11523
|
+
// pkg/dist-src/with-defaults.js
|
|
11524
|
+
function withDefaults(request2, newDefaults) {
|
|
11525
|
+
const newRequest = request2.defaults(newDefaults)
|
|
11526
|
+
const newApi = (query, options) => {
|
|
11527
|
+
return graphql(newRequest, query, options)
|
|
11528
|
+
}
|
|
11529
|
+
return Object.assign(newApi, {
|
|
11530
|
+
defaults: withDefaults.bind(null, newRequest),
|
|
11531
|
+
endpoint: newRequest.endpoint
|
|
11532
|
+
})
|
|
11533
|
+
}
|
|
11534
|
+
|
|
11535
|
+
// pkg/dist-src/index.js
|
|
11536
|
+
withDefaults(request, {
|
|
11537
|
+
headers: {
|
|
11538
|
+
'user-agent': `octokit-graphql.js/${VERSION$5} ${getUserAgent()}`
|
|
11539
|
+
},
|
|
11540
|
+
method: 'POST',
|
|
11541
|
+
url: '/graphql'
|
|
11542
|
+
})
|
|
11543
|
+
function withCustomRequest(customRequest) {
|
|
11544
|
+
return withDefaults(customRequest, {
|
|
11545
|
+
method: 'POST',
|
|
11546
|
+
url: '/graphql'
|
|
11547
|
+
})
|
|
11548
|
+
}
|
|
11549
|
+
|
|
11550
|
+
// pkg/dist-src/is-jwt.js
|
|
11551
|
+
const b64url = '(?:[a-zA-Z0-9_-]+)'
|
|
11552
|
+
const sep = '\\.'
|
|
11553
|
+
const jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`)
|
|
11554
|
+
const isJWT = jwtRE.test.bind(jwtRE)
|
|
11555
|
+
|
|
11556
|
+
// pkg/dist-src/auth.js
|
|
11557
|
+
async function auth(token) {
|
|
11558
|
+
const isApp = isJWT(token)
|
|
11559
|
+
const isInstallation = token.startsWith('v1.') || token.startsWith('ghs_')
|
|
11560
|
+
const isUserToServer = token.startsWith('ghu_')
|
|
11561
|
+
const tokenType = isApp
|
|
11562
|
+
? 'app'
|
|
11563
|
+
: isInstallation
|
|
11564
|
+
? 'installation'
|
|
11565
|
+
: isUserToServer
|
|
11566
|
+
? 'user-to-server'
|
|
11567
|
+
: 'oauth'
|
|
11568
|
+
return {
|
|
11569
|
+
type: 'token',
|
|
11570
|
+
token,
|
|
11571
|
+
tokenType
|
|
11572
|
+
}
|
|
11573
|
+
}
|
|
11574
|
+
|
|
11575
|
+
// pkg/dist-src/with-authorization-prefix.js
|
|
11576
|
+
function withAuthorizationPrefix(token) {
|
|
11577
|
+
if (token.split(/\./).length === 3) {
|
|
11578
|
+
return `bearer ${token}`
|
|
11579
|
+
}
|
|
11580
|
+
return `token ${token}`
|
|
11581
|
+
}
|
|
11582
|
+
|
|
11583
|
+
// pkg/dist-src/hook.js
|
|
11584
|
+
async function hook(token, request, route, parameters) {
|
|
11585
|
+
const endpoint = request.endpoint.merge(route, parameters)
|
|
11586
|
+
endpoint.headers.authorization = withAuthorizationPrefix(token)
|
|
11587
|
+
return request(endpoint)
|
|
11588
|
+
}
|
|
11589
|
+
|
|
11590
|
+
// pkg/dist-src/index.js
|
|
11591
|
+
const createTokenAuth = function createTokenAuth2(token) {
|
|
11592
|
+
if (!token) {
|
|
11593
|
+
throw new Error('[@octokit/auth-token] No token passed to createTokenAuth')
|
|
11594
|
+
}
|
|
11595
|
+
if (typeof token !== 'string') {
|
|
11596
|
+
throw new Error(
|
|
11597
|
+
'[@octokit/auth-token] Token passed to createTokenAuth is not a string'
|
|
11598
|
+
)
|
|
11599
|
+
}
|
|
11600
|
+
token = token.replace(/^(token|bearer) +/i, '')
|
|
11601
|
+
return Object.assign(auth.bind(null, token), {
|
|
11602
|
+
hook: hook.bind(null, token)
|
|
11603
|
+
})
|
|
11604
|
+
}
|
|
11605
|
+
|
|
11606
|
+
const VERSION$4 = '6.1.4'
|
|
11607
|
+
|
|
11608
|
+
const noop = () => {}
|
|
11609
|
+
const consoleWarn = console.warn.bind(console)
|
|
11610
|
+
const consoleError = console.error.bind(console)
|
|
11611
|
+
const userAgentTrail = `octokit-core.js/${VERSION$4} ${getUserAgent()}`
|
|
11612
|
+
const Octokit$1 = class Octokit {
|
|
11613
|
+
static VERSION = VERSION$4
|
|
11614
|
+
static defaults(defaults) {
|
|
11615
|
+
const OctokitWithDefaults = class extends this {
|
|
11616
|
+
constructor(...args) {
|
|
11617
|
+
const options = args[0] || {}
|
|
11618
|
+
if (typeof defaults === 'function') {
|
|
11619
|
+
super(defaults(options))
|
|
11620
|
+
return
|
|
11621
|
+
}
|
|
11622
|
+
super(
|
|
11623
|
+
Object.assign(
|
|
11624
|
+
{},
|
|
11625
|
+
defaults,
|
|
11626
|
+
options,
|
|
11627
|
+
options.userAgent && defaults.userAgent
|
|
11628
|
+
? {
|
|
11629
|
+
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
11630
|
+
}
|
|
11631
|
+
: null
|
|
11632
|
+
)
|
|
11633
|
+
)
|
|
11634
|
+
}
|
|
11635
|
+
}
|
|
11636
|
+
return OctokitWithDefaults
|
|
11637
|
+
}
|
|
11638
|
+
static plugins = []
|
|
11639
|
+
/**
|
|
11640
|
+
* Attach a plugin (or many) to your Octokit instance.
|
|
11641
|
+
*
|
|
11642
|
+
* @example
|
|
11643
|
+
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
11644
|
+
*/
|
|
11645
|
+
static plugin(...newPlugins) {
|
|
11646
|
+
const currentPlugins = this.plugins
|
|
11647
|
+
const NewOctokit = class extends this {
|
|
11648
|
+
static plugins = currentPlugins.concat(
|
|
11649
|
+
newPlugins.filter(plugin => !currentPlugins.includes(plugin))
|
|
11650
|
+
)
|
|
11651
|
+
}
|
|
11652
|
+
return NewOctokit
|
|
11653
|
+
}
|
|
11654
|
+
constructor(options = {}) {
|
|
11655
|
+
const hook = new Hook.Collection()
|
|
11656
|
+
const requestDefaults = {
|
|
11657
|
+
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
11658
|
+
headers: {},
|
|
11659
|
+
request: Object.assign({}, options.request, {
|
|
11660
|
+
// @ts-ignore internal usage only, no need to type
|
|
11661
|
+
hook: hook.bind(null, 'request')
|
|
11662
|
+
}),
|
|
11663
|
+
mediaType: {
|
|
11664
|
+
previews: [],
|
|
11665
|
+
format: ''
|
|
11666
|
+
}
|
|
11667
|
+
}
|
|
11668
|
+
requestDefaults.headers['user-agent'] = options.userAgent
|
|
11669
|
+
? `${options.userAgent} ${userAgentTrail}`
|
|
11670
|
+
: userAgentTrail
|
|
11671
|
+
if (options.baseUrl) {
|
|
11672
|
+
requestDefaults.baseUrl = options.baseUrl
|
|
11673
|
+
}
|
|
11674
|
+
if (options.previews) {
|
|
11675
|
+
requestDefaults.mediaType.previews = options.previews
|
|
11676
|
+
}
|
|
11677
|
+
if (options.timeZone) {
|
|
11678
|
+
requestDefaults.headers['time-zone'] = options.timeZone
|
|
11679
|
+
}
|
|
11680
|
+
this.request = request.defaults(requestDefaults)
|
|
11681
|
+
this.graphql = withCustomRequest(this.request).defaults(requestDefaults)
|
|
11682
|
+
this.log = Object.assign(
|
|
11683
|
+
{
|
|
11684
|
+
debug: noop,
|
|
11685
|
+
info: noop,
|
|
11686
|
+
warn: consoleWarn,
|
|
11687
|
+
error: consoleError
|
|
11688
|
+
},
|
|
11689
|
+
options.log
|
|
11690
|
+
)
|
|
11691
|
+
this.hook = hook
|
|
11692
|
+
if (!options.authStrategy) {
|
|
11693
|
+
if (!options.auth) {
|
|
11694
|
+
this.auth = async () => ({
|
|
11695
|
+
type: 'unauthenticated'
|
|
11696
|
+
})
|
|
11697
|
+
} else {
|
|
11698
|
+
const auth = createTokenAuth(options.auth)
|
|
11699
|
+
hook.wrap('request', auth.hook)
|
|
11700
|
+
this.auth = auth
|
|
11701
|
+
}
|
|
11702
|
+
} else {
|
|
11703
|
+
const { authStrategy, ...otherOptions } = options
|
|
11704
|
+
const auth = authStrategy(
|
|
11705
|
+
Object.assign(
|
|
11706
|
+
{
|
|
11707
|
+
request: this.request,
|
|
11708
|
+
log: this.log,
|
|
11709
|
+
// we pass the current octokit instance as well as its constructor options
|
|
11710
|
+
// to allow for authentication strategies that return a new octokit instance
|
|
11711
|
+
// that shares the same internal state as the current one. The original
|
|
11712
|
+
// requirement for this was the "event-octokit" authentication strategy
|
|
11713
|
+
// of https://github.com/probot/octokit-auth-probot.
|
|
11714
|
+
octokit: this,
|
|
11715
|
+
octokitOptions: otherOptions
|
|
11716
|
+
},
|
|
11717
|
+
options.auth
|
|
11718
|
+
)
|
|
11719
|
+
)
|
|
11720
|
+
hook.wrap('request', auth.hook)
|
|
11721
|
+
this.auth = auth
|
|
11722
|
+
}
|
|
11723
|
+
const classConstructor = this.constructor
|
|
11724
|
+
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
|
11725
|
+
Object.assign(this, classConstructor.plugins[i](this, options))
|
|
11726
|
+
}
|
|
11727
|
+
}
|
|
11728
|
+
// assigned during constructor
|
|
11729
|
+
request
|
|
11730
|
+
graphql
|
|
11731
|
+
log
|
|
11732
|
+
hook
|
|
11733
|
+
// TODO: type `octokit.auth` based on passed options.authStrategy
|
|
11734
|
+
auth
|
|
11735
|
+
}
|
|
11736
|
+
|
|
11737
|
+
const VERSION$3 = '5.3.1'
|
|
11738
|
+
|
|
11739
|
+
function requestLog(octokit) {
|
|
11740
|
+
octokit.hook.wrap('request', (request, options) => {
|
|
11741
|
+
octokit.log.debug('request', options)
|
|
11742
|
+
const start = Date.now()
|
|
11743
|
+
const requestOptions = octokit.request.endpoint.parse(options)
|
|
11744
|
+
const path = requestOptions.url.replace(options.baseUrl, '')
|
|
11745
|
+
return request(options)
|
|
11746
|
+
.then(response => {
|
|
11747
|
+
const requestId = response.headers['x-github-request-id']
|
|
11748
|
+
octokit.log.info(
|
|
11749
|
+
`${requestOptions.method} ${path} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
11750
|
+
)
|
|
11751
|
+
return response
|
|
11752
|
+
})
|
|
11753
|
+
.catch(error => {
|
|
11754
|
+
const requestId =
|
|
11755
|
+
error.response?.headers['x-github-request-id'] || 'UNKNOWN'
|
|
11756
|
+
octokit.log.error(
|
|
11757
|
+
`${requestOptions.method} ${path} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
|
|
11758
|
+
)
|
|
11759
|
+
throw error
|
|
11760
|
+
})
|
|
11761
|
+
})
|
|
11762
|
+
}
|
|
11763
|
+
requestLog.VERSION = VERSION$3
|
|
11764
|
+
|
|
11765
|
+
// pkg/dist-src/version.js
|
|
11766
|
+
const VERSION$2 = '0.0.0-development'
|
|
11767
|
+
|
|
11768
|
+
// pkg/dist-src/normalize-paginated-list-response.js
|
|
11769
|
+
function normalizePaginatedListResponse(response) {
|
|
11770
|
+
if (!response.data) {
|
|
11771
|
+
return {
|
|
11772
|
+
...response,
|
|
11773
|
+
data: []
|
|
11774
|
+
}
|
|
11775
|
+
}
|
|
11776
|
+
const responseNeedsNormalization =
|
|
11777
|
+
'total_count' in response.data && !('url' in response.data)
|
|
11778
|
+
if (!responseNeedsNormalization) {
|
|
11779
|
+
return response
|
|
11780
|
+
}
|
|
11781
|
+
const incompleteResults = response.data.incomplete_results
|
|
11782
|
+
const repositorySelection = response.data.repository_selection
|
|
11783
|
+
const totalCount = response.data.total_count
|
|
11784
|
+
delete response.data.incomplete_results
|
|
11785
|
+
delete response.data.repository_selection
|
|
11786
|
+
delete response.data.total_count
|
|
11787
|
+
const namespaceKey = Object.keys(response.data)[0]
|
|
11788
|
+
const data = response.data[namespaceKey]
|
|
11789
|
+
response.data = data
|
|
11790
|
+
if (typeof incompleteResults !== 'undefined') {
|
|
11791
|
+
response.data.incomplete_results = incompleteResults
|
|
11792
|
+
}
|
|
11793
|
+
if (typeof repositorySelection !== 'undefined') {
|
|
11794
|
+
response.data.repository_selection = repositorySelection
|
|
11795
|
+
}
|
|
11796
|
+
response.data.total_count = totalCount
|
|
11797
|
+
return response
|
|
11798
|
+
}
|
|
11799
|
+
|
|
11800
|
+
// pkg/dist-src/iterator.js
|
|
11801
|
+
function iterator(octokit, route, parameters) {
|
|
11802
|
+
const options =
|
|
11803
|
+
typeof route === 'function'
|
|
11804
|
+
? route.endpoint(parameters)
|
|
11805
|
+
: octokit.request.endpoint(route, parameters)
|
|
11806
|
+
const requestMethod = typeof route === 'function' ? route : octokit.request
|
|
11807
|
+
const method = options.method
|
|
11808
|
+
const headers = options.headers
|
|
11809
|
+
let url = options.url
|
|
11810
|
+
return {
|
|
11811
|
+
[Symbol.asyncIterator]: () => ({
|
|
11812
|
+
async next() {
|
|
11813
|
+
if (!url) {
|
|
11814
|
+
return {
|
|
11815
|
+
done: true
|
|
11816
|
+
}
|
|
11817
|
+
}
|
|
11818
|
+
try {
|
|
11819
|
+
const response = await requestMethod({
|
|
11820
|
+
method,
|
|
11821
|
+
url,
|
|
11822
|
+
headers
|
|
11823
|
+
})
|
|
11824
|
+
const normalizedResponse = normalizePaginatedListResponse(response)
|
|
11825
|
+
url = ((normalizedResponse.headers.link || '').match(
|
|
11826
|
+
/<([^<>]+)>;\s*rel="next"/
|
|
11827
|
+
) || [])[1]
|
|
11828
|
+
return {
|
|
11829
|
+
value: normalizedResponse
|
|
11830
|
+
}
|
|
11831
|
+
} catch (error) {
|
|
11832
|
+
if (error.status !== 409) {
|
|
11833
|
+
throw error
|
|
11834
|
+
}
|
|
11835
|
+
url = ''
|
|
11836
|
+
return {
|
|
11837
|
+
value: {
|
|
11838
|
+
status: 200,
|
|
11839
|
+
headers: {},
|
|
11840
|
+
data: []
|
|
11841
|
+
}
|
|
11842
|
+
}
|
|
11843
|
+
}
|
|
11844
|
+
}
|
|
11845
|
+
})
|
|
11846
|
+
}
|
|
11847
|
+
}
|
|
11848
|
+
|
|
11849
|
+
// pkg/dist-src/paginate.js
|
|
11850
|
+
function paginate(octokit, route, parameters, mapFn) {
|
|
11851
|
+
if (typeof parameters === 'function') {
|
|
11852
|
+
mapFn = parameters
|
|
11853
|
+
parameters = void 0
|
|
11854
|
+
}
|
|
11855
|
+
return gather(
|
|
11856
|
+
octokit,
|
|
11857
|
+
[],
|
|
11858
|
+
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
11859
|
+
mapFn
|
|
11860
|
+
)
|
|
11861
|
+
}
|
|
11862
|
+
function gather(octokit, results, iterator2, mapFn) {
|
|
11863
|
+
return iterator2.next().then(result => {
|
|
11864
|
+
if (result.done) {
|
|
11865
|
+
return results
|
|
11866
|
+
}
|
|
11867
|
+
let earlyExit = false
|
|
11868
|
+
function done() {
|
|
11869
|
+
earlyExit = true
|
|
11870
|
+
}
|
|
11871
|
+
results = results.concat(
|
|
11872
|
+
mapFn ? mapFn(result.value, done) : result.value.data
|
|
11873
|
+
)
|
|
11874
|
+
if (earlyExit) {
|
|
11875
|
+
return results
|
|
11876
|
+
}
|
|
11877
|
+
return gather(octokit, results, iterator2, mapFn)
|
|
11878
|
+
})
|
|
11879
|
+
}
|
|
11880
|
+
|
|
11881
|
+
// pkg/dist-src/compose-paginate.js
|
|
11882
|
+
Object.assign(paginate, {
|
|
11883
|
+
iterator
|
|
11884
|
+
})
|
|
11885
|
+
|
|
11886
|
+
// pkg/dist-src/index.js
|
|
11887
|
+
function paginateRest(octokit) {
|
|
11888
|
+
return {
|
|
11889
|
+
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
11890
|
+
iterator: iterator.bind(null, octokit)
|
|
11891
|
+
})
|
|
11892
|
+
}
|
|
11893
|
+
}
|
|
11894
|
+
paginateRest.VERSION = VERSION$2
|
|
11895
|
+
|
|
11896
|
+
const VERSION$1 = '13.5.0'
|
|
11897
|
+
|
|
11898
|
+
const Endpoints = {
|
|
11899
|
+
actions: {
|
|
11900
|
+
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
11901
|
+
'POST /orgs/{org}/actions/runners/{runner_id}/labels'
|
|
11902
|
+
],
|
|
11903
|
+
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
11904
|
+
'POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels'
|
|
11905
|
+
],
|
|
11906
|
+
addRepoAccessToSelfHostedRunnerGroupInOrg: [
|
|
11907
|
+
'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}'
|
|
11908
|
+
],
|
|
11909
|
+
addSelectedRepoToOrgSecret: [
|
|
11910
|
+
'PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}'
|
|
11911
|
+
],
|
|
11912
|
+
addSelectedRepoToOrgVariable: [
|
|
11913
|
+
'PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}'
|
|
11914
|
+
],
|
|
11915
|
+
approveWorkflowRun: [
|
|
11916
|
+
'POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve'
|
|
11917
|
+
],
|
|
11918
|
+
cancelWorkflowRun: [
|
|
11919
|
+
'POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel'
|
|
11920
|
+
],
|
|
11921
|
+
createEnvironmentVariable: [
|
|
11922
|
+
'POST /repos/{owner}/{repo}/environments/{environment_name}/variables'
|
|
11923
|
+
],
|
|
11924
|
+
createHostedRunnerForOrg: ['POST /orgs/{org}/actions/hosted-runners'],
|
|
11925
|
+
createOrUpdateEnvironmentSecret: [
|
|
11926
|
+
'PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}'
|
|
11927
|
+
],
|
|
11928
|
+
createOrUpdateOrgSecret: ['PUT /orgs/{org}/actions/secrets/{secret_name}'],
|
|
11929
|
+
createOrUpdateRepoSecret: [
|
|
11930
|
+
'PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}'
|
|
11931
|
+
],
|
|
11932
|
+
createOrgVariable: ['POST /orgs/{org}/actions/variables'],
|
|
11933
|
+
createRegistrationTokenForOrg: [
|
|
11934
|
+
'POST /orgs/{org}/actions/runners/registration-token'
|
|
11935
|
+
],
|
|
11936
|
+
createRegistrationTokenForRepo: [
|
|
11937
|
+
'POST /repos/{owner}/{repo}/actions/runners/registration-token'
|
|
11938
|
+
],
|
|
11939
|
+
createRemoveTokenForOrg: ['POST /orgs/{org}/actions/runners/remove-token'],
|
|
11940
|
+
createRemoveTokenForRepo: [
|
|
11941
|
+
'POST /repos/{owner}/{repo}/actions/runners/remove-token'
|
|
11942
|
+
],
|
|
11943
|
+
createRepoVariable: ['POST /repos/{owner}/{repo}/actions/variables'],
|
|
11944
|
+
createWorkflowDispatch: [
|
|
11945
|
+
'POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches'
|
|
11946
|
+
],
|
|
11947
|
+
deleteActionsCacheById: [
|
|
11948
|
+
'DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}'
|
|
11949
|
+
],
|
|
11950
|
+
deleteActionsCacheByKey: [
|
|
11951
|
+
'DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}'
|
|
11952
|
+
],
|
|
11953
|
+
deleteArtifact: [
|
|
11954
|
+
'DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}'
|
|
11955
|
+
],
|
|
11956
|
+
deleteEnvironmentSecret: [
|
|
11957
|
+
'DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}'
|
|
11958
|
+
],
|
|
11959
|
+
deleteEnvironmentVariable: [
|
|
11960
|
+
'DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}'
|
|
11961
|
+
],
|
|
11962
|
+
deleteHostedRunnerForOrg: [
|
|
11963
|
+
'DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}'
|
|
11964
|
+
],
|
|
11965
|
+
deleteOrgSecret: ['DELETE /orgs/{org}/actions/secrets/{secret_name}'],
|
|
11966
|
+
deleteOrgVariable: ['DELETE /orgs/{org}/actions/variables/{name}'],
|
|
11967
|
+
deleteRepoSecret: [
|
|
11968
|
+
'DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}'
|
|
11969
|
+
],
|
|
11970
|
+
deleteRepoVariable: [
|
|
11971
|
+
'DELETE /repos/{owner}/{repo}/actions/variables/{name}'
|
|
11972
|
+
],
|
|
11973
|
+
deleteSelfHostedRunnerFromOrg: [
|
|
11974
|
+
'DELETE /orgs/{org}/actions/runners/{runner_id}'
|
|
11975
|
+
],
|
|
11976
|
+
deleteSelfHostedRunnerFromRepo: [
|
|
11977
|
+
'DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}'
|
|
11978
|
+
],
|
|
11979
|
+
deleteWorkflowRun: ['DELETE /repos/{owner}/{repo}/actions/runs/{run_id}'],
|
|
11980
|
+
deleteWorkflowRunLogs: [
|
|
11981
|
+
'DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs'
|
|
11982
|
+
],
|
|
11983
|
+
disableSelectedRepositoryGithubActionsOrganization: [
|
|
11984
|
+
'DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}'
|
|
11985
|
+
],
|
|
11986
|
+
disableWorkflow: [
|
|
11987
|
+
'PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable'
|
|
11988
|
+
],
|
|
11989
|
+
downloadArtifact: [
|
|
11990
|
+
'GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}'
|
|
11991
|
+
],
|
|
11992
|
+
downloadJobLogsForWorkflowRun: [
|
|
11993
|
+
'GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs'
|
|
11994
|
+
],
|
|
11995
|
+
downloadWorkflowRunAttemptLogs: [
|
|
11996
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs'
|
|
11997
|
+
],
|
|
11998
|
+
downloadWorkflowRunLogs: [
|
|
11999
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs'
|
|
12000
|
+
],
|
|
12001
|
+
enableSelectedRepositoryGithubActionsOrganization: [
|
|
12002
|
+
'PUT /orgs/{org}/actions/permissions/repositories/{repository_id}'
|
|
12003
|
+
],
|
|
12004
|
+
enableWorkflow: [
|
|
12005
|
+
'PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable'
|
|
12006
|
+
],
|
|
12007
|
+
forceCancelWorkflowRun: [
|
|
12008
|
+
'POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel'
|
|
12009
|
+
],
|
|
12010
|
+
generateRunnerJitconfigForOrg: [
|
|
12011
|
+
'POST /orgs/{org}/actions/runners/generate-jitconfig'
|
|
12012
|
+
],
|
|
12013
|
+
generateRunnerJitconfigForRepo: [
|
|
12014
|
+
'POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig'
|
|
12015
|
+
],
|
|
12016
|
+
getActionsCacheList: ['GET /repos/{owner}/{repo}/actions/caches'],
|
|
12017
|
+
getActionsCacheUsage: ['GET /repos/{owner}/{repo}/actions/cache/usage'],
|
|
12018
|
+
getActionsCacheUsageByRepoForOrg: [
|
|
12019
|
+
'GET /orgs/{org}/actions/cache/usage-by-repository'
|
|
12020
|
+
],
|
|
12021
|
+
getActionsCacheUsageForOrg: ['GET /orgs/{org}/actions/cache/usage'],
|
|
12022
|
+
getAllowedActionsOrganization: [
|
|
12023
|
+
'GET /orgs/{org}/actions/permissions/selected-actions'
|
|
12024
|
+
],
|
|
12025
|
+
getAllowedActionsRepository: [
|
|
12026
|
+
'GET /repos/{owner}/{repo}/actions/permissions/selected-actions'
|
|
12027
|
+
],
|
|
12028
|
+
getArtifact: ['GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}'],
|
|
12029
|
+
getCustomOidcSubClaimForRepo: [
|
|
12030
|
+
'GET /repos/{owner}/{repo}/actions/oidc/customization/sub'
|
|
12031
|
+
],
|
|
12032
|
+
getEnvironmentPublicKey: [
|
|
12033
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key'
|
|
12034
|
+
],
|
|
12035
|
+
getEnvironmentSecret: [
|
|
12036
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}'
|
|
12037
|
+
],
|
|
12038
|
+
getEnvironmentVariable: [
|
|
12039
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}'
|
|
12040
|
+
],
|
|
12041
|
+
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
12042
|
+
'GET /orgs/{org}/actions/permissions/workflow'
|
|
12043
|
+
],
|
|
12044
|
+
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
12045
|
+
'GET /repos/{owner}/{repo}/actions/permissions/workflow'
|
|
12046
|
+
],
|
|
12047
|
+
getGithubActionsPermissionsOrganization: [
|
|
12048
|
+
'GET /orgs/{org}/actions/permissions'
|
|
12049
|
+
],
|
|
12050
|
+
getGithubActionsPermissionsRepository: [
|
|
12051
|
+
'GET /repos/{owner}/{repo}/actions/permissions'
|
|
12052
|
+
],
|
|
12053
|
+
getHostedRunnerForOrg: [
|
|
12054
|
+
'GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}'
|
|
12055
|
+
],
|
|
12056
|
+
getHostedRunnersGithubOwnedImagesForOrg: [
|
|
12057
|
+
'GET /orgs/{org}/actions/hosted-runners/images/github-owned'
|
|
12058
|
+
],
|
|
12059
|
+
getHostedRunnersLimitsForOrg: [
|
|
12060
|
+
'GET /orgs/{org}/actions/hosted-runners/limits'
|
|
12061
|
+
],
|
|
12062
|
+
getHostedRunnersMachineSpecsForOrg: [
|
|
12063
|
+
'GET /orgs/{org}/actions/hosted-runners/machine-sizes'
|
|
12064
|
+
],
|
|
12065
|
+
getHostedRunnersPartnerImagesForOrg: [
|
|
12066
|
+
'GET /orgs/{org}/actions/hosted-runners/images/partner'
|
|
12067
|
+
],
|
|
12068
|
+
getHostedRunnersPlatformsForOrg: [
|
|
12069
|
+
'GET /orgs/{org}/actions/hosted-runners/platforms'
|
|
12070
|
+
],
|
|
12071
|
+
getJobForWorkflowRun: ['GET /repos/{owner}/{repo}/actions/jobs/{job_id}'],
|
|
12072
|
+
getOrgPublicKey: ['GET /orgs/{org}/actions/secrets/public-key'],
|
|
12073
|
+
getOrgSecret: ['GET /orgs/{org}/actions/secrets/{secret_name}'],
|
|
12074
|
+
getOrgVariable: ['GET /orgs/{org}/actions/variables/{name}'],
|
|
12075
|
+
getPendingDeploymentsForRun: [
|
|
12076
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments'
|
|
12077
|
+
],
|
|
12078
|
+
getRepoPermissions: [
|
|
12079
|
+
'GET /repos/{owner}/{repo}/actions/permissions',
|
|
12080
|
+
{},
|
|
12081
|
+
{
|
|
12082
|
+
renamed: ['actions', 'getGithubActionsPermissionsRepository']
|
|
12083
|
+
}
|
|
12084
|
+
],
|
|
12085
|
+
getRepoPublicKey: ['GET /repos/{owner}/{repo}/actions/secrets/public-key'],
|
|
12086
|
+
getRepoSecret: ['GET /repos/{owner}/{repo}/actions/secrets/{secret_name}'],
|
|
12087
|
+
getRepoVariable: ['GET /repos/{owner}/{repo}/actions/variables/{name}'],
|
|
12088
|
+
getReviewsForRun: [
|
|
12089
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals'
|
|
12090
|
+
],
|
|
12091
|
+
getSelfHostedRunnerForOrg: ['GET /orgs/{org}/actions/runners/{runner_id}'],
|
|
12092
|
+
getSelfHostedRunnerForRepo: [
|
|
12093
|
+
'GET /repos/{owner}/{repo}/actions/runners/{runner_id}'
|
|
12094
|
+
],
|
|
12095
|
+
getWorkflow: ['GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}'],
|
|
12096
|
+
getWorkflowAccessToRepository: [
|
|
12097
|
+
'GET /repos/{owner}/{repo}/actions/permissions/access'
|
|
12098
|
+
],
|
|
12099
|
+
getWorkflowRun: ['GET /repos/{owner}/{repo}/actions/runs/{run_id}'],
|
|
12100
|
+
getWorkflowRunAttempt: [
|
|
12101
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}'
|
|
12102
|
+
],
|
|
12103
|
+
getWorkflowRunUsage: [
|
|
12104
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing'
|
|
12105
|
+
],
|
|
12106
|
+
getWorkflowUsage: [
|
|
12107
|
+
'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing'
|
|
12108
|
+
],
|
|
12109
|
+
listArtifactsForRepo: ['GET /repos/{owner}/{repo}/actions/artifacts'],
|
|
12110
|
+
listEnvironmentSecrets: [
|
|
12111
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/secrets'
|
|
12112
|
+
],
|
|
12113
|
+
listEnvironmentVariables: [
|
|
12114
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/variables'
|
|
12115
|
+
],
|
|
12116
|
+
listGithubHostedRunnersInGroupForOrg: [
|
|
12117
|
+
'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners'
|
|
12118
|
+
],
|
|
12119
|
+
listHostedRunnersForOrg: ['GET /orgs/{org}/actions/hosted-runners'],
|
|
12120
|
+
listJobsForWorkflowRun: [
|
|
12121
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs'
|
|
12122
|
+
],
|
|
12123
|
+
listJobsForWorkflowRunAttempt: [
|
|
12124
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs'
|
|
12125
|
+
],
|
|
12126
|
+
listLabelsForSelfHostedRunnerForOrg: [
|
|
12127
|
+
'GET /orgs/{org}/actions/runners/{runner_id}/labels'
|
|
12128
|
+
],
|
|
12129
|
+
listLabelsForSelfHostedRunnerForRepo: [
|
|
12130
|
+
'GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels'
|
|
12131
|
+
],
|
|
12132
|
+
listOrgSecrets: ['GET /orgs/{org}/actions/secrets'],
|
|
12133
|
+
listOrgVariables: ['GET /orgs/{org}/actions/variables'],
|
|
12134
|
+
listRepoOrganizationSecrets: [
|
|
12135
|
+
'GET /repos/{owner}/{repo}/actions/organization-secrets'
|
|
12136
|
+
],
|
|
12137
|
+
listRepoOrganizationVariables: [
|
|
12138
|
+
'GET /repos/{owner}/{repo}/actions/organization-variables'
|
|
12139
|
+
],
|
|
12140
|
+
listRepoSecrets: ['GET /repos/{owner}/{repo}/actions/secrets'],
|
|
12141
|
+
listRepoVariables: ['GET /repos/{owner}/{repo}/actions/variables'],
|
|
12142
|
+
listRepoWorkflows: ['GET /repos/{owner}/{repo}/actions/workflows'],
|
|
12143
|
+
listRunnerApplicationsForOrg: ['GET /orgs/{org}/actions/runners/downloads'],
|
|
12144
|
+
listRunnerApplicationsForRepo: [
|
|
12145
|
+
'GET /repos/{owner}/{repo}/actions/runners/downloads'
|
|
12146
|
+
],
|
|
12147
|
+
listSelectedReposForOrgSecret: [
|
|
12148
|
+
'GET /orgs/{org}/actions/secrets/{secret_name}/repositories'
|
|
12149
|
+
],
|
|
12150
|
+
listSelectedReposForOrgVariable: [
|
|
12151
|
+
'GET /orgs/{org}/actions/variables/{name}/repositories'
|
|
12152
|
+
],
|
|
12153
|
+
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
12154
|
+
'GET /orgs/{org}/actions/permissions/repositories'
|
|
12155
|
+
],
|
|
12156
|
+
listSelfHostedRunnersForOrg: ['GET /orgs/{org}/actions/runners'],
|
|
12157
|
+
listSelfHostedRunnersForRepo: ['GET /repos/{owner}/{repo}/actions/runners'],
|
|
12158
|
+
listWorkflowRunArtifacts: [
|
|
12159
|
+
'GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts'
|
|
12160
|
+
],
|
|
12161
|
+
listWorkflowRuns: [
|
|
12162
|
+
'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs'
|
|
12163
|
+
],
|
|
12164
|
+
listWorkflowRunsForRepo: ['GET /repos/{owner}/{repo}/actions/runs'],
|
|
12165
|
+
reRunJobForWorkflowRun: [
|
|
12166
|
+
'POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun'
|
|
12167
|
+
],
|
|
12168
|
+
reRunWorkflow: ['POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun'],
|
|
12169
|
+
reRunWorkflowFailedJobs: [
|
|
12170
|
+
'POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs'
|
|
12171
|
+
],
|
|
12172
|
+
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
12173
|
+
'DELETE /orgs/{org}/actions/runners/{runner_id}/labels'
|
|
12174
|
+
],
|
|
12175
|
+
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
12176
|
+
'DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels'
|
|
12177
|
+
],
|
|
12178
|
+
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
12179
|
+
'DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}'
|
|
12180
|
+
],
|
|
12181
|
+
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
12182
|
+
'DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}'
|
|
12183
|
+
],
|
|
12184
|
+
removeSelectedRepoFromOrgSecret: [
|
|
12185
|
+
'DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}'
|
|
12186
|
+
],
|
|
12187
|
+
removeSelectedRepoFromOrgVariable: [
|
|
12188
|
+
'DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}'
|
|
12189
|
+
],
|
|
12190
|
+
reviewCustomGatesForRun: [
|
|
12191
|
+
'POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule'
|
|
12192
|
+
],
|
|
12193
|
+
reviewPendingDeploymentsForRun: [
|
|
12194
|
+
'POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments'
|
|
12195
|
+
],
|
|
12196
|
+
setAllowedActionsOrganization: [
|
|
12197
|
+
'PUT /orgs/{org}/actions/permissions/selected-actions'
|
|
12198
|
+
],
|
|
12199
|
+
setAllowedActionsRepository: [
|
|
12200
|
+
'PUT /repos/{owner}/{repo}/actions/permissions/selected-actions'
|
|
12201
|
+
],
|
|
12202
|
+
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
12203
|
+
'PUT /orgs/{org}/actions/runners/{runner_id}/labels'
|
|
12204
|
+
],
|
|
12205
|
+
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
12206
|
+
'PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels'
|
|
12207
|
+
],
|
|
12208
|
+
setCustomOidcSubClaimForRepo: [
|
|
12209
|
+
'PUT /repos/{owner}/{repo}/actions/oidc/customization/sub'
|
|
12210
|
+
],
|
|
12211
|
+
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
12212
|
+
'PUT /orgs/{org}/actions/permissions/workflow'
|
|
12213
|
+
],
|
|
12214
|
+
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
12215
|
+
'PUT /repos/{owner}/{repo}/actions/permissions/workflow'
|
|
12216
|
+
],
|
|
12217
|
+
setGithubActionsPermissionsOrganization: [
|
|
12218
|
+
'PUT /orgs/{org}/actions/permissions'
|
|
12219
|
+
],
|
|
12220
|
+
setGithubActionsPermissionsRepository: [
|
|
12221
|
+
'PUT /repos/{owner}/{repo}/actions/permissions'
|
|
12222
|
+
],
|
|
12223
|
+
setSelectedReposForOrgSecret: [
|
|
12224
|
+
'PUT /orgs/{org}/actions/secrets/{secret_name}/repositories'
|
|
12225
|
+
],
|
|
12226
|
+
setSelectedReposForOrgVariable: [
|
|
12227
|
+
'PUT /orgs/{org}/actions/variables/{name}/repositories'
|
|
12228
|
+
],
|
|
12229
|
+
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
12230
|
+
'PUT /orgs/{org}/actions/permissions/repositories'
|
|
12231
|
+
],
|
|
12232
|
+
setWorkflowAccessToRepository: [
|
|
12233
|
+
'PUT /repos/{owner}/{repo}/actions/permissions/access'
|
|
12234
|
+
],
|
|
12235
|
+
updateEnvironmentVariable: [
|
|
12236
|
+
'PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}'
|
|
12237
|
+
],
|
|
12238
|
+
updateHostedRunnerForOrg: [
|
|
12239
|
+
'PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}'
|
|
12240
|
+
],
|
|
12241
|
+
updateOrgVariable: ['PATCH /orgs/{org}/actions/variables/{name}'],
|
|
12242
|
+
updateRepoVariable: ['PATCH /repos/{owner}/{repo}/actions/variables/{name}']
|
|
12243
|
+
},
|
|
12244
|
+
activity: {
|
|
12245
|
+
checkRepoIsStarredByAuthenticatedUser: ['GET /user/starred/{owner}/{repo}'],
|
|
12246
|
+
deleteRepoSubscription: ['DELETE /repos/{owner}/{repo}/subscription'],
|
|
12247
|
+
deleteThreadSubscription: [
|
|
12248
|
+
'DELETE /notifications/threads/{thread_id}/subscription'
|
|
12249
|
+
],
|
|
12250
|
+
getFeeds: ['GET /feeds'],
|
|
12251
|
+
getRepoSubscription: ['GET /repos/{owner}/{repo}/subscription'],
|
|
12252
|
+
getThread: ['GET /notifications/threads/{thread_id}'],
|
|
12253
|
+
getThreadSubscriptionForAuthenticatedUser: [
|
|
12254
|
+
'GET /notifications/threads/{thread_id}/subscription'
|
|
12255
|
+
],
|
|
12256
|
+
listEventsForAuthenticatedUser: ['GET /users/{username}/events'],
|
|
12257
|
+
listNotificationsForAuthenticatedUser: ['GET /notifications'],
|
|
12258
|
+
listOrgEventsForAuthenticatedUser: [
|
|
12259
|
+
'GET /users/{username}/events/orgs/{org}'
|
|
12260
|
+
],
|
|
12261
|
+
listPublicEvents: ['GET /events'],
|
|
12262
|
+
listPublicEventsForRepoNetwork: ['GET /networks/{owner}/{repo}/events'],
|
|
12263
|
+
listPublicEventsForUser: ['GET /users/{username}/events/public'],
|
|
12264
|
+
listPublicOrgEvents: ['GET /orgs/{org}/events'],
|
|
12265
|
+
listReceivedEventsForUser: ['GET /users/{username}/received_events'],
|
|
12266
|
+
listReceivedPublicEventsForUser: [
|
|
12267
|
+
'GET /users/{username}/received_events/public'
|
|
12268
|
+
],
|
|
12269
|
+
listRepoEvents: ['GET /repos/{owner}/{repo}/events'],
|
|
12270
|
+
listRepoNotificationsForAuthenticatedUser: [
|
|
12271
|
+
'GET /repos/{owner}/{repo}/notifications'
|
|
12272
|
+
],
|
|
12273
|
+
listReposStarredByAuthenticatedUser: ['GET /user/starred'],
|
|
12274
|
+
listReposStarredByUser: ['GET /users/{username}/starred'],
|
|
12275
|
+
listReposWatchedByUser: ['GET /users/{username}/subscriptions'],
|
|
12276
|
+
listStargazersForRepo: ['GET /repos/{owner}/{repo}/stargazers'],
|
|
12277
|
+
listWatchedReposForAuthenticatedUser: ['GET /user/subscriptions'],
|
|
12278
|
+
listWatchersForRepo: ['GET /repos/{owner}/{repo}/subscribers'],
|
|
12279
|
+
markNotificationsAsRead: ['PUT /notifications'],
|
|
12280
|
+
markRepoNotificationsAsRead: ['PUT /repos/{owner}/{repo}/notifications'],
|
|
12281
|
+
markThreadAsDone: ['DELETE /notifications/threads/{thread_id}'],
|
|
12282
|
+
markThreadAsRead: ['PATCH /notifications/threads/{thread_id}'],
|
|
12283
|
+
setRepoSubscription: ['PUT /repos/{owner}/{repo}/subscription'],
|
|
12284
|
+
setThreadSubscription: [
|
|
12285
|
+
'PUT /notifications/threads/{thread_id}/subscription'
|
|
12286
|
+
],
|
|
12287
|
+
starRepoForAuthenticatedUser: ['PUT /user/starred/{owner}/{repo}'],
|
|
12288
|
+
unstarRepoForAuthenticatedUser: ['DELETE /user/starred/{owner}/{repo}']
|
|
12289
|
+
},
|
|
12290
|
+
apps: {
|
|
12291
|
+
addRepoToInstallation: [
|
|
12292
|
+
'PUT /user/installations/{installation_id}/repositories/{repository_id}',
|
|
12293
|
+
{},
|
|
12294
|
+
{
|
|
12295
|
+
renamed: ['apps', 'addRepoToInstallationForAuthenticatedUser']
|
|
12296
|
+
}
|
|
12297
|
+
],
|
|
12298
|
+
addRepoToInstallationForAuthenticatedUser: [
|
|
12299
|
+
'PUT /user/installations/{installation_id}/repositories/{repository_id}'
|
|
12300
|
+
],
|
|
12301
|
+
checkToken: ['POST /applications/{client_id}/token'],
|
|
12302
|
+
createFromManifest: ['POST /app-manifests/{code}/conversions'],
|
|
12303
|
+
createInstallationAccessToken: [
|
|
12304
|
+
'POST /app/installations/{installation_id}/access_tokens'
|
|
12305
|
+
],
|
|
12306
|
+
deleteAuthorization: ['DELETE /applications/{client_id}/grant'],
|
|
12307
|
+
deleteInstallation: ['DELETE /app/installations/{installation_id}'],
|
|
12308
|
+
deleteToken: ['DELETE /applications/{client_id}/token'],
|
|
12309
|
+
getAuthenticated: ['GET /app'],
|
|
12310
|
+
getBySlug: ['GET /apps/{app_slug}'],
|
|
12311
|
+
getInstallation: ['GET /app/installations/{installation_id}'],
|
|
12312
|
+
getOrgInstallation: ['GET /orgs/{org}/installation'],
|
|
12313
|
+
getRepoInstallation: ['GET /repos/{owner}/{repo}/installation'],
|
|
12314
|
+
getSubscriptionPlanForAccount: [
|
|
12315
|
+
'GET /marketplace_listing/accounts/{account_id}'
|
|
12316
|
+
],
|
|
12317
|
+
getSubscriptionPlanForAccountStubbed: [
|
|
12318
|
+
'GET /marketplace_listing/stubbed/accounts/{account_id}'
|
|
12319
|
+
],
|
|
12320
|
+
getUserInstallation: ['GET /users/{username}/installation'],
|
|
12321
|
+
getWebhookConfigForApp: ['GET /app/hook/config'],
|
|
12322
|
+
getWebhookDelivery: ['GET /app/hook/deliveries/{delivery_id}'],
|
|
12323
|
+
listAccountsForPlan: ['GET /marketplace_listing/plans/{plan_id}/accounts'],
|
|
12324
|
+
listAccountsForPlanStubbed: [
|
|
12325
|
+
'GET /marketplace_listing/stubbed/plans/{plan_id}/accounts'
|
|
12326
|
+
],
|
|
12327
|
+
listInstallationReposForAuthenticatedUser: [
|
|
12328
|
+
'GET /user/installations/{installation_id}/repositories'
|
|
12329
|
+
],
|
|
12330
|
+
listInstallationRequestsForAuthenticatedApp: [
|
|
12331
|
+
'GET /app/installation-requests'
|
|
12332
|
+
],
|
|
12333
|
+
listInstallations: ['GET /app/installations'],
|
|
12334
|
+
listInstallationsForAuthenticatedUser: ['GET /user/installations'],
|
|
12335
|
+
listPlans: ['GET /marketplace_listing/plans'],
|
|
12336
|
+
listPlansStubbed: ['GET /marketplace_listing/stubbed/plans'],
|
|
12337
|
+
listReposAccessibleToInstallation: ['GET /installation/repositories'],
|
|
12338
|
+
listSubscriptionsForAuthenticatedUser: ['GET /user/marketplace_purchases'],
|
|
12339
|
+
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
12340
|
+
'GET /user/marketplace_purchases/stubbed'
|
|
12341
|
+
],
|
|
12342
|
+
listWebhookDeliveries: ['GET /app/hook/deliveries'],
|
|
12343
|
+
redeliverWebhookDelivery: [
|
|
12344
|
+
'POST /app/hook/deliveries/{delivery_id}/attempts'
|
|
12345
|
+
],
|
|
12346
|
+
removeRepoFromInstallation: [
|
|
12347
|
+
'DELETE /user/installations/{installation_id}/repositories/{repository_id}',
|
|
12348
|
+
{},
|
|
12349
|
+
{
|
|
12350
|
+
renamed: ['apps', 'removeRepoFromInstallationForAuthenticatedUser']
|
|
12351
|
+
}
|
|
12352
|
+
],
|
|
12353
|
+
removeRepoFromInstallationForAuthenticatedUser: [
|
|
12354
|
+
'DELETE /user/installations/{installation_id}/repositories/{repository_id}'
|
|
12355
|
+
],
|
|
12356
|
+
resetToken: ['PATCH /applications/{client_id}/token'],
|
|
12357
|
+
revokeInstallationAccessToken: ['DELETE /installation/token'],
|
|
12358
|
+
scopeToken: ['POST /applications/{client_id}/token/scoped'],
|
|
12359
|
+
suspendInstallation: ['PUT /app/installations/{installation_id}/suspended'],
|
|
12360
|
+
unsuspendInstallation: [
|
|
12361
|
+
'DELETE /app/installations/{installation_id}/suspended'
|
|
12362
|
+
],
|
|
12363
|
+
updateWebhookConfigForApp: ['PATCH /app/hook/config']
|
|
12364
|
+
},
|
|
12365
|
+
billing: {
|
|
12366
|
+
getGithubActionsBillingOrg: ['GET /orgs/{org}/settings/billing/actions'],
|
|
12367
|
+
getGithubActionsBillingUser: [
|
|
12368
|
+
'GET /users/{username}/settings/billing/actions'
|
|
12369
|
+
],
|
|
12370
|
+
getGithubBillingUsageReportOrg: [
|
|
12371
|
+
'GET /organizations/{org}/settings/billing/usage'
|
|
12372
|
+
],
|
|
12373
|
+
getGithubPackagesBillingOrg: ['GET /orgs/{org}/settings/billing/packages'],
|
|
12374
|
+
getGithubPackagesBillingUser: [
|
|
12375
|
+
'GET /users/{username}/settings/billing/packages'
|
|
12376
|
+
],
|
|
12377
|
+
getSharedStorageBillingOrg: [
|
|
12378
|
+
'GET /orgs/{org}/settings/billing/shared-storage'
|
|
12379
|
+
],
|
|
12380
|
+
getSharedStorageBillingUser: [
|
|
12381
|
+
'GET /users/{username}/settings/billing/shared-storage'
|
|
12382
|
+
]
|
|
12383
|
+
},
|
|
12384
|
+
checks: {
|
|
12385
|
+
create: ['POST /repos/{owner}/{repo}/check-runs'],
|
|
12386
|
+
createSuite: ['POST /repos/{owner}/{repo}/check-suites'],
|
|
12387
|
+
get: ['GET /repos/{owner}/{repo}/check-runs/{check_run_id}'],
|
|
12388
|
+
getSuite: ['GET /repos/{owner}/{repo}/check-suites/{check_suite_id}'],
|
|
12389
|
+
listAnnotations: [
|
|
12390
|
+
'GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations'
|
|
12391
|
+
],
|
|
12392
|
+
listForRef: ['GET /repos/{owner}/{repo}/commits/{ref}/check-runs'],
|
|
12393
|
+
listForSuite: [
|
|
12394
|
+
'GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs'
|
|
12395
|
+
],
|
|
12396
|
+
listSuitesForRef: ['GET /repos/{owner}/{repo}/commits/{ref}/check-suites'],
|
|
12397
|
+
rerequestRun: [
|
|
12398
|
+
'POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest'
|
|
12399
|
+
],
|
|
12400
|
+
rerequestSuite: [
|
|
12401
|
+
'POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest'
|
|
12402
|
+
],
|
|
12403
|
+
setSuitesPreferences: [
|
|
12404
|
+
'PATCH /repos/{owner}/{repo}/check-suites/preferences'
|
|
12405
|
+
],
|
|
12406
|
+
update: ['PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}']
|
|
12407
|
+
},
|
|
12408
|
+
codeScanning: {
|
|
12409
|
+
commitAutofix: [
|
|
12410
|
+
'POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits'
|
|
12411
|
+
],
|
|
12412
|
+
createAutofix: [
|
|
12413
|
+
'POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix'
|
|
12414
|
+
],
|
|
12415
|
+
createVariantAnalysis: [
|
|
12416
|
+
'POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses'
|
|
12417
|
+
],
|
|
12418
|
+
deleteAnalysis: [
|
|
12419
|
+
'DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}'
|
|
12420
|
+
],
|
|
12421
|
+
deleteCodeqlDatabase: [
|
|
12422
|
+
'DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}'
|
|
12423
|
+
],
|
|
12424
|
+
getAlert: [
|
|
12425
|
+
'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}',
|
|
12426
|
+
{},
|
|
12427
|
+
{
|
|
12428
|
+
renamedParameters: {
|
|
12429
|
+
alert_id: 'alert_number'
|
|
12430
|
+
}
|
|
12431
|
+
}
|
|
12432
|
+
],
|
|
12433
|
+
getAnalysis: [
|
|
12434
|
+
'GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}'
|
|
12435
|
+
],
|
|
12436
|
+
getAutofix: [
|
|
12437
|
+
'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix'
|
|
12438
|
+
],
|
|
12439
|
+
getCodeqlDatabase: [
|
|
12440
|
+
'GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}'
|
|
12441
|
+
],
|
|
12442
|
+
getDefaultSetup: ['GET /repos/{owner}/{repo}/code-scanning/default-setup'],
|
|
12443
|
+
getSarif: ['GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}'],
|
|
12444
|
+
getVariantAnalysis: [
|
|
12445
|
+
'GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}'
|
|
12446
|
+
],
|
|
12447
|
+
getVariantAnalysisRepoTask: [
|
|
12448
|
+
'GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}'
|
|
12449
|
+
],
|
|
12450
|
+
listAlertInstances: [
|
|
12451
|
+
'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances'
|
|
12452
|
+
],
|
|
12453
|
+
listAlertsForOrg: ['GET /orgs/{org}/code-scanning/alerts'],
|
|
12454
|
+
listAlertsForRepo: ['GET /repos/{owner}/{repo}/code-scanning/alerts'],
|
|
12455
|
+
listAlertsInstances: [
|
|
12456
|
+
'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances',
|
|
12457
|
+
{},
|
|
12458
|
+
{
|
|
12459
|
+
renamed: ['codeScanning', 'listAlertInstances']
|
|
12460
|
+
}
|
|
12461
|
+
],
|
|
12462
|
+
listCodeqlDatabases: [
|
|
12463
|
+
'GET /repos/{owner}/{repo}/code-scanning/codeql/databases'
|
|
12464
|
+
],
|
|
12465
|
+
listRecentAnalyses: ['GET /repos/{owner}/{repo}/code-scanning/analyses'],
|
|
12466
|
+
updateAlert: [
|
|
12467
|
+
'PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}'
|
|
12468
|
+
],
|
|
12469
|
+
updateDefaultSetup: [
|
|
12470
|
+
'PATCH /repos/{owner}/{repo}/code-scanning/default-setup'
|
|
12471
|
+
],
|
|
12472
|
+
uploadSarif: ['POST /repos/{owner}/{repo}/code-scanning/sarifs']
|
|
12473
|
+
},
|
|
12474
|
+
codeSecurity: {
|
|
12475
|
+
attachConfiguration: [
|
|
12476
|
+
'POST /orgs/{org}/code-security/configurations/{configuration_id}/attach'
|
|
12477
|
+
],
|
|
12478
|
+
attachEnterpriseConfiguration: [
|
|
12479
|
+
'POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach'
|
|
12480
|
+
],
|
|
12481
|
+
createConfiguration: ['POST /orgs/{org}/code-security/configurations'],
|
|
12482
|
+
createConfigurationForEnterprise: [
|
|
12483
|
+
'POST /enterprises/{enterprise}/code-security/configurations'
|
|
12484
|
+
],
|
|
12485
|
+
deleteConfiguration: [
|
|
12486
|
+
'DELETE /orgs/{org}/code-security/configurations/{configuration_id}'
|
|
12487
|
+
],
|
|
12488
|
+
deleteConfigurationForEnterprise: [
|
|
12489
|
+
'DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}'
|
|
12490
|
+
],
|
|
12491
|
+
detachConfiguration: [
|
|
12492
|
+
'DELETE /orgs/{org}/code-security/configurations/detach'
|
|
12493
|
+
],
|
|
12494
|
+
getConfiguration: [
|
|
12495
|
+
'GET /orgs/{org}/code-security/configurations/{configuration_id}'
|
|
12496
|
+
],
|
|
12497
|
+
getConfigurationForRepository: [
|
|
12498
|
+
'GET /repos/{owner}/{repo}/code-security-configuration'
|
|
12499
|
+
],
|
|
12500
|
+
getConfigurationsForEnterprise: [
|
|
12501
|
+
'GET /enterprises/{enterprise}/code-security/configurations'
|
|
12502
|
+
],
|
|
12503
|
+
getConfigurationsForOrg: ['GET /orgs/{org}/code-security/configurations'],
|
|
12504
|
+
getDefaultConfigurations: [
|
|
12505
|
+
'GET /orgs/{org}/code-security/configurations/defaults'
|
|
12506
|
+
],
|
|
12507
|
+
getDefaultConfigurationsForEnterprise: [
|
|
12508
|
+
'GET /enterprises/{enterprise}/code-security/configurations/defaults'
|
|
12509
|
+
],
|
|
12510
|
+
getRepositoriesForConfiguration: [
|
|
12511
|
+
'GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories'
|
|
12512
|
+
],
|
|
12513
|
+
getRepositoriesForEnterpriseConfiguration: [
|
|
12514
|
+
'GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories'
|
|
12515
|
+
],
|
|
12516
|
+
getSingleConfigurationForEnterprise: [
|
|
12517
|
+
'GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}'
|
|
12518
|
+
],
|
|
12519
|
+
setConfigurationAsDefault: [
|
|
12520
|
+
'PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults'
|
|
12521
|
+
],
|
|
12522
|
+
setConfigurationAsDefaultForEnterprise: [
|
|
12523
|
+
'PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults'
|
|
12524
|
+
],
|
|
12525
|
+
updateConfiguration: [
|
|
12526
|
+
'PATCH /orgs/{org}/code-security/configurations/{configuration_id}'
|
|
12527
|
+
],
|
|
12528
|
+
updateEnterpriseConfiguration: [
|
|
12529
|
+
'PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}'
|
|
12530
|
+
]
|
|
12531
|
+
},
|
|
12532
|
+
codesOfConduct: {
|
|
12533
|
+
getAllCodesOfConduct: ['GET /codes_of_conduct'],
|
|
12534
|
+
getConductCode: ['GET /codes_of_conduct/{key}']
|
|
12535
|
+
},
|
|
12536
|
+
codespaces: {
|
|
12537
|
+
addRepositoryForSecretForAuthenticatedUser: [
|
|
12538
|
+
'PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}'
|
|
12539
|
+
],
|
|
12540
|
+
addSelectedRepoToOrgSecret: [
|
|
12541
|
+
'PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}'
|
|
12542
|
+
],
|
|
12543
|
+
checkPermissionsForDevcontainer: [
|
|
12544
|
+
'GET /repos/{owner}/{repo}/codespaces/permissions_check'
|
|
12545
|
+
],
|
|
12546
|
+
codespaceMachinesForAuthenticatedUser: [
|
|
12547
|
+
'GET /user/codespaces/{codespace_name}/machines'
|
|
12548
|
+
],
|
|
12549
|
+
createForAuthenticatedUser: ['POST /user/codespaces'],
|
|
12550
|
+
createOrUpdateOrgSecret: [
|
|
12551
|
+
'PUT /orgs/{org}/codespaces/secrets/{secret_name}'
|
|
12552
|
+
],
|
|
12553
|
+
createOrUpdateRepoSecret: [
|
|
12554
|
+
'PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}'
|
|
12555
|
+
],
|
|
12556
|
+
createOrUpdateSecretForAuthenticatedUser: [
|
|
12557
|
+
'PUT /user/codespaces/secrets/{secret_name}'
|
|
12558
|
+
],
|
|
12559
|
+
createWithPrForAuthenticatedUser: [
|
|
12560
|
+
'POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces'
|
|
12561
|
+
],
|
|
12562
|
+
createWithRepoForAuthenticatedUser: [
|
|
12563
|
+
'POST /repos/{owner}/{repo}/codespaces'
|
|
12564
|
+
],
|
|
12565
|
+
deleteForAuthenticatedUser: ['DELETE /user/codespaces/{codespace_name}'],
|
|
12566
|
+
deleteFromOrganization: [
|
|
12567
|
+
'DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}'
|
|
12568
|
+
],
|
|
12569
|
+
deleteOrgSecret: ['DELETE /orgs/{org}/codespaces/secrets/{secret_name}'],
|
|
12570
|
+
deleteRepoSecret: [
|
|
12571
|
+
'DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}'
|
|
12572
|
+
],
|
|
12573
|
+
deleteSecretForAuthenticatedUser: [
|
|
12574
|
+
'DELETE /user/codespaces/secrets/{secret_name}'
|
|
12575
|
+
],
|
|
12576
|
+
exportForAuthenticatedUser: [
|
|
12577
|
+
'POST /user/codespaces/{codespace_name}/exports'
|
|
12578
|
+
],
|
|
12579
|
+
getCodespacesForUserInOrg: [
|
|
12580
|
+
'GET /orgs/{org}/members/{username}/codespaces'
|
|
12581
|
+
],
|
|
12582
|
+
getExportDetailsForAuthenticatedUser: [
|
|
12583
|
+
'GET /user/codespaces/{codespace_name}/exports/{export_id}'
|
|
12584
|
+
],
|
|
12585
|
+
getForAuthenticatedUser: ['GET /user/codespaces/{codespace_name}'],
|
|
12586
|
+
getOrgPublicKey: ['GET /orgs/{org}/codespaces/secrets/public-key'],
|
|
12587
|
+
getOrgSecret: ['GET /orgs/{org}/codespaces/secrets/{secret_name}'],
|
|
12588
|
+
getPublicKeyForAuthenticatedUser: [
|
|
12589
|
+
'GET /user/codespaces/secrets/public-key'
|
|
12590
|
+
],
|
|
12591
|
+
getRepoPublicKey: [
|
|
12592
|
+
'GET /repos/{owner}/{repo}/codespaces/secrets/public-key'
|
|
12593
|
+
],
|
|
12594
|
+
getRepoSecret: [
|
|
12595
|
+
'GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}'
|
|
12596
|
+
],
|
|
12597
|
+
getSecretForAuthenticatedUser: [
|
|
12598
|
+
'GET /user/codespaces/secrets/{secret_name}'
|
|
12599
|
+
],
|
|
12600
|
+
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
12601
|
+
'GET /repos/{owner}/{repo}/codespaces/devcontainers'
|
|
12602
|
+
],
|
|
12603
|
+
listForAuthenticatedUser: ['GET /user/codespaces'],
|
|
12604
|
+
listInOrganization: [
|
|
12605
|
+
'GET /orgs/{org}/codespaces',
|
|
12606
|
+
{},
|
|
12607
|
+
{
|
|
12608
|
+
renamedParameters: {
|
|
12609
|
+
org_id: 'org'
|
|
12610
|
+
}
|
|
12611
|
+
}
|
|
12612
|
+
],
|
|
12613
|
+
listInRepositoryForAuthenticatedUser: [
|
|
12614
|
+
'GET /repos/{owner}/{repo}/codespaces'
|
|
12615
|
+
],
|
|
12616
|
+
listOrgSecrets: ['GET /orgs/{org}/codespaces/secrets'],
|
|
12617
|
+
listRepoSecrets: ['GET /repos/{owner}/{repo}/codespaces/secrets'],
|
|
12618
|
+
listRepositoriesForSecretForAuthenticatedUser: [
|
|
12619
|
+
'GET /user/codespaces/secrets/{secret_name}/repositories'
|
|
12620
|
+
],
|
|
12621
|
+
listSecretsForAuthenticatedUser: ['GET /user/codespaces/secrets'],
|
|
12622
|
+
listSelectedReposForOrgSecret: [
|
|
12623
|
+
'GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories'
|
|
12624
|
+
],
|
|
12625
|
+
preFlightWithRepoForAuthenticatedUser: [
|
|
12626
|
+
'GET /repos/{owner}/{repo}/codespaces/new'
|
|
12627
|
+
],
|
|
12628
|
+
publishForAuthenticatedUser: [
|
|
12629
|
+
'POST /user/codespaces/{codespace_name}/publish'
|
|
12630
|
+
],
|
|
12631
|
+
removeRepositoryForSecretForAuthenticatedUser: [
|
|
12632
|
+
'DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}'
|
|
12633
|
+
],
|
|
12634
|
+
removeSelectedRepoFromOrgSecret: [
|
|
12635
|
+
'DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}'
|
|
12636
|
+
],
|
|
12637
|
+
repoMachinesForAuthenticatedUser: [
|
|
12638
|
+
'GET /repos/{owner}/{repo}/codespaces/machines'
|
|
12639
|
+
],
|
|
12640
|
+
setRepositoriesForSecretForAuthenticatedUser: [
|
|
12641
|
+
'PUT /user/codespaces/secrets/{secret_name}/repositories'
|
|
12642
|
+
],
|
|
12643
|
+
setSelectedReposForOrgSecret: [
|
|
12644
|
+
'PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories'
|
|
12645
|
+
],
|
|
12646
|
+
startForAuthenticatedUser: ['POST /user/codespaces/{codespace_name}/start'],
|
|
12647
|
+
stopForAuthenticatedUser: ['POST /user/codespaces/{codespace_name}/stop'],
|
|
12648
|
+
stopInOrganization: [
|
|
12649
|
+
'POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop'
|
|
12650
|
+
],
|
|
12651
|
+
updateForAuthenticatedUser: ['PATCH /user/codespaces/{codespace_name}']
|
|
12652
|
+
},
|
|
12653
|
+
copilot: {
|
|
12654
|
+
addCopilotSeatsForTeams: [
|
|
12655
|
+
'POST /orgs/{org}/copilot/billing/selected_teams'
|
|
12656
|
+
],
|
|
12657
|
+
addCopilotSeatsForUsers: [
|
|
12658
|
+
'POST /orgs/{org}/copilot/billing/selected_users'
|
|
12659
|
+
],
|
|
12660
|
+
cancelCopilotSeatAssignmentForTeams: [
|
|
12661
|
+
'DELETE /orgs/{org}/copilot/billing/selected_teams'
|
|
12662
|
+
],
|
|
12663
|
+
cancelCopilotSeatAssignmentForUsers: [
|
|
12664
|
+
'DELETE /orgs/{org}/copilot/billing/selected_users'
|
|
12665
|
+
],
|
|
12666
|
+
copilotMetricsForOrganization: ['GET /orgs/{org}/copilot/metrics'],
|
|
12667
|
+
copilotMetricsForTeam: ['GET /orgs/{org}/team/{team_slug}/copilot/metrics'],
|
|
12668
|
+
getCopilotOrganizationDetails: ['GET /orgs/{org}/copilot/billing'],
|
|
12669
|
+
getCopilotSeatDetailsForUser: [
|
|
12670
|
+
'GET /orgs/{org}/members/{username}/copilot'
|
|
12671
|
+
],
|
|
12672
|
+
listCopilotSeats: ['GET /orgs/{org}/copilot/billing/seats'],
|
|
12673
|
+
usageMetricsForOrg: ['GET /orgs/{org}/copilot/usage'],
|
|
12674
|
+
usageMetricsForTeam: ['GET /orgs/{org}/team/{team_slug}/copilot/usage']
|
|
12675
|
+
},
|
|
12676
|
+
dependabot: {
|
|
12677
|
+
addSelectedRepoToOrgSecret: [
|
|
12678
|
+
'PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}'
|
|
12679
|
+
],
|
|
12680
|
+
createOrUpdateOrgSecret: [
|
|
12681
|
+
'PUT /orgs/{org}/dependabot/secrets/{secret_name}'
|
|
12682
|
+
],
|
|
12683
|
+
createOrUpdateRepoSecret: [
|
|
12684
|
+
'PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}'
|
|
12685
|
+
],
|
|
12686
|
+
deleteOrgSecret: ['DELETE /orgs/{org}/dependabot/secrets/{secret_name}'],
|
|
12687
|
+
deleteRepoSecret: [
|
|
12688
|
+
'DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}'
|
|
12689
|
+
],
|
|
12690
|
+
getAlert: ['GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}'],
|
|
12691
|
+
getOrgPublicKey: ['GET /orgs/{org}/dependabot/secrets/public-key'],
|
|
12692
|
+
getOrgSecret: ['GET /orgs/{org}/dependabot/secrets/{secret_name}'],
|
|
12693
|
+
getRepoPublicKey: [
|
|
12694
|
+
'GET /repos/{owner}/{repo}/dependabot/secrets/public-key'
|
|
12695
|
+
],
|
|
12696
|
+
getRepoSecret: [
|
|
12697
|
+
'GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}'
|
|
12698
|
+
],
|
|
12699
|
+
listAlertsForEnterprise: [
|
|
12700
|
+
'GET /enterprises/{enterprise}/dependabot/alerts'
|
|
12701
|
+
],
|
|
12702
|
+
listAlertsForOrg: ['GET /orgs/{org}/dependabot/alerts'],
|
|
12703
|
+
listAlertsForRepo: ['GET /repos/{owner}/{repo}/dependabot/alerts'],
|
|
12704
|
+
listOrgSecrets: ['GET /orgs/{org}/dependabot/secrets'],
|
|
12705
|
+
listRepoSecrets: ['GET /repos/{owner}/{repo}/dependabot/secrets'],
|
|
12706
|
+
listSelectedReposForOrgSecret: [
|
|
12707
|
+
'GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories'
|
|
12708
|
+
],
|
|
12709
|
+
removeSelectedRepoFromOrgSecret: [
|
|
12710
|
+
'DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}'
|
|
12711
|
+
],
|
|
12712
|
+
setSelectedReposForOrgSecret: [
|
|
12713
|
+
'PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories'
|
|
12714
|
+
],
|
|
12715
|
+
updateAlert: [
|
|
12716
|
+
'PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}'
|
|
12717
|
+
]
|
|
12718
|
+
},
|
|
12719
|
+
dependencyGraph: {
|
|
12720
|
+
createRepositorySnapshot: [
|
|
12721
|
+
'POST /repos/{owner}/{repo}/dependency-graph/snapshots'
|
|
12722
|
+
],
|
|
12723
|
+
diffRange: [
|
|
12724
|
+
'GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}'
|
|
12725
|
+
],
|
|
12726
|
+
exportSbom: ['GET /repos/{owner}/{repo}/dependency-graph/sbom']
|
|
12727
|
+
},
|
|
12728
|
+
emojis: {
|
|
12729
|
+
get: ['GET /emojis']
|
|
12730
|
+
},
|
|
12731
|
+
gists: {
|
|
12732
|
+
checkIsStarred: ['GET /gists/{gist_id}/star'],
|
|
12733
|
+
create: ['POST /gists'],
|
|
12734
|
+
createComment: ['POST /gists/{gist_id}/comments'],
|
|
12735
|
+
delete: ['DELETE /gists/{gist_id}'],
|
|
12736
|
+
deleteComment: ['DELETE /gists/{gist_id}/comments/{comment_id}'],
|
|
12737
|
+
fork: ['POST /gists/{gist_id}/forks'],
|
|
12738
|
+
get: ['GET /gists/{gist_id}'],
|
|
12739
|
+
getComment: ['GET /gists/{gist_id}/comments/{comment_id}'],
|
|
12740
|
+
getRevision: ['GET /gists/{gist_id}/{sha}'],
|
|
12741
|
+
list: ['GET /gists'],
|
|
12742
|
+
listComments: ['GET /gists/{gist_id}/comments'],
|
|
12743
|
+
listCommits: ['GET /gists/{gist_id}/commits'],
|
|
12744
|
+
listForUser: ['GET /users/{username}/gists'],
|
|
12745
|
+
listForks: ['GET /gists/{gist_id}/forks'],
|
|
12746
|
+
listPublic: ['GET /gists/public'],
|
|
12747
|
+
listStarred: ['GET /gists/starred'],
|
|
12748
|
+
star: ['PUT /gists/{gist_id}/star'],
|
|
12749
|
+
unstar: ['DELETE /gists/{gist_id}/star'],
|
|
12750
|
+
update: ['PATCH /gists/{gist_id}'],
|
|
12751
|
+
updateComment: ['PATCH /gists/{gist_id}/comments/{comment_id}']
|
|
12752
|
+
},
|
|
12753
|
+
git: {
|
|
12754
|
+
createBlob: ['POST /repos/{owner}/{repo}/git/blobs'],
|
|
12755
|
+
createCommit: ['POST /repos/{owner}/{repo}/git/commits'],
|
|
12756
|
+
createRef: ['POST /repos/{owner}/{repo}/git/refs'],
|
|
12757
|
+
createTag: ['POST /repos/{owner}/{repo}/git/tags'],
|
|
12758
|
+
createTree: ['POST /repos/{owner}/{repo}/git/trees'],
|
|
12759
|
+
deleteRef: ['DELETE /repos/{owner}/{repo}/git/refs/{ref}'],
|
|
12760
|
+
getBlob: ['GET /repos/{owner}/{repo}/git/blobs/{file_sha}'],
|
|
12761
|
+
getCommit: ['GET /repos/{owner}/{repo}/git/commits/{commit_sha}'],
|
|
12762
|
+
getRef: ['GET /repos/{owner}/{repo}/git/ref/{ref}'],
|
|
12763
|
+
getTag: ['GET /repos/{owner}/{repo}/git/tags/{tag_sha}'],
|
|
12764
|
+
getTree: ['GET /repos/{owner}/{repo}/git/trees/{tree_sha}'],
|
|
12765
|
+
listMatchingRefs: ['GET /repos/{owner}/{repo}/git/matching-refs/{ref}'],
|
|
12766
|
+
updateRef: ['PATCH /repos/{owner}/{repo}/git/refs/{ref}']
|
|
12767
|
+
},
|
|
12768
|
+
gitignore: {
|
|
12769
|
+
getAllTemplates: ['GET /gitignore/templates'],
|
|
12770
|
+
getTemplate: ['GET /gitignore/templates/{name}']
|
|
12771
|
+
},
|
|
12772
|
+
hostedCompute: {
|
|
12773
|
+
createNetworkConfigurationForOrg: [
|
|
12774
|
+
'POST /orgs/{org}/settings/network-configurations'
|
|
12775
|
+
],
|
|
12776
|
+
deleteNetworkConfigurationFromOrg: [
|
|
12777
|
+
'DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}'
|
|
12778
|
+
],
|
|
12779
|
+
getNetworkConfigurationForOrg: [
|
|
12780
|
+
'GET /orgs/{org}/settings/network-configurations/{network_configuration_id}'
|
|
12781
|
+
],
|
|
12782
|
+
getNetworkSettingsForOrg: [
|
|
12783
|
+
'GET /orgs/{org}/settings/network-settings/{network_settings_id}'
|
|
12784
|
+
],
|
|
12785
|
+
listNetworkConfigurationsForOrg: [
|
|
12786
|
+
'GET /orgs/{org}/settings/network-configurations'
|
|
12787
|
+
],
|
|
12788
|
+
updateNetworkConfigurationForOrg: [
|
|
12789
|
+
'PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}'
|
|
12790
|
+
]
|
|
12791
|
+
},
|
|
12792
|
+
interactions: {
|
|
12793
|
+
getRestrictionsForAuthenticatedUser: ['GET /user/interaction-limits'],
|
|
12794
|
+
getRestrictionsForOrg: ['GET /orgs/{org}/interaction-limits'],
|
|
12795
|
+
getRestrictionsForRepo: ['GET /repos/{owner}/{repo}/interaction-limits'],
|
|
12796
|
+
getRestrictionsForYourPublicRepos: [
|
|
12797
|
+
'GET /user/interaction-limits',
|
|
12798
|
+
{},
|
|
12799
|
+
{
|
|
12800
|
+
renamed: ['interactions', 'getRestrictionsForAuthenticatedUser']
|
|
12801
|
+
}
|
|
12802
|
+
],
|
|
12803
|
+
removeRestrictionsForAuthenticatedUser: ['DELETE /user/interaction-limits'],
|
|
12804
|
+
removeRestrictionsForOrg: ['DELETE /orgs/{org}/interaction-limits'],
|
|
12805
|
+
removeRestrictionsForRepo: [
|
|
12806
|
+
'DELETE /repos/{owner}/{repo}/interaction-limits'
|
|
12807
|
+
],
|
|
12808
|
+
removeRestrictionsForYourPublicRepos: [
|
|
12809
|
+
'DELETE /user/interaction-limits',
|
|
12810
|
+
{},
|
|
12811
|
+
{
|
|
12812
|
+
renamed: ['interactions', 'removeRestrictionsForAuthenticatedUser']
|
|
12813
|
+
}
|
|
12814
|
+
],
|
|
12815
|
+
setRestrictionsForAuthenticatedUser: ['PUT /user/interaction-limits'],
|
|
12816
|
+
setRestrictionsForOrg: ['PUT /orgs/{org}/interaction-limits'],
|
|
12817
|
+
setRestrictionsForRepo: ['PUT /repos/{owner}/{repo}/interaction-limits'],
|
|
12818
|
+
setRestrictionsForYourPublicRepos: [
|
|
12819
|
+
'PUT /user/interaction-limits',
|
|
12820
|
+
{},
|
|
12821
|
+
{
|
|
12822
|
+
renamed: ['interactions', 'setRestrictionsForAuthenticatedUser']
|
|
12823
|
+
}
|
|
12824
|
+
]
|
|
12825
|
+
},
|
|
12826
|
+
issues: {
|
|
12827
|
+
addAssignees: [
|
|
12828
|
+
'POST /repos/{owner}/{repo}/issues/{issue_number}/assignees'
|
|
12829
|
+
],
|
|
12830
|
+
addLabels: ['POST /repos/{owner}/{repo}/issues/{issue_number}/labels'],
|
|
12831
|
+
addSubIssue: [
|
|
12832
|
+
'POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues'
|
|
12833
|
+
],
|
|
12834
|
+
checkUserCanBeAssigned: ['GET /repos/{owner}/{repo}/assignees/{assignee}'],
|
|
12835
|
+
checkUserCanBeAssignedToIssue: [
|
|
12836
|
+
'GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}'
|
|
12837
|
+
],
|
|
12838
|
+
create: ['POST /repos/{owner}/{repo}/issues'],
|
|
12839
|
+
createComment: [
|
|
12840
|
+
'POST /repos/{owner}/{repo}/issues/{issue_number}/comments'
|
|
12841
|
+
],
|
|
12842
|
+
createLabel: ['POST /repos/{owner}/{repo}/labels'],
|
|
12843
|
+
createMilestone: ['POST /repos/{owner}/{repo}/milestones'],
|
|
12844
|
+
deleteComment: [
|
|
12845
|
+
'DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}'
|
|
12846
|
+
],
|
|
12847
|
+
deleteLabel: ['DELETE /repos/{owner}/{repo}/labels/{name}'],
|
|
12848
|
+
deleteMilestone: [
|
|
12849
|
+
'DELETE /repos/{owner}/{repo}/milestones/{milestone_number}'
|
|
12850
|
+
],
|
|
12851
|
+
get: ['GET /repos/{owner}/{repo}/issues/{issue_number}'],
|
|
12852
|
+
getComment: ['GET /repos/{owner}/{repo}/issues/comments/{comment_id}'],
|
|
12853
|
+
getEvent: ['GET /repos/{owner}/{repo}/issues/events/{event_id}'],
|
|
12854
|
+
getLabel: ['GET /repos/{owner}/{repo}/labels/{name}'],
|
|
12855
|
+
getMilestone: ['GET /repos/{owner}/{repo}/milestones/{milestone_number}'],
|
|
12856
|
+
list: ['GET /issues'],
|
|
12857
|
+
listAssignees: ['GET /repos/{owner}/{repo}/assignees'],
|
|
12858
|
+
listComments: ['GET /repos/{owner}/{repo}/issues/{issue_number}/comments'],
|
|
12859
|
+
listCommentsForRepo: ['GET /repos/{owner}/{repo}/issues/comments'],
|
|
12860
|
+
listEvents: ['GET /repos/{owner}/{repo}/issues/{issue_number}/events'],
|
|
12861
|
+
listEventsForRepo: ['GET /repos/{owner}/{repo}/issues/events'],
|
|
12862
|
+
listEventsForTimeline: [
|
|
12863
|
+
'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline'
|
|
12864
|
+
],
|
|
12865
|
+
listForAuthenticatedUser: ['GET /user/issues'],
|
|
12866
|
+
listForOrg: ['GET /orgs/{org}/issues'],
|
|
12867
|
+
listForRepo: ['GET /repos/{owner}/{repo}/issues'],
|
|
12868
|
+
listLabelsForMilestone: [
|
|
12869
|
+
'GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels'
|
|
12870
|
+
],
|
|
12871
|
+
listLabelsForRepo: ['GET /repos/{owner}/{repo}/labels'],
|
|
12872
|
+
listLabelsOnIssue: [
|
|
12873
|
+
'GET /repos/{owner}/{repo}/issues/{issue_number}/labels'
|
|
12874
|
+
],
|
|
12875
|
+
listMilestones: ['GET /repos/{owner}/{repo}/milestones'],
|
|
12876
|
+
listSubIssues: [
|
|
12877
|
+
'GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues'
|
|
12878
|
+
],
|
|
12879
|
+
lock: ['PUT /repos/{owner}/{repo}/issues/{issue_number}/lock'],
|
|
12880
|
+
removeAllLabels: [
|
|
12881
|
+
'DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels'
|
|
12882
|
+
],
|
|
12883
|
+
removeAssignees: [
|
|
12884
|
+
'DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees'
|
|
12885
|
+
],
|
|
12886
|
+
removeLabel: [
|
|
12887
|
+
'DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}'
|
|
12888
|
+
],
|
|
12889
|
+
removeSubIssue: [
|
|
12890
|
+
'DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue'
|
|
12891
|
+
],
|
|
12892
|
+
reprioritizeSubIssue: [
|
|
12893
|
+
'PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority'
|
|
12894
|
+
],
|
|
12895
|
+
setLabels: ['PUT /repos/{owner}/{repo}/issues/{issue_number}/labels'],
|
|
12896
|
+
unlock: ['DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock'],
|
|
12897
|
+
update: ['PATCH /repos/{owner}/{repo}/issues/{issue_number}'],
|
|
12898
|
+
updateComment: ['PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}'],
|
|
12899
|
+
updateLabel: ['PATCH /repos/{owner}/{repo}/labels/{name}'],
|
|
12900
|
+
updateMilestone: [
|
|
12901
|
+
'PATCH /repos/{owner}/{repo}/milestones/{milestone_number}'
|
|
12902
|
+
]
|
|
12903
|
+
},
|
|
12904
|
+
licenses: {
|
|
12905
|
+
get: ['GET /licenses/{license}'],
|
|
12906
|
+
getAllCommonlyUsed: ['GET /licenses'],
|
|
12907
|
+
getForRepo: ['GET /repos/{owner}/{repo}/license']
|
|
12908
|
+
},
|
|
12909
|
+
markdown: {
|
|
12910
|
+
render: ['POST /markdown'],
|
|
12911
|
+
renderRaw: [
|
|
12912
|
+
'POST /markdown/raw',
|
|
12913
|
+
{
|
|
12914
|
+
headers: {
|
|
12915
|
+
'content-type': 'text/plain; charset=utf-8'
|
|
12916
|
+
}
|
|
12917
|
+
}
|
|
12918
|
+
]
|
|
12919
|
+
},
|
|
12920
|
+
meta: {
|
|
12921
|
+
get: ['GET /meta'],
|
|
12922
|
+
getAllVersions: ['GET /versions'],
|
|
12923
|
+
getOctocat: ['GET /octocat'],
|
|
12924
|
+
getZen: ['GET /zen'],
|
|
12925
|
+
root: ['GET /']
|
|
12926
|
+
},
|
|
12927
|
+
migrations: {
|
|
12928
|
+
deleteArchiveForAuthenticatedUser: [
|
|
12929
|
+
'DELETE /user/migrations/{migration_id}/archive'
|
|
12930
|
+
],
|
|
12931
|
+
deleteArchiveForOrg: [
|
|
12932
|
+
'DELETE /orgs/{org}/migrations/{migration_id}/archive'
|
|
12933
|
+
],
|
|
12934
|
+
downloadArchiveForOrg: [
|
|
12935
|
+
'GET /orgs/{org}/migrations/{migration_id}/archive'
|
|
12936
|
+
],
|
|
12937
|
+
getArchiveForAuthenticatedUser: [
|
|
12938
|
+
'GET /user/migrations/{migration_id}/archive'
|
|
12939
|
+
],
|
|
12940
|
+
getStatusForAuthenticatedUser: ['GET /user/migrations/{migration_id}'],
|
|
12941
|
+
getStatusForOrg: ['GET /orgs/{org}/migrations/{migration_id}'],
|
|
12942
|
+
listForAuthenticatedUser: ['GET /user/migrations'],
|
|
12943
|
+
listForOrg: ['GET /orgs/{org}/migrations'],
|
|
12944
|
+
listReposForAuthenticatedUser: [
|
|
12945
|
+
'GET /user/migrations/{migration_id}/repositories'
|
|
12946
|
+
],
|
|
12947
|
+
listReposForOrg: ['GET /orgs/{org}/migrations/{migration_id}/repositories'],
|
|
12948
|
+
listReposForUser: [
|
|
12949
|
+
'GET /user/migrations/{migration_id}/repositories',
|
|
12950
|
+
{},
|
|
12951
|
+
{
|
|
12952
|
+
renamed: ['migrations', 'listReposForAuthenticatedUser']
|
|
12953
|
+
}
|
|
12954
|
+
],
|
|
12955
|
+
startForAuthenticatedUser: ['POST /user/migrations'],
|
|
12956
|
+
startForOrg: ['POST /orgs/{org}/migrations'],
|
|
12957
|
+
unlockRepoForAuthenticatedUser: [
|
|
12958
|
+
'DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock'
|
|
12959
|
+
],
|
|
12960
|
+
unlockRepoForOrg: [
|
|
12961
|
+
'DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock'
|
|
12962
|
+
]
|
|
12963
|
+
},
|
|
12964
|
+
oidc: {
|
|
12965
|
+
getOidcCustomSubTemplateForOrg: [
|
|
12966
|
+
'GET /orgs/{org}/actions/oidc/customization/sub'
|
|
12967
|
+
],
|
|
12968
|
+
updateOidcCustomSubTemplateForOrg: [
|
|
12969
|
+
'PUT /orgs/{org}/actions/oidc/customization/sub'
|
|
12970
|
+
]
|
|
12971
|
+
},
|
|
12972
|
+
orgs: {
|
|
12973
|
+
addSecurityManagerTeam: [
|
|
12974
|
+
'PUT /orgs/{org}/security-managers/teams/{team_slug}',
|
|
12975
|
+
{},
|
|
12976
|
+
{
|
|
12977
|
+
deprecated:
|
|
12978
|
+
'octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team'
|
|
12979
|
+
}
|
|
12980
|
+
],
|
|
12981
|
+
assignTeamToOrgRole: [
|
|
12982
|
+
'PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}'
|
|
12983
|
+
],
|
|
12984
|
+
assignUserToOrgRole: [
|
|
12985
|
+
'PUT /orgs/{org}/organization-roles/users/{username}/{role_id}'
|
|
12986
|
+
],
|
|
12987
|
+
blockUser: ['PUT /orgs/{org}/blocks/{username}'],
|
|
12988
|
+
cancelInvitation: ['DELETE /orgs/{org}/invitations/{invitation_id}'],
|
|
12989
|
+
checkBlockedUser: ['GET /orgs/{org}/blocks/{username}'],
|
|
12990
|
+
checkMembershipForUser: ['GET /orgs/{org}/members/{username}'],
|
|
12991
|
+
checkPublicMembershipForUser: ['GET /orgs/{org}/public_members/{username}'],
|
|
12992
|
+
convertMemberToOutsideCollaborator: [
|
|
12993
|
+
'PUT /orgs/{org}/outside_collaborators/{username}'
|
|
12994
|
+
],
|
|
12995
|
+
createInvitation: ['POST /orgs/{org}/invitations'],
|
|
12996
|
+
createIssueType: ['POST /orgs/{org}/issue-types'],
|
|
12997
|
+
createOrUpdateCustomProperties: ['PATCH /orgs/{org}/properties/schema'],
|
|
12998
|
+
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
12999
|
+
'PATCH /orgs/{org}/properties/values'
|
|
13000
|
+
],
|
|
13001
|
+
createOrUpdateCustomProperty: [
|
|
13002
|
+
'PUT /orgs/{org}/properties/schema/{custom_property_name}'
|
|
13003
|
+
],
|
|
13004
|
+
createWebhook: ['POST /orgs/{org}/hooks'],
|
|
13005
|
+
delete: ['DELETE /orgs/{org}'],
|
|
13006
|
+
deleteIssueType: ['DELETE /orgs/{org}/issue-types/{issue_type_id}'],
|
|
13007
|
+
deleteWebhook: ['DELETE /orgs/{org}/hooks/{hook_id}'],
|
|
13008
|
+
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
13009
|
+
'POST /orgs/{org}/{security_product}/{enablement}',
|
|
13010
|
+
{},
|
|
13011
|
+
{
|
|
13012
|
+
deprecated:
|
|
13013
|
+
'octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization'
|
|
13014
|
+
}
|
|
13015
|
+
],
|
|
13016
|
+
get: ['GET /orgs/{org}'],
|
|
13017
|
+
getAllCustomProperties: ['GET /orgs/{org}/properties/schema'],
|
|
13018
|
+
getCustomProperty: [
|
|
13019
|
+
'GET /orgs/{org}/properties/schema/{custom_property_name}'
|
|
13020
|
+
],
|
|
13021
|
+
getMembershipForAuthenticatedUser: ['GET /user/memberships/orgs/{org}'],
|
|
13022
|
+
getMembershipForUser: ['GET /orgs/{org}/memberships/{username}'],
|
|
13023
|
+
getOrgRole: ['GET /orgs/{org}/organization-roles/{role_id}'],
|
|
13024
|
+
getOrgRulesetHistory: ['GET /orgs/{org}/rulesets/{ruleset_id}/history'],
|
|
13025
|
+
getOrgRulesetVersion: [
|
|
13026
|
+
'GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}'
|
|
13027
|
+
],
|
|
13028
|
+
getWebhook: ['GET /orgs/{org}/hooks/{hook_id}'],
|
|
13029
|
+
getWebhookConfigForOrg: ['GET /orgs/{org}/hooks/{hook_id}/config'],
|
|
13030
|
+
getWebhookDelivery: [
|
|
13031
|
+
'GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}'
|
|
13032
|
+
],
|
|
13033
|
+
list: ['GET /organizations'],
|
|
13034
|
+
listAppInstallations: ['GET /orgs/{org}/installations'],
|
|
13035
|
+
listAttestations: ['GET /orgs/{org}/attestations/{subject_digest}'],
|
|
13036
|
+
listBlockedUsers: ['GET /orgs/{org}/blocks'],
|
|
13037
|
+
listCustomPropertiesValuesForRepos: ['GET /orgs/{org}/properties/values'],
|
|
13038
|
+
listFailedInvitations: ['GET /orgs/{org}/failed_invitations'],
|
|
13039
|
+
listForAuthenticatedUser: ['GET /user/orgs'],
|
|
13040
|
+
listForUser: ['GET /users/{username}/orgs'],
|
|
13041
|
+
listInvitationTeams: ['GET /orgs/{org}/invitations/{invitation_id}/teams'],
|
|
13042
|
+
listIssueTypes: ['GET /orgs/{org}/issue-types'],
|
|
13043
|
+
listMembers: ['GET /orgs/{org}/members'],
|
|
13044
|
+
listMembershipsForAuthenticatedUser: ['GET /user/memberships/orgs'],
|
|
13045
|
+
listOrgRoleTeams: ['GET /orgs/{org}/organization-roles/{role_id}/teams'],
|
|
13046
|
+
listOrgRoleUsers: ['GET /orgs/{org}/organization-roles/{role_id}/users'],
|
|
13047
|
+
listOrgRoles: ['GET /orgs/{org}/organization-roles'],
|
|
13048
|
+
listOrganizationFineGrainedPermissions: [
|
|
13049
|
+
'GET /orgs/{org}/organization-fine-grained-permissions'
|
|
13050
|
+
],
|
|
13051
|
+
listOutsideCollaborators: ['GET /orgs/{org}/outside_collaborators'],
|
|
13052
|
+
listPatGrantRepositories: [
|
|
13053
|
+
'GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories'
|
|
13054
|
+
],
|
|
13055
|
+
listPatGrantRequestRepositories: [
|
|
13056
|
+
'GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories'
|
|
13057
|
+
],
|
|
13058
|
+
listPatGrantRequests: ['GET /orgs/{org}/personal-access-token-requests'],
|
|
13059
|
+
listPatGrants: ['GET /orgs/{org}/personal-access-tokens'],
|
|
13060
|
+
listPendingInvitations: ['GET /orgs/{org}/invitations'],
|
|
13061
|
+
listPublicMembers: ['GET /orgs/{org}/public_members'],
|
|
13062
|
+
listSecurityManagerTeams: [
|
|
13063
|
+
'GET /orgs/{org}/security-managers',
|
|
13064
|
+
{},
|
|
13065
|
+
{
|
|
13066
|
+
deprecated:
|
|
13067
|
+
'octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams'
|
|
13068
|
+
}
|
|
13069
|
+
],
|
|
13070
|
+
listWebhookDeliveries: ['GET /orgs/{org}/hooks/{hook_id}/deliveries'],
|
|
13071
|
+
listWebhooks: ['GET /orgs/{org}/hooks'],
|
|
13072
|
+
pingWebhook: ['POST /orgs/{org}/hooks/{hook_id}/pings'],
|
|
13073
|
+
redeliverWebhookDelivery: [
|
|
13074
|
+
'POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts'
|
|
13075
|
+
],
|
|
13076
|
+
removeCustomProperty: [
|
|
13077
|
+
'DELETE /orgs/{org}/properties/schema/{custom_property_name}'
|
|
13078
|
+
],
|
|
13079
|
+
removeMember: ['DELETE /orgs/{org}/members/{username}'],
|
|
13080
|
+
removeMembershipForUser: ['DELETE /orgs/{org}/memberships/{username}'],
|
|
13081
|
+
removeOutsideCollaborator: [
|
|
13082
|
+
'DELETE /orgs/{org}/outside_collaborators/{username}'
|
|
13083
|
+
],
|
|
13084
|
+
removePublicMembershipForAuthenticatedUser: [
|
|
13085
|
+
'DELETE /orgs/{org}/public_members/{username}'
|
|
13086
|
+
],
|
|
13087
|
+
removeSecurityManagerTeam: [
|
|
13088
|
+
'DELETE /orgs/{org}/security-managers/teams/{team_slug}',
|
|
13089
|
+
{},
|
|
13090
|
+
{
|
|
13091
|
+
deprecated:
|
|
13092
|
+
'octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team'
|
|
13093
|
+
}
|
|
13094
|
+
],
|
|
13095
|
+
reviewPatGrantRequest: [
|
|
13096
|
+
'POST /orgs/{org}/personal-access-token-requests/{pat_request_id}'
|
|
13097
|
+
],
|
|
13098
|
+
reviewPatGrantRequestsInBulk: [
|
|
13099
|
+
'POST /orgs/{org}/personal-access-token-requests'
|
|
13100
|
+
],
|
|
13101
|
+
revokeAllOrgRolesTeam: [
|
|
13102
|
+
'DELETE /orgs/{org}/organization-roles/teams/{team_slug}'
|
|
13103
|
+
],
|
|
13104
|
+
revokeAllOrgRolesUser: [
|
|
13105
|
+
'DELETE /orgs/{org}/organization-roles/users/{username}'
|
|
13106
|
+
],
|
|
13107
|
+
revokeOrgRoleTeam: [
|
|
13108
|
+
'DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}'
|
|
13109
|
+
],
|
|
13110
|
+
revokeOrgRoleUser: [
|
|
13111
|
+
'DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}'
|
|
13112
|
+
],
|
|
13113
|
+
setMembershipForUser: ['PUT /orgs/{org}/memberships/{username}'],
|
|
13114
|
+
setPublicMembershipForAuthenticatedUser: [
|
|
13115
|
+
'PUT /orgs/{org}/public_members/{username}'
|
|
13116
|
+
],
|
|
13117
|
+
unblockUser: ['DELETE /orgs/{org}/blocks/{username}'],
|
|
13118
|
+
update: ['PATCH /orgs/{org}'],
|
|
13119
|
+
updateIssueType: ['PUT /orgs/{org}/issue-types/{issue_type_id}'],
|
|
13120
|
+
updateMembershipForAuthenticatedUser: [
|
|
13121
|
+
'PATCH /user/memberships/orgs/{org}'
|
|
13122
|
+
],
|
|
13123
|
+
updatePatAccess: ['POST /orgs/{org}/personal-access-tokens/{pat_id}'],
|
|
13124
|
+
updatePatAccesses: ['POST /orgs/{org}/personal-access-tokens'],
|
|
13125
|
+
updateWebhook: ['PATCH /orgs/{org}/hooks/{hook_id}'],
|
|
13126
|
+
updateWebhookConfigForOrg: ['PATCH /orgs/{org}/hooks/{hook_id}/config']
|
|
13127
|
+
},
|
|
13128
|
+
packages: {
|
|
13129
|
+
deletePackageForAuthenticatedUser: [
|
|
13130
|
+
'DELETE /user/packages/{package_type}/{package_name}'
|
|
13131
|
+
],
|
|
13132
|
+
deletePackageForOrg: [
|
|
13133
|
+
'DELETE /orgs/{org}/packages/{package_type}/{package_name}'
|
|
13134
|
+
],
|
|
13135
|
+
deletePackageForUser: [
|
|
13136
|
+
'DELETE /users/{username}/packages/{package_type}/{package_name}'
|
|
13137
|
+
],
|
|
13138
|
+
deletePackageVersionForAuthenticatedUser: [
|
|
13139
|
+
'DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}'
|
|
13140
|
+
],
|
|
13141
|
+
deletePackageVersionForOrg: [
|
|
13142
|
+
'DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}'
|
|
13143
|
+
],
|
|
13144
|
+
deletePackageVersionForUser: [
|
|
13145
|
+
'DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}'
|
|
13146
|
+
],
|
|
13147
|
+
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
13148
|
+
'GET /orgs/{org}/packages/{package_type}/{package_name}/versions',
|
|
13149
|
+
{},
|
|
13150
|
+
{
|
|
13151
|
+
renamed: ['packages', 'getAllPackageVersionsForPackageOwnedByOrg']
|
|
13152
|
+
}
|
|
13153
|
+
],
|
|
13154
|
+
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
13155
|
+
'GET /user/packages/{package_type}/{package_name}/versions',
|
|
13156
|
+
{},
|
|
13157
|
+
{
|
|
13158
|
+
renamed: [
|
|
13159
|
+
'packages',
|
|
13160
|
+
'getAllPackageVersionsForPackageOwnedByAuthenticatedUser'
|
|
13161
|
+
]
|
|
13162
|
+
}
|
|
13163
|
+
],
|
|
13164
|
+
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
13165
|
+
'GET /user/packages/{package_type}/{package_name}/versions'
|
|
13166
|
+
],
|
|
13167
|
+
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
13168
|
+
'GET /orgs/{org}/packages/{package_type}/{package_name}/versions'
|
|
13169
|
+
],
|
|
13170
|
+
getAllPackageVersionsForPackageOwnedByUser: [
|
|
13171
|
+
'GET /users/{username}/packages/{package_type}/{package_name}/versions'
|
|
13172
|
+
],
|
|
13173
|
+
getPackageForAuthenticatedUser: [
|
|
13174
|
+
'GET /user/packages/{package_type}/{package_name}'
|
|
13175
|
+
],
|
|
13176
|
+
getPackageForOrganization: [
|
|
13177
|
+
'GET /orgs/{org}/packages/{package_type}/{package_name}'
|
|
13178
|
+
],
|
|
13179
|
+
getPackageForUser: [
|
|
13180
|
+
'GET /users/{username}/packages/{package_type}/{package_name}'
|
|
13181
|
+
],
|
|
13182
|
+
getPackageVersionForAuthenticatedUser: [
|
|
13183
|
+
'GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}'
|
|
13184
|
+
],
|
|
13185
|
+
getPackageVersionForOrganization: [
|
|
13186
|
+
'GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}'
|
|
13187
|
+
],
|
|
13188
|
+
getPackageVersionForUser: [
|
|
13189
|
+
'GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}'
|
|
13190
|
+
],
|
|
13191
|
+
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
13192
|
+
'GET /user/docker/conflicts'
|
|
13193
|
+
],
|
|
13194
|
+
listDockerMigrationConflictingPackagesForOrganization: [
|
|
13195
|
+
'GET /orgs/{org}/docker/conflicts'
|
|
13196
|
+
],
|
|
13197
|
+
listDockerMigrationConflictingPackagesForUser: [
|
|
13198
|
+
'GET /users/{username}/docker/conflicts'
|
|
13199
|
+
],
|
|
13200
|
+
listPackagesForAuthenticatedUser: ['GET /user/packages'],
|
|
13201
|
+
listPackagesForOrganization: ['GET /orgs/{org}/packages'],
|
|
13202
|
+
listPackagesForUser: ['GET /users/{username}/packages'],
|
|
13203
|
+
restorePackageForAuthenticatedUser: [
|
|
13204
|
+
'POST /user/packages/{package_type}/{package_name}/restore{?token}'
|
|
13205
|
+
],
|
|
13206
|
+
restorePackageForOrg: [
|
|
13207
|
+
'POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}'
|
|
13208
|
+
],
|
|
13209
|
+
restorePackageForUser: [
|
|
13210
|
+
'POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}'
|
|
13211
|
+
],
|
|
13212
|
+
restorePackageVersionForAuthenticatedUser: [
|
|
13213
|
+
'POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore'
|
|
13214
|
+
],
|
|
13215
|
+
restorePackageVersionForOrg: [
|
|
13216
|
+
'POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore'
|
|
13217
|
+
],
|
|
13218
|
+
restorePackageVersionForUser: [
|
|
13219
|
+
'POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore'
|
|
13220
|
+
]
|
|
13221
|
+
},
|
|
13222
|
+
privateRegistries: {
|
|
13223
|
+
createOrgPrivateRegistry: ['POST /orgs/{org}/private-registries'],
|
|
13224
|
+
deleteOrgPrivateRegistry: [
|
|
13225
|
+
'DELETE /orgs/{org}/private-registries/{secret_name}'
|
|
13226
|
+
],
|
|
13227
|
+
getOrgPrivateRegistry: ['GET /orgs/{org}/private-registries/{secret_name}'],
|
|
13228
|
+
getOrgPublicKey: ['GET /orgs/{org}/private-registries/public-key'],
|
|
13229
|
+
listOrgPrivateRegistries: ['GET /orgs/{org}/private-registries'],
|
|
13230
|
+
updateOrgPrivateRegistry: [
|
|
13231
|
+
'PATCH /orgs/{org}/private-registries/{secret_name}'
|
|
13232
|
+
]
|
|
13233
|
+
},
|
|
13234
|
+
projects: {
|
|
13235
|
+
addCollaborator: [
|
|
13236
|
+
'PUT /projects/{project_id}/collaborators/{username}',
|
|
13237
|
+
{},
|
|
13238
|
+
{
|
|
13239
|
+
deprecated:
|
|
13240
|
+
'octokit.rest.projects.addCollaborator() is deprecated, see https://docs.github.com/rest/projects/collaborators#add-project-collaborator'
|
|
13241
|
+
}
|
|
13242
|
+
],
|
|
13243
|
+
createCard: [
|
|
13244
|
+
'POST /projects/columns/{column_id}/cards',
|
|
13245
|
+
{},
|
|
13246
|
+
{
|
|
13247
|
+
deprecated:
|
|
13248
|
+
'octokit.rest.projects.createCard() is deprecated, see https://docs.github.com/rest/projects/cards#create-a-project-card'
|
|
13249
|
+
}
|
|
13250
|
+
],
|
|
13251
|
+
createColumn: [
|
|
13252
|
+
'POST /projects/{project_id}/columns',
|
|
13253
|
+
{},
|
|
13254
|
+
{
|
|
13255
|
+
deprecated:
|
|
13256
|
+
'octokit.rest.projects.createColumn() is deprecated, see https://docs.github.com/rest/projects/columns#create-a-project-column'
|
|
13257
|
+
}
|
|
13258
|
+
],
|
|
13259
|
+
createForAuthenticatedUser: [
|
|
13260
|
+
'POST /user/projects',
|
|
13261
|
+
{},
|
|
13262
|
+
{
|
|
13263
|
+
deprecated:
|
|
13264
|
+
'octokit.rest.projects.createForAuthenticatedUser() is deprecated, see https://docs.github.com/rest/projects/projects#create-a-user-project'
|
|
13265
|
+
}
|
|
13266
|
+
],
|
|
13267
|
+
createForOrg: [
|
|
13268
|
+
'POST /orgs/{org}/projects',
|
|
13269
|
+
{},
|
|
13270
|
+
{
|
|
13271
|
+
deprecated:
|
|
13272
|
+
'octokit.rest.projects.createForOrg() is deprecated, see https://docs.github.com/rest/projects/projects#create-an-organization-project'
|
|
13273
|
+
}
|
|
13274
|
+
],
|
|
13275
|
+
createForRepo: [
|
|
13276
|
+
'POST /repos/{owner}/{repo}/projects',
|
|
13277
|
+
{},
|
|
13278
|
+
{
|
|
13279
|
+
deprecated:
|
|
13280
|
+
'octokit.rest.projects.createForRepo() is deprecated, see https://docs.github.com/rest/projects/projects#create-a-repository-project'
|
|
13281
|
+
}
|
|
13282
|
+
],
|
|
13283
|
+
delete: [
|
|
13284
|
+
'DELETE /projects/{project_id}',
|
|
13285
|
+
{},
|
|
13286
|
+
{
|
|
13287
|
+
deprecated:
|
|
13288
|
+
'octokit.rest.projects.delete() is deprecated, see https://docs.github.com/rest/projects/projects#delete-a-project'
|
|
13289
|
+
}
|
|
13290
|
+
],
|
|
13291
|
+
deleteCard: [
|
|
13292
|
+
'DELETE /projects/columns/cards/{card_id}',
|
|
13293
|
+
{},
|
|
13294
|
+
{
|
|
13295
|
+
deprecated:
|
|
13296
|
+
'octokit.rest.projects.deleteCard() is deprecated, see https://docs.github.com/rest/projects/cards#delete-a-project-card'
|
|
13297
|
+
}
|
|
13298
|
+
],
|
|
13299
|
+
deleteColumn: [
|
|
13300
|
+
'DELETE /projects/columns/{column_id}',
|
|
13301
|
+
{},
|
|
13302
|
+
{
|
|
13303
|
+
deprecated:
|
|
13304
|
+
'octokit.rest.projects.deleteColumn() is deprecated, see https://docs.github.com/rest/projects/columns#delete-a-project-column'
|
|
13305
|
+
}
|
|
13306
|
+
],
|
|
13307
|
+
get: [
|
|
13308
|
+
'GET /projects/{project_id}',
|
|
13309
|
+
{},
|
|
13310
|
+
{
|
|
13311
|
+
deprecated:
|
|
13312
|
+
'octokit.rest.projects.get() is deprecated, see https://docs.github.com/rest/projects/projects#get-a-project'
|
|
13313
|
+
}
|
|
13314
|
+
],
|
|
13315
|
+
getCard: [
|
|
13316
|
+
'GET /projects/columns/cards/{card_id}',
|
|
13317
|
+
{},
|
|
13318
|
+
{
|
|
13319
|
+
deprecated:
|
|
13320
|
+
'octokit.rest.projects.getCard() is deprecated, see https://docs.github.com/rest/projects/cards#get-a-project-card'
|
|
13321
|
+
}
|
|
13322
|
+
],
|
|
13323
|
+
getColumn: [
|
|
13324
|
+
'GET /projects/columns/{column_id}',
|
|
13325
|
+
{},
|
|
13326
|
+
{
|
|
13327
|
+
deprecated:
|
|
13328
|
+
'octokit.rest.projects.getColumn() is deprecated, see https://docs.github.com/rest/projects/columns#get-a-project-column'
|
|
13329
|
+
}
|
|
13330
|
+
],
|
|
13331
|
+
getPermissionForUser: [
|
|
13332
|
+
'GET /projects/{project_id}/collaborators/{username}/permission',
|
|
13333
|
+
{},
|
|
13334
|
+
{
|
|
13335
|
+
deprecated:
|
|
13336
|
+
'octokit.rest.projects.getPermissionForUser() is deprecated, see https://docs.github.com/rest/projects/collaborators#get-project-permission-for-a-user'
|
|
13337
|
+
}
|
|
13338
|
+
],
|
|
13339
|
+
listCards: [
|
|
13340
|
+
'GET /projects/columns/{column_id}/cards',
|
|
13341
|
+
{},
|
|
13342
|
+
{
|
|
13343
|
+
deprecated:
|
|
13344
|
+
'octokit.rest.projects.listCards() is deprecated, see https://docs.github.com/rest/projects/cards#list-project-cards'
|
|
13345
|
+
}
|
|
13346
|
+
],
|
|
13347
|
+
listCollaborators: [
|
|
13348
|
+
'GET /projects/{project_id}/collaborators',
|
|
13349
|
+
{},
|
|
13350
|
+
{
|
|
13351
|
+
deprecated:
|
|
13352
|
+
'octokit.rest.projects.listCollaborators() is deprecated, see https://docs.github.com/rest/projects/collaborators#list-project-collaborators'
|
|
13353
|
+
}
|
|
13354
|
+
],
|
|
13355
|
+
listColumns: [
|
|
13356
|
+
'GET /projects/{project_id}/columns',
|
|
13357
|
+
{},
|
|
13358
|
+
{
|
|
13359
|
+
deprecated:
|
|
13360
|
+
'octokit.rest.projects.listColumns() is deprecated, see https://docs.github.com/rest/projects/columns#list-project-columns'
|
|
13361
|
+
}
|
|
13362
|
+
],
|
|
13363
|
+
listForOrg: [
|
|
13364
|
+
'GET /orgs/{org}/projects',
|
|
13365
|
+
{},
|
|
13366
|
+
{
|
|
13367
|
+
deprecated:
|
|
13368
|
+
'octokit.rest.projects.listForOrg() is deprecated, see https://docs.github.com/rest/projects/projects#list-organization-projects'
|
|
13369
|
+
}
|
|
13370
|
+
],
|
|
13371
|
+
listForRepo: [
|
|
13372
|
+
'GET /repos/{owner}/{repo}/projects',
|
|
13373
|
+
{},
|
|
13374
|
+
{
|
|
13375
|
+
deprecated:
|
|
13376
|
+
'octokit.rest.projects.listForRepo() is deprecated, see https://docs.github.com/rest/projects/projects#list-repository-projects'
|
|
13377
|
+
}
|
|
13378
|
+
],
|
|
13379
|
+
listForUser: [
|
|
13380
|
+
'GET /users/{username}/projects',
|
|
13381
|
+
{},
|
|
13382
|
+
{
|
|
13383
|
+
deprecated:
|
|
13384
|
+
'octokit.rest.projects.listForUser() is deprecated, see https://docs.github.com/rest/projects/projects#list-user-projects'
|
|
13385
|
+
}
|
|
13386
|
+
],
|
|
13387
|
+
moveCard: [
|
|
13388
|
+
'POST /projects/columns/cards/{card_id}/moves',
|
|
13389
|
+
{},
|
|
13390
|
+
{
|
|
13391
|
+
deprecated:
|
|
13392
|
+
'octokit.rest.projects.moveCard() is deprecated, see https://docs.github.com/rest/projects/cards#move-a-project-card'
|
|
13393
|
+
}
|
|
13394
|
+
],
|
|
13395
|
+
moveColumn: [
|
|
13396
|
+
'POST /projects/columns/{column_id}/moves',
|
|
13397
|
+
{},
|
|
13398
|
+
{
|
|
13399
|
+
deprecated:
|
|
13400
|
+
'octokit.rest.projects.moveColumn() is deprecated, see https://docs.github.com/rest/projects/columns#move-a-project-column'
|
|
13401
|
+
}
|
|
13402
|
+
],
|
|
13403
|
+
removeCollaborator: [
|
|
13404
|
+
'DELETE /projects/{project_id}/collaborators/{username}',
|
|
13405
|
+
{},
|
|
13406
|
+
{
|
|
13407
|
+
deprecated:
|
|
13408
|
+
'octokit.rest.projects.removeCollaborator() is deprecated, see https://docs.github.com/rest/projects/collaborators#remove-user-as-a-collaborator'
|
|
13409
|
+
}
|
|
13410
|
+
],
|
|
13411
|
+
update: [
|
|
13412
|
+
'PATCH /projects/{project_id}',
|
|
13413
|
+
{},
|
|
13414
|
+
{
|
|
13415
|
+
deprecated:
|
|
13416
|
+
'octokit.rest.projects.update() is deprecated, see https://docs.github.com/rest/projects/projects#update-a-project'
|
|
13417
|
+
}
|
|
13418
|
+
],
|
|
13419
|
+
updateCard: [
|
|
13420
|
+
'PATCH /projects/columns/cards/{card_id}',
|
|
13421
|
+
{},
|
|
13422
|
+
{
|
|
13423
|
+
deprecated:
|
|
13424
|
+
'octokit.rest.projects.updateCard() is deprecated, see https://docs.github.com/rest/projects/cards#update-an-existing-project-card'
|
|
13425
|
+
}
|
|
13426
|
+
],
|
|
13427
|
+
updateColumn: [
|
|
13428
|
+
'PATCH /projects/columns/{column_id}',
|
|
13429
|
+
{},
|
|
13430
|
+
{
|
|
13431
|
+
deprecated:
|
|
13432
|
+
'octokit.rest.projects.updateColumn() is deprecated, see https://docs.github.com/rest/projects/columns#update-an-existing-project-column'
|
|
13433
|
+
}
|
|
13434
|
+
]
|
|
13435
|
+
},
|
|
13436
|
+
pulls: {
|
|
13437
|
+
checkIfMerged: ['GET /repos/{owner}/{repo}/pulls/{pull_number}/merge'],
|
|
13438
|
+
create: ['POST /repos/{owner}/{repo}/pulls'],
|
|
13439
|
+
createReplyForReviewComment: [
|
|
13440
|
+
'POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies'
|
|
13441
|
+
],
|
|
13442
|
+
createReview: ['POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews'],
|
|
13443
|
+
createReviewComment: [
|
|
13444
|
+
'POST /repos/{owner}/{repo}/pulls/{pull_number}/comments'
|
|
13445
|
+
],
|
|
13446
|
+
deletePendingReview: [
|
|
13447
|
+
'DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}'
|
|
13448
|
+
],
|
|
13449
|
+
deleteReviewComment: [
|
|
13450
|
+
'DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}'
|
|
13451
|
+
],
|
|
13452
|
+
dismissReview: [
|
|
13453
|
+
'PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals'
|
|
13454
|
+
],
|
|
13455
|
+
get: ['GET /repos/{owner}/{repo}/pulls/{pull_number}'],
|
|
13456
|
+
getReview: [
|
|
13457
|
+
'GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}'
|
|
13458
|
+
],
|
|
13459
|
+
getReviewComment: ['GET /repos/{owner}/{repo}/pulls/comments/{comment_id}'],
|
|
13460
|
+
list: ['GET /repos/{owner}/{repo}/pulls'],
|
|
13461
|
+
listCommentsForReview: [
|
|
13462
|
+
'GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments'
|
|
13463
|
+
],
|
|
13464
|
+
listCommits: ['GET /repos/{owner}/{repo}/pulls/{pull_number}/commits'],
|
|
13465
|
+
listFiles: ['GET /repos/{owner}/{repo}/pulls/{pull_number}/files'],
|
|
13466
|
+
listRequestedReviewers: [
|
|
13467
|
+
'GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers'
|
|
13468
|
+
],
|
|
13469
|
+
listReviewComments: [
|
|
13470
|
+
'GET /repos/{owner}/{repo}/pulls/{pull_number}/comments'
|
|
13471
|
+
],
|
|
13472
|
+
listReviewCommentsForRepo: ['GET /repos/{owner}/{repo}/pulls/comments'],
|
|
13473
|
+
listReviews: ['GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews'],
|
|
13474
|
+
merge: ['PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge'],
|
|
13475
|
+
removeRequestedReviewers: [
|
|
13476
|
+
'DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers'
|
|
13477
|
+
],
|
|
13478
|
+
requestReviewers: [
|
|
13479
|
+
'POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers'
|
|
13480
|
+
],
|
|
13481
|
+
submitReview: [
|
|
13482
|
+
'POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events'
|
|
13483
|
+
],
|
|
13484
|
+
update: ['PATCH /repos/{owner}/{repo}/pulls/{pull_number}'],
|
|
13485
|
+
updateBranch: [
|
|
13486
|
+
'PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch'
|
|
13487
|
+
],
|
|
13488
|
+
updateReview: [
|
|
13489
|
+
'PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}'
|
|
13490
|
+
],
|
|
13491
|
+
updateReviewComment: [
|
|
13492
|
+
'PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}'
|
|
13493
|
+
]
|
|
13494
|
+
},
|
|
13495
|
+
rateLimit: {
|
|
13496
|
+
get: ['GET /rate_limit']
|
|
13497
|
+
},
|
|
13498
|
+
reactions: {
|
|
13499
|
+
createForCommitComment: [
|
|
13500
|
+
'POST /repos/{owner}/{repo}/comments/{comment_id}/reactions'
|
|
13501
|
+
],
|
|
13502
|
+
createForIssue: [
|
|
13503
|
+
'POST /repos/{owner}/{repo}/issues/{issue_number}/reactions'
|
|
13504
|
+
],
|
|
13505
|
+
createForIssueComment: [
|
|
13506
|
+
'POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions'
|
|
13507
|
+
],
|
|
13508
|
+
createForPullRequestReviewComment: [
|
|
13509
|
+
'POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions'
|
|
13510
|
+
],
|
|
13511
|
+
createForRelease: [
|
|
13512
|
+
'POST /repos/{owner}/{repo}/releases/{release_id}/reactions'
|
|
13513
|
+
],
|
|
13514
|
+
createForTeamDiscussionCommentInOrg: [
|
|
13515
|
+
'POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions'
|
|
13516
|
+
],
|
|
13517
|
+
createForTeamDiscussionInOrg: [
|
|
13518
|
+
'POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions'
|
|
13519
|
+
],
|
|
13520
|
+
deleteForCommitComment: [
|
|
13521
|
+
'DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}'
|
|
13522
|
+
],
|
|
13523
|
+
deleteForIssue: [
|
|
13524
|
+
'DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}'
|
|
13525
|
+
],
|
|
13526
|
+
deleteForIssueComment: [
|
|
13527
|
+
'DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}'
|
|
13528
|
+
],
|
|
13529
|
+
deleteForPullRequestComment: [
|
|
13530
|
+
'DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}'
|
|
13531
|
+
],
|
|
13532
|
+
deleteForRelease: [
|
|
13533
|
+
'DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}'
|
|
13534
|
+
],
|
|
13535
|
+
deleteForTeamDiscussion: [
|
|
13536
|
+
'DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}'
|
|
13537
|
+
],
|
|
13538
|
+
deleteForTeamDiscussionComment: [
|
|
13539
|
+
'DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}'
|
|
13540
|
+
],
|
|
13541
|
+
listForCommitComment: [
|
|
13542
|
+
'GET /repos/{owner}/{repo}/comments/{comment_id}/reactions'
|
|
13543
|
+
],
|
|
13544
|
+
listForIssue: ['GET /repos/{owner}/{repo}/issues/{issue_number}/reactions'],
|
|
13545
|
+
listForIssueComment: [
|
|
13546
|
+
'GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions'
|
|
13547
|
+
],
|
|
13548
|
+
listForPullRequestReviewComment: [
|
|
13549
|
+
'GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions'
|
|
13550
|
+
],
|
|
13551
|
+
listForRelease: [
|
|
13552
|
+
'GET /repos/{owner}/{repo}/releases/{release_id}/reactions'
|
|
13553
|
+
],
|
|
13554
|
+
listForTeamDiscussionCommentInOrg: [
|
|
13555
|
+
'GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions'
|
|
13556
|
+
],
|
|
13557
|
+
listForTeamDiscussionInOrg: [
|
|
13558
|
+
'GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions'
|
|
13559
|
+
]
|
|
13560
|
+
},
|
|
13561
|
+
repos: {
|
|
13562
|
+
acceptInvitation: [
|
|
13563
|
+
'PATCH /user/repository_invitations/{invitation_id}',
|
|
13564
|
+
{},
|
|
13565
|
+
{
|
|
13566
|
+
renamed: ['repos', 'acceptInvitationForAuthenticatedUser']
|
|
13567
|
+
}
|
|
13568
|
+
],
|
|
13569
|
+
acceptInvitationForAuthenticatedUser: [
|
|
13570
|
+
'PATCH /user/repository_invitations/{invitation_id}'
|
|
13571
|
+
],
|
|
13572
|
+
addAppAccessRestrictions: [
|
|
13573
|
+
'POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps',
|
|
13574
|
+
{},
|
|
13575
|
+
{
|
|
13576
|
+
mapToData: 'apps'
|
|
13577
|
+
}
|
|
13578
|
+
],
|
|
13579
|
+
addCollaborator: ['PUT /repos/{owner}/{repo}/collaborators/{username}'],
|
|
13580
|
+
addStatusCheckContexts: [
|
|
13581
|
+
'POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts',
|
|
13582
|
+
{},
|
|
13583
|
+
{
|
|
13584
|
+
mapToData: 'contexts'
|
|
13585
|
+
}
|
|
13586
|
+
],
|
|
13587
|
+
addTeamAccessRestrictions: [
|
|
13588
|
+
'POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams',
|
|
13589
|
+
{},
|
|
13590
|
+
{
|
|
13591
|
+
mapToData: 'teams'
|
|
13592
|
+
}
|
|
13593
|
+
],
|
|
13594
|
+
addUserAccessRestrictions: [
|
|
13595
|
+
'POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users',
|
|
13596
|
+
{},
|
|
13597
|
+
{
|
|
13598
|
+
mapToData: 'users'
|
|
13599
|
+
}
|
|
13600
|
+
],
|
|
13601
|
+
cancelPagesDeployment: [
|
|
13602
|
+
'POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel'
|
|
13603
|
+
],
|
|
13604
|
+
checkAutomatedSecurityFixes: [
|
|
13605
|
+
'GET /repos/{owner}/{repo}/automated-security-fixes'
|
|
13606
|
+
],
|
|
13607
|
+
checkCollaborator: ['GET /repos/{owner}/{repo}/collaborators/{username}'],
|
|
13608
|
+
checkPrivateVulnerabilityReporting: [
|
|
13609
|
+
'GET /repos/{owner}/{repo}/private-vulnerability-reporting'
|
|
13610
|
+
],
|
|
13611
|
+
checkVulnerabilityAlerts: [
|
|
13612
|
+
'GET /repos/{owner}/{repo}/vulnerability-alerts'
|
|
13613
|
+
],
|
|
13614
|
+
codeownersErrors: ['GET /repos/{owner}/{repo}/codeowners/errors'],
|
|
13615
|
+
compareCommits: ['GET /repos/{owner}/{repo}/compare/{base}...{head}'],
|
|
13616
|
+
compareCommitsWithBasehead: [
|
|
13617
|
+
'GET /repos/{owner}/{repo}/compare/{basehead}'
|
|
13618
|
+
],
|
|
13619
|
+
createAttestation: ['POST /repos/{owner}/{repo}/attestations'],
|
|
13620
|
+
createAutolink: ['POST /repos/{owner}/{repo}/autolinks'],
|
|
13621
|
+
createCommitComment: [
|
|
13622
|
+
'POST /repos/{owner}/{repo}/commits/{commit_sha}/comments'
|
|
13623
|
+
],
|
|
13624
|
+
createCommitSignatureProtection: [
|
|
13625
|
+
'POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures'
|
|
13626
|
+
],
|
|
13627
|
+
createCommitStatus: ['POST /repos/{owner}/{repo}/statuses/{sha}'],
|
|
13628
|
+
createDeployKey: ['POST /repos/{owner}/{repo}/keys'],
|
|
13629
|
+
createDeployment: ['POST /repos/{owner}/{repo}/deployments'],
|
|
13630
|
+
createDeploymentBranchPolicy: [
|
|
13631
|
+
'POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies'
|
|
13632
|
+
],
|
|
13633
|
+
createDeploymentProtectionRule: [
|
|
13634
|
+
'POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules'
|
|
13635
|
+
],
|
|
13636
|
+
createDeploymentStatus: [
|
|
13637
|
+
'POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses'
|
|
13638
|
+
],
|
|
13639
|
+
createDispatchEvent: ['POST /repos/{owner}/{repo}/dispatches'],
|
|
13640
|
+
createForAuthenticatedUser: ['POST /user/repos'],
|
|
13641
|
+
createFork: ['POST /repos/{owner}/{repo}/forks'],
|
|
13642
|
+
createInOrg: ['POST /orgs/{org}/repos'],
|
|
13643
|
+
createOrUpdateCustomPropertiesValues: [
|
|
13644
|
+
'PATCH /repos/{owner}/{repo}/properties/values'
|
|
13645
|
+
],
|
|
13646
|
+
createOrUpdateEnvironment: [
|
|
13647
|
+
'PUT /repos/{owner}/{repo}/environments/{environment_name}'
|
|
13648
|
+
],
|
|
13649
|
+
createOrUpdateFileContents: ['PUT /repos/{owner}/{repo}/contents/{path}'],
|
|
13650
|
+
createOrgRuleset: ['POST /orgs/{org}/rulesets'],
|
|
13651
|
+
createPagesDeployment: ['POST /repos/{owner}/{repo}/pages/deployments'],
|
|
13652
|
+
createPagesSite: ['POST /repos/{owner}/{repo}/pages'],
|
|
13653
|
+
createRelease: ['POST /repos/{owner}/{repo}/releases'],
|
|
13654
|
+
createRepoRuleset: ['POST /repos/{owner}/{repo}/rulesets'],
|
|
13655
|
+
createUsingTemplate: [
|
|
13656
|
+
'POST /repos/{template_owner}/{template_repo}/generate'
|
|
13657
|
+
],
|
|
13658
|
+
createWebhook: ['POST /repos/{owner}/{repo}/hooks'],
|
|
13659
|
+
declineInvitation: [
|
|
13660
|
+
'DELETE /user/repository_invitations/{invitation_id}',
|
|
13661
|
+
{},
|
|
13662
|
+
{
|
|
13663
|
+
renamed: ['repos', 'declineInvitationForAuthenticatedUser']
|
|
13664
|
+
}
|
|
13665
|
+
],
|
|
13666
|
+
declineInvitationForAuthenticatedUser: [
|
|
13667
|
+
'DELETE /user/repository_invitations/{invitation_id}'
|
|
13668
|
+
],
|
|
13669
|
+
delete: ['DELETE /repos/{owner}/{repo}'],
|
|
13670
|
+
deleteAccessRestrictions: [
|
|
13671
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions'
|
|
13672
|
+
],
|
|
13673
|
+
deleteAdminBranchProtection: [
|
|
13674
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins'
|
|
13675
|
+
],
|
|
13676
|
+
deleteAnEnvironment: [
|
|
13677
|
+
'DELETE /repos/{owner}/{repo}/environments/{environment_name}'
|
|
13678
|
+
],
|
|
13679
|
+
deleteAutolink: ['DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}'],
|
|
13680
|
+
deleteBranchProtection: [
|
|
13681
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection'
|
|
13682
|
+
],
|
|
13683
|
+
deleteCommitComment: ['DELETE /repos/{owner}/{repo}/comments/{comment_id}'],
|
|
13684
|
+
deleteCommitSignatureProtection: [
|
|
13685
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures'
|
|
13686
|
+
],
|
|
13687
|
+
deleteDeployKey: ['DELETE /repos/{owner}/{repo}/keys/{key_id}'],
|
|
13688
|
+
deleteDeployment: [
|
|
13689
|
+
'DELETE /repos/{owner}/{repo}/deployments/{deployment_id}'
|
|
13690
|
+
],
|
|
13691
|
+
deleteDeploymentBranchPolicy: [
|
|
13692
|
+
'DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}'
|
|
13693
|
+
],
|
|
13694
|
+
deleteFile: ['DELETE /repos/{owner}/{repo}/contents/{path}'],
|
|
13695
|
+
deleteInvitation: [
|
|
13696
|
+
'DELETE /repos/{owner}/{repo}/invitations/{invitation_id}'
|
|
13697
|
+
],
|
|
13698
|
+
deleteOrgRuleset: ['DELETE /orgs/{org}/rulesets/{ruleset_id}'],
|
|
13699
|
+
deletePagesSite: ['DELETE /repos/{owner}/{repo}/pages'],
|
|
13700
|
+
deletePullRequestReviewProtection: [
|
|
13701
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews'
|
|
13702
|
+
],
|
|
13703
|
+
deleteRelease: ['DELETE /repos/{owner}/{repo}/releases/{release_id}'],
|
|
13704
|
+
deleteReleaseAsset: [
|
|
13705
|
+
'DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}'
|
|
13706
|
+
],
|
|
13707
|
+
deleteRepoRuleset: ['DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}'],
|
|
13708
|
+
deleteWebhook: ['DELETE /repos/{owner}/{repo}/hooks/{hook_id}'],
|
|
13709
|
+
disableAutomatedSecurityFixes: [
|
|
13710
|
+
'DELETE /repos/{owner}/{repo}/automated-security-fixes'
|
|
13711
|
+
],
|
|
13712
|
+
disableDeploymentProtectionRule: [
|
|
13713
|
+
'DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}'
|
|
13714
|
+
],
|
|
13715
|
+
disablePrivateVulnerabilityReporting: [
|
|
13716
|
+
'DELETE /repos/{owner}/{repo}/private-vulnerability-reporting'
|
|
13717
|
+
],
|
|
13718
|
+
disableVulnerabilityAlerts: [
|
|
13719
|
+
'DELETE /repos/{owner}/{repo}/vulnerability-alerts'
|
|
13720
|
+
],
|
|
13721
|
+
downloadArchive: [
|
|
13722
|
+
'GET /repos/{owner}/{repo}/zipball/{ref}',
|
|
13723
|
+
{},
|
|
13724
|
+
{
|
|
13725
|
+
renamed: ['repos', 'downloadZipballArchive']
|
|
13726
|
+
}
|
|
13727
|
+
],
|
|
13728
|
+
downloadTarballArchive: ['GET /repos/{owner}/{repo}/tarball/{ref}'],
|
|
13729
|
+
downloadZipballArchive: ['GET /repos/{owner}/{repo}/zipball/{ref}'],
|
|
13730
|
+
enableAutomatedSecurityFixes: [
|
|
13731
|
+
'PUT /repos/{owner}/{repo}/automated-security-fixes'
|
|
13732
|
+
],
|
|
13733
|
+
enablePrivateVulnerabilityReporting: [
|
|
13734
|
+
'PUT /repos/{owner}/{repo}/private-vulnerability-reporting'
|
|
13735
|
+
],
|
|
13736
|
+
enableVulnerabilityAlerts: [
|
|
13737
|
+
'PUT /repos/{owner}/{repo}/vulnerability-alerts'
|
|
13738
|
+
],
|
|
13739
|
+
generateReleaseNotes: [
|
|
13740
|
+
'POST /repos/{owner}/{repo}/releases/generate-notes'
|
|
13741
|
+
],
|
|
13742
|
+
get: ['GET /repos/{owner}/{repo}'],
|
|
13743
|
+
getAccessRestrictions: [
|
|
13744
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions'
|
|
13745
|
+
],
|
|
13746
|
+
getAdminBranchProtection: [
|
|
13747
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins'
|
|
13748
|
+
],
|
|
13749
|
+
getAllDeploymentProtectionRules: [
|
|
13750
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules'
|
|
13751
|
+
],
|
|
13752
|
+
getAllEnvironments: ['GET /repos/{owner}/{repo}/environments'],
|
|
13753
|
+
getAllStatusCheckContexts: [
|
|
13754
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts'
|
|
13755
|
+
],
|
|
13756
|
+
getAllTopics: ['GET /repos/{owner}/{repo}/topics'],
|
|
13757
|
+
getAppsWithAccessToProtectedBranch: [
|
|
13758
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps'
|
|
13759
|
+
],
|
|
13760
|
+
getAutolink: ['GET /repos/{owner}/{repo}/autolinks/{autolink_id}'],
|
|
13761
|
+
getBranch: ['GET /repos/{owner}/{repo}/branches/{branch}'],
|
|
13762
|
+
getBranchProtection: [
|
|
13763
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection'
|
|
13764
|
+
],
|
|
13765
|
+
getBranchRules: ['GET /repos/{owner}/{repo}/rules/branches/{branch}'],
|
|
13766
|
+
getClones: ['GET /repos/{owner}/{repo}/traffic/clones'],
|
|
13767
|
+
getCodeFrequencyStats: ['GET /repos/{owner}/{repo}/stats/code_frequency'],
|
|
13768
|
+
getCollaboratorPermissionLevel: [
|
|
13769
|
+
'GET /repos/{owner}/{repo}/collaborators/{username}/permission'
|
|
13770
|
+
],
|
|
13771
|
+
getCombinedStatusForRef: ['GET /repos/{owner}/{repo}/commits/{ref}/status'],
|
|
13772
|
+
getCommit: ['GET /repos/{owner}/{repo}/commits/{ref}'],
|
|
13773
|
+
getCommitActivityStats: ['GET /repos/{owner}/{repo}/stats/commit_activity'],
|
|
13774
|
+
getCommitComment: ['GET /repos/{owner}/{repo}/comments/{comment_id}'],
|
|
13775
|
+
getCommitSignatureProtection: [
|
|
13776
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures'
|
|
13777
|
+
],
|
|
13778
|
+
getCommunityProfileMetrics: ['GET /repos/{owner}/{repo}/community/profile'],
|
|
13779
|
+
getContent: ['GET /repos/{owner}/{repo}/contents/{path}'],
|
|
13780
|
+
getContributorsStats: ['GET /repos/{owner}/{repo}/stats/contributors'],
|
|
13781
|
+
getCustomDeploymentProtectionRule: [
|
|
13782
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}'
|
|
13783
|
+
],
|
|
13784
|
+
getCustomPropertiesValues: ['GET /repos/{owner}/{repo}/properties/values'],
|
|
13785
|
+
getDeployKey: ['GET /repos/{owner}/{repo}/keys/{key_id}'],
|
|
13786
|
+
getDeployment: ['GET /repos/{owner}/{repo}/deployments/{deployment_id}'],
|
|
13787
|
+
getDeploymentBranchPolicy: [
|
|
13788
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}'
|
|
13789
|
+
],
|
|
13790
|
+
getDeploymentStatus: [
|
|
13791
|
+
'GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}'
|
|
13792
|
+
],
|
|
13793
|
+
getEnvironment: [
|
|
13794
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}'
|
|
13795
|
+
],
|
|
13796
|
+
getLatestPagesBuild: ['GET /repos/{owner}/{repo}/pages/builds/latest'],
|
|
13797
|
+
getLatestRelease: ['GET /repos/{owner}/{repo}/releases/latest'],
|
|
13798
|
+
getOrgRuleSuite: ['GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}'],
|
|
13799
|
+
getOrgRuleSuites: ['GET /orgs/{org}/rulesets/rule-suites'],
|
|
13800
|
+
getOrgRuleset: ['GET /orgs/{org}/rulesets/{ruleset_id}'],
|
|
13801
|
+
getOrgRulesets: ['GET /orgs/{org}/rulesets'],
|
|
13802
|
+
getPages: ['GET /repos/{owner}/{repo}/pages'],
|
|
13803
|
+
getPagesBuild: ['GET /repos/{owner}/{repo}/pages/builds/{build_id}'],
|
|
13804
|
+
getPagesDeployment: [
|
|
13805
|
+
'GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}'
|
|
13806
|
+
],
|
|
13807
|
+
getPagesHealthCheck: ['GET /repos/{owner}/{repo}/pages/health'],
|
|
13808
|
+
getParticipationStats: ['GET /repos/{owner}/{repo}/stats/participation'],
|
|
13809
|
+
getPullRequestReviewProtection: [
|
|
13810
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews'
|
|
13811
|
+
],
|
|
13812
|
+
getPunchCardStats: ['GET /repos/{owner}/{repo}/stats/punch_card'],
|
|
13813
|
+
getReadme: ['GET /repos/{owner}/{repo}/readme'],
|
|
13814
|
+
getReadmeInDirectory: ['GET /repos/{owner}/{repo}/readme/{dir}'],
|
|
13815
|
+
getRelease: ['GET /repos/{owner}/{repo}/releases/{release_id}'],
|
|
13816
|
+
getReleaseAsset: ['GET /repos/{owner}/{repo}/releases/assets/{asset_id}'],
|
|
13817
|
+
getReleaseByTag: ['GET /repos/{owner}/{repo}/releases/tags/{tag}'],
|
|
13818
|
+
getRepoRuleSuite: [
|
|
13819
|
+
'GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}'
|
|
13820
|
+
],
|
|
13821
|
+
getRepoRuleSuites: ['GET /repos/{owner}/{repo}/rulesets/rule-suites'],
|
|
13822
|
+
getRepoRuleset: ['GET /repos/{owner}/{repo}/rulesets/{ruleset_id}'],
|
|
13823
|
+
getRepoRulesetHistory: [
|
|
13824
|
+
'GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history'
|
|
13825
|
+
],
|
|
13826
|
+
getRepoRulesetVersion: [
|
|
13827
|
+
'GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}'
|
|
13828
|
+
],
|
|
13829
|
+
getRepoRulesets: ['GET /repos/{owner}/{repo}/rulesets'],
|
|
13830
|
+
getStatusChecksProtection: [
|
|
13831
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks'
|
|
13832
|
+
],
|
|
13833
|
+
getTeamsWithAccessToProtectedBranch: [
|
|
13834
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams'
|
|
13835
|
+
],
|
|
13836
|
+
getTopPaths: ['GET /repos/{owner}/{repo}/traffic/popular/paths'],
|
|
13837
|
+
getTopReferrers: ['GET /repos/{owner}/{repo}/traffic/popular/referrers'],
|
|
13838
|
+
getUsersWithAccessToProtectedBranch: [
|
|
13839
|
+
'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users'
|
|
13840
|
+
],
|
|
13841
|
+
getViews: ['GET /repos/{owner}/{repo}/traffic/views'],
|
|
13842
|
+
getWebhook: ['GET /repos/{owner}/{repo}/hooks/{hook_id}'],
|
|
13843
|
+
getWebhookConfigForRepo: [
|
|
13844
|
+
'GET /repos/{owner}/{repo}/hooks/{hook_id}/config'
|
|
13845
|
+
],
|
|
13846
|
+
getWebhookDelivery: [
|
|
13847
|
+
'GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}'
|
|
13848
|
+
],
|
|
13849
|
+
listActivities: ['GET /repos/{owner}/{repo}/activity'],
|
|
13850
|
+
listAttestations: [
|
|
13851
|
+
'GET /repos/{owner}/{repo}/attestations/{subject_digest}'
|
|
13852
|
+
],
|
|
13853
|
+
listAutolinks: ['GET /repos/{owner}/{repo}/autolinks'],
|
|
13854
|
+
listBranches: ['GET /repos/{owner}/{repo}/branches'],
|
|
13855
|
+
listBranchesForHeadCommit: [
|
|
13856
|
+
'GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head'
|
|
13857
|
+
],
|
|
13858
|
+
listCollaborators: ['GET /repos/{owner}/{repo}/collaborators'],
|
|
13859
|
+
listCommentsForCommit: [
|
|
13860
|
+
'GET /repos/{owner}/{repo}/commits/{commit_sha}/comments'
|
|
13861
|
+
],
|
|
13862
|
+
listCommitCommentsForRepo: ['GET /repos/{owner}/{repo}/comments'],
|
|
13863
|
+
listCommitStatusesForRef: [
|
|
13864
|
+
'GET /repos/{owner}/{repo}/commits/{ref}/statuses'
|
|
13865
|
+
],
|
|
13866
|
+
listCommits: ['GET /repos/{owner}/{repo}/commits'],
|
|
13867
|
+
listContributors: ['GET /repos/{owner}/{repo}/contributors'],
|
|
13868
|
+
listCustomDeploymentRuleIntegrations: [
|
|
13869
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps'
|
|
13870
|
+
],
|
|
13871
|
+
listDeployKeys: ['GET /repos/{owner}/{repo}/keys'],
|
|
13872
|
+
listDeploymentBranchPolicies: [
|
|
13873
|
+
'GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies'
|
|
13874
|
+
],
|
|
13875
|
+
listDeploymentStatuses: [
|
|
13876
|
+
'GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses'
|
|
13877
|
+
],
|
|
13878
|
+
listDeployments: ['GET /repos/{owner}/{repo}/deployments'],
|
|
13879
|
+
listForAuthenticatedUser: ['GET /user/repos'],
|
|
13880
|
+
listForOrg: ['GET /orgs/{org}/repos'],
|
|
13881
|
+
listForUser: ['GET /users/{username}/repos'],
|
|
13882
|
+
listForks: ['GET /repos/{owner}/{repo}/forks'],
|
|
13883
|
+
listInvitations: ['GET /repos/{owner}/{repo}/invitations'],
|
|
13884
|
+
listInvitationsForAuthenticatedUser: ['GET /user/repository_invitations'],
|
|
13885
|
+
listLanguages: ['GET /repos/{owner}/{repo}/languages'],
|
|
13886
|
+
listPagesBuilds: ['GET /repos/{owner}/{repo}/pages/builds'],
|
|
13887
|
+
listPublic: ['GET /repositories'],
|
|
13888
|
+
listPullRequestsAssociatedWithCommit: [
|
|
13889
|
+
'GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls'
|
|
13890
|
+
],
|
|
13891
|
+
listReleaseAssets: [
|
|
13892
|
+
'GET /repos/{owner}/{repo}/releases/{release_id}/assets'
|
|
13893
|
+
],
|
|
13894
|
+
listReleases: ['GET /repos/{owner}/{repo}/releases'],
|
|
13895
|
+
listTags: ['GET /repos/{owner}/{repo}/tags'],
|
|
13896
|
+
listTeams: ['GET /repos/{owner}/{repo}/teams'],
|
|
13897
|
+
listWebhookDeliveries: [
|
|
13898
|
+
'GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries'
|
|
13899
|
+
],
|
|
13900
|
+
listWebhooks: ['GET /repos/{owner}/{repo}/hooks'],
|
|
13901
|
+
merge: ['POST /repos/{owner}/{repo}/merges'],
|
|
13902
|
+
mergeUpstream: ['POST /repos/{owner}/{repo}/merge-upstream'],
|
|
13903
|
+
pingWebhook: ['POST /repos/{owner}/{repo}/hooks/{hook_id}/pings'],
|
|
13904
|
+
redeliverWebhookDelivery: [
|
|
13905
|
+
'POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts'
|
|
13906
|
+
],
|
|
13907
|
+
removeAppAccessRestrictions: [
|
|
13908
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps',
|
|
13909
|
+
{},
|
|
13910
|
+
{
|
|
13911
|
+
mapToData: 'apps'
|
|
13912
|
+
}
|
|
13913
|
+
],
|
|
13914
|
+
removeCollaborator: [
|
|
13915
|
+
'DELETE /repos/{owner}/{repo}/collaborators/{username}'
|
|
13916
|
+
],
|
|
13917
|
+
removeStatusCheckContexts: [
|
|
13918
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts',
|
|
13919
|
+
{},
|
|
13920
|
+
{
|
|
13921
|
+
mapToData: 'contexts'
|
|
13922
|
+
}
|
|
13923
|
+
],
|
|
13924
|
+
removeStatusCheckProtection: [
|
|
13925
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks'
|
|
13926
|
+
],
|
|
13927
|
+
removeTeamAccessRestrictions: [
|
|
13928
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams',
|
|
13929
|
+
{},
|
|
13930
|
+
{
|
|
13931
|
+
mapToData: 'teams'
|
|
13932
|
+
}
|
|
13933
|
+
],
|
|
13934
|
+
removeUserAccessRestrictions: [
|
|
13935
|
+
'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users',
|
|
13936
|
+
{},
|
|
13937
|
+
{
|
|
13938
|
+
mapToData: 'users'
|
|
13939
|
+
}
|
|
13940
|
+
],
|
|
13941
|
+
renameBranch: ['POST /repos/{owner}/{repo}/branches/{branch}/rename'],
|
|
13942
|
+
replaceAllTopics: ['PUT /repos/{owner}/{repo}/topics'],
|
|
13943
|
+
requestPagesBuild: ['POST /repos/{owner}/{repo}/pages/builds'],
|
|
13944
|
+
setAdminBranchProtection: [
|
|
13945
|
+
'POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins'
|
|
13946
|
+
],
|
|
13947
|
+
setAppAccessRestrictions: [
|
|
13948
|
+
'PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps',
|
|
13949
|
+
{},
|
|
13950
|
+
{
|
|
13951
|
+
mapToData: 'apps'
|
|
13952
|
+
}
|
|
13953
|
+
],
|
|
13954
|
+
setStatusCheckContexts: [
|
|
13955
|
+
'PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts',
|
|
13956
|
+
{},
|
|
13957
|
+
{
|
|
13958
|
+
mapToData: 'contexts'
|
|
13959
|
+
}
|
|
13960
|
+
],
|
|
13961
|
+
setTeamAccessRestrictions: [
|
|
13962
|
+
'PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams',
|
|
13963
|
+
{},
|
|
13964
|
+
{
|
|
13965
|
+
mapToData: 'teams'
|
|
13966
|
+
}
|
|
13967
|
+
],
|
|
13968
|
+
setUserAccessRestrictions: [
|
|
13969
|
+
'PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users',
|
|
13970
|
+
{},
|
|
13971
|
+
{
|
|
13972
|
+
mapToData: 'users'
|
|
13973
|
+
}
|
|
13974
|
+
],
|
|
13975
|
+
testPushWebhook: ['POST /repos/{owner}/{repo}/hooks/{hook_id}/tests'],
|
|
13976
|
+
transfer: ['POST /repos/{owner}/{repo}/transfer'],
|
|
13977
|
+
update: ['PATCH /repos/{owner}/{repo}'],
|
|
13978
|
+
updateBranchProtection: [
|
|
13979
|
+
'PUT /repos/{owner}/{repo}/branches/{branch}/protection'
|
|
13980
|
+
],
|
|
13981
|
+
updateCommitComment: ['PATCH /repos/{owner}/{repo}/comments/{comment_id}'],
|
|
13982
|
+
updateDeploymentBranchPolicy: [
|
|
13983
|
+
'PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}'
|
|
13984
|
+
],
|
|
13985
|
+
updateInformationAboutPagesSite: ['PUT /repos/{owner}/{repo}/pages'],
|
|
13986
|
+
updateInvitation: [
|
|
13987
|
+
'PATCH /repos/{owner}/{repo}/invitations/{invitation_id}'
|
|
13988
|
+
],
|
|
13989
|
+
updateOrgRuleset: ['PUT /orgs/{org}/rulesets/{ruleset_id}'],
|
|
13990
|
+
updatePullRequestReviewProtection: [
|
|
13991
|
+
'PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews'
|
|
13992
|
+
],
|
|
13993
|
+
updateRelease: ['PATCH /repos/{owner}/{repo}/releases/{release_id}'],
|
|
13994
|
+
updateReleaseAsset: [
|
|
13995
|
+
'PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}'
|
|
13996
|
+
],
|
|
13997
|
+
updateRepoRuleset: ['PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}'],
|
|
13998
|
+
updateStatusCheckPotection: [
|
|
13999
|
+
'PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks',
|
|
14000
|
+
{},
|
|
14001
|
+
{
|
|
14002
|
+
renamed: ['repos', 'updateStatusCheckProtection']
|
|
14003
|
+
}
|
|
14004
|
+
],
|
|
14005
|
+
updateStatusCheckProtection: [
|
|
14006
|
+
'PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks'
|
|
14007
|
+
],
|
|
14008
|
+
updateWebhook: ['PATCH /repos/{owner}/{repo}/hooks/{hook_id}'],
|
|
14009
|
+
updateWebhookConfigForRepo: [
|
|
14010
|
+
'PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config'
|
|
14011
|
+
],
|
|
14012
|
+
uploadReleaseAsset: [
|
|
14013
|
+
'POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}',
|
|
14014
|
+
{
|
|
14015
|
+
baseUrl: 'https://uploads.github.com'
|
|
14016
|
+
}
|
|
14017
|
+
]
|
|
14018
|
+
},
|
|
14019
|
+
search: {
|
|
14020
|
+
code: ['GET /search/code'],
|
|
14021
|
+
commits: ['GET /search/commits'],
|
|
14022
|
+
issuesAndPullRequests: [
|
|
14023
|
+
'GET /search/issues',
|
|
14024
|
+
{},
|
|
14025
|
+
{
|
|
14026
|
+
deprecated:
|
|
14027
|
+
'octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests'
|
|
14028
|
+
}
|
|
14029
|
+
],
|
|
14030
|
+
labels: ['GET /search/labels'],
|
|
14031
|
+
repos: ['GET /search/repositories'],
|
|
14032
|
+
topics: ['GET /search/topics'],
|
|
14033
|
+
users: ['GET /search/users']
|
|
14034
|
+
},
|
|
14035
|
+
secretScanning: {
|
|
14036
|
+
createPushProtectionBypass: [
|
|
14037
|
+
'POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses'
|
|
14038
|
+
],
|
|
14039
|
+
getAlert: [
|
|
14040
|
+
'GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}'
|
|
14041
|
+
],
|
|
14042
|
+
getScanHistory: ['GET /repos/{owner}/{repo}/secret-scanning/scan-history'],
|
|
14043
|
+
listAlertsForEnterprise: [
|
|
14044
|
+
'GET /enterprises/{enterprise}/secret-scanning/alerts'
|
|
14045
|
+
],
|
|
14046
|
+
listAlertsForOrg: ['GET /orgs/{org}/secret-scanning/alerts'],
|
|
14047
|
+
listAlertsForRepo: ['GET /repos/{owner}/{repo}/secret-scanning/alerts'],
|
|
14048
|
+
listLocationsForAlert: [
|
|
14049
|
+
'GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations'
|
|
14050
|
+
],
|
|
14051
|
+
updateAlert: [
|
|
14052
|
+
'PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}'
|
|
14053
|
+
]
|
|
14054
|
+
},
|
|
14055
|
+
securityAdvisories: {
|
|
14056
|
+
createFork: [
|
|
14057
|
+
'POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks'
|
|
14058
|
+
],
|
|
14059
|
+
createPrivateVulnerabilityReport: [
|
|
14060
|
+
'POST /repos/{owner}/{repo}/security-advisories/reports'
|
|
14061
|
+
],
|
|
14062
|
+
createRepositoryAdvisory: [
|
|
14063
|
+
'POST /repos/{owner}/{repo}/security-advisories'
|
|
14064
|
+
],
|
|
14065
|
+
createRepositoryAdvisoryCveRequest: [
|
|
14066
|
+
'POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve'
|
|
14067
|
+
],
|
|
14068
|
+
getGlobalAdvisory: ['GET /advisories/{ghsa_id}'],
|
|
14069
|
+
getRepositoryAdvisory: [
|
|
14070
|
+
'GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}'
|
|
14071
|
+
],
|
|
14072
|
+
listGlobalAdvisories: ['GET /advisories'],
|
|
14073
|
+
listOrgRepositoryAdvisories: ['GET /orgs/{org}/security-advisories'],
|
|
14074
|
+
listRepositoryAdvisories: ['GET /repos/{owner}/{repo}/security-advisories'],
|
|
14075
|
+
updateRepositoryAdvisory: [
|
|
14076
|
+
'PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}'
|
|
14077
|
+
]
|
|
14078
|
+
},
|
|
14079
|
+
teams: {
|
|
14080
|
+
addOrUpdateMembershipForUserInOrg: [
|
|
14081
|
+
'PUT /orgs/{org}/teams/{team_slug}/memberships/{username}'
|
|
14082
|
+
],
|
|
14083
|
+
addOrUpdateProjectPermissionsInOrg: [
|
|
14084
|
+
'PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}',
|
|
14085
|
+
{},
|
|
14086
|
+
{
|
|
14087
|
+
deprecated:
|
|
14088
|
+
'octokit.rest.teams.addOrUpdateProjectPermissionsInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions'
|
|
14089
|
+
}
|
|
14090
|
+
],
|
|
14091
|
+
addOrUpdateProjectPermissionsLegacy: [
|
|
14092
|
+
'PUT /teams/{team_id}/projects/{project_id}',
|
|
14093
|
+
{},
|
|
14094
|
+
{
|
|
14095
|
+
deprecated:
|
|
14096
|
+
'octokit.rest.teams.addOrUpdateProjectPermissionsLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions-legacy'
|
|
14097
|
+
}
|
|
14098
|
+
],
|
|
14099
|
+
addOrUpdateRepoPermissionsInOrg: [
|
|
14100
|
+
'PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}'
|
|
14101
|
+
],
|
|
14102
|
+
checkPermissionsForProjectInOrg: [
|
|
14103
|
+
'GET /orgs/{org}/teams/{team_slug}/projects/{project_id}',
|
|
14104
|
+
{},
|
|
14105
|
+
{
|
|
14106
|
+
deprecated:
|
|
14107
|
+
'octokit.rest.teams.checkPermissionsForProjectInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project'
|
|
14108
|
+
}
|
|
14109
|
+
],
|
|
14110
|
+
checkPermissionsForProjectLegacy: [
|
|
14111
|
+
'GET /teams/{team_id}/projects/{project_id}',
|
|
14112
|
+
{},
|
|
14113
|
+
{
|
|
14114
|
+
deprecated:
|
|
14115
|
+
'octokit.rest.teams.checkPermissionsForProjectLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project-legacy'
|
|
14116
|
+
}
|
|
14117
|
+
],
|
|
14118
|
+
checkPermissionsForRepoInOrg: [
|
|
14119
|
+
'GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}'
|
|
14120
|
+
],
|
|
14121
|
+
create: ['POST /orgs/{org}/teams'],
|
|
14122
|
+
createDiscussionCommentInOrg: [
|
|
14123
|
+
'POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments'
|
|
14124
|
+
],
|
|
14125
|
+
createDiscussionInOrg: ['POST /orgs/{org}/teams/{team_slug}/discussions'],
|
|
14126
|
+
deleteDiscussionCommentInOrg: [
|
|
14127
|
+
'DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}'
|
|
14128
|
+
],
|
|
14129
|
+
deleteDiscussionInOrg: [
|
|
14130
|
+
'DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}'
|
|
14131
|
+
],
|
|
14132
|
+
deleteInOrg: ['DELETE /orgs/{org}/teams/{team_slug}'],
|
|
14133
|
+
getByName: ['GET /orgs/{org}/teams/{team_slug}'],
|
|
14134
|
+
getDiscussionCommentInOrg: [
|
|
14135
|
+
'GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}'
|
|
14136
|
+
],
|
|
14137
|
+
getDiscussionInOrg: [
|
|
14138
|
+
'GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}'
|
|
14139
|
+
],
|
|
14140
|
+
getMembershipForUserInOrg: [
|
|
14141
|
+
'GET /orgs/{org}/teams/{team_slug}/memberships/{username}'
|
|
14142
|
+
],
|
|
14143
|
+
list: ['GET /orgs/{org}/teams'],
|
|
14144
|
+
listChildInOrg: ['GET /orgs/{org}/teams/{team_slug}/teams'],
|
|
14145
|
+
listDiscussionCommentsInOrg: [
|
|
14146
|
+
'GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments'
|
|
14147
|
+
],
|
|
14148
|
+
listDiscussionsInOrg: ['GET /orgs/{org}/teams/{team_slug}/discussions'],
|
|
14149
|
+
listForAuthenticatedUser: ['GET /user/teams'],
|
|
14150
|
+
listMembersInOrg: ['GET /orgs/{org}/teams/{team_slug}/members'],
|
|
14151
|
+
listPendingInvitationsInOrg: [
|
|
14152
|
+
'GET /orgs/{org}/teams/{team_slug}/invitations'
|
|
14153
|
+
],
|
|
14154
|
+
listProjectsInOrg: [
|
|
14155
|
+
'GET /orgs/{org}/teams/{team_slug}/projects',
|
|
14156
|
+
{},
|
|
14157
|
+
{
|
|
14158
|
+
deprecated:
|
|
14159
|
+
'octokit.rest.teams.listProjectsInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#list-team-projects'
|
|
14160
|
+
}
|
|
14161
|
+
],
|
|
14162
|
+
listProjectsLegacy: [
|
|
14163
|
+
'GET /teams/{team_id}/projects',
|
|
14164
|
+
{},
|
|
14165
|
+
{
|
|
14166
|
+
deprecated:
|
|
14167
|
+
'octokit.rest.teams.listProjectsLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#list-team-projects-legacy'
|
|
14168
|
+
}
|
|
14169
|
+
],
|
|
14170
|
+
listReposInOrg: ['GET /orgs/{org}/teams/{team_slug}/repos'],
|
|
14171
|
+
removeMembershipForUserInOrg: [
|
|
14172
|
+
'DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}'
|
|
14173
|
+
],
|
|
14174
|
+
removeProjectInOrg: [
|
|
14175
|
+
'DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}',
|
|
14176
|
+
{},
|
|
14177
|
+
{
|
|
14178
|
+
deprecated:
|
|
14179
|
+
'octokit.rest.teams.removeProjectInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team'
|
|
14180
|
+
}
|
|
14181
|
+
],
|
|
14182
|
+
removeProjectLegacy: [
|
|
14183
|
+
'DELETE /teams/{team_id}/projects/{project_id}',
|
|
14184
|
+
{},
|
|
14185
|
+
{
|
|
14186
|
+
deprecated:
|
|
14187
|
+
'octokit.rest.teams.removeProjectLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team-legacy'
|
|
14188
|
+
}
|
|
14189
|
+
],
|
|
14190
|
+
removeRepoInOrg: [
|
|
14191
|
+
'DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}'
|
|
14192
|
+
],
|
|
14193
|
+
updateDiscussionCommentInOrg: [
|
|
14194
|
+
'PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}'
|
|
14195
|
+
],
|
|
14196
|
+
updateDiscussionInOrg: [
|
|
14197
|
+
'PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}'
|
|
14198
|
+
],
|
|
14199
|
+
updateInOrg: ['PATCH /orgs/{org}/teams/{team_slug}']
|
|
14200
|
+
},
|
|
14201
|
+
users: {
|
|
14202
|
+
addEmailForAuthenticated: [
|
|
14203
|
+
'POST /user/emails',
|
|
14204
|
+
{},
|
|
14205
|
+
{
|
|
14206
|
+
renamed: ['users', 'addEmailForAuthenticatedUser']
|
|
14207
|
+
}
|
|
14208
|
+
],
|
|
14209
|
+
addEmailForAuthenticatedUser: ['POST /user/emails'],
|
|
14210
|
+
addSocialAccountForAuthenticatedUser: ['POST /user/social_accounts'],
|
|
14211
|
+
block: ['PUT /user/blocks/{username}'],
|
|
14212
|
+
checkBlocked: ['GET /user/blocks/{username}'],
|
|
14213
|
+
checkFollowingForUser: ['GET /users/{username}/following/{target_user}'],
|
|
14214
|
+
checkPersonIsFollowedByAuthenticated: ['GET /user/following/{username}'],
|
|
14215
|
+
createGpgKeyForAuthenticated: [
|
|
14216
|
+
'POST /user/gpg_keys',
|
|
14217
|
+
{},
|
|
14218
|
+
{
|
|
14219
|
+
renamed: ['users', 'createGpgKeyForAuthenticatedUser']
|
|
14220
|
+
}
|
|
14221
|
+
],
|
|
14222
|
+
createGpgKeyForAuthenticatedUser: ['POST /user/gpg_keys'],
|
|
14223
|
+
createPublicSshKeyForAuthenticated: [
|
|
14224
|
+
'POST /user/keys',
|
|
14225
|
+
{},
|
|
14226
|
+
{
|
|
14227
|
+
renamed: ['users', 'createPublicSshKeyForAuthenticatedUser']
|
|
14228
|
+
}
|
|
14229
|
+
],
|
|
14230
|
+
createPublicSshKeyForAuthenticatedUser: ['POST /user/keys'],
|
|
14231
|
+
createSshSigningKeyForAuthenticatedUser: ['POST /user/ssh_signing_keys'],
|
|
14232
|
+
deleteEmailForAuthenticated: [
|
|
14233
|
+
'DELETE /user/emails',
|
|
14234
|
+
{},
|
|
14235
|
+
{
|
|
14236
|
+
renamed: ['users', 'deleteEmailForAuthenticatedUser']
|
|
14237
|
+
}
|
|
14238
|
+
],
|
|
14239
|
+
deleteEmailForAuthenticatedUser: ['DELETE /user/emails'],
|
|
14240
|
+
deleteGpgKeyForAuthenticated: [
|
|
14241
|
+
'DELETE /user/gpg_keys/{gpg_key_id}',
|
|
14242
|
+
{},
|
|
14243
|
+
{
|
|
14244
|
+
renamed: ['users', 'deleteGpgKeyForAuthenticatedUser']
|
|
14245
|
+
}
|
|
14246
|
+
],
|
|
14247
|
+
deleteGpgKeyForAuthenticatedUser: ['DELETE /user/gpg_keys/{gpg_key_id}'],
|
|
14248
|
+
deletePublicSshKeyForAuthenticated: [
|
|
14249
|
+
'DELETE /user/keys/{key_id}',
|
|
14250
|
+
{},
|
|
14251
|
+
{
|
|
14252
|
+
renamed: ['users', 'deletePublicSshKeyForAuthenticatedUser']
|
|
14253
|
+
}
|
|
14254
|
+
],
|
|
14255
|
+
deletePublicSshKeyForAuthenticatedUser: ['DELETE /user/keys/{key_id}'],
|
|
14256
|
+
deleteSocialAccountForAuthenticatedUser: ['DELETE /user/social_accounts'],
|
|
14257
|
+
deleteSshSigningKeyForAuthenticatedUser: [
|
|
14258
|
+
'DELETE /user/ssh_signing_keys/{ssh_signing_key_id}'
|
|
14259
|
+
],
|
|
14260
|
+
follow: ['PUT /user/following/{username}'],
|
|
14261
|
+
getAuthenticated: ['GET /user'],
|
|
14262
|
+
getById: ['GET /user/{account_id}'],
|
|
14263
|
+
getByUsername: ['GET /users/{username}'],
|
|
14264
|
+
getContextForUser: ['GET /users/{username}/hovercard'],
|
|
14265
|
+
getGpgKeyForAuthenticated: [
|
|
14266
|
+
'GET /user/gpg_keys/{gpg_key_id}',
|
|
14267
|
+
{},
|
|
14268
|
+
{
|
|
14269
|
+
renamed: ['users', 'getGpgKeyForAuthenticatedUser']
|
|
14270
|
+
}
|
|
14271
|
+
],
|
|
14272
|
+
getGpgKeyForAuthenticatedUser: ['GET /user/gpg_keys/{gpg_key_id}'],
|
|
14273
|
+
getPublicSshKeyForAuthenticated: [
|
|
14274
|
+
'GET /user/keys/{key_id}',
|
|
14275
|
+
{},
|
|
14276
|
+
{
|
|
14277
|
+
renamed: ['users', 'getPublicSshKeyForAuthenticatedUser']
|
|
14278
|
+
}
|
|
14279
|
+
],
|
|
14280
|
+
getPublicSshKeyForAuthenticatedUser: ['GET /user/keys/{key_id}'],
|
|
14281
|
+
getSshSigningKeyForAuthenticatedUser: [
|
|
14282
|
+
'GET /user/ssh_signing_keys/{ssh_signing_key_id}'
|
|
14283
|
+
],
|
|
14284
|
+
list: ['GET /users'],
|
|
14285
|
+
listAttestations: ['GET /users/{username}/attestations/{subject_digest}'],
|
|
14286
|
+
listBlockedByAuthenticated: [
|
|
14287
|
+
'GET /user/blocks',
|
|
14288
|
+
{},
|
|
14289
|
+
{
|
|
14290
|
+
renamed: ['users', 'listBlockedByAuthenticatedUser']
|
|
14291
|
+
}
|
|
14292
|
+
],
|
|
14293
|
+
listBlockedByAuthenticatedUser: ['GET /user/blocks'],
|
|
14294
|
+
listEmailsForAuthenticated: [
|
|
14295
|
+
'GET /user/emails',
|
|
14296
|
+
{},
|
|
14297
|
+
{
|
|
14298
|
+
renamed: ['users', 'listEmailsForAuthenticatedUser']
|
|
14299
|
+
}
|
|
14300
|
+
],
|
|
14301
|
+
listEmailsForAuthenticatedUser: ['GET /user/emails'],
|
|
14302
|
+
listFollowedByAuthenticated: [
|
|
14303
|
+
'GET /user/following',
|
|
14304
|
+
{},
|
|
14305
|
+
{
|
|
14306
|
+
renamed: ['users', 'listFollowedByAuthenticatedUser']
|
|
14307
|
+
}
|
|
14308
|
+
],
|
|
14309
|
+
listFollowedByAuthenticatedUser: ['GET /user/following'],
|
|
14310
|
+
listFollowersForAuthenticatedUser: ['GET /user/followers'],
|
|
14311
|
+
listFollowersForUser: ['GET /users/{username}/followers'],
|
|
14312
|
+
listFollowingForUser: ['GET /users/{username}/following'],
|
|
14313
|
+
listGpgKeysForAuthenticated: [
|
|
14314
|
+
'GET /user/gpg_keys',
|
|
14315
|
+
{},
|
|
14316
|
+
{
|
|
14317
|
+
renamed: ['users', 'listGpgKeysForAuthenticatedUser']
|
|
14318
|
+
}
|
|
14319
|
+
],
|
|
14320
|
+
listGpgKeysForAuthenticatedUser: ['GET /user/gpg_keys'],
|
|
14321
|
+
listGpgKeysForUser: ['GET /users/{username}/gpg_keys'],
|
|
14322
|
+
listPublicEmailsForAuthenticated: [
|
|
14323
|
+
'GET /user/public_emails',
|
|
14324
|
+
{},
|
|
14325
|
+
{
|
|
14326
|
+
renamed: ['users', 'listPublicEmailsForAuthenticatedUser']
|
|
14327
|
+
}
|
|
14328
|
+
],
|
|
14329
|
+
listPublicEmailsForAuthenticatedUser: ['GET /user/public_emails'],
|
|
14330
|
+
listPublicKeysForUser: ['GET /users/{username}/keys'],
|
|
14331
|
+
listPublicSshKeysForAuthenticated: [
|
|
14332
|
+
'GET /user/keys',
|
|
14333
|
+
{},
|
|
14334
|
+
{
|
|
14335
|
+
renamed: ['users', 'listPublicSshKeysForAuthenticatedUser']
|
|
14336
|
+
}
|
|
14337
|
+
],
|
|
14338
|
+
listPublicSshKeysForAuthenticatedUser: ['GET /user/keys'],
|
|
14339
|
+
listSocialAccountsForAuthenticatedUser: ['GET /user/social_accounts'],
|
|
14340
|
+
listSocialAccountsForUser: ['GET /users/{username}/social_accounts'],
|
|
14341
|
+
listSshSigningKeysForAuthenticatedUser: ['GET /user/ssh_signing_keys'],
|
|
14342
|
+
listSshSigningKeysForUser: ['GET /users/{username}/ssh_signing_keys'],
|
|
14343
|
+
setPrimaryEmailVisibilityForAuthenticated: [
|
|
14344
|
+
'PATCH /user/email/visibility',
|
|
14345
|
+
{},
|
|
14346
|
+
{
|
|
14347
|
+
renamed: ['users', 'setPrimaryEmailVisibilityForAuthenticatedUser']
|
|
14348
|
+
}
|
|
14349
|
+
],
|
|
14350
|
+
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
14351
|
+
'PATCH /user/email/visibility'
|
|
14352
|
+
],
|
|
14353
|
+
unblock: ['DELETE /user/blocks/{username}'],
|
|
14354
|
+
unfollow: ['DELETE /user/following/{username}'],
|
|
14355
|
+
updateAuthenticated: ['PATCH /user']
|
|
14356
|
+
}
|
|
14357
|
+
}
|
|
14358
|
+
const endpoints_default = Endpoints
|
|
14359
|
+
|
|
14360
|
+
const endpointMethodsMap = /* @__PURE__ */ new Map()
|
|
14361
|
+
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
14362
|
+
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
|
14363
|
+
const [route, defaults, decorations] = endpoint
|
|
14364
|
+
const [method, url] = route.split(/ /)
|
|
14365
|
+
const endpointDefaults = Object.assign(
|
|
14366
|
+
{
|
|
14367
|
+
method,
|
|
14368
|
+
url
|
|
14369
|
+
},
|
|
14370
|
+
defaults
|
|
14371
|
+
)
|
|
14372
|
+
if (!endpointMethodsMap.has(scope)) {
|
|
14373
|
+
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map())
|
|
14374
|
+
}
|
|
14375
|
+
endpointMethodsMap.get(scope).set(methodName, {
|
|
14376
|
+
scope,
|
|
14377
|
+
methodName,
|
|
14378
|
+
endpointDefaults,
|
|
14379
|
+
decorations
|
|
14380
|
+
})
|
|
14381
|
+
}
|
|
14382
|
+
}
|
|
14383
|
+
const handler = {
|
|
14384
|
+
has({ scope }, methodName) {
|
|
14385
|
+
return endpointMethodsMap.get(scope).has(methodName)
|
|
14386
|
+
},
|
|
14387
|
+
getOwnPropertyDescriptor(target, methodName) {
|
|
14388
|
+
return {
|
|
14389
|
+
value: this.get(target, methodName),
|
|
14390
|
+
// ensures method is in the cache
|
|
14391
|
+
configurable: true,
|
|
14392
|
+
writable: true,
|
|
14393
|
+
enumerable: true
|
|
14394
|
+
}
|
|
14395
|
+
},
|
|
14396
|
+
defineProperty(target, methodName, descriptor) {
|
|
14397
|
+
Object.defineProperty(target.cache, methodName, descriptor)
|
|
14398
|
+
return true
|
|
14399
|
+
},
|
|
14400
|
+
deleteProperty(target, methodName) {
|
|
14401
|
+
delete target.cache[methodName]
|
|
14402
|
+
return true
|
|
14403
|
+
},
|
|
14404
|
+
ownKeys({ scope }) {
|
|
14405
|
+
return [...endpointMethodsMap.get(scope).keys()]
|
|
14406
|
+
},
|
|
14407
|
+
set(target, methodName, value) {
|
|
14408
|
+
return (target.cache[methodName] = value)
|
|
14409
|
+
},
|
|
14410
|
+
get({ cache, octokit, scope }, methodName) {
|
|
14411
|
+
if (cache[methodName]) {
|
|
14412
|
+
return cache[methodName]
|
|
14413
|
+
}
|
|
14414
|
+
const method = endpointMethodsMap.get(scope).get(methodName)
|
|
14415
|
+
if (!method) {
|
|
14416
|
+
return void 0
|
|
14417
|
+
}
|
|
14418
|
+
const { decorations, endpointDefaults } = method
|
|
14419
|
+
if (decorations) {
|
|
14420
|
+
cache[methodName] = decorate(
|
|
14421
|
+
octokit,
|
|
14422
|
+
scope,
|
|
14423
|
+
methodName,
|
|
14424
|
+
endpointDefaults,
|
|
14425
|
+
decorations
|
|
14426
|
+
)
|
|
14427
|
+
} else {
|
|
14428
|
+
cache[methodName] = octokit.request.defaults(endpointDefaults)
|
|
14429
|
+
}
|
|
14430
|
+
return cache[methodName]
|
|
14431
|
+
}
|
|
14432
|
+
}
|
|
14433
|
+
function endpointsToMethods(octokit) {
|
|
14434
|
+
const newMethods = {}
|
|
14435
|
+
for (const scope of endpointMethodsMap.keys()) {
|
|
14436
|
+
newMethods[scope] = new Proxy(
|
|
14437
|
+
{
|
|
14438
|
+
octokit,
|
|
14439
|
+
scope,
|
|
14440
|
+
cache: {}
|
|
14441
|
+
},
|
|
14442
|
+
handler
|
|
14443
|
+
)
|
|
14444
|
+
}
|
|
14445
|
+
return newMethods
|
|
14446
|
+
}
|
|
14447
|
+
function decorate(octokit, scope, methodName, defaults, decorations) {
|
|
14448
|
+
const requestWithDefaults = octokit.request.defaults(defaults)
|
|
14449
|
+
function withDecorations(...args) {
|
|
14450
|
+
let options = requestWithDefaults.endpoint.merge(...args)
|
|
14451
|
+
if (decorations.mapToData) {
|
|
14452
|
+
options = Object.assign({}, options, {
|
|
14453
|
+
data: options[decorations.mapToData],
|
|
14454
|
+
[decorations.mapToData]: void 0
|
|
14455
|
+
})
|
|
14456
|
+
return requestWithDefaults(options)
|
|
14457
|
+
}
|
|
14458
|
+
if (decorations.renamed) {
|
|
14459
|
+
const [newScope, newMethodName] = decorations.renamed
|
|
14460
|
+
octokit.log.warn(
|
|
14461
|
+
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
14462
|
+
)
|
|
14463
|
+
}
|
|
14464
|
+
if (decorations.deprecated) {
|
|
14465
|
+
octokit.log.warn(decorations.deprecated)
|
|
14466
|
+
}
|
|
14467
|
+
if (decorations.renamedParameters) {
|
|
14468
|
+
const options2 = requestWithDefaults.endpoint.merge(...args)
|
|
14469
|
+
for (const [name, alias] of Object.entries(
|
|
14470
|
+
decorations.renamedParameters
|
|
14471
|
+
)) {
|
|
14472
|
+
if (name in options2) {
|
|
14473
|
+
octokit.log.warn(
|
|
14474
|
+
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
14475
|
+
)
|
|
14476
|
+
if (!(alias in options2)) {
|
|
14477
|
+
options2[alias] = options2[name]
|
|
14478
|
+
}
|
|
14479
|
+
delete options2[name]
|
|
14480
|
+
}
|
|
14481
|
+
}
|
|
14482
|
+
return requestWithDefaults(options2)
|
|
14483
|
+
}
|
|
14484
|
+
return requestWithDefaults(...args)
|
|
14485
|
+
}
|
|
14486
|
+
return Object.assign(withDecorations, requestWithDefaults)
|
|
14487
|
+
}
|
|
14488
|
+
|
|
14489
|
+
function legacyRestEndpointMethods(octokit) {
|
|
14490
|
+
const api = endpointsToMethods(octokit)
|
|
14491
|
+
return {
|
|
14492
|
+
...api,
|
|
14493
|
+
rest: api
|
|
14494
|
+
}
|
|
14495
|
+
}
|
|
14496
|
+
legacyRestEndpointMethods.VERSION = VERSION$1
|
|
14497
|
+
|
|
14498
|
+
const VERSION = '21.1.1'
|
|
14499
|
+
|
|
14500
|
+
const Octokit = Octokit$1.plugin(
|
|
14501
|
+
requestLog,
|
|
14502
|
+
legacyRestEndpointMethods,
|
|
14503
|
+
paginateRest
|
|
14504
|
+
).defaults({
|
|
14505
|
+
userAgent: `octokit-rest.js/${VERSION}`
|
|
14506
|
+
})
|
|
14507
|
+
|
|
10635
14508
|
let isDockerCached
|
|
10636
14509
|
function hasDockerEnv() {
|
|
10637
14510
|
try {
|
|
@@ -11174,8 +15047,9 @@ defineLazyProperty(apps, 'edge', () =>
|
|
|
11174
15047
|
defineLazyProperty(apps, 'browser', () => 'browser')
|
|
11175
15048
|
defineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate')
|
|
11176
15049
|
|
|
15050
|
+
exports.Octokit = Octokit
|
|
11177
15051
|
exports.meow = meow
|
|
11178
15052
|
exports.open = open
|
|
11179
15053
|
exports.updater = updater
|
|
11180
|
-
//# debugId=
|
|
15054
|
+
//# debugId=60405358-88aa-47e8-992f-ea1798e29a6d
|
|
11181
15055
|
//# sourceMappingURL=vendor.js.map
|