mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-06-09 11:30:42 +00:00
Compare commits
1 Commits
v5.2.2
...
macos-pyth
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a26ee8850 |
2
.github/workflows/release-drafter.yml
vendored
2
.github/workflows/release-drafter.yml
vendored
@@ -14,6 +14,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 🚀 Run Release Drafter
|
- name: 🚀 Run Release Drafter
|
||||||
uses: release-drafter/release-drafter@v6.1.0
|
uses: release-drafter/release-drafter@v6.0.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
55
.github/workflows/test.yml
vendored
55
.github/workflows/test.yml
vendored
@@ -64,39 +64,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
||||||
test-pyproject-file-version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install version 0.5.14
|
|
||||||
id: setup-uv
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
pyproject-file: "__tests__/fixtures/pyproject-toml-project/pyproject.toml"
|
|
||||||
- name: Correct version gets installed
|
|
||||||
run: |
|
|
||||||
if [ "$UV_VERSION" != "0.5.14" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
|
||||||
test-uv-file-version:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Install version 0.5.15
|
|
||||||
id: setup-uv
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
pyproject-file: "__tests__/fixtures/uv-toml-project/pyproject.toml"
|
|
||||||
uv-file: "__tests__/fixtures/uv-toml-project/uv.toml"
|
|
||||||
- name: Correct version gets installed
|
|
||||||
run: |
|
|
||||||
if [ "$UV_VERSION" != "0.5.15" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
UV_VERSION: ${{ steps.setup-uv.outputs.uv-version }}
|
|
||||||
test-checksum:
|
test-checksum:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
@@ -200,15 +167,17 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
test-macos-python-version:
|
||||||
test-malformed-pyproject-file-fallback:
|
runs-on: macos-latest
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- run: |
|
||||||
- name: Install using malformed pyproject.toml
|
/Applications/Xcode_15.4.app/Contents/Developer/usr/bin/python3 --version
|
||||||
id: setup-uv
|
- name: Install uv
|
||||||
uses: ./
|
uses: astral-sh/setup-uv@v5
|
||||||
with:
|
with:
|
||||||
pyproject-file: "__tests__/fixtures/malformed-pyproject-toml-project/pyproject.toml"
|
python-version: 3.9
|
||||||
- run: uv sync
|
- run: |
|
||||||
working-directory: __tests__/fixtures/uv-project
|
echo "$UV_PYTHON"
|
||||||
|
python --version
|
||||||
|
uv python list
|
||||||
|
shell: bash
|
||||||
|
|||||||
2
.github/workflows/update-known-checksums.yml
vendored
2
.github/workflows/update-known-checksums.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
src/download/checksum/known-checksums.ts ${{ secrets.GITHUB_TOKEN }}
|
src/download/checksum/known-checksums.ts ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: npm install && npm run all
|
- run: npm install && npm run all
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
|
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
|
||||||
with:
|
with:
|
||||||
commit-message: "chore: update known checksums"
|
commit-message: "chore: update known checksums"
|
||||||
title:
|
title:
|
||||||
|
|||||||
41
README.md
41
README.md
@@ -11,11 +11,9 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
|||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Install a required-version or latest (default)](#install-a-required-version-or-latest-default)
|
- [Install the latest version (default)](#install-the-latest-version-default)
|
||||||
- [Install the latest version](#install-the-latest-version)
|
|
||||||
- [Install a specific version](#install-a-specific-version)
|
- [Install a specific version](#install-a-specific-version)
|
||||||
- [Install a version by supplying a semver range](#install-a-version-by-supplying-a-semver-range)
|
- [Install a version by supplying a semver range](#install-a-version-by-supplying-a-semver-range)
|
||||||
- [Install a required-version](#install-a-required-version)
|
|
||||||
- [Python version](#python-version)
|
- [Python version](#python-version)
|
||||||
- [Validate checksum](#validate-checksum)
|
- [Validate checksum](#validate-checksum)
|
||||||
- [Enable Caching](#enable-caching)
|
- [Enable Caching](#enable-caching)
|
||||||
@@ -32,20 +30,7 @@ Set up your GitHub Actions workflow with a specific version of [uv](https://docs
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Install a required-version or latest (default)
|
### Install the latest version (default)
|
||||||
|
|
||||||
```yaml
|
|
||||||
- name: Install the latest version of uv
|
|
||||||
uses: astral-sh/setup-uv@v5
|
|
||||||
```
|
|
||||||
|
|
||||||
If you do not specify a version, this action will look for a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
|
|
||||||
in a `uv.toml` or `pyproject.toml` file in the repository root. If none is found, the latest version will be installed.
|
|
||||||
|
|
||||||
For an example workflow, see
|
|
||||||
[here](https://github.com/charliermarsh/autobot/blob/e42c66659bf97b90ca9ff305a19cc99952d0d43f/.github/workflows/ci.yaml).
|
|
||||||
|
|
||||||
### Install the latest version
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Install the latest version of uv
|
- name: Install the latest version of uv
|
||||||
@@ -54,6 +39,9 @@ For an example workflow, see
|
|||||||
version: "latest"
|
version: "latest"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For an example workflow, see
|
||||||
|
[here](https://github.com/charliermarsh/autobot/blob/e42c66659bf97b90ca9ff305a19cc99952d0d43f/.github/workflows/ci.yaml).
|
||||||
|
|
||||||
### Install a specific version
|
### Install a specific version
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -82,25 +70,6 @@ to install the latest version that satisfies the range.
|
|||||||
version: "0.4.x"
|
version: "0.4.x"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install a required-version
|
|
||||||
|
|
||||||
You can specify a [required-version](https://docs.astral.sh/uv/reference/settings/#required-version)
|
|
||||||
in either a `uv.toml` or `pyproject.toml` file:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- name: Install required-version defined in uv.toml
|
|
||||||
uses: astral-sh/setup-uv@v5
|
|
||||||
with:
|
|
||||||
uv-file: "path/to/uv.toml"
|
|
||||||
```
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- name: Install required-version defined in pyproject.toml
|
|
||||||
uses: astral-sh/setup-uv@v5
|
|
||||||
with:
|
|
||||||
pyproject-file: "path/to/pyproject.toml"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Python version
|
### Python version
|
||||||
|
|
||||||
You can use the input `python-version` to
|
You can use the input `python-version` to
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
3.11
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
def main():
|
|
||||||
print("Hello from malformed-pyproject-toml-project!")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[project]
|
|
||||||
name = "malformed-pyproject-toml-project"
|
|
||||||
version = "0.1.0"
|
|
||||||
description = "Add your description here"
|
|
||||||
readme = "README.md"
|
|
||||||
requires-python = ">=3.11"
|
|
||||||
dependencies = []
|
|
||||||
|
|
||||||
[malformed-toml
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
3.11
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
def main():
|
|
||||||
print("Hello from pyproject-toml-project!")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
[project]
|
|
||||||
name = "pyproject-toml-project"
|
|
||||||
version = "0.1.0"
|
|
||||||
description = "Add your description here"
|
|
||||||
readme = "README.md"
|
|
||||||
requires-python = ">=3.11"
|
|
||||||
dependencies = []
|
|
||||||
|
|
||||||
[dependency-groups]
|
|
||||||
dev = [
|
|
||||||
"reuse==5.0.2",
|
|
||||||
{include-group = "lint"},
|
|
||||||
]
|
|
||||||
lint = [
|
|
||||||
"flake8==4.0.1",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.uv]
|
|
||||||
required-version = "==0.5.14"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
3.11
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
def main():
|
|
||||||
print("Hello from uv-toml-project!")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
[project]
|
|
||||||
name = "uv-toml-project"
|
|
||||||
version = "0.1.0"
|
|
||||||
description = "Add your description here"
|
|
||||||
readme = "README.md"
|
|
||||||
requires-python = ">=3.11"
|
|
||||||
dependencies = []
|
|
||||||
|
|
||||||
[tool.uv]
|
|
||||||
required-version = "==0.5.14"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
required-version = "==0.5.15"
|
|
||||||
12
action.yml
12
action.yml
@@ -4,14 +4,8 @@ description:
|
|||||||
author: "astral-sh"
|
author: "astral-sh"
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: "The version of uv to install e.g., `0.5.0` Defaults to the version in pyproject.toml or 'latest'."
|
description: "The version of uv to install"
|
||||||
default: ""
|
default: "latest"
|
||||||
pyproject-file:
|
|
||||||
description: "Path to a pyproject.toml"
|
|
||||||
default: ""
|
|
||||||
uv-file:
|
|
||||||
description: "Path to a uv.toml"
|
|
||||||
default: ""
|
|
||||||
python-version:
|
python-version:
|
||||||
description: "The version of Python to set UV_PYTHON to"
|
description: "The version of Python to set UV_PYTHON to"
|
||||||
required: false
|
required: false
|
||||||
@@ -24,7 +18,7 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: ${{ github.token }}
|
default: ${{ github.token }}
|
||||||
enable-cache:
|
enable-cache:
|
||||||
description: "Enable uploading of the uv cache"
|
description: "Enable caching of the uv cache"
|
||||||
default: "auto"
|
default: "auto"
|
||||||
cache-dependency-glob:
|
cache-dependency-glob:
|
||||||
description:
|
description:
|
||||||
|
|||||||
343
dist/save-cache/index.js
generated
vendored
343
dist/save-cache/index.js
generated
vendored
@@ -70338,14 +70338,6 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
|
|||||||
const { File: UndiciFile } = __nccwpck_require__(3041)
|
const { File: UndiciFile } = __nccwpck_require__(3041)
|
||||||
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
|
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
|
||||||
|
|
||||||
let random
|
|
||||||
try {
|
|
||||||
const crypto = __nccwpck_require__(7598)
|
|
||||||
random = (max) => crypto.randomInt(0, max)
|
|
||||||
} catch {
|
|
||||||
random = (max) => Math.floor(Math.random(max))
|
|
||||||
}
|
|
||||||
|
|
||||||
let ReadableStream = globalThis.ReadableStream
|
let ReadableStream = globalThis.ReadableStream
|
||||||
|
|
||||||
/** @type {globalThis['File']} */
|
/** @type {globalThis['File']} */
|
||||||
@@ -70431,7 +70423,7 @@ function extractBody (object, keepalive = false) {
|
|||||||
// Set source to a copy of the bytes held by object.
|
// Set source to a copy of the bytes held by object.
|
||||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||||
} else if (util.isFormDataLike(object)) {
|
} else if (util.isFormDataLike(object)) {
|
||||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
||||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||||
|
|
||||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||||
@@ -91452,6 +91444,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.STATE_CACHE_MATCHED_KEY = exports.STATE_CACHE_KEY = void 0;
|
exports.STATE_CACHE_MATCHED_KEY = exports.STATE_CACHE_KEY = void 0;
|
||||||
exports.restoreCache = restoreCache;
|
exports.restoreCache = restoreCache;
|
||||||
@@ -91464,65 +91465,71 @@ const exec = __importStar(__nccwpck_require__(5236));
|
|||||||
exports.STATE_CACHE_KEY = "cache-key";
|
exports.STATE_CACHE_KEY = "cache-key";
|
||||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "1";
|
||||||
async function restoreCache() {
|
function restoreCache() {
|
||||||
const cacheKey = await computeKeys();
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let matchedKey;
|
const cacheKey = yield computeKeys();
|
||||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
let matchedKey;
|
||||||
try {
|
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
||||||
matchedKey = await cache.restoreCache([inputs_1.cacheLocalPath], cacheKey);
|
try {
|
||||||
}
|
matchedKey = yield cache.restoreCache([inputs_1.cacheLocalPath], cacheKey);
|
||||||
catch (err) {
|
|
||||||
const message = err.message;
|
|
||||||
core.warning(message);
|
|
||||||
core.setOutput("cache-hit", false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
|
||||||
handleMatchResult(matchedKey, cacheKey);
|
|
||||||
}
|
|
||||||
async function computeKeys() {
|
|
||||||
let cacheDependencyPathHash = "-";
|
|
||||||
if (inputs_1.cacheDependencyGlob !== "") {
|
|
||||||
core.info(`Searching files using cache dependency glob: ${inputs_1.cacheDependencyGlob.split("\n").join(",")}`);
|
|
||||||
cacheDependencyPathHash += await (0, hash_files_1.hashFiles)(inputs_1.cacheDependencyGlob, true);
|
|
||||||
if (cacheDependencyPathHash === "-") {
|
|
||||||
core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`);
|
|
||||||
}
|
}
|
||||||
}
|
catch (err) {
|
||||||
if (cacheDependencyPathHash === "-") {
|
const message = err.message;
|
||||||
cacheDependencyPathHash = "-no-dependency-glob";
|
core.warning(message);
|
||||||
}
|
core.setOutput("cache-hit", false);
|
||||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
return;
|
||||||
const pythonVersion = await getPythonVersion();
|
}
|
||||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${(0, platforms_1.getPlatform)()}-${pythonVersion}${cacheDependencyPathHash}${suffix}`;
|
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
||||||
|
handleMatchResult(matchedKey, cacheKey);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
async function getPythonVersion() {
|
function computeKeys() {
|
||||||
if (inputs_1.pythonVersion !== "") {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
return inputs_1.pythonVersion;
|
let cacheDependencyPathHash = "-";
|
||||||
}
|
if (inputs_1.cacheDependencyGlob !== "") {
|
||||||
let output = "";
|
core.info(`Searching files using cache dependency glob: ${inputs_1.cacheDependencyGlob.split("\n").join(",")}`);
|
||||||
const options = {
|
cacheDependencyPathHash += yield (0, hash_files_1.hashFiles)(inputs_1.cacheDependencyGlob, true);
|
||||||
silent: !core.isDebug(),
|
if (cacheDependencyPathHash === "-") {
|
||||||
listeners: {
|
core.warning(`No file matched to [${inputs_1.cacheDependencyGlob.split("\n").join(",")}]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.`);
|
||||||
stdout: (data) => {
|
}
|
||||||
output += data.toString();
|
}
|
||||||
|
if (cacheDependencyPathHash === "-") {
|
||||||
|
cacheDependencyPathHash = "-no-dependency-glob";
|
||||||
|
}
|
||||||
|
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
||||||
|
const pythonVersion = yield getPythonVersion();
|
||||||
|
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${(0, platforms_1.getPlatform)()}-${pythonVersion}${cacheDependencyPathHash}${suffix}`;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getPythonVersion() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
if (inputs_1.pythonVersion !== "") {
|
||||||
|
return inputs_1.pythonVersion;
|
||||||
|
}
|
||||||
|
let output = "";
|
||||||
|
const options = {
|
||||||
|
silent: !core.isDebug(),
|
||||||
|
listeners: {
|
||||||
|
stdout: (data) => {
|
||||||
|
output += data.toString();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
};
|
||||||
};
|
try {
|
||||||
try {
|
const execArgs = ["python", "find"];
|
||||||
const execArgs = ["python", "find"];
|
yield exec.exec("uv", execArgs, options);
|
||||||
await exec.exec("uv", execArgs, options);
|
const pythonPath = output.trim();
|
||||||
const pythonPath = output.trim();
|
output = "";
|
||||||
output = "";
|
yield exec.exec(pythonPath, ["--version"], options);
|
||||||
await exec.exec(pythonPath, ["--version"], options);
|
// output is like "Python 3.8.10"
|
||||||
// output is like "Python 3.8.10"
|
return output.split(" ")[1].trim();
|
||||||
return output.split(" ")[1].trim();
|
}
|
||||||
}
|
catch (error) {
|
||||||
catch (error) {
|
const err = error;
|
||||||
const err = error;
|
core.debug(`Failed to get python version from uv. Error: ${err.message}`);
|
||||||
core.debug(`Failed to get python version from uv. Error: ${err.message}`);
|
return "unknown";
|
||||||
return "unknown";
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
function handleMatchResult(matchedKey, primaryKey) {
|
function handleMatchResult(matchedKey, primaryKey) {
|
||||||
if (!matchedKey) {
|
if (!matchedKey) {
|
||||||
@@ -91576,6 +91583,22 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
||||||
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
||||||
|
var m = o[Symbol.asyncIterator], i;
|
||||||
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
||||||
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
||||||
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.hashFiles = hashFiles;
|
exports.hashFiles = hashFiles;
|
||||||
const crypto = __importStar(__nccwpck_require__(7598));
|
const crypto = __importStar(__nccwpck_require__(7598));
|
||||||
@@ -91592,34 +91615,49 @@ const glob_1 = __nccwpck_require__(7206);
|
|||||||
* @param pattern The glob pattern to match files.
|
* @param pattern The glob pattern to match files.
|
||||||
* @param verbose Whether to log the files being hashed.
|
* @param verbose Whether to log the files being hashed.
|
||||||
*/
|
*/
|
||||||
async function hashFiles(pattern, verbose = false) {
|
function hashFiles(pattern_1) {
|
||||||
const globber = await (0, glob_1.create)(pattern);
|
return __awaiter(this, arguments, void 0, function* (pattern, verbose = false) {
|
||||||
let hasMatch = false;
|
var _a, e_1, _b, _c;
|
||||||
const writeDelegate = verbose ? core.info : core.debug;
|
const globber = yield (0, glob_1.create)(pattern);
|
||||||
const result = crypto.createHash("sha256");
|
let hasMatch = false;
|
||||||
let count = 0;
|
const writeDelegate = verbose ? core.info : core.debug;
|
||||||
for await (const file of globber.globGenerator()) {
|
const result = crypto.createHash("sha256");
|
||||||
writeDelegate(file);
|
let count = 0;
|
||||||
if (fs.statSync(file).isDirectory()) {
|
try {
|
||||||
writeDelegate(`Skip directory '${file}'.`);
|
for (var _d = true, _e = __asyncValues(globber.globGenerator()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
||||||
continue;
|
_c = _f.value;
|
||||||
|
_d = false;
|
||||||
|
const file = _c;
|
||||||
|
writeDelegate(file);
|
||||||
|
if (fs.statSync(file).isDirectory()) {
|
||||||
|
writeDelegate(`Skip directory '${file}'.`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const hash = crypto.createHash("sha256");
|
||||||
|
const pipeline = util.promisify(stream.pipeline);
|
||||||
|
yield pipeline(fs.createReadStream(file), hash);
|
||||||
|
result.write(hash.digest());
|
||||||
|
count++;
|
||||||
|
if (!hasMatch) {
|
||||||
|
hasMatch = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const hash = crypto.createHash("sha256");
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||||
const pipeline = util.promisify(stream.pipeline);
|
finally {
|
||||||
await pipeline(fs.createReadStream(file), hash);
|
try {
|
||||||
result.write(hash.digest());
|
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
||||||
count++;
|
}
|
||||||
if (!hasMatch) {
|
finally { if (e_1) throw e_1.error; }
|
||||||
hasMatch = true;
|
|
||||||
}
|
}
|
||||||
}
|
result.end();
|
||||||
result.end();
|
if (hasMatch) {
|
||||||
if (hasMatch) {
|
writeDelegate(`Found ${count} files to hash.`);
|
||||||
writeDelegate(`Found ${count} files to hash.`);
|
return result.digest("hex");
|
||||||
return result.digest("hex");
|
}
|
||||||
}
|
writeDelegate("No matches found for glob");
|
||||||
writeDelegate("No matches found for glob");
|
return "";
|
||||||
return "";
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -91663,6 +91701,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.run = run;
|
exports.run = run;
|
||||||
const cache = __importStar(__nccwpck_require__(5116));
|
const cache = __importStar(__nccwpck_require__(5116));
|
||||||
@@ -91671,63 +91718,69 @@ const exec = __importStar(__nccwpck_require__(5236));
|
|||||||
const fs = __importStar(__nccwpck_require__(3024));
|
const fs = __importStar(__nccwpck_require__(3024));
|
||||||
const restore_cache_1 = __nccwpck_require__(5391);
|
const restore_cache_1 = __nccwpck_require__(5391);
|
||||||
const inputs_1 = __nccwpck_require__(9612);
|
const inputs_1 = __nccwpck_require__(9612);
|
||||||
async function run() {
|
function run() {
|
||||||
try {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (inputs_1.enableCache) {
|
try {
|
||||||
await saveCache();
|
if (inputs_1.enableCache) {
|
||||||
// node will stay alive if any promises are not resolved,
|
yield saveCache();
|
||||||
// which is a possibility if HTTP requests are dangling
|
// node will stay alive if any promises are not resolved,
|
||||||
// due to retries or timeouts. We know that if we got here
|
// which is a possibility if HTTP requests are dangling
|
||||||
// that all promises that we care about have successfully
|
// due to retries or timeouts. We know that if we got here
|
||||||
// resolved, so simply exit with success.
|
// that all promises that we care about have successfully
|
||||||
process.exit(0);
|
// resolved, so simply exit with success.
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
catch (error) {
|
||||||
catch (error) {
|
const err = error;
|
||||||
const err = error;
|
core.setFailed(err.message);
|
||||||
core.setFailed(err.message);
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
async function saveCache() {
|
function saveCache() {
|
||||||
const cacheKey = core.getState(restore_cache_1.STATE_CACHE_KEY);
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const matchedKey = core.getState(restore_cache_1.STATE_CACHE_MATCHED_KEY);
|
const cacheKey = core.getState(restore_cache_1.STATE_CACHE_KEY);
|
||||||
if (!cacheKey) {
|
const matchedKey = core.getState(restore_cache_1.STATE_CACHE_MATCHED_KEY);
|
||||||
core.warning("Error retrieving cache key from state.");
|
if (!cacheKey) {
|
||||||
return;
|
core.warning("Error retrieving cache key from state.");
|
||||||
}
|
return;
|
||||||
if (matchedKey === cacheKey) {
|
|
||||||
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (inputs_1.pruneCache) {
|
|
||||||
await pruneCache();
|
|
||||||
}
|
|
||||||
core.info(`Saving cache path: ${inputs_1.cacheLocalPath}`);
|
|
||||||
if (!fs.existsSync(inputs_1.cacheLocalPath) && !inputs_1.ignoreNothingToCache) {
|
|
||||||
throw new Error(`Cache path ${inputs_1.cacheLocalPath} does not exist on disk. This likely indicates that there are no dependencies to cache. Consider disabling the cache input if it is not needed.`);
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
await cache.saveCache([inputs_1.cacheLocalPath], cacheKey);
|
|
||||||
core.info(`cache saved with the key: ${cacheKey}`);
|
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
if (e instanceof Error &&
|
|
||||||
e.message ===
|
|
||||||
"Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.") {
|
|
||||||
core.info("No cacheable paths were found. Ignoring because ignore-nothing-to-save is enabled.");
|
|
||||||
}
|
}
|
||||||
else {
|
if (matchedKey === cacheKey) {
|
||||||
throw e;
|
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
if (inputs_1.pruneCache) {
|
||||||
|
yield pruneCache();
|
||||||
|
}
|
||||||
|
core.info(`Saving cache path: ${inputs_1.cacheLocalPath}`);
|
||||||
|
if (!fs.existsSync(inputs_1.cacheLocalPath) && !inputs_1.ignoreNothingToCache) {
|
||||||
|
throw new Error(`Cache path ${inputs_1.cacheLocalPath} does not exist on disk. This likely indicates that there are no dependencies to cache. Consider disabling the cache input if it is not needed.`);
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
yield cache.saveCache([inputs_1.cacheLocalPath], cacheKey);
|
||||||
|
core.info(`cache saved with the key: ${cacheKey}`);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
if (e instanceof Error &&
|
||||||
|
e.message ===
|
||||||
|
"Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.") {
|
||||||
|
core.info("No cacheable paths were found. Ignoring because ignore-nothing-to-save is enabled.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
async function pruneCache() {
|
function pruneCache() {
|
||||||
const options = {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
silent: !core.isDebug(),
|
const options = {
|
||||||
};
|
silent: !core.isDebug(),
|
||||||
const execArgs = ["cache", "prune", "--ci"];
|
};
|
||||||
core.info("Pruning cache...");
|
const execArgs = ["cache", "prune", "--ci"];
|
||||||
await exec.exec("uv", execArgs, options);
|
core.info("Pruning cache...");
|
||||||
|
yield exec.exec("uv", execArgs, options);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
run();
|
run();
|
||||||
|
|
||||||
@@ -91776,12 +91829,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.pythonVersion = exports.uvFile = exports.pyProjectFile = exports.version = void 0;
|
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.pythonVersion = exports.version = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.pyProjectFile = core.getInput("pyproject-file");
|
|
||||||
exports.uvFile = core.getInput("uv-file");
|
|
||||||
exports.pythonVersion = core.getInput("python-version");
|
exports.pythonVersion = core.getInput("python-version");
|
||||||
exports.checkSum = core.getInput("checksum");
|
exports.checkSum = core.getInput("checksum");
|
||||||
exports.enableCache = getEnableCache();
|
exports.enableCache = getEnableCache();
|
||||||
|
|||||||
10002
dist/setup/index.js
generated
vendored
10002
dist/setup/index.js
generated
vendored
File diff suppressed because it is too large
Load Diff
8545
dist/update-known-checksums/index.js
generated
vendored
8545
dist/update-known-checksums/index.js
generated
vendored
@@ -1850,6 +1850,259 @@ class ExecState extends events.EventEmitter {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1648:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.Context = void 0;
|
||||||
|
const fs_1 = __nccwpck_require__(9896);
|
||||||
|
const os_1 = __nccwpck_require__(857);
|
||||||
|
class Context {
|
||||||
|
/**
|
||||||
|
* Hydrate the context from the environment
|
||||||
|
*/
|
||||||
|
constructor() {
|
||||||
|
var _a, _b, _c;
|
||||||
|
this.payload = {};
|
||||||
|
if (process.env.GITHUB_EVENT_PATH) {
|
||||||
|
if ((0, fs_1.existsSync)(process.env.GITHUB_EVENT_PATH)) {
|
||||||
|
this.payload = JSON.parse((0, fs_1.readFileSync)(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' }));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
const path = process.env.GITHUB_EVENT_PATH;
|
||||||
|
process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.eventName = process.env.GITHUB_EVENT_NAME;
|
||||||
|
this.sha = process.env.GITHUB_SHA;
|
||||||
|
this.ref = process.env.GITHUB_REF;
|
||||||
|
this.workflow = process.env.GITHUB_WORKFLOW;
|
||||||
|
this.action = process.env.GITHUB_ACTION;
|
||||||
|
this.actor = process.env.GITHUB_ACTOR;
|
||||||
|
this.job = process.env.GITHUB_JOB;
|
||||||
|
this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10);
|
||||||
|
this.runId = parseInt(process.env.GITHUB_RUN_ID, 10);
|
||||||
|
this.apiUrl = (_a = process.env.GITHUB_API_URL) !== null && _a !== void 0 ? _a : `https://api.github.com`;
|
||||||
|
this.serverUrl = (_b = process.env.GITHUB_SERVER_URL) !== null && _b !== void 0 ? _b : `https://github.com`;
|
||||||
|
this.graphqlUrl =
|
||||||
|
(_c = process.env.GITHUB_GRAPHQL_URL) !== null && _c !== void 0 ? _c : `https://api.github.com/graphql`;
|
||||||
|
}
|
||||||
|
get issue() {
|
||||||
|
const payload = this.payload;
|
||||||
|
return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number });
|
||||||
|
}
|
||||||
|
get repo() {
|
||||||
|
if (process.env.GITHUB_REPOSITORY) {
|
||||||
|
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
|
||||||
|
return { owner, repo };
|
||||||
|
}
|
||||||
|
if (this.payload.repository) {
|
||||||
|
return {
|
||||||
|
owner: this.payload.repository.owner.login,
|
||||||
|
repo: this.payload.repository.name
|
||||||
|
};
|
||||||
|
}
|
||||||
|
throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.Context = Context;
|
||||||
|
//# sourceMappingURL=context.js.map
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3228:
|
||||||
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getOctokit = exports.context = void 0;
|
||||||
|
const Context = __importStar(__nccwpck_require__(1648));
|
||||||
|
const utils_1 = __nccwpck_require__(8006);
|
||||||
|
exports.context = new Context.Context();
|
||||||
|
/**
|
||||||
|
* Returns a hydrated octokit ready to use for GitHub Actions
|
||||||
|
*
|
||||||
|
* @param token the repo PAT or GITHUB_TOKEN
|
||||||
|
* @param options other options to set
|
||||||
|
*/
|
||||||
|
function getOctokit(token, options, ...additionalPlugins) {
|
||||||
|
const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins);
|
||||||
|
return new GitHubWithPlugins((0, utils_1.getOctokitOptions)(token, options));
|
||||||
|
}
|
||||||
|
exports.getOctokit = getOctokit;
|
||||||
|
//# sourceMappingURL=github.js.map
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 5156:
|
||||||
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getApiBaseUrl = exports.getProxyFetch = exports.getProxyAgentDispatcher = exports.getProxyAgent = exports.getAuthString = void 0;
|
||||||
|
const httpClient = __importStar(__nccwpck_require__(4844));
|
||||||
|
const undici_1 = __nccwpck_require__(6752);
|
||||||
|
function getAuthString(token, options) {
|
||||||
|
if (!token && !options.auth) {
|
||||||
|
throw new Error('Parameter token or opts.auth is required');
|
||||||
|
}
|
||||||
|
else if (token && options.auth) {
|
||||||
|
throw new Error('Parameters token and opts.auth may not both be specified');
|
||||||
|
}
|
||||||
|
return typeof options.auth === 'string' ? options.auth : `token ${token}`;
|
||||||
|
}
|
||||||
|
exports.getAuthString = getAuthString;
|
||||||
|
function getProxyAgent(destinationUrl) {
|
||||||
|
const hc = new httpClient.HttpClient();
|
||||||
|
return hc.getAgent(destinationUrl);
|
||||||
|
}
|
||||||
|
exports.getProxyAgent = getProxyAgent;
|
||||||
|
function getProxyAgentDispatcher(destinationUrl) {
|
||||||
|
const hc = new httpClient.HttpClient();
|
||||||
|
return hc.getAgentDispatcher(destinationUrl);
|
||||||
|
}
|
||||||
|
exports.getProxyAgentDispatcher = getProxyAgentDispatcher;
|
||||||
|
function getProxyFetch(destinationUrl) {
|
||||||
|
const httpDispatcher = getProxyAgentDispatcher(destinationUrl);
|
||||||
|
const proxyFetch = (url, opts) => __awaiter(this, void 0, void 0, function* () {
|
||||||
|
return (0, undici_1.fetch)(url, Object.assign(Object.assign({}, opts), { dispatcher: httpDispatcher }));
|
||||||
|
});
|
||||||
|
return proxyFetch;
|
||||||
|
}
|
||||||
|
exports.getProxyFetch = getProxyFetch;
|
||||||
|
function getApiBaseUrl() {
|
||||||
|
return process.env['GITHUB_API_URL'] || 'https://api.github.com';
|
||||||
|
}
|
||||||
|
exports.getApiBaseUrl = getApiBaseUrl;
|
||||||
|
//# sourceMappingURL=utils.js.map
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8006:
|
||||||
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0;
|
||||||
|
const Context = __importStar(__nccwpck_require__(1648));
|
||||||
|
const Utils = __importStar(__nccwpck_require__(5156));
|
||||||
|
// octokit + plugins
|
||||||
|
const core_1 = __nccwpck_require__(1897);
|
||||||
|
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(4935);
|
||||||
|
const plugin_paginate_rest_1 = __nccwpck_require__(8082);
|
||||||
|
exports.context = new Context.Context();
|
||||||
|
const baseUrl = Utils.getApiBaseUrl();
|
||||||
|
exports.defaults = {
|
||||||
|
baseUrl,
|
||||||
|
request: {
|
||||||
|
agent: Utils.getProxyAgent(baseUrl),
|
||||||
|
fetch: Utils.getProxyFetch(baseUrl)
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults);
|
||||||
|
/**
|
||||||
|
* Convience function to correctly format Octokit Options to pass into the constructor.
|
||||||
|
*
|
||||||
|
* @param token the repo PAT or GITHUB_TOKEN
|
||||||
|
* @param options other options to set
|
||||||
|
*/
|
||||||
|
function getOctokitOptions(token, options) {
|
||||||
|
const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller
|
||||||
|
// Auth
|
||||||
|
const auth = Utils.getAuthString(token, opts);
|
||||||
|
if (auth) {
|
||||||
|
opts.auth = auth;
|
||||||
|
}
|
||||||
|
return opts;
|
||||||
|
}
|
||||||
|
exports.getOctokitOptions = getOctokitOptions;
|
||||||
|
//# sourceMappingURL=utils.js.map
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 4552:
|
/***/ 4552:
|
||||||
/***/ (function(__unused_webpack_module, exports) {
|
/***/ (function(__unused_webpack_module, exports) {
|
||||||
|
|
||||||
@@ -3193,11 +3446,7 @@ function copyFile(srcFile, destFile, force) {
|
|||||||
|
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
||||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
||||||
}
|
|
||||||
Object.defineProperty(o, k2, desc);
|
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -3210,7 +3459,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
@@ -3240,11 +3489,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
|
|||||||
let file;
|
let file;
|
||||||
for (const candidate of candidates) {
|
for (const candidate of candidates) {
|
||||||
const version = candidate.version;
|
const version = candidate.version;
|
||||||
(0, core_1.debug)(`check ${version} satisfies ${versionSpec}`);
|
core_1.debug(`check ${version} satisfies ${versionSpec}`);
|
||||||
if (semver.satisfies(version, versionSpec) &&
|
if (semver.satisfies(version, versionSpec) &&
|
||||||
(!stable || candidate.stable === stable)) {
|
(!stable || candidate.stable === stable)) {
|
||||||
file = candidate.files.find(item => {
|
file = candidate.files.find(item => {
|
||||||
(0, core_1.debug)(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
|
core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
|
||||||
let chk = item.arch === archFilter && item.platform === platFilter;
|
let chk = item.arch === archFilter && item.platform === platFilter;
|
||||||
if (chk && item.platform_version) {
|
if (chk && item.platform_version) {
|
||||||
const osVersion = module.exports._getOsVersion();
|
const osVersion = module.exports._getOsVersion();
|
||||||
@@ -3258,7 +3507,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
|
|||||||
return chk;
|
return chk;
|
||||||
});
|
});
|
||||||
if (file) {
|
if (file) {
|
||||||
(0, core_1.debug)(`matched ${candidate.version}`);
|
core_1.debug(`matched ${candidate.version}`);
|
||||||
match = candidate;
|
match = candidate;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -3296,7 +3545,10 @@ function _getOsVersion() {
|
|||||||
if (parts.length === 2 &&
|
if (parts.length === 2 &&
|
||||||
(parts[0].trim() === 'VERSION_ID' ||
|
(parts[0].trim() === 'VERSION_ID' ||
|
||||||
parts[0].trim() === 'DISTRIB_RELEASE')) {
|
parts[0].trim() === 'DISTRIB_RELEASE')) {
|
||||||
version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
|
version = parts[1]
|
||||||
|
.trim()
|
||||||
|
.replace(/^"/, '')
|
||||||
|
.replace(/"$/, '');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3329,11 +3581,7 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
|
|||||||
|
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
||||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
||||||
}
|
|
||||||
Object.defineProperty(o, k2, desc);
|
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -3346,7 +3594,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
@@ -3423,11 +3671,7 @@ exports.RetryHelper = RetryHelper;
|
|||||||
|
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
||||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
||||||
}
|
|
||||||
Object.defineProperty(o, k2, desc);
|
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@@ -3440,7 +3684,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
@@ -3453,11 +3697,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
|
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const io = __importStar(__nccwpck_require__(4994));
|
const io = __importStar(__nccwpck_require__(4994));
|
||||||
const crypto = __importStar(__nccwpck_require__(6982));
|
|
||||||
const fs = __importStar(__nccwpck_require__(9896));
|
const fs = __importStar(__nccwpck_require__(9896));
|
||||||
const mm = __importStar(__nccwpck_require__(8036));
|
const mm = __importStar(__nccwpck_require__(8036));
|
||||||
const os = __importStar(__nccwpck_require__(857));
|
const os = __importStar(__nccwpck_require__(857));
|
||||||
@@ -3467,6 +3713,7 @@ const semver = __importStar(__nccwpck_require__(9318));
|
|||||||
const stream = __importStar(__nccwpck_require__(2203));
|
const stream = __importStar(__nccwpck_require__(2203));
|
||||||
const util = __importStar(__nccwpck_require__(9023));
|
const util = __importStar(__nccwpck_require__(9023));
|
||||||
const assert_1 = __nccwpck_require__(2613);
|
const assert_1 = __nccwpck_require__(2613);
|
||||||
|
const v4_1 = __importDefault(__nccwpck_require__(9021));
|
||||||
const exec_1 = __nccwpck_require__(5236);
|
const exec_1 = __nccwpck_require__(5236);
|
||||||
const retry_helper_1 = __nccwpck_require__(7380);
|
const retry_helper_1 = __nccwpck_require__(7380);
|
||||||
class HTTPError extends Error {
|
class HTTPError extends Error {
|
||||||
@@ -3491,7 +3738,7 @@ const userAgent = 'actions/tool-cache';
|
|||||||
*/
|
*/
|
||||||
function downloadTool(url, dest, auth, headers) {
|
function downloadTool(url, dest, auth, headers) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
dest = dest || path.join(_getTempDirectory(), crypto.randomUUID());
|
dest = dest || path.join(_getTempDirectory(), v4_1.default());
|
||||||
yield io.mkdirP(path.dirname(dest));
|
yield io.mkdirP(path.dirname(dest));
|
||||||
core.debug(`Downloading ${url}`);
|
core.debug(`Downloading ${url}`);
|
||||||
core.debug(`Destination ${dest}`);
|
core.debug(`Destination ${dest}`);
|
||||||
@@ -3580,8 +3827,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
|
|||||||
*/
|
*/
|
||||||
function extract7z(file, dest, _7zPath) {
|
function extract7z(file, dest, _7zPath) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
(0, assert_1.ok)(IS_WINDOWS, 'extract7z() not supported on current OS');
|
assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
|
||||||
(0, assert_1.ok)(file, 'parameter "file" is required');
|
assert_1.ok(file, 'parameter "file" is required');
|
||||||
dest = yield _createExtractFolder(dest);
|
dest = yield _createExtractFolder(dest);
|
||||||
const originalCwd = process.cwd();
|
const originalCwd = process.cwd();
|
||||||
process.chdir(dest);
|
process.chdir(dest);
|
||||||
@@ -3598,7 +3845,7 @@ function extract7z(file, dest, _7zPath) {
|
|||||||
const options = {
|
const options = {
|
||||||
silent: true
|
silent: true
|
||||||
};
|
};
|
||||||
yield (0, exec_1.exec)(`"${_7zPath}"`, args, options);
|
yield exec_1.exec(`"${_7zPath}"`, args, options);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
process.chdir(originalCwd);
|
process.chdir(originalCwd);
|
||||||
@@ -3627,7 +3874,7 @@ function extract7z(file, dest, _7zPath) {
|
|||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const powershellPath = yield io.which('powershell', true);
|
const powershellPath = yield io.which('powershell', true);
|
||||||
yield (0, exec_1.exec)(`"${powershellPath}"`, args, options);
|
yield exec_1.exec(`"${powershellPath}"`, args, options);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
process.chdir(originalCwd);
|
process.chdir(originalCwd);
|
||||||
@@ -3655,7 +3902,7 @@ function extractTar(file, dest, flags = 'xz') {
|
|||||||
// Determine whether GNU tar
|
// Determine whether GNU tar
|
||||||
core.debug('Checking tar --version');
|
core.debug('Checking tar --version');
|
||||||
let versionOutput = '';
|
let versionOutput = '';
|
||||||
yield (0, exec_1.exec)('tar --version', [], {
|
yield exec_1.exec('tar --version', [], {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
silent: true,
|
silent: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
@@ -3691,7 +3938,7 @@ function extractTar(file, dest, flags = 'xz') {
|
|||||||
args.push('--overwrite');
|
args.push('--overwrite');
|
||||||
}
|
}
|
||||||
args.push('-C', destArg, '-f', fileArg);
|
args.push('-C', destArg, '-f', fileArg);
|
||||||
yield (0, exec_1.exec)(`tar`, args);
|
yield exec_1.exec(`tar`, args);
|
||||||
return dest;
|
return dest;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -3706,8 +3953,8 @@ exports.extractTar = extractTar;
|
|||||||
*/
|
*/
|
||||||
function extractXar(file, dest, flags = []) {
|
function extractXar(file, dest, flags = []) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
(0, assert_1.ok)(IS_MAC, 'extractXar() not supported on current OS');
|
assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
|
||||||
(0, assert_1.ok)(file, 'parameter "file" is required');
|
assert_1.ok(file, 'parameter "file" is required');
|
||||||
dest = yield _createExtractFolder(dest);
|
dest = yield _createExtractFolder(dest);
|
||||||
let args;
|
let args;
|
||||||
if (flags instanceof Array) {
|
if (flags instanceof Array) {
|
||||||
@@ -3721,7 +3968,7 @@ function extractXar(file, dest, flags = []) {
|
|||||||
args.push('-v');
|
args.push('-v');
|
||||||
}
|
}
|
||||||
const xarPath = yield io.which('xar', true);
|
const xarPath = yield io.which('xar', true);
|
||||||
yield (0, exec_1.exec)(`"${xarPath}"`, _unique(args));
|
yield exec_1.exec(`"${xarPath}"`, _unique(args));
|
||||||
return dest;
|
return dest;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -3775,7 +4022,7 @@ function extractZipWin(file, dest) {
|
|||||||
pwshCommand
|
pwshCommand
|
||||||
];
|
];
|
||||||
core.debug(`Using pwsh at path: ${pwshPath}`);
|
core.debug(`Using pwsh at path: ${pwshPath}`);
|
||||||
yield (0, exec_1.exec)(`"${pwshPath}"`, args);
|
yield exec_1.exec(`"${pwshPath}"`, args);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const powershellCommand = [
|
const powershellCommand = [
|
||||||
@@ -3796,7 +4043,7 @@ function extractZipWin(file, dest) {
|
|||||||
];
|
];
|
||||||
const powershellPath = yield io.which('powershell', true);
|
const powershellPath = yield io.which('powershell', true);
|
||||||
core.debug(`Using powershell at path: ${powershellPath}`);
|
core.debug(`Using powershell at path: ${powershellPath}`);
|
||||||
yield (0, exec_1.exec)(`"${powershellPath}"`, args);
|
yield exec_1.exec(`"${powershellPath}"`, args);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -3808,7 +4055,7 @@ function extractZipNix(file, dest) {
|
|||||||
args.unshift('-q');
|
args.unshift('-q');
|
||||||
}
|
}
|
||||||
args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
|
args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
|
||||||
yield (0, exec_1.exec)(`"${unzipPath}"`, args, { cwd: dest });
|
yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -3985,7 +4232,7 @@ function _createExtractFolder(dest) {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (!dest) {
|
if (!dest) {
|
||||||
// create a temp dir
|
// create a temp dir
|
||||||
dest = path.join(_getTempDirectory(), crypto.randomUUID());
|
dest = path.join(_getTempDirectory(), v4_1.default());
|
||||||
}
|
}
|
||||||
yield io.mkdirP(dest);
|
yield io.mkdirP(dest);
|
||||||
return dest;
|
return dest;
|
||||||
@@ -4058,7 +4305,7 @@ exports.evaluateVersions = evaluateVersions;
|
|||||||
*/
|
*/
|
||||||
function _getCacheDirectory() {
|
function _getCacheDirectory() {
|
||||||
const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
|
const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
|
||||||
(0, assert_1.ok)(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
|
assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
|
||||||
return cacheDirectory;
|
return cacheDirectory;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -4066,7 +4313,7 @@ function _getCacheDirectory() {
|
|||||||
*/
|
*/
|
||||||
function _getTempDirectory() {
|
function _getTempDirectory() {
|
||||||
const tempDirectory = process.env['RUNNER_TEMP'] || '';
|
const tempDirectory = process.env['RUNNER_TEMP'] || '';
|
||||||
(0, assert_1.ok)(tempDirectory, 'Expected RUNNER_TEMP to be defined');
|
assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
|
||||||
return tempDirectory;
|
return tempDirectory;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@@ -4087,6 +4334,3789 @@ function _unique(values) {
|
|||||||
}
|
}
|
||||||
//# sourceMappingURL=tool-cache.js.map
|
//# sourceMappingURL=tool-cache.js.map
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7864:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
createTokenAuth: () => createTokenAuth
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
|
||||||
|
// pkg/dist-src/auth.js
|
||||||
|
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
||||||
|
var REGEX_IS_INSTALLATION = /^ghs_/;
|
||||||
|
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
||||||
|
async function auth(token) {
|
||||||
|
const isApp = token.split(/\./).length === 3;
|
||||||
|
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
||||||
|
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
||||||
|
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
||||||
|
return {
|
||||||
|
type: "token",
|
||||||
|
token,
|
||||||
|
tokenType
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/with-authorization-prefix.js
|
||||||
|
function withAuthorizationPrefix(token) {
|
||||||
|
if (token.split(/\./).length === 3) {
|
||||||
|
return `bearer ${token}`;
|
||||||
|
}
|
||||||
|
return `token ${token}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/hook.js
|
||||||
|
async function hook(token, request, route, parameters) {
|
||||||
|
const endpoint = request.endpoint.merge(
|
||||||
|
route,
|
||||||
|
parameters
|
||||||
|
);
|
||||||
|
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
||||||
|
return request(endpoint);
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var createTokenAuth = function createTokenAuth2(token) {
|
||||||
|
if (!token) {
|
||||||
|
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
||||||
|
}
|
||||||
|
if (typeof token !== "string") {
|
||||||
|
throw new Error(
|
||||||
|
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
token = token.replace(/^(token|bearer) +/i, "");
|
||||||
|
return Object.assign(auth.bind(null, token), {
|
||||||
|
hook: hook.bind(null, token)
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1897:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
Octokit: () => Octokit
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||||
|
var import_before_after_hook = __nccwpck_require__(2732);
|
||||||
|
var import_request = __nccwpck_require__(8636);
|
||||||
|
var import_graphql = __nccwpck_require__(7);
|
||||||
|
var import_auth_token = __nccwpck_require__(7864);
|
||||||
|
|
||||||
|
// pkg/dist-src/version.js
|
||||||
|
var VERSION = "5.2.0";
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var noop = () => {
|
||||||
|
};
|
||||||
|
var consoleWarn = console.warn.bind(console);
|
||||||
|
var consoleError = console.error.bind(console);
|
||||||
|
var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
||||||
|
var Octokit = class {
|
||||||
|
static {
|
||||||
|
this.VERSION = VERSION;
|
||||||
|
}
|
||||||
|
static defaults(defaults) {
|
||||||
|
const OctokitWithDefaults = class extends this {
|
||||||
|
constructor(...args) {
|
||||||
|
const options = args[0] || {};
|
||||||
|
if (typeof defaults === "function") {
|
||||||
|
super(defaults(options));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
super(
|
||||||
|
Object.assign(
|
||||||
|
{},
|
||||||
|
defaults,
|
||||||
|
options,
|
||||||
|
options.userAgent && defaults.userAgent ? {
|
||||||
|
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
||||||
|
} : null
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return OctokitWithDefaults;
|
||||||
|
}
|
||||||
|
static {
|
||||||
|
this.plugins = [];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Attach a plugin (or many) to your Octokit instance.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
||||||
|
*/
|
||||||
|
static plugin(...newPlugins) {
|
||||||
|
const currentPlugins = this.plugins;
|
||||||
|
const NewOctokit = class extends this {
|
||||||
|
static {
|
||||||
|
this.plugins = currentPlugins.concat(
|
||||||
|
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return NewOctokit;
|
||||||
|
}
|
||||||
|
constructor(options = {}) {
|
||||||
|
const hook = new import_before_after_hook.Collection();
|
||||||
|
const requestDefaults = {
|
||||||
|
baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,
|
||||||
|
headers: {},
|
||||||
|
request: Object.assign({}, options.request, {
|
||||||
|
// @ts-ignore internal usage only, no need to type
|
||||||
|
hook: hook.bind(null, "request")
|
||||||
|
}),
|
||||||
|
mediaType: {
|
||||||
|
previews: [],
|
||||||
|
format: ""
|
||||||
|
}
|
||||||
|
};
|
||||||
|
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
||||||
|
if (options.baseUrl) {
|
||||||
|
requestDefaults.baseUrl = options.baseUrl;
|
||||||
|
}
|
||||||
|
if (options.previews) {
|
||||||
|
requestDefaults.mediaType.previews = options.previews;
|
||||||
|
}
|
||||||
|
if (options.timeZone) {
|
||||||
|
requestDefaults.headers["time-zone"] = options.timeZone;
|
||||||
|
}
|
||||||
|
this.request = import_request.request.defaults(requestDefaults);
|
||||||
|
this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
|
||||||
|
this.log = Object.assign(
|
||||||
|
{
|
||||||
|
debug: noop,
|
||||||
|
info: noop,
|
||||||
|
warn: consoleWarn,
|
||||||
|
error: consoleError
|
||||||
|
},
|
||||||
|
options.log
|
||||||
|
);
|
||||||
|
this.hook = hook;
|
||||||
|
if (!options.authStrategy) {
|
||||||
|
if (!options.auth) {
|
||||||
|
this.auth = async () => ({
|
||||||
|
type: "unauthenticated"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
const auth = (0, import_auth_token.createTokenAuth)(options.auth);
|
||||||
|
hook.wrap("request", auth.hook);
|
||||||
|
this.auth = auth;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const { authStrategy, ...otherOptions } = options;
|
||||||
|
const auth = authStrategy(
|
||||||
|
Object.assign(
|
||||||
|
{
|
||||||
|
request: this.request,
|
||||||
|
log: this.log,
|
||||||
|
// we pass the current octokit instance as well as its constructor options
|
||||||
|
// to allow for authentication strategies that return a new octokit instance
|
||||||
|
// that shares the same internal state as the current one. The original
|
||||||
|
// requirement for this was the "event-octokit" authentication strategy
|
||||||
|
// of https://github.com/probot/octokit-auth-probot.
|
||||||
|
octokit: this,
|
||||||
|
octokitOptions: otherOptions
|
||||||
|
},
|
||||||
|
options.auth
|
||||||
|
)
|
||||||
|
);
|
||||||
|
hook.wrap("request", auth.hook);
|
||||||
|
this.auth = auth;
|
||||||
|
}
|
||||||
|
const classConstructor = this.constructor;
|
||||||
|
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
||||||
|
Object.assign(this, classConstructor.plugins[i](this, options));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4471:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
endpoint: () => endpoint
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
|
||||||
|
// pkg/dist-src/defaults.js
|
||||||
|
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||||
|
|
||||||
|
// pkg/dist-src/version.js
|
||||||
|
var VERSION = "9.0.5";
|
||||||
|
|
||||||
|
// pkg/dist-src/defaults.js
|
||||||
|
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
|
||||||
|
var DEFAULTS = {
|
||||||
|
method: "GET",
|
||||||
|
baseUrl: "https://api.github.com",
|
||||||
|
headers: {
|
||||||
|
accept: "application/vnd.github.v3+json",
|
||||||
|
"user-agent": userAgent
|
||||||
|
},
|
||||||
|
mediaType: {
|
||||||
|
format: ""
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// pkg/dist-src/util/lowercase-keys.js
|
||||||
|
function lowercaseKeys(object) {
|
||||||
|
if (!object) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
return Object.keys(object).reduce((newObj, key) => {
|
||||||
|
newObj[key.toLowerCase()] = object[key];
|
||||||
|
return newObj;
|
||||||
|
}, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/is-plain-object.js
|
||||||
|
function isPlainObject(value) {
|
||||||
|
if (typeof value !== "object" || value === null)
|
||||||
|
return false;
|
||||||
|
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||||
|
return false;
|
||||||
|
const proto = Object.getPrototypeOf(value);
|
||||||
|
if (proto === null)
|
||||||
|
return true;
|
||||||
|
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||||
|
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/merge-deep.js
|
||||||
|
function mergeDeep(defaults, options) {
|
||||||
|
const result = Object.assign({}, defaults);
|
||||||
|
Object.keys(options).forEach((key) => {
|
||||||
|
if (isPlainObject(options[key])) {
|
||||||
|
if (!(key in defaults))
|
||||||
|
Object.assign(result, { [key]: options[key] });
|
||||||
|
else
|
||||||
|
result[key] = mergeDeep(defaults[key], options[key]);
|
||||||
|
} else {
|
||||||
|
Object.assign(result, { [key]: options[key] });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/remove-undefined-properties.js
|
||||||
|
function removeUndefinedProperties(obj) {
|
||||||
|
for (const key in obj) {
|
||||||
|
if (obj[key] === void 0) {
|
||||||
|
delete obj[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/merge.js
|
||||||
|
function merge(defaults, route, options) {
|
||||||
|
if (typeof route === "string") {
|
||||||
|
let [method, url] = route.split(" ");
|
||||||
|
options = Object.assign(url ? { method, url } : { url: method }, options);
|
||||||
|
} else {
|
||||||
|
options = Object.assign({}, route);
|
||||||
|
}
|
||||||
|
options.headers = lowercaseKeys(options.headers);
|
||||||
|
removeUndefinedProperties(options);
|
||||||
|
removeUndefinedProperties(options.headers);
|
||||||
|
const mergedOptions = mergeDeep(defaults || {}, options);
|
||||||
|
if (options.url === "/graphql") {
|
||||||
|
if (defaults && defaults.mediaType.previews?.length) {
|
||||||
|
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(
|
||||||
|
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
||||||
|
).concat(mergedOptions.mediaType.previews);
|
||||||
|
}
|
||||||
|
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
||||||
|
}
|
||||||
|
return mergedOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/add-query-parameters.js
|
||||||
|
function addQueryParameters(url, parameters) {
|
||||||
|
const separator = /\?/.test(url) ? "&" : "?";
|
||||||
|
const names = Object.keys(parameters);
|
||||||
|
if (names.length === 0) {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
return url + separator + names.map((name) => {
|
||||||
|
if (name === "q") {
|
||||||
|
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
||||||
|
}
|
||||||
|
return `${name}=${encodeURIComponent(parameters[name])}`;
|
||||||
|
}).join("&");
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/extract-url-variable-names.js
|
||||||
|
var urlVariableRegex = /\{[^}]+\}/g;
|
||||||
|
function removeNonChars(variableName) {
|
||||||
|
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
||||||
|
}
|
||||||
|
function extractUrlVariableNames(url) {
|
||||||
|
const matches = url.match(urlVariableRegex);
|
||||||
|
if (!matches) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/omit.js
|
||||||
|
function omit(object, keysToOmit) {
|
||||||
|
const result = { __proto__: null };
|
||||||
|
for (const key of Object.keys(object)) {
|
||||||
|
if (keysToOmit.indexOf(key) === -1) {
|
||||||
|
result[key] = object[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/util/url-template.js
|
||||||
|
function encodeReserved(str) {
|
||||||
|
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
||||||
|
if (!/%[0-9A-Fa-f]/.test(part)) {
|
||||||
|
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
||||||
|
}
|
||||||
|
return part;
|
||||||
|
}).join("");
|
||||||
|
}
|
||||||
|
function encodeUnreserved(str) {
|
||||||
|
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
||||||
|
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function encodeValue(operator, value, key) {
|
||||||
|
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
||||||
|
if (key) {
|
||||||
|
return encodeUnreserved(key) + "=" + value;
|
||||||
|
} else {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function isDefined(value) {
|
||||||
|
return value !== void 0 && value !== null;
|
||||||
|
}
|
||||||
|
function isKeyOperator(operator) {
|
||||||
|
return operator === ";" || operator === "&" || operator === "?";
|
||||||
|
}
|
||||||
|
function getValues(context, operator, key, modifier) {
|
||||||
|
var value = context[key], result = [];
|
||||||
|
if (isDefined(value) && value !== "") {
|
||||||
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
||||||
|
value = value.toString();
|
||||||
|
if (modifier && modifier !== "*") {
|
||||||
|
value = value.substring(0, parseInt(modifier, 10));
|
||||||
|
}
|
||||||
|
result.push(
|
||||||
|
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
if (modifier === "*") {
|
||||||
|
if (Array.isArray(value)) {
|
||||||
|
value.filter(isDefined).forEach(function(value2) {
|
||||||
|
result.push(
|
||||||
|
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
||||||
|
);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Object.keys(value).forEach(function(k) {
|
||||||
|
if (isDefined(value[k])) {
|
||||||
|
result.push(encodeValue(operator, value[k], k));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const tmp = [];
|
||||||
|
if (Array.isArray(value)) {
|
||||||
|
value.filter(isDefined).forEach(function(value2) {
|
||||||
|
tmp.push(encodeValue(operator, value2));
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Object.keys(value).forEach(function(k) {
|
||||||
|
if (isDefined(value[k])) {
|
||||||
|
tmp.push(encodeUnreserved(k));
|
||||||
|
tmp.push(encodeValue(operator, value[k].toString()));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (isKeyOperator(operator)) {
|
||||||
|
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
|
||||||
|
} else if (tmp.length !== 0) {
|
||||||
|
result.push(tmp.join(","));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (operator === ";") {
|
||||||
|
if (isDefined(value)) {
|
||||||
|
result.push(encodeUnreserved(key));
|
||||||
|
}
|
||||||
|
} else if (value === "" && (operator === "&" || operator === "?")) {
|
||||||
|
result.push(encodeUnreserved(key) + "=");
|
||||||
|
} else if (value === "") {
|
||||||
|
result.push("");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
function parseUrl(template) {
|
||||||
|
return {
|
||||||
|
expand: expand.bind(null, template)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function expand(template, context) {
|
||||||
|
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
||||||
|
template = template.replace(
|
||||||
|
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
||||||
|
function(_, expression, literal) {
|
||||||
|
if (expression) {
|
||||||
|
let operator = "";
|
||||||
|
const values = [];
|
||||||
|
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
||||||
|
operator = expression.charAt(0);
|
||||||
|
expression = expression.substr(1);
|
||||||
|
}
|
||||||
|
expression.split(/,/g).forEach(function(variable) {
|
||||||
|
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
||||||
|
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
||||||
|
});
|
||||||
|
if (operator && operator !== "+") {
|
||||||
|
var separator = ",";
|
||||||
|
if (operator === "?") {
|
||||||
|
separator = "&";
|
||||||
|
} else if (operator !== "#") {
|
||||||
|
separator = operator;
|
||||||
|
}
|
||||||
|
return (values.length !== 0 ? operator : "") + values.join(separator);
|
||||||
|
} else {
|
||||||
|
return values.join(",");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return encodeReserved(literal);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
if (template === "/") {
|
||||||
|
return template;
|
||||||
|
} else {
|
||||||
|
return template.replace(/\/$/, "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/parse.js
|
||||||
|
function parse(options) {
|
||||||
|
let method = options.method.toUpperCase();
|
||||||
|
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
||||||
|
let headers = Object.assign({}, options.headers);
|
||||||
|
let body;
|
||||||
|
let parameters = omit(options, [
|
||||||
|
"method",
|
||||||
|
"baseUrl",
|
||||||
|
"url",
|
||||||
|
"headers",
|
||||||
|
"request",
|
||||||
|
"mediaType"
|
||||||
|
]);
|
||||||
|
const urlVariableNames = extractUrlVariableNames(url);
|
||||||
|
url = parseUrl(url).expand(parameters);
|
||||||
|
if (!/^http/.test(url)) {
|
||||||
|
url = options.baseUrl + url;
|
||||||
|
}
|
||||||
|
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
||||||
|
const remainingParameters = omit(parameters, omittedParameters);
|
||||||
|
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
||||||
|
if (!isBinaryRequest) {
|
||||||
|
if (options.mediaType.format) {
|
||||||
|
headers.accept = headers.accept.split(/,/).map(
|
||||||
|
(format) => format.replace(
|
||||||
|
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
||||||
|
`application/vnd$1$2.${options.mediaType.format}`
|
||||||
|
)
|
||||||
|
).join(",");
|
||||||
|
}
|
||||||
|
if (url.endsWith("/graphql")) {
|
||||||
|
if (options.mediaType.previews?.length) {
|
||||||
|
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
||||||
|
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
||||||
|
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
||||||
|
return `application/vnd.github.${preview}-preview${format}`;
|
||||||
|
}).join(",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (["GET", "HEAD"].includes(method)) {
|
||||||
|
url = addQueryParameters(url, remainingParameters);
|
||||||
|
} else {
|
||||||
|
if ("data" in remainingParameters) {
|
||||||
|
body = remainingParameters.data;
|
||||||
|
} else {
|
||||||
|
if (Object.keys(remainingParameters).length) {
|
||||||
|
body = remainingParameters;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!headers["content-type"] && typeof body !== "undefined") {
|
||||||
|
headers["content-type"] = "application/json; charset=utf-8";
|
||||||
|
}
|
||||||
|
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
||||||
|
body = "";
|
||||||
|
}
|
||||||
|
return Object.assign(
|
||||||
|
{ method, url, headers },
|
||||||
|
typeof body !== "undefined" ? { body } : null,
|
||||||
|
options.request ? { request: options.request } : null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/endpoint-with-defaults.js
|
||||||
|
function endpointWithDefaults(defaults, route, options) {
|
||||||
|
return parse(merge(defaults, route, options));
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/with-defaults.js
|
||||||
|
function withDefaults(oldDefaults, newDefaults) {
|
||||||
|
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
||||||
|
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
||||||
|
return Object.assign(endpoint2, {
|
||||||
|
DEFAULTS: DEFAULTS2,
|
||||||
|
defaults: withDefaults.bind(null, DEFAULTS2),
|
||||||
|
merge: merge.bind(null, DEFAULTS2),
|
||||||
|
parse
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var endpoint = withDefaults(null, DEFAULTS);
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
GraphqlResponseError: () => GraphqlResponseError,
|
||||||
|
graphql: () => graphql2,
|
||||||
|
withCustomRequest: () => withCustomRequest
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
var import_request3 = __nccwpck_require__(8636);
|
||||||
|
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||||
|
|
||||||
|
// pkg/dist-src/version.js
|
||||||
|
var VERSION = "7.1.0";
|
||||||
|
|
||||||
|
// pkg/dist-src/with-defaults.js
|
||||||
|
var import_request2 = __nccwpck_require__(8636);
|
||||||
|
|
||||||
|
// pkg/dist-src/graphql.js
|
||||||
|
var import_request = __nccwpck_require__(8636);
|
||||||
|
|
||||||
|
// pkg/dist-src/error.js
|
||||||
|
function _buildMessageForResponseErrors(data) {
|
||||||
|
return `Request failed due to following response errors:
|
||||||
|
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
||||||
|
}
|
||||||
|
var GraphqlResponseError = class extends Error {
|
||||||
|
constructor(request2, headers, response) {
|
||||||
|
super(_buildMessageForResponseErrors(response));
|
||||||
|
this.request = request2;
|
||||||
|
this.headers = headers;
|
||||||
|
this.response = response;
|
||||||
|
this.name = "GraphqlResponseError";
|
||||||
|
this.errors = response.errors;
|
||||||
|
this.data = response.data;
|
||||||
|
if (Error.captureStackTrace) {
|
||||||
|
Error.captureStackTrace(this, this.constructor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// pkg/dist-src/graphql.js
|
||||||
|
var NON_VARIABLE_OPTIONS = [
|
||||||
|
"method",
|
||||||
|
"baseUrl",
|
||||||
|
"url",
|
||||||
|
"headers",
|
||||||
|
"request",
|
||||||
|
"query",
|
||||||
|
"mediaType"
|
||||||
|
];
|
||||||
|
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
||||||
|
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
||||||
|
function graphql(request2, query, options) {
|
||||||
|
if (options) {
|
||||||
|
if (typeof query === "string" && "query" in options) {
|
||||||
|
return Promise.reject(
|
||||||
|
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
for (const key in options) {
|
||||||
|
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
|
||||||
|
continue;
|
||||||
|
return Promise.reject(
|
||||||
|
new Error(
|
||||||
|
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
||||||
|
const requestOptions = Object.keys(
|
||||||
|
parsedOptions
|
||||||
|
).reduce((result, key) => {
|
||||||
|
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
||||||
|
result[key] = parsedOptions[key];
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
if (!result.variables) {
|
||||||
|
result.variables = {};
|
||||||
|
}
|
||||||
|
result.variables[key] = parsedOptions[key];
|
||||||
|
return result;
|
||||||
|
}, {});
|
||||||
|
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
||||||
|
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
||||||
|
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
||||||
|
}
|
||||||
|
return request2(requestOptions).then((response) => {
|
||||||
|
if (response.data.errors) {
|
||||||
|
const headers = {};
|
||||||
|
for (const key of Object.keys(response.headers)) {
|
||||||
|
headers[key] = response.headers[key];
|
||||||
|
}
|
||||||
|
throw new GraphqlResponseError(
|
||||||
|
requestOptions,
|
||||||
|
headers,
|
||||||
|
response.data
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return response.data.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/with-defaults.js
|
||||||
|
function withDefaults(request2, newDefaults) {
|
||||||
|
const newRequest = request2.defaults(newDefaults);
|
||||||
|
const newApi = (query, options) => {
|
||||||
|
return graphql(newRequest, query, options);
|
||||||
|
};
|
||||||
|
return Object.assign(newApi, {
|
||||||
|
defaults: withDefaults.bind(null, newRequest),
|
||||||
|
endpoint: newRequest.endpoint
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var graphql2 = withDefaults(import_request3.request, {
|
||||||
|
headers: {
|
||||||
|
"user-agent": `octokit-graphql.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
||||||
|
},
|
||||||
|
method: "POST",
|
||||||
|
url: "/graphql"
|
||||||
|
});
|
||||||
|
function withCustomRequest(customRequest) {
|
||||||
|
return withDefaults(customRequest, {
|
||||||
|
method: "POST",
|
||||||
|
url: "/graphql"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8082:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
composePaginateRest: () => composePaginateRest,
|
||||||
|
isPaginatingEndpoint: () => isPaginatingEndpoint,
|
||||||
|
paginateRest: () => paginateRest,
|
||||||
|
paginatingEndpoints: () => paginatingEndpoints
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
|
||||||
|
// pkg/dist-src/version.js
|
||||||
|
var VERSION = "9.0.0";
|
||||||
|
|
||||||
|
// pkg/dist-src/normalize-paginated-list-response.js
|
||||||
|
function normalizePaginatedListResponse(response) {
|
||||||
|
if (!response.data) {
|
||||||
|
return {
|
||||||
|
...response,
|
||||||
|
data: []
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
||||||
|
if (!responseNeedsNormalization)
|
||||||
|
return response;
|
||||||
|
const incompleteResults = response.data.incomplete_results;
|
||||||
|
const repositorySelection = response.data.repository_selection;
|
||||||
|
const totalCount = response.data.total_count;
|
||||||
|
delete response.data.incomplete_results;
|
||||||
|
delete response.data.repository_selection;
|
||||||
|
delete response.data.total_count;
|
||||||
|
const namespaceKey = Object.keys(response.data)[0];
|
||||||
|
const data = response.data[namespaceKey];
|
||||||
|
response.data = data;
|
||||||
|
if (typeof incompleteResults !== "undefined") {
|
||||||
|
response.data.incomplete_results = incompleteResults;
|
||||||
|
}
|
||||||
|
if (typeof repositorySelection !== "undefined") {
|
||||||
|
response.data.repository_selection = repositorySelection;
|
||||||
|
}
|
||||||
|
response.data.total_count = totalCount;
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/iterator.js
|
||||||
|
function iterator(octokit, route, parameters) {
|
||||||
|
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
||||||
|
const requestMethod = typeof route === "function" ? route : octokit.request;
|
||||||
|
const method = options.method;
|
||||||
|
const headers = options.headers;
|
||||||
|
let url = options.url;
|
||||||
|
return {
|
||||||
|
[Symbol.asyncIterator]: () => ({
|
||||||
|
async next() {
|
||||||
|
if (!url)
|
||||||
|
return { done: true };
|
||||||
|
try {
|
||||||
|
const response = await requestMethod({ method, url, headers });
|
||||||
|
const normalizedResponse = normalizePaginatedListResponse(response);
|
||||||
|
url = ((normalizedResponse.headers.link || "").match(
|
||||||
|
/<([^>]+)>;\s*rel="next"/
|
||||||
|
) || [])[1];
|
||||||
|
return { value: normalizedResponse };
|
||||||
|
} catch (error) {
|
||||||
|
if (error.status !== 409)
|
||||||
|
throw error;
|
||||||
|
url = "";
|
||||||
|
return {
|
||||||
|
value: {
|
||||||
|
status: 200,
|
||||||
|
headers: {},
|
||||||
|
data: []
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/paginate.js
|
||||||
|
function paginate(octokit, route, parameters, mapFn) {
|
||||||
|
if (typeof parameters === "function") {
|
||||||
|
mapFn = parameters;
|
||||||
|
parameters = void 0;
|
||||||
|
}
|
||||||
|
return gather(
|
||||||
|
octokit,
|
||||||
|
[],
|
||||||
|
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
||||||
|
mapFn
|
||||||
|
);
|
||||||
|
}
|
||||||
|
function gather(octokit, results, iterator2, mapFn) {
|
||||||
|
return iterator2.next().then((result) => {
|
||||||
|
if (result.done) {
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
let earlyExit = false;
|
||||||
|
function done() {
|
||||||
|
earlyExit = true;
|
||||||
|
}
|
||||||
|
results = results.concat(
|
||||||
|
mapFn ? mapFn(result.value, done) : result.value.data
|
||||||
|
);
|
||||||
|
if (earlyExit) {
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
return gather(octokit, results, iterator2, mapFn);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/compose-paginate.js
|
||||||
|
var composePaginateRest = Object.assign(paginate, {
|
||||||
|
iterator
|
||||||
|
});
|
||||||
|
|
||||||
|
// pkg/dist-src/generated/paginating-endpoints.js
|
||||||
|
var paginatingEndpoints = [
|
||||||
|
"GET /advisories",
|
||||||
|
"GET /app/hook/deliveries",
|
||||||
|
"GET /app/installation-requests",
|
||||||
|
"GET /app/installations",
|
||||||
|
"GET /assignments/{assignment_id}/accepted_assignments",
|
||||||
|
"GET /classrooms",
|
||||||
|
"GET /classrooms/{classroom_id}/assignments",
|
||||||
|
"GET /enterprises/{enterprise}/dependabot/alerts",
|
||||||
|
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
||||||
|
"GET /events",
|
||||||
|
"GET /gists",
|
||||||
|
"GET /gists/public",
|
||||||
|
"GET /gists/starred",
|
||||||
|
"GET /gists/{gist_id}/comments",
|
||||||
|
"GET /gists/{gist_id}/commits",
|
||||||
|
"GET /gists/{gist_id}/forks",
|
||||||
|
"GET /installation/repositories",
|
||||||
|
"GET /issues",
|
||||||
|
"GET /licenses",
|
||||||
|
"GET /marketplace_listing/plans",
|
||||||
|
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
||||||
|
"GET /marketplace_listing/stubbed/plans",
|
||||||
|
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
||||||
|
"GET /networks/{owner}/{repo}/events",
|
||||||
|
"GET /notifications",
|
||||||
|
"GET /organizations",
|
||||||
|
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
||||||
|
"GET /orgs/{org}/actions/permissions/repositories",
|
||||||
|
"GET /orgs/{org}/actions/runners",
|
||||||
|
"GET /orgs/{org}/actions/secrets",
|
||||||
|
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||||
|
"GET /orgs/{org}/actions/variables",
|
||||||
|
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||||
|
"GET /orgs/{org}/blocks",
|
||||||
|
"GET /orgs/{org}/code-scanning/alerts",
|
||||||
|
"GET /orgs/{org}/codespaces",
|
||||||
|
"GET /orgs/{org}/codespaces/secrets",
|
||||||
|
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
||||||
|
"GET /orgs/{org}/copilot/billing/seats",
|
||||||
|
"GET /orgs/{org}/dependabot/alerts",
|
||||||
|
"GET /orgs/{org}/dependabot/secrets",
|
||||||
|
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
||||||
|
"GET /orgs/{org}/events",
|
||||||
|
"GET /orgs/{org}/failed_invitations",
|
||||||
|
"GET /orgs/{org}/hooks",
|
||||||
|
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
||||||
|
"GET /orgs/{org}/installations",
|
||||||
|
"GET /orgs/{org}/invitations",
|
||||||
|
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
||||||
|
"GET /orgs/{org}/issues",
|
||||||
|
"GET /orgs/{org}/members",
|
||||||
|
"GET /orgs/{org}/members/{username}/codespaces",
|
||||||
|
"GET /orgs/{org}/migrations",
|
||||||
|
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
||||||
|
"GET /orgs/{org}/outside_collaborators",
|
||||||
|
"GET /orgs/{org}/packages",
|
||||||
|
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
||||||
|
"GET /orgs/{org}/personal-access-token-requests",
|
||||||
|
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
||||||
|
"GET /orgs/{org}/personal-access-tokens",
|
||||||
|
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories",
|
||||||
|
"GET /orgs/{org}/projects",
|
||||||
|
"GET /orgs/{org}/public_members",
|
||||||
|
"GET /orgs/{org}/repos",
|
||||||
|
"GET /orgs/{org}/rulesets",
|
||||||
|
"GET /orgs/{org}/secret-scanning/alerts",
|
||||||
|
"GET /orgs/{org}/security-advisories",
|
||||||
|
"GET /orgs/{org}/teams",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/members",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/projects",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||||
|
"GET /projects/columns/{column_id}/cards",
|
||||||
|
"GET /projects/{project_id}/collaborators",
|
||||||
|
"GET /projects/{project_id}/columns",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/caches",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runners",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/secrets",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/variables",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/workflows",
|
||||||
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
||||||
|
"GET /repos/{owner}/{repo}/activity",
|
||||||
|
"GET /repos/{owner}/{repo}/assignees",
|
||||||
|
"GET /repos/{owner}/{repo}/branches",
|
||||||
|
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
||||||
|
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces",
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
||||||
|
"GET /repos/{owner}/{repo}/collaborators",
|
||||||
|
"GET /repos/{owner}/{repo}/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
||||||
|
"GET /repos/{owner}/{repo}/commits",
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
||||||
|
"GET /repos/{owner}/{repo}/contributors",
|
||||||
|
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
||||||
|
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
||||||
|
"GET /repos/{owner}/{repo}/deployments",
|
||||||
|
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
||||||
|
"GET /repos/{owner}/{repo}/environments",
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
||||||
|
"GET /repos/{owner}/{repo}/events",
|
||||||
|
"GET /repos/{owner}/{repo}/forks",
|
||||||
|
"GET /repos/{owner}/{repo}/hooks",
|
||||||
|
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
||||||
|
"GET /repos/{owner}/{repo}/invitations",
|
||||||
|
"GET /repos/{owner}/{repo}/issues",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/events",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
||||||
|
"GET /repos/{owner}/{repo}/keys",
|
||||||
|
"GET /repos/{owner}/{repo}/labels",
|
||||||
|
"GET /repos/{owner}/{repo}/milestones",
|
||||||
|
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
||||||
|
"GET /repos/{owner}/{repo}/notifications",
|
||||||
|
"GET /repos/{owner}/{repo}/pages/builds",
|
||||||
|
"GET /repos/{owner}/{repo}/projects",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
||||||
|
"GET /repos/{owner}/{repo}/releases",
|
||||||
|
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
||||||
|
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
||||||
|
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
||||||
|
"GET /repos/{owner}/{repo}/rulesets",
|
||||||
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
||||||
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
||||||
|
"GET /repos/{owner}/{repo}/security-advisories",
|
||||||
|
"GET /repos/{owner}/{repo}/stargazers",
|
||||||
|
"GET /repos/{owner}/{repo}/subscribers",
|
||||||
|
"GET /repos/{owner}/{repo}/tags",
|
||||||
|
"GET /repos/{owner}/{repo}/teams",
|
||||||
|
"GET /repos/{owner}/{repo}/topics",
|
||||||
|
"GET /repositories",
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/secrets",
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/variables",
|
||||||
|
"GET /search/code",
|
||||||
|
"GET /search/commits",
|
||||||
|
"GET /search/issues",
|
||||||
|
"GET /search/labels",
|
||||||
|
"GET /search/repositories",
|
||||||
|
"GET /search/topics",
|
||||||
|
"GET /search/users",
|
||||||
|
"GET /teams/{team_id}/discussions",
|
||||||
|
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
||||||
|
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
||||||
|
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
||||||
|
"GET /teams/{team_id}/invitations",
|
||||||
|
"GET /teams/{team_id}/members",
|
||||||
|
"GET /teams/{team_id}/projects",
|
||||||
|
"GET /teams/{team_id}/repos",
|
||||||
|
"GET /teams/{team_id}/teams",
|
||||||
|
"GET /user/blocks",
|
||||||
|
"GET /user/codespaces",
|
||||||
|
"GET /user/codespaces/secrets",
|
||||||
|
"GET /user/emails",
|
||||||
|
"GET /user/followers",
|
||||||
|
"GET /user/following",
|
||||||
|
"GET /user/gpg_keys",
|
||||||
|
"GET /user/installations",
|
||||||
|
"GET /user/installations/{installation_id}/repositories",
|
||||||
|
"GET /user/issues",
|
||||||
|
"GET /user/keys",
|
||||||
|
"GET /user/marketplace_purchases",
|
||||||
|
"GET /user/marketplace_purchases/stubbed",
|
||||||
|
"GET /user/memberships/orgs",
|
||||||
|
"GET /user/migrations",
|
||||||
|
"GET /user/migrations/{migration_id}/repositories",
|
||||||
|
"GET /user/orgs",
|
||||||
|
"GET /user/packages",
|
||||||
|
"GET /user/packages/{package_type}/{package_name}/versions",
|
||||||
|
"GET /user/public_emails",
|
||||||
|
"GET /user/repos",
|
||||||
|
"GET /user/repository_invitations",
|
||||||
|
"GET /user/social_accounts",
|
||||||
|
"GET /user/ssh_signing_keys",
|
||||||
|
"GET /user/starred",
|
||||||
|
"GET /user/subscriptions",
|
||||||
|
"GET /user/teams",
|
||||||
|
"GET /users",
|
||||||
|
"GET /users/{username}/events",
|
||||||
|
"GET /users/{username}/events/orgs/{org}",
|
||||||
|
"GET /users/{username}/events/public",
|
||||||
|
"GET /users/{username}/followers",
|
||||||
|
"GET /users/{username}/following",
|
||||||
|
"GET /users/{username}/gists",
|
||||||
|
"GET /users/{username}/gpg_keys",
|
||||||
|
"GET /users/{username}/keys",
|
||||||
|
"GET /users/{username}/orgs",
|
||||||
|
"GET /users/{username}/packages",
|
||||||
|
"GET /users/{username}/projects",
|
||||||
|
"GET /users/{username}/received_events",
|
||||||
|
"GET /users/{username}/received_events/public",
|
||||||
|
"GET /users/{username}/repos",
|
||||||
|
"GET /users/{username}/social_accounts",
|
||||||
|
"GET /users/{username}/ssh_signing_keys",
|
||||||
|
"GET /users/{username}/starred",
|
||||||
|
"GET /users/{username}/subscriptions"
|
||||||
|
];
|
||||||
|
|
||||||
|
// pkg/dist-src/paginating-endpoints.js
|
||||||
|
function isPaginatingEndpoint(arg) {
|
||||||
|
if (typeof arg === "string") {
|
||||||
|
return paginatingEndpoints.includes(arg);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
function paginateRest(octokit) {
|
||||||
|
return {
|
||||||
|
paginate: Object.assign(paginate.bind(null, octokit), {
|
||||||
|
iterator: iterator.bind(null, octokit)
|
||||||
|
})
|
||||||
|
};
|
||||||
|
}
|
||||||
|
paginateRest.VERSION = VERSION;
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4935:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
legacyRestEndpointMethods: () => legacyRestEndpointMethods,
|
||||||
|
restEndpointMethods: () => restEndpointMethods
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
|
||||||
|
// pkg/dist-src/version.js
|
||||||
|
var VERSION = "10.0.0";
|
||||||
|
|
||||||
|
// pkg/dist-src/generated/endpoints.js
|
||||||
|
var Endpoints = {
|
||||||
|
actions: {
|
||||||
|
addCustomLabelsToSelfHostedRunnerForOrg: [
|
||||||
|
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
addCustomLabelsToSelfHostedRunnerForRepo: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
addSelectedRepoToOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
addSelectedRepoToOrgVariable: [
|
||||||
|
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
approveWorkflowRun: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
||||||
|
],
|
||||||
|
cancelWorkflowRun: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
||||||
|
],
|
||||||
|
createEnvironmentVariable: [
|
||||||
|
"POST /repositories/{repository_id}/environments/{environment_name}/variables"
|
||||||
|
],
|
||||||
|
createOrUpdateEnvironmentSecret: [
|
||||||
|
"PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
||||||
|
createOrUpdateRepoSecret: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
||||||
|
createRegistrationTokenForOrg: [
|
||||||
|
"POST /orgs/{org}/actions/runners/registration-token"
|
||||||
|
],
|
||||||
|
createRegistrationTokenForRepo: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
||||||
|
],
|
||||||
|
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
||||||
|
createRemoveTokenForRepo: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
||||||
|
],
|
||||||
|
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
||||||
|
createWorkflowDispatch: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
||||||
|
],
|
||||||
|
deleteActionsCacheById: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
||||||
|
],
|
||||||
|
deleteActionsCacheByKey: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
||||||
|
],
|
||||||
|
deleteArtifact: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
||||||
|
],
|
||||||
|
deleteEnvironmentSecret: [
|
||||||
|
"DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
deleteEnvironmentVariable: [
|
||||||
|
"DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
||||||
|
],
|
||||||
|
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
||||||
|
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
||||||
|
deleteRepoSecret: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
deleteRepoVariable: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
||||||
|
],
|
||||||
|
deleteSelfHostedRunnerFromOrg: [
|
||||||
|
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
||||||
|
],
|
||||||
|
deleteSelfHostedRunnerFromRepo: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
||||||
|
],
|
||||||
|
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
||||||
|
deleteWorkflowRunLogs: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
||||||
|
],
|
||||||
|
disableSelectedRepositoryGithubActionsOrganization: [
|
||||||
|
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
disableWorkflow: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
||||||
|
],
|
||||||
|
downloadArtifact: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
||||||
|
],
|
||||||
|
downloadJobLogsForWorkflowRun: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
||||||
|
],
|
||||||
|
downloadWorkflowRunAttemptLogs: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
||||||
|
],
|
||||||
|
downloadWorkflowRunLogs: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
||||||
|
],
|
||||||
|
enableSelectedRepositoryGithubActionsOrganization: [
|
||||||
|
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
enableWorkflow: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
||||||
|
],
|
||||||
|
generateRunnerJitconfigForOrg: [
|
||||||
|
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
||||||
|
],
|
||||||
|
generateRunnerJitconfigForRepo: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
||||||
|
],
|
||||||
|
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
||||||
|
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
||||||
|
getActionsCacheUsageByRepoForOrg: [
|
||||||
|
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
||||||
|
],
|
||||||
|
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
||||||
|
getAllowedActionsOrganization: [
|
||||||
|
"GET /orgs/{org}/actions/permissions/selected-actions"
|
||||||
|
],
|
||||||
|
getAllowedActionsRepository: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||||
|
],
|
||||||
|
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
||||||
|
getEnvironmentPublicKey: [
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"
|
||||||
|
],
|
||||||
|
getEnvironmentSecret: [
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
getEnvironmentVariable: [
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
||||||
|
],
|
||||||
|
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
||||||
|
"GET /orgs/{org}/actions/permissions/workflow"
|
||||||
|
],
|
||||||
|
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
||||||
|
],
|
||||||
|
getGithubActionsPermissionsOrganization: [
|
||||||
|
"GET /orgs/{org}/actions/permissions"
|
||||||
|
],
|
||||||
|
getGithubActionsPermissionsRepository: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/permissions"
|
||||||
|
],
|
||||||
|
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
||||||
|
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
||||||
|
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
||||||
|
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
||||||
|
getPendingDeploymentsForRun: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
||||||
|
],
|
||||||
|
getRepoPermissions: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/permissions",
|
||||||
|
{},
|
||||||
|
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
||||||
|
],
|
||||||
|
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
||||||
|
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
||||||
|
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
||||||
|
getReviewsForRun: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
||||||
|
],
|
||||||
|
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
||||||
|
getSelfHostedRunnerForRepo: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
||||||
|
],
|
||||||
|
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
||||||
|
getWorkflowAccessToRepository: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
||||||
|
],
|
||||||
|
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
||||||
|
getWorkflowRunAttempt: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
||||||
|
],
|
||||||
|
getWorkflowRunUsage: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
||||||
|
],
|
||||||
|
getWorkflowUsage: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||||
|
],
|
||||||
|
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
||||||
|
listEnvironmentSecrets: [
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/secrets"
|
||||||
|
],
|
||||||
|
listEnvironmentVariables: [
|
||||||
|
"GET /repositories/{repository_id}/environments/{environment_name}/variables"
|
||||||
|
],
|
||||||
|
listJobsForWorkflowRun: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
||||||
|
],
|
||||||
|
listJobsForWorkflowRunAttempt: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
||||||
|
],
|
||||||
|
listLabelsForSelfHostedRunnerForOrg: [
|
||||||
|
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
listLabelsForSelfHostedRunnerForRepo: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
||||||
|
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
||||||
|
listRepoOrganizationSecrets: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
||||||
|
],
|
||||||
|
listRepoOrganizationVariables: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
||||||
|
],
|
||||||
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
||||||
|
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
||||||
|
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
||||||
|
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
||||||
|
listRunnerApplicationsForRepo: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
||||||
|
],
|
||||||
|
listSelectedReposForOrgSecret: [
|
||||||
|
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
listSelectedReposForOrgVariable: [
|
||||||
|
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
||||||
|
],
|
||||||
|
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
||||||
|
"GET /orgs/{org}/actions/permissions/repositories"
|
||||||
|
],
|
||||||
|
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
||||||
|
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
||||||
|
listWorkflowRunArtifacts: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
||||||
|
],
|
||||||
|
listWorkflowRuns: [
|
||||||
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
||||||
|
],
|
||||||
|
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
||||||
|
reRunJobForWorkflowRun: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
||||||
|
],
|
||||||
|
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
||||||
|
reRunWorkflowFailedJobs: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
||||||
|
],
|
||||||
|
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
||||||
|
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
||||||
|
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
||||||
|
],
|
||||||
|
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
||||||
|
],
|
||||||
|
removeSelectedRepoFromOrgSecret: [
|
||||||
|
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
removeSelectedRepoFromOrgVariable: [
|
||||||
|
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
reviewCustomGatesForRun: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
||||||
|
],
|
||||||
|
reviewPendingDeploymentsForRun: [
|
||||||
|
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
||||||
|
],
|
||||||
|
setAllowedActionsOrganization: [
|
||||||
|
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
||||||
|
],
|
||||||
|
setAllowedActionsRepository: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||||
|
],
|
||||||
|
setCustomLabelsForSelfHostedRunnerForOrg: [
|
||||||
|
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
setCustomLabelsForSelfHostedRunnerForRepo: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
||||||
|
],
|
||||||
|
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
||||||
|
"PUT /orgs/{org}/actions/permissions/workflow"
|
||||||
|
],
|
||||||
|
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
||||||
|
],
|
||||||
|
setGithubActionsPermissionsOrganization: [
|
||||||
|
"PUT /orgs/{org}/actions/permissions"
|
||||||
|
],
|
||||||
|
setGithubActionsPermissionsRepository: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/permissions"
|
||||||
|
],
|
||||||
|
setSelectedReposForOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
setSelectedReposForOrgVariable: [
|
||||||
|
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
||||||
|
],
|
||||||
|
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
||||||
|
"PUT /orgs/{org}/actions/permissions/repositories"
|
||||||
|
],
|
||||||
|
setWorkflowAccessToRepository: [
|
||||||
|
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
||||||
|
],
|
||||||
|
updateEnvironmentVariable: [
|
||||||
|
"PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"
|
||||||
|
],
|
||||||
|
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
||||||
|
updateRepoVariable: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
activity: {
|
||||||
|
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
||||||
|
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
||||||
|
deleteThreadSubscription: [
|
||||||
|
"DELETE /notifications/threads/{thread_id}/subscription"
|
||||||
|
],
|
||||||
|
getFeeds: ["GET /feeds"],
|
||||||
|
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
||||||
|
getThread: ["GET /notifications/threads/{thread_id}"],
|
||||||
|
getThreadSubscriptionForAuthenticatedUser: [
|
||||||
|
"GET /notifications/threads/{thread_id}/subscription"
|
||||||
|
],
|
||||||
|
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
||||||
|
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
||||||
|
listOrgEventsForAuthenticatedUser: [
|
||||||
|
"GET /users/{username}/events/orgs/{org}"
|
||||||
|
],
|
||||||
|
listPublicEvents: ["GET /events"],
|
||||||
|
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
||||||
|
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
||||||
|
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
||||||
|
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
||||||
|
listReceivedPublicEventsForUser: [
|
||||||
|
"GET /users/{username}/received_events/public"
|
||||||
|
],
|
||||||
|
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
||||||
|
listRepoNotificationsForAuthenticatedUser: [
|
||||||
|
"GET /repos/{owner}/{repo}/notifications"
|
||||||
|
],
|
||||||
|
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
||||||
|
listReposStarredByUser: ["GET /users/{username}/starred"],
|
||||||
|
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
||||||
|
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
||||||
|
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
||||||
|
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
||||||
|
markNotificationsAsRead: ["PUT /notifications"],
|
||||||
|
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
||||||
|
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
||||||
|
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
||||||
|
setThreadSubscription: [
|
||||||
|
"PUT /notifications/threads/{thread_id}/subscription"
|
||||||
|
],
|
||||||
|
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
||||||
|
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
||||||
|
},
|
||||||
|
apps: {
|
||||||
|
addRepoToInstallation: [
|
||||||
|
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
addRepoToInstallationForAuthenticatedUser: [
|
||||||
|
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
checkToken: ["POST /applications/{client_id}/token"],
|
||||||
|
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
||||||
|
createInstallationAccessToken: [
|
||||||
|
"POST /app/installations/{installation_id}/access_tokens"
|
||||||
|
],
|
||||||
|
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
||||||
|
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
||||||
|
deleteToken: ["DELETE /applications/{client_id}/token"],
|
||||||
|
getAuthenticated: ["GET /app"],
|
||||||
|
getBySlug: ["GET /apps/{app_slug}"],
|
||||||
|
getInstallation: ["GET /app/installations/{installation_id}"],
|
||||||
|
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
||||||
|
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
||||||
|
getSubscriptionPlanForAccount: [
|
||||||
|
"GET /marketplace_listing/accounts/{account_id}"
|
||||||
|
],
|
||||||
|
getSubscriptionPlanForAccountStubbed: [
|
||||||
|
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
||||||
|
],
|
||||||
|
getUserInstallation: ["GET /users/{username}/installation"],
|
||||||
|
getWebhookConfigForApp: ["GET /app/hook/config"],
|
||||||
|
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
||||||
|
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
||||||
|
listAccountsForPlanStubbed: [
|
||||||
|
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
||||||
|
],
|
||||||
|
listInstallationReposForAuthenticatedUser: [
|
||||||
|
"GET /user/installations/{installation_id}/repositories"
|
||||||
|
],
|
||||||
|
listInstallationRequestsForAuthenticatedApp: [
|
||||||
|
"GET /app/installation-requests"
|
||||||
|
],
|
||||||
|
listInstallations: ["GET /app/installations"],
|
||||||
|
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
||||||
|
listPlans: ["GET /marketplace_listing/plans"],
|
||||||
|
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
||||||
|
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
||||||
|
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
||||||
|
listSubscriptionsForAuthenticatedUserStubbed: [
|
||||||
|
"GET /user/marketplace_purchases/stubbed"
|
||||||
|
],
|
||||||
|
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
||||||
|
redeliverWebhookDelivery: [
|
||||||
|
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
||||||
|
],
|
||||||
|
removeRepoFromInstallation: [
|
||||||
|
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
removeRepoFromInstallationForAuthenticatedUser: [
|
||||||
|
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
resetToken: ["PATCH /applications/{client_id}/token"],
|
||||||
|
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
||||||
|
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
||||||
|
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
||||||
|
unsuspendInstallation: [
|
||||||
|
"DELETE /app/installations/{installation_id}/suspended"
|
||||||
|
],
|
||||||
|
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
||||||
|
},
|
||||||
|
billing: {
|
||||||
|
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
||||||
|
getGithubActionsBillingUser: [
|
||||||
|
"GET /users/{username}/settings/billing/actions"
|
||||||
|
],
|
||||||
|
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
||||||
|
getGithubPackagesBillingUser: [
|
||||||
|
"GET /users/{username}/settings/billing/packages"
|
||||||
|
],
|
||||||
|
getSharedStorageBillingOrg: [
|
||||||
|
"GET /orgs/{org}/settings/billing/shared-storage"
|
||||||
|
],
|
||||||
|
getSharedStorageBillingUser: [
|
||||||
|
"GET /users/{username}/settings/billing/shared-storage"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
checks: {
|
||||||
|
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
||||||
|
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
||||||
|
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
||||||
|
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
||||||
|
listAnnotations: [
|
||||||
|
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
||||||
|
],
|
||||||
|
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
||||||
|
listForSuite: [
|
||||||
|
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
||||||
|
],
|
||||||
|
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
||||||
|
rerequestRun: [
|
||||||
|
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
||||||
|
],
|
||||||
|
rerequestSuite: [
|
||||||
|
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
||||||
|
],
|
||||||
|
setSuitesPreferences: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
||||||
|
],
|
||||||
|
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
||||||
|
},
|
||||||
|
codeScanning: {
|
||||||
|
deleteAnalysis: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
||||||
|
],
|
||||||
|
getAlert: [
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
||||||
|
{},
|
||||||
|
{ renamedParameters: { alert_id: "alert_number" } }
|
||||||
|
],
|
||||||
|
getAnalysis: [
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
||||||
|
],
|
||||||
|
getCodeqlDatabase: [
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
||||||
|
],
|
||||||
|
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
||||||
|
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
||||||
|
listAlertInstances: [
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
||||||
|
],
|
||||||
|
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
||||||
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
||||||
|
listAlertsInstances: [
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
||||||
|
{},
|
||||||
|
{ renamed: ["codeScanning", "listAlertInstances"] }
|
||||||
|
],
|
||||||
|
listCodeqlDatabases: [
|
||||||
|
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
||||||
|
],
|
||||||
|
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
||||||
|
updateAlert: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
||||||
|
],
|
||||||
|
updateDefaultSetup: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
||||||
|
],
|
||||||
|
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
||||||
|
},
|
||||||
|
codesOfConduct: {
|
||||||
|
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
||||||
|
getConductCode: ["GET /codes_of_conduct/{key}"]
|
||||||
|
},
|
||||||
|
codespaces: {
|
||||||
|
addRepositoryForSecretForAuthenticatedUser: [
|
||||||
|
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
addSelectedRepoToOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
codespaceMachinesForAuthenticatedUser: [
|
||||||
|
"GET /user/codespaces/{codespace_name}/machines"
|
||||||
|
],
|
||||||
|
createForAuthenticatedUser: ["POST /user/codespaces"],
|
||||||
|
createOrUpdateOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
createOrUpdateRepoSecret: [
|
||||||
|
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
createOrUpdateSecretForAuthenticatedUser: [
|
||||||
|
"PUT /user/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
createWithPrForAuthenticatedUser: [
|
||||||
|
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
||||||
|
],
|
||||||
|
createWithRepoForAuthenticatedUser: [
|
||||||
|
"POST /repos/{owner}/{repo}/codespaces"
|
||||||
|
],
|
||||||
|
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
||||||
|
deleteFromOrganization: [
|
||||||
|
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
||||||
|
],
|
||||||
|
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
||||||
|
deleteRepoSecret: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
deleteSecretForAuthenticatedUser: [
|
||||||
|
"DELETE /user/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
exportForAuthenticatedUser: [
|
||||||
|
"POST /user/codespaces/{codespace_name}/exports"
|
||||||
|
],
|
||||||
|
getCodespacesForUserInOrg: [
|
||||||
|
"GET /orgs/{org}/members/{username}/codespaces"
|
||||||
|
],
|
||||||
|
getExportDetailsForAuthenticatedUser: [
|
||||||
|
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
||||||
|
],
|
||||||
|
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
||||||
|
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
||||||
|
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
||||||
|
getPublicKeyForAuthenticatedUser: [
|
||||||
|
"GET /user/codespaces/secrets/public-key"
|
||||||
|
],
|
||||||
|
getRepoPublicKey: [
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
||||||
|
],
|
||||||
|
getRepoSecret: [
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
getSecretForAuthenticatedUser: [
|
||||||
|
"GET /user/codespaces/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
listDevcontainersInRepositoryForAuthenticatedUser: [
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
||||||
|
],
|
||||||
|
listForAuthenticatedUser: ["GET /user/codespaces"],
|
||||||
|
listInOrganization: [
|
||||||
|
"GET /orgs/{org}/codespaces",
|
||||||
|
{},
|
||||||
|
{ renamedParameters: { org_id: "org" } }
|
||||||
|
],
|
||||||
|
listInRepositoryForAuthenticatedUser: [
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces"
|
||||||
|
],
|
||||||
|
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
||||||
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
||||||
|
listRepositoriesForSecretForAuthenticatedUser: [
|
||||||
|
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
||||||
|
listSelectedReposForOrgSecret: [
|
||||||
|
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
preFlightWithRepoForAuthenticatedUser: [
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/new"
|
||||||
|
],
|
||||||
|
publishForAuthenticatedUser: [
|
||||||
|
"POST /user/codespaces/{codespace_name}/publish"
|
||||||
|
],
|
||||||
|
removeRepositoryForSecretForAuthenticatedUser: [
|
||||||
|
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
removeSelectedRepoFromOrgSecret: [
|
||||||
|
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
repoMachinesForAuthenticatedUser: [
|
||||||
|
"GET /repos/{owner}/{repo}/codespaces/machines"
|
||||||
|
],
|
||||||
|
setRepositoriesForSecretForAuthenticatedUser: [
|
||||||
|
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
setSelectedReposForOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
||||||
|
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
||||||
|
stopInOrganization: [
|
||||||
|
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
||||||
|
],
|
||||||
|
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
||||||
|
},
|
||||||
|
copilot: {
|
||||||
|
addCopilotForBusinessSeatsForTeams: [
|
||||||
|
"POST /orgs/{org}/copilot/billing/selected_teams"
|
||||||
|
],
|
||||||
|
addCopilotForBusinessSeatsForUsers: [
|
||||||
|
"POST /orgs/{org}/copilot/billing/selected_users"
|
||||||
|
],
|
||||||
|
cancelCopilotSeatAssignmentForTeams: [
|
||||||
|
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
||||||
|
],
|
||||||
|
cancelCopilotSeatAssignmentForUsers: [
|
||||||
|
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
||||||
|
],
|
||||||
|
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
||||||
|
getCopilotSeatAssignmentDetailsForUser: [
|
||||||
|
"GET /orgs/{org}/members/{username}/copilot"
|
||||||
|
],
|
||||||
|
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"]
|
||||||
|
},
|
||||||
|
dependabot: {
|
||||||
|
addSelectedRepoToOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
createOrUpdateOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
createOrUpdateRepoSecret: [
|
||||||
|
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
||||||
|
deleteRepoSecret: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
||||||
|
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
||||||
|
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
||||||
|
getRepoPublicKey: [
|
||||||
|
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
||||||
|
],
|
||||||
|
getRepoSecret: [
|
||||||
|
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
||||||
|
],
|
||||||
|
listAlertsForEnterprise: [
|
||||||
|
"GET /enterprises/{enterprise}/dependabot/alerts"
|
||||||
|
],
|
||||||
|
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
||||||
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
||||||
|
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
||||||
|
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
||||||
|
listSelectedReposForOrgSecret: [
|
||||||
|
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
removeSelectedRepoFromOrgSecret: [
|
||||||
|
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
||||||
|
],
|
||||||
|
setSelectedReposForOrgSecret: [
|
||||||
|
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
||||||
|
],
|
||||||
|
updateAlert: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
dependencyGraph: {
|
||||||
|
createRepositorySnapshot: [
|
||||||
|
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
||||||
|
],
|
||||||
|
diffRange: [
|
||||||
|
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
||||||
|
],
|
||||||
|
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||||
|
},
|
||||||
|
emojis: { get: ["GET /emojis"] },
|
||||||
|
gists: {
|
||||||
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||||
|
create: ["POST /gists"],
|
||||||
|
createComment: ["POST /gists/{gist_id}/comments"],
|
||||||
|
delete: ["DELETE /gists/{gist_id}"],
|
||||||
|
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
||||||
|
fork: ["POST /gists/{gist_id}/forks"],
|
||||||
|
get: ["GET /gists/{gist_id}"],
|
||||||
|
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
||||||
|
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
||||||
|
list: ["GET /gists"],
|
||||||
|
listComments: ["GET /gists/{gist_id}/comments"],
|
||||||
|
listCommits: ["GET /gists/{gist_id}/commits"],
|
||||||
|
listForUser: ["GET /users/{username}/gists"],
|
||||||
|
listForks: ["GET /gists/{gist_id}/forks"],
|
||||||
|
listPublic: ["GET /gists/public"],
|
||||||
|
listStarred: ["GET /gists/starred"],
|
||||||
|
star: ["PUT /gists/{gist_id}/star"],
|
||||||
|
unstar: ["DELETE /gists/{gist_id}/star"],
|
||||||
|
update: ["PATCH /gists/{gist_id}"],
|
||||||
|
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
||||||
|
},
|
||||||
|
git: {
|
||||||
|
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
||||||
|
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
||||||
|
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
||||||
|
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
||||||
|
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
||||||
|
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
||||||
|
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
||||||
|
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
||||||
|
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
||||||
|
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
||||||
|
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
||||||
|
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
||||||
|
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
||||||
|
},
|
||||||
|
gitignore: {
|
||||||
|
getAllTemplates: ["GET /gitignore/templates"],
|
||||||
|
getTemplate: ["GET /gitignore/templates/{name}"]
|
||||||
|
},
|
||||||
|
interactions: {
|
||||||
|
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
||||||
|
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
||||||
|
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
||||||
|
getRestrictionsForYourPublicRepos: [
|
||||||
|
"GET /user/interaction-limits",
|
||||||
|
{},
|
||||||
|
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
||||||
|
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
||||||
|
removeRestrictionsForRepo: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
||||||
|
],
|
||||||
|
removeRestrictionsForYourPublicRepos: [
|
||||||
|
"DELETE /user/interaction-limits",
|
||||||
|
{},
|
||||||
|
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
||||||
|
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
||||||
|
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
||||||
|
setRestrictionsForYourPublicRepos: [
|
||||||
|
"PUT /user/interaction-limits",
|
||||||
|
{},
|
||||||
|
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
issues: {
|
||||||
|
addAssignees: [
|
||||||
|
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
||||||
|
],
|
||||||
|
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
||||||
|
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
||||||
|
checkUserCanBeAssignedToIssue: [
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
||||||
|
],
|
||||||
|
create: ["POST /repos/{owner}/{repo}/issues"],
|
||||||
|
createComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
||||||
|
],
|
||||||
|
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
||||||
|
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
||||||
|
deleteComment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
||||||
|
],
|
||||||
|
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
||||||
|
deleteMilestone: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
||||||
|
],
|
||||||
|
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
||||||
|
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
||||||
|
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
||||||
|
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
||||||
|
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
||||||
|
list: ["GET /issues"],
|
||||||
|
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
||||||
|
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
||||||
|
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
||||||
|
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
||||||
|
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
||||||
|
listEventsForTimeline: [
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
||||||
|
],
|
||||||
|
listForAuthenticatedUser: ["GET /user/issues"],
|
||||||
|
listForOrg: ["GET /orgs/{org}/issues"],
|
||||||
|
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
||||||
|
listLabelsForMilestone: [
|
||||||
|
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
||||||
|
],
|
||||||
|
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
||||||
|
listLabelsOnIssue: [
|
||||||
|
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
||||||
|
],
|
||||||
|
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
||||||
|
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
||||||
|
removeAllLabels: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
||||||
|
],
|
||||||
|
removeAssignees: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
||||||
|
],
|
||||||
|
removeLabel: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
||||||
|
],
|
||||||
|
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
||||||
|
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
||||||
|
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
||||||
|
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
||||||
|
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
||||||
|
updateMilestone: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
licenses: {
|
||||||
|
get: ["GET /licenses/{license}"],
|
||||||
|
getAllCommonlyUsed: ["GET /licenses"],
|
||||||
|
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
||||||
|
},
|
||||||
|
markdown: {
|
||||||
|
render: ["POST /markdown"],
|
||||||
|
renderRaw: [
|
||||||
|
"POST /markdown/raw",
|
||||||
|
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
meta: {
|
||||||
|
get: ["GET /meta"],
|
||||||
|
getAllVersions: ["GET /versions"],
|
||||||
|
getOctocat: ["GET /octocat"],
|
||||||
|
getZen: ["GET /zen"],
|
||||||
|
root: ["GET /"]
|
||||||
|
},
|
||||||
|
migrations: {
|
||||||
|
cancelImport: ["DELETE /repos/{owner}/{repo}/import"],
|
||||||
|
deleteArchiveForAuthenticatedUser: [
|
||||||
|
"DELETE /user/migrations/{migration_id}/archive"
|
||||||
|
],
|
||||||
|
deleteArchiveForOrg: [
|
||||||
|
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
||||||
|
],
|
||||||
|
downloadArchiveForOrg: [
|
||||||
|
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
||||||
|
],
|
||||||
|
getArchiveForAuthenticatedUser: [
|
||||||
|
"GET /user/migrations/{migration_id}/archive"
|
||||||
|
],
|
||||||
|
getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"],
|
||||||
|
getImportStatus: ["GET /repos/{owner}/{repo}/import"],
|
||||||
|
getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"],
|
||||||
|
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
||||||
|
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
||||||
|
listForAuthenticatedUser: ["GET /user/migrations"],
|
||||||
|
listForOrg: ["GET /orgs/{org}/migrations"],
|
||||||
|
listReposForAuthenticatedUser: [
|
||||||
|
"GET /user/migrations/{migration_id}/repositories"
|
||||||
|
],
|
||||||
|
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
||||||
|
listReposForUser: [
|
||||||
|
"GET /user/migrations/{migration_id}/repositories",
|
||||||
|
{},
|
||||||
|
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"],
|
||||||
|
setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"],
|
||||||
|
startForAuthenticatedUser: ["POST /user/migrations"],
|
||||||
|
startForOrg: ["POST /orgs/{org}/migrations"],
|
||||||
|
startImport: ["PUT /repos/{owner}/{repo}/import"],
|
||||||
|
unlockRepoForAuthenticatedUser: [
|
||||||
|
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
||||||
|
],
|
||||||
|
unlockRepoForOrg: [
|
||||||
|
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
||||||
|
],
|
||||||
|
updateImport: ["PATCH /repos/{owner}/{repo}/import"]
|
||||||
|
},
|
||||||
|
orgs: {
|
||||||
|
addSecurityManagerTeam: [
|
||||||
|
"PUT /orgs/{org}/security-managers/teams/{team_slug}"
|
||||||
|
],
|
||||||
|
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
||||||
|
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
||||||
|
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
||||||
|
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
||||||
|
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
||||||
|
convertMemberToOutsideCollaborator: [
|
||||||
|
"PUT /orgs/{org}/outside_collaborators/{username}"
|
||||||
|
],
|
||||||
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||||
|
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||||
|
delete: ["DELETE /orgs/{org}"],
|
||||||
|
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||||
|
enableOrDisableSecurityProductOnAllOrgRepos: [
|
||||||
|
"POST /orgs/{org}/{security_product}/{enablement}"
|
||||||
|
],
|
||||||
|
get: ["GET /orgs/{org}"],
|
||||||
|
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||||
|
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||||
|
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
||||||
|
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
||||||
|
getWebhookDelivery: [
|
||||||
|
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
||||||
|
],
|
||||||
|
list: ["GET /organizations"],
|
||||||
|
listAppInstallations: ["GET /orgs/{org}/installations"],
|
||||||
|
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||||
|
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||||
|
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||||
|
listForUser: ["GET /users/{username}/orgs"],
|
||||||
|
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
||||||
|
listMembers: ["GET /orgs/{org}/members"],
|
||||||
|
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
||||||
|
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
||||||
|
listPatGrantRepositories: [
|
||||||
|
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
||||||
|
],
|
||||||
|
listPatGrantRequestRepositories: [
|
||||||
|
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
||||||
|
],
|
||||||
|
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
||||||
|
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
||||||
|
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
||||||
|
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
||||||
|
listSecurityManagerTeams: ["GET /orgs/{org}/security-managers"],
|
||||||
|
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
||||||
|
listWebhooks: ["GET /orgs/{org}/hooks"],
|
||||||
|
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
||||||
|
redeliverWebhookDelivery: [
|
||||||
|
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||||
|
],
|
||||||
|
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||||
|
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||||
|
removeOutsideCollaborator: [
|
||||||
|
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
||||||
|
],
|
||||||
|
removePublicMembershipForAuthenticatedUser: [
|
||||||
|
"DELETE /orgs/{org}/public_members/{username}"
|
||||||
|
],
|
||||||
|
removeSecurityManagerTeam: [
|
||||||
|
"DELETE /orgs/{org}/security-managers/teams/{team_slug}"
|
||||||
|
],
|
||||||
|
reviewPatGrantRequest: [
|
||||||
|
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
||||||
|
],
|
||||||
|
reviewPatGrantRequestsInBulk: [
|
||||||
|
"POST /orgs/{org}/personal-access-token-requests"
|
||||||
|
],
|
||||||
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||||
|
setPublicMembershipForAuthenticatedUser: [
|
||||||
|
"PUT /orgs/{org}/public_members/{username}"
|
||||||
|
],
|
||||||
|
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
||||||
|
update: ["PATCH /orgs/{org}"],
|
||||||
|
updateMembershipForAuthenticatedUser: [
|
||||||
|
"PATCH /user/memberships/orgs/{org}"
|
||||||
|
],
|
||||||
|
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
||||||
|
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
||||||
|
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
||||||
|
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
||||||
|
},
|
||||||
|
packages: {
|
||||||
|
deletePackageForAuthenticatedUser: [
|
||||||
|
"DELETE /user/packages/{package_type}/{package_name}"
|
||||||
|
],
|
||||||
|
deletePackageForOrg: [
|
||||||
|
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
||||||
|
],
|
||||||
|
deletePackageForUser: [
|
||||||
|
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
||||||
|
],
|
||||||
|
deletePackageVersionForAuthenticatedUser: [
|
||||||
|
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||||
|
],
|
||||||
|
deletePackageVersionForOrg: [
|
||||||
|
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||||
|
],
|
||||||
|
deletePackageVersionForUser: [
|
||||||
|
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||||
|
],
|
||||||
|
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
||||||
|
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
||||||
|
{},
|
||||||
|
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
||||||
|
],
|
||||||
|
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
||||||
|
"GET /user/packages/{package_type}/{package_name}/versions",
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
renamed: [
|
||||||
|
"packages",
|
||||||
|
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
||||||
|
"GET /user/packages/{package_type}/{package_name}/versions"
|
||||||
|
],
|
||||||
|
getAllPackageVersionsForPackageOwnedByOrg: [
|
||||||
|
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
||||||
|
],
|
||||||
|
getAllPackageVersionsForPackageOwnedByUser: [
|
||||||
|
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
||||||
|
],
|
||||||
|
getPackageForAuthenticatedUser: [
|
||||||
|
"GET /user/packages/{package_type}/{package_name}"
|
||||||
|
],
|
||||||
|
getPackageForOrganization: [
|
||||||
|
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
||||||
|
],
|
||||||
|
getPackageForUser: [
|
||||||
|
"GET /users/{username}/packages/{package_type}/{package_name}"
|
||||||
|
],
|
||||||
|
getPackageVersionForAuthenticatedUser: [
|
||||||
|
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||||
|
],
|
||||||
|
getPackageVersionForOrganization: [
|
||||||
|
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||||
|
],
|
||||||
|
getPackageVersionForUser: [
|
||||||
|
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
||||||
|
],
|
||||||
|
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
||||||
|
"GET /user/docker/conflicts"
|
||||||
|
],
|
||||||
|
listDockerMigrationConflictingPackagesForOrganization: [
|
||||||
|
"GET /orgs/{org}/docker/conflicts"
|
||||||
|
],
|
||||||
|
listDockerMigrationConflictingPackagesForUser: [
|
||||||
|
"GET /users/{username}/docker/conflicts"
|
||||||
|
],
|
||||||
|
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
||||||
|
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
||||||
|
listPackagesForUser: ["GET /users/{username}/packages"],
|
||||||
|
restorePackageForAuthenticatedUser: [
|
||||||
|
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
||||||
|
],
|
||||||
|
restorePackageForOrg: [
|
||||||
|
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
||||||
|
],
|
||||||
|
restorePackageForUser: [
|
||||||
|
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
||||||
|
],
|
||||||
|
restorePackageVersionForAuthenticatedUser: [
|
||||||
|
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||||
|
],
|
||||||
|
restorePackageVersionForOrg: [
|
||||||
|
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||||
|
],
|
||||||
|
restorePackageVersionForUser: [
|
||||||
|
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
projects: {
|
||||||
|
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
||||||
|
createCard: ["POST /projects/columns/{column_id}/cards"],
|
||||||
|
createColumn: ["POST /projects/{project_id}/columns"],
|
||||||
|
createForAuthenticatedUser: ["POST /user/projects"],
|
||||||
|
createForOrg: ["POST /orgs/{org}/projects"],
|
||||||
|
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
||||||
|
delete: ["DELETE /projects/{project_id}"],
|
||||||
|
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
||||||
|
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
||||||
|
get: ["GET /projects/{project_id}"],
|
||||||
|
getCard: ["GET /projects/columns/cards/{card_id}"],
|
||||||
|
getColumn: ["GET /projects/columns/{column_id}"],
|
||||||
|
getPermissionForUser: [
|
||||||
|
"GET /projects/{project_id}/collaborators/{username}/permission"
|
||||||
|
],
|
||||||
|
listCards: ["GET /projects/columns/{column_id}/cards"],
|
||||||
|
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
||||||
|
listColumns: ["GET /projects/{project_id}/columns"],
|
||||||
|
listForOrg: ["GET /orgs/{org}/projects"],
|
||||||
|
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
||||||
|
listForUser: ["GET /users/{username}/projects"],
|
||||||
|
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
||||||
|
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
||||||
|
removeCollaborator: [
|
||||||
|
"DELETE /projects/{project_id}/collaborators/{username}"
|
||||||
|
],
|
||||||
|
update: ["PATCH /projects/{project_id}"],
|
||||||
|
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
||||||
|
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
||||||
|
},
|
||||||
|
pulls: {
|
||||||
|
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||||
|
create: ["POST /repos/{owner}/{repo}/pulls"],
|
||||||
|
createReplyForReviewComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
||||||
|
],
|
||||||
|
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
||||||
|
createReviewComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
||||||
|
],
|
||||||
|
deletePendingReview: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||||
|
],
|
||||||
|
deleteReviewComment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
||||||
|
],
|
||||||
|
dismissReview: [
|
||||||
|
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
||||||
|
],
|
||||||
|
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
||||||
|
getReview: [
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||||
|
],
|
||||||
|
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
||||||
|
list: ["GET /repos/{owner}/{repo}/pulls"],
|
||||||
|
listCommentsForReview: [
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
||||||
|
],
|
||||||
|
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
||||||
|
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
||||||
|
listRequestedReviewers: [
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||||
|
],
|
||||||
|
listReviewComments: [
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
||||||
|
],
|
||||||
|
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
||||||
|
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
||||||
|
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
||||||
|
removeRequestedReviewers: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||||
|
],
|
||||||
|
requestReviewers: [
|
||||||
|
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
||||||
|
],
|
||||||
|
submitReview: [
|
||||||
|
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
||||||
|
],
|
||||||
|
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
||||||
|
updateBranch: [
|
||||||
|
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
||||||
|
],
|
||||||
|
updateReview: [
|
||||||
|
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
||||||
|
],
|
||||||
|
updateReviewComment: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
rateLimit: { get: ["GET /rate_limit"] },
|
||||||
|
reactions: {
|
||||||
|
createForCommitComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
||||||
|
],
|
||||||
|
createForIssue: [
|
||||||
|
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
||||||
|
],
|
||||||
|
createForIssueComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
||||||
|
],
|
||||||
|
createForPullRequestReviewComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
||||||
|
],
|
||||||
|
createForRelease: [
|
||||||
|
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
||||||
|
],
|
||||||
|
createForTeamDiscussionCommentInOrg: [
|
||||||
|
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
||||||
|
],
|
||||||
|
createForTeamDiscussionInOrg: [
|
||||||
|
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
||||||
|
],
|
||||||
|
deleteForCommitComment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
deleteForIssue: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
deleteForIssueComment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
deleteForPullRequestComment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
deleteForRelease: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
deleteForTeamDiscussion: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
deleteForTeamDiscussionComment: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
||||||
|
],
|
||||||
|
listForCommitComment: [
|
||||||
|
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
||||||
|
],
|
||||||
|
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
||||||
|
listForIssueComment: [
|
||||||
|
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
||||||
|
],
|
||||||
|
listForPullRequestReviewComment: [
|
||||||
|
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
||||||
|
],
|
||||||
|
listForRelease: [
|
||||||
|
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
||||||
|
],
|
||||||
|
listForTeamDiscussionCommentInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
||||||
|
],
|
||||||
|
listForTeamDiscussionInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
repos: {
|
||||||
|
acceptInvitation: [
|
||||||
|
"PATCH /user/repository_invitations/{invitation_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
acceptInvitationForAuthenticatedUser: [
|
||||||
|
"PATCH /user/repository_invitations/{invitation_id}"
|
||||||
|
],
|
||||||
|
addAppAccessRestrictions: [
|
||||||
|
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||||
|
{},
|
||||||
|
{ mapToData: "apps" }
|
||||||
|
],
|
||||||
|
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
||||||
|
addStatusCheckContexts: [
|
||||||
|
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||||
|
{},
|
||||||
|
{ mapToData: "contexts" }
|
||||||
|
],
|
||||||
|
addTeamAccessRestrictions: [
|
||||||
|
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||||
|
{},
|
||||||
|
{ mapToData: "teams" }
|
||||||
|
],
|
||||||
|
addUserAccessRestrictions: [
|
||||||
|
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||||
|
{},
|
||||||
|
{ mapToData: "users" }
|
||||||
|
],
|
||||||
|
checkAutomatedSecurityFixes: [
|
||||||
|
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
|
],
|
||||||
|
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||||
|
checkVulnerabilityAlerts: [
|
||||||
|
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
||||||
|
],
|
||||||
|
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
||||||
|
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
||||||
|
compareCommitsWithBasehead: [
|
||||||
|
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
||||||
|
],
|
||||||
|
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
||||||
|
createCommitComment: [
|
||||||
|
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
||||||
|
],
|
||||||
|
createCommitSignatureProtection: [
|
||||||
|
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||||
|
],
|
||||||
|
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
||||||
|
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
||||||
|
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
||||||
|
createDeploymentBranchPolicy: [
|
||||||
|
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
||||||
|
],
|
||||||
|
createDeploymentProtectionRule: [
|
||||||
|
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
||||||
|
],
|
||||||
|
createDeploymentStatus: [
|
||||||
|
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
||||||
|
],
|
||||||
|
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
||||||
|
createForAuthenticatedUser: ["POST /user/repos"],
|
||||||
|
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||||
|
createInOrg: ["POST /orgs/{org}/repos"],
|
||||||
|
createOrUpdateEnvironment: [
|
||||||
|
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||||
|
],
|
||||||
|
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
||||||
|
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
||||||
|
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployment"],
|
||||||
|
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
||||||
|
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
||||||
|
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
||||||
|
createTagProtection: ["POST /repos/{owner}/{repo}/tags/protection"],
|
||||||
|
createUsingTemplate: [
|
||||||
|
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||||
|
],
|
||||||
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||||
|
declineInvitation: [
|
||||||
|
"DELETE /user/repository_invitations/{invitation_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
declineInvitationForAuthenticatedUser: [
|
||||||
|
"DELETE /user/repository_invitations/{invitation_id}"
|
||||||
|
],
|
||||||
|
delete: ["DELETE /repos/{owner}/{repo}"],
|
||||||
|
deleteAccessRestrictions: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
||||||
|
],
|
||||||
|
deleteAdminBranchProtection: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||||
|
],
|
||||||
|
deleteAnEnvironment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
||||||
|
],
|
||||||
|
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
||||||
|
deleteBranchProtection: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||||
|
],
|
||||||
|
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||||
|
deleteCommitSignatureProtection: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||||
|
],
|
||||||
|
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
||||||
|
deleteDeployment: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
||||||
|
],
|
||||||
|
deleteDeploymentBranchPolicy: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||||
|
],
|
||||||
|
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
||||||
|
deleteInvitation: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
||||||
|
],
|
||||||
|
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
||||||
|
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
||||||
|
deletePullRequestReviewProtection: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||||
|
],
|
||||||
|
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
||||||
|
deleteReleaseAsset: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
||||||
|
],
|
||||||
|
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||||
|
deleteTagProtection: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"
|
||||||
|
],
|
||||||
|
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||||
|
disableAutomatedSecurityFixes: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
|
],
|
||||||
|
disableDeploymentProtectionRule: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||||
|
],
|
||||||
|
disablePrivateVulnerabilityReporting: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
|
],
|
||||||
|
disableVulnerabilityAlerts: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
||||||
|
],
|
||||||
|
downloadArchive: [
|
||||||
|
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["repos", "downloadZipballArchive"] }
|
||||||
|
],
|
||||||
|
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
||||||
|
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
||||||
|
enableAutomatedSecurityFixes: [
|
||||||
|
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
|
],
|
||||||
|
enablePrivateVulnerabilityReporting: [
|
||||||
|
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
|
],
|
||||||
|
enableVulnerabilityAlerts: [
|
||||||
|
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
||||||
|
],
|
||||||
|
generateReleaseNotes: [
|
||||||
|
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
||||||
|
],
|
||||||
|
get: ["GET /repos/{owner}/{repo}"],
|
||||||
|
getAccessRestrictions: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
||||||
|
],
|
||||||
|
getAdminBranchProtection: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||||
|
],
|
||||||
|
getAllDeploymentProtectionRules: [
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
||||||
|
],
|
||||||
|
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
||||||
|
getAllStatusCheckContexts: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
||||||
|
],
|
||||||
|
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
||||||
|
getAppsWithAccessToProtectedBranch: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
||||||
|
],
|
||||||
|
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
||||||
|
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
||||||
|
getBranchProtection: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||||
|
],
|
||||||
|
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
||||||
|
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
||||||
|
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
||||||
|
getCollaboratorPermissionLevel: [
|
||||||
|
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
||||||
|
],
|
||||||
|
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
||||||
|
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
||||||
|
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
||||||
|
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||||
|
getCommitSignatureProtection: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
||||||
|
],
|
||||||
|
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
||||||
|
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
||||||
|
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
||||||
|
getCustomDeploymentProtectionRule: [
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||||
|
],
|
||||||
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||||
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||||
|
getDeploymentBranchPolicy: [
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||||
|
],
|
||||||
|
getDeploymentStatus: [
|
||||||
|
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
||||||
|
],
|
||||||
|
getEnvironment: [
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
||||||
|
],
|
||||||
|
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
||||||
|
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
||||||
|
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
||||||
|
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
||||||
|
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
||||||
|
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
||||||
|
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
||||||
|
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
||||||
|
getPullRequestReviewProtection: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||||
|
],
|
||||||
|
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
||||||
|
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
||||||
|
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
||||||
|
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
||||||
|
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
||||||
|
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
||||||
|
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||||
|
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
||||||
|
getStatusChecksProtection: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||||
|
],
|
||||||
|
getTeamsWithAccessToProtectedBranch: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
||||||
|
],
|
||||||
|
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
||||||
|
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
||||||
|
getUsersWithAccessToProtectedBranch: [
|
||||||
|
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
||||||
|
],
|
||||||
|
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
||||||
|
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||||
|
getWebhookConfigForRepo: [
|
||||||
|
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
||||||
|
],
|
||||||
|
getWebhookDelivery: [
|
||||||
|
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
||||||
|
],
|
||||||
|
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
||||||
|
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
||||||
|
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
||||||
|
listBranchesForHeadCommit: [
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
||||||
|
],
|
||||||
|
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
||||||
|
listCommentsForCommit: [
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
||||||
|
],
|
||||||
|
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
||||||
|
listCommitStatusesForRef: [
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
||||||
|
],
|
||||||
|
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
||||||
|
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
||||||
|
listCustomDeploymentRuleIntegrations: [
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
||||||
|
],
|
||||||
|
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
||||||
|
listDeploymentBranchPolicies: [
|
||||||
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
||||||
|
],
|
||||||
|
listDeploymentStatuses: [
|
||||||
|
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
||||||
|
],
|
||||||
|
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
||||||
|
listForAuthenticatedUser: ["GET /user/repos"],
|
||||||
|
listForOrg: ["GET /orgs/{org}/repos"],
|
||||||
|
listForUser: ["GET /users/{username}/repos"],
|
||||||
|
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
||||||
|
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
||||||
|
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
||||||
|
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
||||||
|
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
||||||
|
listPublic: ["GET /repositories"],
|
||||||
|
listPullRequestsAssociatedWithCommit: [
|
||||||
|
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
||||||
|
],
|
||||||
|
listReleaseAssets: [
|
||||||
|
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
||||||
|
],
|
||||||
|
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
||||||
|
listTagProtection: ["GET /repos/{owner}/{repo}/tags/protection"],
|
||||||
|
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
||||||
|
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
||||||
|
listWebhookDeliveries: [
|
||||||
|
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
||||||
|
],
|
||||||
|
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
||||||
|
merge: ["POST /repos/{owner}/{repo}/merges"],
|
||||||
|
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
||||||
|
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
||||||
|
redeliverWebhookDelivery: [
|
||||||
|
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||||
|
],
|
||||||
|
removeAppAccessRestrictions: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||||
|
{},
|
||||||
|
{ mapToData: "apps" }
|
||||||
|
],
|
||||||
|
removeCollaborator: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
||||||
|
],
|
||||||
|
removeStatusCheckContexts: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||||
|
{},
|
||||||
|
{ mapToData: "contexts" }
|
||||||
|
],
|
||||||
|
removeStatusCheckProtection: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||||
|
],
|
||||||
|
removeTeamAccessRestrictions: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||||
|
{},
|
||||||
|
{ mapToData: "teams" }
|
||||||
|
],
|
||||||
|
removeUserAccessRestrictions: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||||
|
{},
|
||||||
|
{ mapToData: "users" }
|
||||||
|
],
|
||||||
|
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
||||||
|
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
||||||
|
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
||||||
|
setAdminBranchProtection: [
|
||||||
|
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
||||||
|
],
|
||||||
|
setAppAccessRestrictions: [
|
||||||
|
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
||||||
|
{},
|
||||||
|
{ mapToData: "apps" }
|
||||||
|
],
|
||||||
|
setStatusCheckContexts: [
|
||||||
|
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
||||||
|
{},
|
||||||
|
{ mapToData: "contexts" }
|
||||||
|
],
|
||||||
|
setTeamAccessRestrictions: [
|
||||||
|
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
||||||
|
{},
|
||||||
|
{ mapToData: "teams" }
|
||||||
|
],
|
||||||
|
setUserAccessRestrictions: [
|
||||||
|
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
||||||
|
{},
|
||||||
|
{ mapToData: "users" }
|
||||||
|
],
|
||||||
|
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
||||||
|
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
||||||
|
update: ["PATCH /repos/{owner}/{repo}"],
|
||||||
|
updateBranchProtection: [
|
||||||
|
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
||||||
|
],
|
||||||
|
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
||||||
|
updateDeploymentBranchPolicy: [
|
||||||
|
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
||||||
|
],
|
||||||
|
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
||||||
|
updateInvitation: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
||||||
|
],
|
||||||
|
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
||||||
|
updatePullRequestReviewProtection: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
||||||
|
],
|
||||||
|
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
||||||
|
updateReleaseAsset: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
||||||
|
],
|
||||||
|
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
||||||
|
updateStatusCheckPotection: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
||||||
|
{},
|
||||||
|
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
||||||
|
],
|
||||||
|
updateStatusCheckProtection: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
||||||
|
],
|
||||||
|
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
||||||
|
updateWebhookConfigForRepo: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
||||||
|
],
|
||||||
|
uploadReleaseAsset: [
|
||||||
|
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
||||||
|
{ baseUrl: "https://uploads.github.com" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
search: {
|
||||||
|
code: ["GET /search/code"],
|
||||||
|
commits: ["GET /search/commits"],
|
||||||
|
issuesAndPullRequests: ["GET /search/issues"],
|
||||||
|
labels: ["GET /search/labels"],
|
||||||
|
repos: ["GET /search/repositories"],
|
||||||
|
topics: ["GET /search/topics"],
|
||||||
|
users: ["GET /search/users"]
|
||||||
|
},
|
||||||
|
secretScanning: {
|
||||||
|
getAlert: [
|
||||||
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||||
|
],
|
||||||
|
listAlertsForEnterprise: [
|
||||||
|
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
||||||
|
],
|
||||||
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||||
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||||
|
listLocationsForAlert: [
|
||||||
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
||||||
|
],
|
||||||
|
updateAlert: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
securityAdvisories: {
|
||||||
|
createPrivateVulnerabilityReport: [
|
||||||
|
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
||||||
|
],
|
||||||
|
createRepositoryAdvisory: [
|
||||||
|
"POST /repos/{owner}/{repo}/security-advisories"
|
||||||
|
],
|
||||||
|
createRepositoryAdvisoryCveRequest: [
|
||||||
|
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
||||||
|
],
|
||||||
|
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
||||||
|
getRepositoryAdvisory: [
|
||||||
|
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
||||||
|
],
|
||||||
|
listGlobalAdvisories: ["GET /advisories"],
|
||||||
|
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
||||||
|
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
||||||
|
updateRepositoryAdvisory: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
teams: {
|
||||||
|
addOrUpdateMembershipForUserInOrg: [
|
||||||
|
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||||
|
],
|
||||||
|
addOrUpdateProjectPermissionsInOrg: [
|
||||||
|
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||||
|
],
|
||||||
|
addOrUpdateRepoPermissionsInOrg: [
|
||||||
|
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||||
|
],
|
||||||
|
checkPermissionsForProjectInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||||
|
],
|
||||||
|
checkPermissionsForRepoInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||||
|
],
|
||||||
|
create: ["POST /orgs/{org}/teams"],
|
||||||
|
createDiscussionCommentInOrg: [
|
||||||
|
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
||||||
|
],
|
||||||
|
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
||||||
|
deleteDiscussionCommentInOrg: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||||
|
],
|
||||||
|
deleteDiscussionInOrg: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||||
|
],
|
||||||
|
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
||||||
|
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
||||||
|
getDiscussionCommentInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||||
|
],
|
||||||
|
getDiscussionInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||||
|
],
|
||||||
|
getMembershipForUserInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||||
|
],
|
||||||
|
list: ["GET /orgs/{org}/teams"],
|
||||||
|
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
||||||
|
listDiscussionCommentsInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
||||||
|
],
|
||||||
|
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
||||||
|
listForAuthenticatedUser: ["GET /user/teams"],
|
||||||
|
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
||||||
|
listPendingInvitationsInOrg: [
|
||||||
|
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
||||||
|
],
|
||||||
|
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
||||||
|
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
||||||
|
removeMembershipForUserInOrg: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
||||||
|
],
|
||||||
|
removeProjectInOrg: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
||||||
|
],
|
||||||
|
removeRepoInOrg: [
|
||||||
|
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
||||||
|
],
|
||||||
|
updateDiscussionCommentInOrg: [
|
||||||
|
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
||||||
|
],
|
||||||
|
updateDiscussionInOrg: [
|
||||||
|
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
||||||
|
],
|
||||||
|
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
||||||
|
},
|
||||||
|
users: {
|
||||||
|
addEmailForAuthenticated: [
|
||||||
|
"POST /user/emails",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
||||||
|
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
||||||
|
block: ["PUT /user/blocks/{username}"],
|
||||||
|
checkBlocked: ["GET /user/blocks/{username}"],
|
||||||
|
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
||||||
|
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
||||||
|
createGpgKeyForAuthenticated: [
|
||||||
|
"POST /user/gpg_keys",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
||||||
|
createPublicSshKeyForAuthenticated: [
|
||||||
|
"POST /user/keys",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
||||||
|
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
||||||
|
deleteEmailForAuthenticated: [
|
||||||
|
"DELETE /user/emails",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
||||||
|
deleteGpgKeyForAuthenticated: [
|
||||||
|
"DELETE /user/gpg_keys/{gpg_key_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
||||||
|
deletePublicSshKeyForAuthenticated: [
|
||||||
|
"DELETE /user/keys/{key_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
||||||
|
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
||||||
|
deleteSshSigningKeyForAuthenticatedUser: [
|
||||||
|
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
||||||
|
],
|
||||||
|
follow: ["PUT /user/following/{username}"],
|
||||||
|
getAuthenticated: ["GET /user"],
|
||||||
|
getByUsername: ["GET /users/{username}"],
|
||||||
|
getContextForUser: ["GET /users/{username}/hovercard"],
|
||||||
|
getGpgKeyForAuthenticated: [
|
||||||
|
"GET /user/gpg_keys/{gpg_key_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
||||||
|
getPublicSshKeyForAuthenticated: [
|
||||||
|
"GET /user/keys/{key_id}",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
||||||
|
getSshSigningKeyForAuthenticatedUser: [
|
||||||
|
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
||||||
|
],
|
||||||
|
list: ["GET /users"],
|
||||||
|
listBlockedByAuthenticated: [
|
||||||
|
"GET /user/blocks",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
||||||
|
listEmailsForAuthenticated: [
|
||||||
|
"GET /user/emails",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
||||||
|
listFollowedByAuthenticated: [
|
||||||
|
"GET /user/following",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
||||||
|
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
||||||
|
listFollowersForUser: ["GET /users/{username}/followers"],
|
||||||
|
listFollowingForUser: ["GET /users/{username}/following"],
|
||||||
|
listGpgKeysForAuthenticated: [
|
||||||
|
"GET /user/gpg_keys",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
||||||
|
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
||||||
|
listPublicEmailsForAuthenticated: [
|
||||||
|
"GET /user/public_emails",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
||||||
|
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
||||||
|
listPublicSshKeysForAuthenticated: [
|
||||||
|
"GET /user/keys",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
||||||
|
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
||||||
|
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
||||||
|
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
||||||
|
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
||||||
|
setPrimaryEmailVisibilityForAuthenticated: [
|
||||||
|
"PATCH /user/email/visibility",
|
||||||
|
{},
|
||||||
|
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
||||||
|
],
|
||||||
|
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
||||||
|
"PATCH /user/email/visibility"
|
||||||
|
],
|
||||||
|
unblock: ["DELETE /user/blocks/{username}"],
|
||||||
|
unfollow: ["DELETE /user/following/{username}"],
|
||||||
|
updateAuthenticated: ["PATCH /user"]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var endpoints_default = Endpoints;
|
||||||
|
|
||||||
|
// pkg/dist-src/endpoints-to-methods.js
|
||||||
|
var endpointMethodsMap = /* @__PURE__ */ new Map();
|
||||||
|
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
||||||
|
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
||||||
|
const [route, defaults, decorations] = endpoint;
|
||||||
|
const [method, url] = route.split(/ /);
|
||||||
|
const endpointDefaults = Object.assign(
|
||||||
|
{
|
||||||
|
method,
|
||||||
|
url
|
||||||
|
},
|
||||||
|
defaults
|
||||||
|
);
|
||||||
|
if (!endpointMethodsMap.has(scope)) {
|
||||||
|
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
||||||
|
}
|
||||||
|
endpointMethodsMap.get(scope).set(methodName, {
|
||||||
|
scope,
|
||||||
|
methodName,
|
||||||
|
endpointDefaults,
|
||||||
|
decorations
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var handler = {
|
||||||
|
get({ octokit, scope, cache }, methodName) {
|
||||||
|
if (cache[methodName]) {
|
||||||
|
return cache[methodName];
|
||||||
|
}
|
||||||
|
const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName);
|
||||||
|
if (decorations) {
|
||||||
|
cache[methodName] = decorate(
|
||||||
|
octokit,
|
||||||
|
scope,
|
||||||
|
methodName,
|
||||||
|
endpointDefaults,
|
||||||
|
decorations
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
cache[methodName] = octokit.request.defaults(endpointDefaults);
|
||||||
|
}
|
||||||
|
return cache[methodName];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function endpointsToMethods(octokit) {
|
||||||
|
const newMethods = {};
|
||||||
|
for (const scope of endpointMethodsMap.keys()) {
|
||||||
|
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
||||||
|
}
|
||||||
|
return newMethods;
|
||||||
|
}
|
||||||
|
function decorate(octokit, scope, methodName, defaults, decorations) {
|
||||||
|
const requestWithDefaults = octokit.request.defaults(defaults);
|
||||||
|
function withDecorations(...args) {
|
||||||
|
let options = requestWithDefaults.endpoint.merge(...args);
|
||||||
|
if (decorations.mapToData) {
|
||||||
|
options = Object.assign({}, options, {
|
||||||
|
data: options[decorations.mapToData],
|
||||||
|
[decorations.mapToData]: void 0
|
||||||
|
});
|
||||||
|
return requestWithDefaults(options);
|
||||||
|
}
|
||||||
|
if (decorations.renamed) {
|
||||||
|
const [newScope, newMethodName] = decorations.renamed;
|
||||||
|
octokit.log.warn(
|
||||||
|
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (decorations.deprecated) {
|
||||||
|
octokit.log.warn(decorations.deprecated);
|
||||||
|
}
|
||||||
|
if (decorations.renamedParameters) {
|
||||||
|
const options2 = requestWithDefaults.endpoint.merge(...args);
|
||||||
|
for (const [name, alias] of Object.entries(
|
||||||
|
decorations.renamedParameters
|
||||||
|
)) {
|
||||||
|
if (name in options2) {
|
||||||
|
octokit.log.warn(
|
||||||
|
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
||||||
|
);
|
||||||
|
if (!(alias in options2)) {
|
||||||
|
options2[alias] = options2[name];
|
||||||
|
}
|
||||||
|
delete options2[name];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return requestWithDefaults(options2);
|
||||||
|
}
|
||||||
|
return requestWithDefaults(...args);
|
||||||
|
}
|
||||||
|
return Object.assign(withDecorations, requestWithDefaults);
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
function restEndpointMethods(octokit) {
|
||||||
|
const api = endpointsToMethods(octokit);
|
||||||
|
return {
|
||||||
|
rest: api
|
||||||
|
};
|
||||||
|
}
|
||||||
|
restEndpointMethods.VERSION = VERSION;
|
||||||
|
function legacyRestEndpointMethods(octokit) {
|
||||||
|
const api = endpointsToMethods(octokit);
|
||||||
|
return {
|
||||||
|
...api,
|
||||||
|
rest: api
|
||||||
|
};
|
||||||
|
}
|
||||||
|
legacyRestEndpointMethods.VERSION = VERSION;
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3708:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __create = Object.create;
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __getProtoOf = Object.getPrototypeOf;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||||
|
// If the importer is in node compatibility mode or this is not an ESM
|
||||||
|
// file that has been converted to a CommonJS file using a Babel-
|
||||||
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||||
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||||
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||||
|
mod
|
||||||
|
));
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
RequestError: () => RequestError
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
var import_deprecation = __nccwpck_require__(4150);
|
||||||
|
var import_once = __toESM(__nccwpck_require__(5560));
|
||||||
|
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
||||||
|
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
|
||||||
|
var RequestError = class extends Error {
|
||||||
|
constructor(message, statusCode, options) {
|
||||||
|
super(message);
|
||||||
|
if (Error.captureStackTrace) {
|
||||||
|
Error.captureStackTrace(this, this.constructor);
|
||||||
|
}
|
||||||
|
this.name = "HttpError";
|
||||||
|
this.status = statusCode;
|
||||||
|
let headers;
|
||||||
|
if ("headers" in options && typeof options.headers !== "undefined") {
|
||||||
|
headers = options.headers;
|
||||||
|
}
|
||||||
|
if ("response" in options) {
|
||||||
|
this.response = options.response;
|
||||||
|
headers = options.response.headers;
|
||||||
|
}
|
||||||
|
const requestCopy = Object.assign({}, options.request);
|
||||||
|
if (options.request.headers.authorization) {
|
||||||
|
requestCopy.headers = Object.assign({}, options.request.headers, {
|
||||||
|
authorization: options.request.headers.authorization.replace(
|
||||||
|
/ .*$/,
|
||||||
|
" [REDACTED]"
|
||||||
|
)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
||||||
|
this.request = requestCopy;
|
||||||
|
Object.defineProperty(this, "code", {
|
||||||
|
get() {
|
||||||
|
logOnceCode(
|
||||||
|
new import_deprecation.Deprecation(
|
||||||
|
"[@octokit/request-error] `error.code` is deprecated, use `error.status`."
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return statusCode;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Object.defineProperty(this, "headers", {
|
||||||
|
get() {
|
||||||
|
logOnceHeaders(
|
||||||
|
new import_deprecation.Deprecation(
|
||||||
|
"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
|
||||||
|
)
|
||||||
|
);
|
||||||
|
return headers || {};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8636:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var dist_src_exports = {};
|
||||||
|
__export(dist_src_exports, {
|
||||||
|
request: () => request
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(dist_src_exports);
|
||||||
|
var import_endpoint = __nccwpck_require__(4471);
|
||||||
|
var import_universal_user_agent = __nccwpck_require__(3843);
|
||||||
|
|
||||||
|
// pkg/dist-src/version.js
|
||||||
|
var VERSION = "8.4.0";
|
||||||
|
|
||||||
|
// pkg/dist-src/is-plain-object.js
|
||||||
|
function isPlainObject(value) {
|
||||||
|
if (typeof value !== "object" || value === null)
|
||||||
|
return false;
|
||||||
|
if (Object.prototype.toString.call(value) !== "[object Object]")
|
||||||
|
return false;
|
||||||
|
const proto = Object.getPrototypeOf(value);
|
||||||
|
if (proto === null)
|
||||||
|
return true;
|
||||||
|
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
||||||
|
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/fetch-wrapper.js
|
||||||
|
var import_request_error = __nccwpck_require__(3708);
|
||||||
|
|
||||||
|
// pkg/dist-src/get-buffer-response.js
|
||||||
|
function getBufferResponse(response) {
|
||||||
|
return response.arrayBuffer();
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/fetch-wrapper.js
|
||||||
|
function fetchWrapper(requestOptions) {
|
||||||
|
var _a, _b, _c, _d;
|
||||||
|
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
|
||||||
|
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
|
||||||
|
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
|
||||||
|
requestOptions.body = JSON.stringify(requestOptions.body);
|
||||||
|
}
|
||||||
|
let headers = {};
|
||||||
|
let status;
|
||||||
|
let url;
|
||||||
|
let { fetch } = globalThis;
|
||||||
|
if ((_b = requestOptions.request) == null ? void 0 : _b.fetch) {
|
||||||
|
fetch = requestOptions.request.fetch;
|
||||||
|
}
|
||||||
|
if (!fetch) {
|
||||||
|
throw new Error(
|
||||||
|
"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"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return fetch(requestOptions.url, {
|
||||||
|
method: requestOptions.method,
|
||||||
|
body: requestOptions.body,
|
||||||
|
redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
|
||||||
|
headers: requestOptions.headers,
|
||||||
|
signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
|
||||||
|
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
||||||
|
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
||||||
|
...requestOptions.body && { duplex: "half" }
|
||||||
|
}).then(async (response) => {
|
||||||
|
url = response.url;
|
||||||
|
status = response.status;
|
||||||
|
for (const keyAndValue of response.headers) {
|
||||||
|
headers[keyAndValue[0]] = keyAndValue[1];
|
||||||
|
}
|
||||||
|
if ("deprecation" in headers) {
|
||||||
|
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
|
||||||
|
const deprecationLink = matches && matches.pop();
|
||||||
|
log.warn(
|
||||||
|
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (status === 204 || status === 205) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (requestOptions.method === "HEAD") {
|
||||||
|
if (status < 400) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
throw new import_request_error.RequestError(response.statusText, status, {
|
||||||
|
response: {
|
||||||
|
url,
|
||||||
|
status,
|
||||||
|
headers,
|
||||||
|
data: void 0
|
||||||
|
},
|
||||||
|
request: requestOptions
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (status === 304) {
|
||||||
|
throw new import_request_error.RequestError("Not modified", status, {
|
||||||
|
response: {
|
||||||
|
url,
|
||||||
|
status,
|
||||||
|
headers,
|
||||||
|
data: await getResponseData(response)
|
||||||
|
},
|
||||||
|
request: requestOptions
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (status >= 400) {
|
||||||
|
const data = await getResponseData(response);
|
||||||
|
const error = new import_request_error.RequestError(toErrorMessage(data), status, {
|
||||||
|
response: {
|
||||||
|
url,
|
||||||
|
status,
|
||||||
|
headers,
|
||||||
|
data
|
||||||
|
},
|
||||||
|
request: requestOptions
|
||||||
|
});
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
return parseSuccessResponseBody ? await getResponseData(response) : response.body;
|
||||||
|
}).then((data) => {
|
||||||
|
return {
|
||||||
|
status,
|
||||||
|
url,
|
||||||
|
headers,
|
||||||
|
data
|
||||||
|
};
|
||||||
|
}).catch((error) => {
|
||||||
|
if (error instanceof import_request_error.RequestError)
|
||||||
|
throw error;
|
||||||
|
else if (error.name === "AbortError")
|
||||||
|
throw error;
|
||||||
|
let message = error.message;
|
||||||
|
if (error.name === "TypeError" && "cause" in error) {
|
||||||
|
if (error.cause instanceof Error) {
|
||||||
|
message = error.cause.message;
|
||||||
|
} else if (typeof error.cause === "string") {
|
||||||
|
message = error.cause;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new import_request_error.RequestError(message, 500, {
|
||||||
|
request: requestOptions
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
async function getResponseData(response) {
|
||||||
|
const contentType = response.headers.get("content-type");
|
||||||
|
if (/application\/json/.test(contentType)) {
|
||||||
|
return response.json().catch(() => response.text()).catch(() => "");
|
||||||
|
}
|
||||||
|
if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
|
||||||
|
return response.text();
|
||||||
|
}
|
||||||
|
return getBufferResponse(response);
|
||||||
|
}
|
||||||
|
function toErrorMessage(data) {
|
||||||
|
if (typeof data === "string")
|
||||||
|
return data;
|
||||||
|
let suffix;
|
||||||
|
if ("documentation_url" in data) {
|
||||||
|
suffix = ` - ${data.documentation_url}`;
|
||||||
|
} else {
|
||||||
|
suffix = "";
|
||||||
|
}
|
||||||
|
if ("message" in data) {
|
||||||
|
if (Array.isArray(data.errors)) {
|
||||||
|
return `${data.message}: ${data.errors.map(JSON.stringify).join(", ")}${suffix}`;
|
||||||
|
}
|
||||||
|
return `${data.message}${suffix}`;
|
||||||
|
}
|
||||||
|
return `Unknown error: ${JSON.stringify(data)}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/with-defaults.js
|
||||||
|
function withDefaults(oldEndpoint, newDefaults) {
|
||||||
|
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
||||||
|
const newApi = function(route, parameters) {
|
||||||
|
const endpointOptions = endpoint2.merge(route, parameters);
|
||||||
|
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
||||||
|
return fetchWrapper(endpoint2.parse(endpointOptions));
|
||||||
|
}
|
||||||
|
const request2 = (route2, parameters2) => {
|
||||||
|
return fetchWrapper(
|
||||||
|
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
||||||
|
);
|
||||||
|
};
|
||||||
|
Object.assign(request2, {
|
||||||
|
endpoint: endpoint2,
|
||||||
|
defaults: withDefaults.bind(null, endpoint2)
|
||||||
|
});
|
||||||
|
return endpointOptions.request.hook(request2, endpointOptions);
|
||||||
|
};
|
||||||
|
return Object.assign(newApi, {
|
||||||
|
endpoint: endpoint2,
|
||||||
|
defaults: withDefaults.bind(null, endpoint2)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/dist-src/index.js
|
||||||
|
var request = withDefaults(import_endpoint.endpoint, {
|
||||||
|
headers: {
|
||||||
|
"user-agent": `octokit-request.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (0);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 2732:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
var register = __nccwpck_require__(1063);
|
||||||
|
var addHook = __nccwpck_require__(2027);
|
||||||
|
var removeHook = __nccwpck_require__(9934);
|
||||||
|
|
||||||
|
// bind with array of arguments: https://stackoverflow.com/a/21792913
|
||||||
|
var bind = Function.bind;
|
||||||
|
var bindable = bind.bind(bind);
|
||||||
|
|
||||||
|
function bindApi(hook, state, name) {
|
||||||
|
var removeHookRef = bindable(removeHook, null).apply(
|
||||||
|
null,
|
||||||
|
name ? [state, name] : [state]
|
||||||
|
);
|
||||||
|
hook.api = { remove: removeHookRef };
|
||||||
|
hook.remove = removeHookRef;
|
||||||
|
["before", "error", "after", "wrap"].forEach(function (kind) {
|
||||||
|
var args = name ? [state, kind, name] : [state, kind];
|
||||||
|
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function HookSingular() {
|
||||||
|
var singularHookName = "h";
|
||||||
|
var singularHookState = {
|
||||||
|
registry: {},
|
||||||
|
};
|
||||||
|
var singularHook = register.bind(null, singularHookState, singularHookName);
|
||||||
|
bindApi(singularHook, singularHookState, singularHookName);
|
||||||
|
return singularHook;
|
||||||
|
}
|
||||||
|
|
||||||
|
function HookCollection() {
|
||||||
|
var state = {
|
||||||
|
registry: {},
|
||||||
|
};
|
||||||
|
|
||||||
|
var hook = register.bind(null, state);
|
||||||
|
bindApi(hook, state);
|
||||||
|
|
||||||
|
return hook;
|
||||||
|
}
|
||||||
|
|
||||||
|
var collectionHookDeprecationMessageDisplayed = false;
|
||||||
|
function Hook() {
|
||||||
|
if (!collectionHookDeprecationMessageDisplayed) {
|
||||||
|
console.warn(
|
||||||
|
'[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'
|
||||||
|
);
|
||||||
|
collectionHookDeprecationMessageDisplayed = true;
|
||||||
|
}
|
||||||
|
return HookCollection();
|
||||||
|
}
|
||||||
|
|
||||||
|
Hook.Singular = HookSingular.bind();
|
||||||
|
Hook.Collection = HookCollection.bind();
|
||||||
|
|
||||||
|
module.exports = Hook;
|
||||||
|
// expose constructors as a named property for TypeScript
|
||||||
|
module.exports.Hook = Hook;
|
||||||
|
module.exports.Singular = Hook.Singular;
|
||||||
|
module.exports.Collection = Hook.Collection;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 2027:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
module.exports = addHook;
|
||||||
|
|
||||||
|
function addHook(state, kind, name, hook) {
|
||||||
|
var orig = hook;
|
||||||
|
if (!state.registry[name]) {
|
||||||
|
state.registry[name] = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kind === "before") {
|
||||||
|
hook = function (method, options) {
|
||||||
|
return Promise.resolve()
|
||||||
|
.then(orig.bind(null, options))
|
||||||
|
.then(method.bind(null, options));
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kind === "after") {
|
||||||
|
hook = function (method, options) {
|
||||||
|
var result;
|
||||||
|
return Promise.resolve()
|
||||||
|
.then(method.bind(null, options))
|
||||||
|
.then(function (result_) {
|
||||||
|
result = result_;
|
||||||
|
return orig(result, options);
|
||||||
|
})
|
||||||
|
.then(function () {
|
||||||
|
return result;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kind === "error") {
|
||||||
|
hook = function (method, options) {
|
||||||
|
return Promise.resolve()
|
||||||
|
.then(method.bind(null, options))
|
||||||
|
.catch(function (error) {
|
||||||
|
return orig(error, options);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
state.registry[name].push({
|
||||||
|
hook: hook,
|
||||||
|
orig: orig,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1063:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
module.exports = register;
|
||||||
|
|
||||||
|
function register(state, name, method, options) {
|
||||||
|
if (typeof method !== "function") {
|
||||||
|
throw new Error("method for before hook must be a function");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!options) {
|
||||||
|
options = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(name)) {
|
||||||
|
return name.reverse().reduce(function (callback, name) {
|
||||||
|
return register.bind(null, state, name, callback, options);
|
||||||
|
}, method)();
|
||||||
|
}
|
||||||
|
|
||||||
|
return Promise.resolve().then(function () {
|
||||||
|
if (!state.registry[name]) {
|
||||||
|
return method(options);
|
||||||
|
}
|
||||||
|
|
||||||
|
return state.registry[name].reduce(function (method, registered) {
|
||||||
|
return registered.hook.bind(null, method, options);
|
||||||
|
}, method)();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9934:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
module.exports = removeHook;
|
||||||
|
|
||||||
|
function removeHook(state, name, method) {
|
||||||
|
if (!state.registry[name]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var index = state.registry[name]
|
||||||
|
.map(function (registered) {
|
||||||
|
return registered.orig;
|
||||||
|
})
|
||||||
|
.indexOf(method);
|
||||||
|
|
||||||
|
if (index === -1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
state.registry[name].splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4150:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
|
||||||
|
class Deprecation extends Error {
|
||||||
|
constructor(message) {
|
||||||
|
super(message); // Maintains proper stack trace (only available on V8)
|
||||||
|
|
||||||
|
/* istanbul ignore next */
|
||||||
|
|
||||||
|
if (Error.captureStackTrace) {
|
||||||
|
Error.captureStackTrace(this, this.constructor);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.name = 'Deprecation';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.Deprecation = Deprecation;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 5560:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
var wrappy = __nccwpck_require__(8264)
|
||||||
|
module.exports = wrappy(once)
|
||||||
|
module.exports.strict = wrappy(onceStrict)
|
||||||
|
|
||||||
|
once.proto = once(function () {
|
||||||
|
Object.defineProperty(Function.prototype, 'once', {
|
||||||
|
value: function () {
|
||||||
|
return once(this)
|
||||||
|
},
|
||||||
|
configurable: true
|
||||||
|
})
|
||||||
|
|
||||||
|
Object.defineProperty(Function.prototype, 'onceStrict', {
|
||||||
|
value: function () {
|
||||||
|
return onceStrict(this)
|
||||||
|
},
|
||||||
|
configurable: true
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
function once (fn) {
|
||||||
|
var f = function () {
|
||||||
|
if (f.called) return f.value
|
||||||
|
f.called = true
|
||||||
|
return f.value = fn.apply(this, arguments)
|
||||||
|
}
|
||||||
|
f.called = false
|
||||||
|
return f
|
||||||
|
}
|
||||||
|
|
||||||
|
function onceStrict (fn) {
|
||||||
|
var f = function () {
|
||||||
|
if (f.called)
|
||||||
|
throw new Error(f.onceError)
|
||||||
|
f.called = true
|
||||||
|
return f.value = fn.apply(this, arguments)
|
||||||
|
}
|
||||||
|
var name = fn.name || 'Function wrapped with `once`'
|
||||||
|
f.onceError = name + " shouldn't be called more than once"
|
||||||
|
f.called = false
|
||||||
|
return f
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 9318:
|
/***/ 9318:
|
||||||
@@ -14079,14 +18109,6 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(8253)
|
|||||||
const { File: UndiciFile } = __nccwpck_require__(3041)
|
const { File: UndiciFile } = __nccwpck_require__(3041)
|
||||||
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
|
const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(4322)
|
||||||
|
|
||||||
let random
|
|
||||||
try {
|
|
||||||
const crypto = __nccwpck_require__(7598)
|
|
||||||
random = (max) => crypto.randomInt(0, max)
|
|
||||||
} catch {
|
|
||||||
random = (max) => Math.floor(Math.random(max))
|
|
||||||
}
|
|
||||||
|
|
||||||
let ReadableStream = globalThis.ReadableStream
|
let ReadableStream = globalThis.ReadableStream
|
||||||
|
|
||||||
/** @type {globalThis['File']} */
|
/** @type {globalThis['File']} */
|
||||||
@@ -14172,7 +18194,7 @@ function extractBody (object, keepalive = false) {
|
|||||||
// Set source to a copy of the bytes held by object.
|
// Set source to a copy of the bytes held by object.
|
||||||
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength))
|
||||||
} else if (util.isFormDataLike(object)) {
|
} else if (util.isFormDataLike(object)) {
|
||||||
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}`
|
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}`
|
||||||
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
const prefix = `--${boundary}\r\nContent-Disposition: form-data`
|
||||||
|
|
||||||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||||
@@ -28185,6 +32207,156 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3843:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
|
||||||
|
function getUserAgent() {
|
||||||
|
if (typeof navigator === "object" && "userAgent" in navigator) {
|
||||||
|
return navigator.userAgent;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof process === "object" && process.version !== undefined) {
|
||||||
|
return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return "<environment undetectable>";
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.getUserAgent = getUserAgent;
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8682:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert array of 16 byte values to UUID string format of the form:
|
||||||
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||||
|
*/
|
||||||
|
var byteToHex = [];
|
||||||
|
for (var i = 0; i < 256; ++i) {
|
||||||
|
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function bytesToUuid(buf, offset) {
|
||||||
|
var i = offset || 0;
|
||||||
|
var bth = byteToHex;
|
||||||
|
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
||||||
|
return ([
|
||||||
|
bth[buf[i++]], bth[buf[i++]],
|
||||||
|
bth[buf[i++]], bth[buf[i++]], '-',
|
||||||
|
bth[buf[i++]], bth[buf[i++]], '-',
|
||||||
|
bth[buf[i++]], bth[buf[i++]], '-',
|
||||||
|
bth[buf[i++]], bth[buf[i++]], '-',
|
||||||
|
bth[buf[i++]], bth[buf[i++]],
|
||||||
|
bth[buf[i++]], bth[buf[i++]],
|
||||||
|
bth[buf[i++]], bth[buf[i++]]
|
||||||
|
]).join('');
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = bytesToUuid;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1694:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
// Unique ID creation requires a high quality random # generator. In node.js
|
||||||
|
// this is pretty straight-forward - we use the crypto API.
|
||||||
|
|
||||||
|
var crypto = __nccwpck_require__(6982);
|
||||||
|
|
||||||
|
module.exports = function nodeRNG() {
|
||||||
|
return crypto.randomBytes(16);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9021:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
var rng = __nccwpck_require__(1694);
|
||||||
|
var bytesToUuid = __nccwpck_require__(8682);
|
||||||
|
|
||||||
|
function v4(options, buf, offset) {
|
||||||
|
var i = buf && offset || 0;
|
||||||
|
|
||||||
|
if (typeof(options) == 'string') {
|
||||||
|
buf = options === 'binary' ? new Array(16) : null;
|
||||||
|
options = null;
|
||||||
|
}
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
var rnds = options.random || (options.rng || rng)();
|
||||||
|
|
||||||
|
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||||
|
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
||||||
|
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
||||||
|
|
||||||
|
// Copy bytes to buffer, if provided
|
||||||
|
if (buf) {
|
||||||
|
for (var ii = 0; ii < 16; ++ii) {
|
||||||
|
buf[i + ii] = rnds[ii];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return buf || bytesToUuid(rnds);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = v4;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8264:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
// Returns a wrapper function that returns a wrapped callback
|
||||||
|
// The wrapper function should do some stuff, and return a
|
||||||
|
// presumably different callback function.
|
||||||
|
// This makes sure that own properties are retained, so that
|
||||||
|
// decorations and such are not lost along the way.
|
||||||
|
module.exports = wrappy
|
||||||
|
function wrappy (fn, cb) {
|
||||||
|
if (fn && cb) return wrappy(fn)(cb)
|
||||||
|
|
||||||
|
if (typeof fn !== 'function')
|
||||||
|
throw new TypeError('need wrapper function')
|
||||||
|
|
||||||
|
Object.keys(fn).forEach(function (k) {
|
||||||
|
wrapper[k] = fn[k]
|
||||||
|
})
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
function wrapper() {
|
||||||
|
var args = new Array(arguments.length)
|
||||||
|
for (var i = 0; i < args.length; i++) {
|
||||||
|
args[i] = arguments[i]
|
||||||
|
}
|
||||||
|
var ret = fn.apply(this, args)
|
||||||
|
var cb = args[args.length-1]
|
||||||
|
if (typeof ret === 'function' && ret !== cb) {
|
||||||
|
Object.keys(cb).forEach(function (k) {
|
||||||
|
ret[k] = cb[k]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 2764:
|
/***/ 2764:
|
||||||
@@ -28196,231 +32368,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.KNOWN_CHECKSUMS = void 0;
|
exports.KNOWN_CHECKSUMS = void 0;
|
||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
exports.KNOWN_CHECKSUMS = {
|
exports.KNOWN_CHECKSUMS = {
|
||||||
"aarch64-apple-darwin-0.5.25": "3c29e941d691614bc4eba95629c8f8dee106e5d44d70a03efed66a544588caa1",
|
|
||||||
"aarch64-pc-windows-msvc-0.5.25": "e3c4d014dc8aa14a36fab9316d9f435a93900893d7164472452c39037112b829",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.25": "402342f9a5ff1544b41af368794ab436965a1a03109b43bd0dd552ce6af8256d",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.25": "6648d924f01ce01e4968e377c1f32a53592b55485a859f97421619d3a7dd7d86",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.25": "45ed53c20c5852d9dba97deeceaa1cb8fdccdaec69952c0940329e27b3830e83",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.25": "54bd4af03e93acdc7ac6546f62923a782fc871a20850356fa8870dd256a6c2e8",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.25": "f2adbe37fbe57540c39396d6d47878c86027eae91b442d609c2e97da2398dff5",
|
|
||||||
"i686-pc-windows-msvc-0.5.25": "7f55c0e6ab90218d2646c3915b111378fc0ffd61308893d495ddc8e49f16ed36",
|
|
||||||
"i686-unknown-linux-gnu-0.5.25": "8d71e66e4efcc1097e2beedd3572867eb7ea9b5cdac286c115a5118fcf5d2219",
|
|
||||||
"i686-unknown-linux-musl-0.5.25": "406630b6b20bcef76069e08c5eaaa5420e190ae0036f4a85e2a14f3d7c610be6",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.25": "202aa6bc9e541bc322ad743f6afe334ef31dcb5c568f24cd5c963fa535538f20",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.25": "7956759f6543ca7ed4e51ab7d68a2dca6d9e73d12a19afbe40d275f2384b8535",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.25": "b17eed40b701252cf6e02c64533bc741dfa6e05340da64cd9feef36afcfed897",
|
|
||||||
"x86_64-apple-darwin-0.5.25": "f76e3fb259ec74b2e003ed7e47d1f06a431686381665fc03e2f35e2ee72e6a57",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.25": "51ea202a472e552c04e6a13ac7eece0d56748750b9726e4b94f4f3dc96b5f77f",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.25": "fe04914881e2e01fe62001b223344a7c43af734faba447d4764fe92d3baf794e",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.25": "aeade1b8fa1fa3c021d30e8f1932fd2c24dca62217c7d6d9da740dde75b7e52f",
|
|
||||||
"aarch64-apple-darwin-0.5.24": "8016d47f4cce265b3d122ad8cbbf701713caf803fa7d3ef69d8a1fd6793d939a",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.24": "3cf910468c37c709580d83d19b7b55352cfe05d6e1cc038718698410b6b8c6f0",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.24": "aaae0b6fb17b3cafa9869292f4e03104b26fd0de4a36182a6edec44c1665f6a5",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.24": "a11698237ff36b72d119467805c8630d5bfdf6132fe98d01f7c44451c783d450",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.24": "e44001c955b7a2c3e53006a262bf74189f75bc2e6d63ac2e71638fb8eee20501",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.24": "8ca5c602c5a31a6c497abf10dd96694fb2bb9df362fdc604d156fa5044786379",
|
|
||||||
"i686-pc-windows-msvc-0.5.24": "d2550254b96753214f9098a03091fa398d948c971738d50ff36113a3b27e391e",
|
|
||||||
"i686-unknown-linux-gnu-0.5.24": "7b335c5736fa50aa3092f4212201ea7a65a15c6f40282a315861ec36bf64a41e",
|
|
||||||
"i686-unknown-linux-musl-0.5.24": "6b7a8df65d15ad782ca17d82f79b4d7a235e85bf50411e3f7549878909b2a0bb",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.24": "22c2fb1971cd4ea77d78fc2c7c5574f5e4646525473d08d1b16a4389cda560a8",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.24": "1e3cfaa0890d42f448bed7d6c7b66240abfe43130c6923b1d5fb7b0ebc302b94",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.24": "a3c8e92deb720dcbf7414d8d0bb91934016d0ace23c3dd452f49a1b92490e0bf",
|
|
||||||
"x86_64-apple-darwin-0.5.24": "dcee10ef84309cf0de4153cb7913b0b506eae0a2e6407faa0f1717f015c35f0c",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.24": "bd3fedeee0da543d7ac0a530328b3880bc83c1b332b3996f0da691f83423e813",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.24": "a0eb614f7fc38a6e14ef1c4819f1f187591db8e0d3c4218dae38b1bd663a00e2",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.24": "5a5a1231a3ecb4f01aab9c839a49764d9ea1ae8e5e467a0aa2a2754c94f9f81c",
|
|
||||||
"aarch64-apple-darwin-0.5.23": "bedfc709b281ab4c6ff1c84c0ad7e4525bf2669f56f009f6fb308657bebe165b",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.23": "0f864a958e88693b8102dd7bc0e543a6b6f56e514ba8798235e54fb95c4856a4",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.23": "bbfafc3623267d25f63713c934eb57bf521b8b14b94d18412c697d69dbd68251",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.23": "3031d44ae02a6189182956de345c0e22c40b6a8f19bbe67ed7016df228da5cd6",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.23": "48429f7f01e9bd6bfb80c2e97db878c05d7d1be1d10de432a33650c65c9d6172",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.23": "baa22c4e66f80eb1a900437b58966f529af70c89739b690096fa665d6324f540",
|
|
||||||
"i686-pc-windows-msvc-0.5.23": "c9d6f5806666921a31f0a3ac88f9848884c67cd7348b0c0dd420c92ae40371ff",
|
|
||||||
"i686-unknown-linux-gnu-0.5.23": "91bf1765b77010318d9666601d6ec41108f561a8be5d8a3a0b41c4fbd38c4bb1",
|
|
||||||
"i686-unknown-linux-musl-0.5.23": "79093074197e76be9c7699ad361cf6fccc95dd8cea2b10ac2875acc658be55b3",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.23": "acce824961d78934ec9735bd9dac2a8b7f16e9638c6d909671690c43283bd644",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.23": "678773a17cccfa5d8c8e7043e4ebbbaf48b3e1aa482dd334c36e06ba8ebe993e",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.23": "34700493c47fcf668ac175ab66c8fb6bdc058dfc56a3f868d34b6e5a586957dd",
|
|
||||||
"x86_64-apple-darwin-0.5.23": "40525eceff3a95051e0139839140ec3597a45221cca5000b8290d20d771294f5",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.23": "140be2cf57e37c7c86be4840d17b71fbc7daa21e2f46ed60830b4a39ef527663",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.23": "6c45b9a95328b5c250bab14a17af574f7fa284fac0830d6a827e5f6f0b0e6732",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.23": "d656e3c274b43e8d9253d79ce3bd20d6bf1bd3fdb13dfd13e5e07d7aa528906d",
|
|
||||||
"aarch64-apple-darwin-0.5.22": "95496f513653e7246589b2334a04e2a001f6436919af30d68180ce480fd3971a",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.22": "0ff503ff9d473d25d0460a375ff6ec3ed186ee6be2ffedc67642b3c7d77b6299",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.22": "43593ffde18d83f9453a69db70f5dbc61726beefc3bbdb80d1db61612eb26a41",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.22": "78829476fad51a9361aefbb8ee5ed7aa19b981a7d6384e6033115277b761fe94",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.22": "2c6b4876c6aa6e642466fb389cc106f5f9cb4ebb9e389bf2c9e883012d3d127b",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.22": "fc62722c44cd4ccae7e713452bc5d81907852da6d50f3123c4878e510fba52f7",
|
|
||||||
"i686-pc-windows-msvc-0.5.22": "4c4e029f05cd94b09cb3c3ac9d2dd4adeb2a1e54d13a09ba79c244d95d960ba7",
|
|
||||||
"i686-unknown-linux-gnu-0.5.22": "d17ee5a2ea99875781c21ba2acc3785d86ebf27cc76011fa59ae52f21d349a49",
|
|
||||||
"i686-unknown-linux-musl-0.5.22": "092387e1a32a40cee94165d96072e219b299b8d76a25a764659ccb178855c3d8",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.22": "bd8c2b70f461d6cc189abaaaa0d4e75f6b3044eddaef0f790920436f2d7cb772",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.22": "ecd4c18c0a889b7ceaca906340f89ef815b5a7e37fbfb318ec6131f23627b794",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.22": "5c092fb46def4c7a45094905990acfab34cf4ad3af60e6accddbfa81b1409c03",
|
|
||||||
"x86_64-apple-darwin-0.5.22": "5f636c75a976389ec0a4b03b4a7a78b5634daf1915703079cbc514a26c691e18",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.22": "bbe5dc1b2777f170d53d3d7856376eda9229a2c4f74332336e0ef0603325cbe5",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.22": "d15f8595f080817f55f207bf9a67cbce6423e5b1fbfeba58c7e67e86bcc7be41",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.22": "fba667f90b0b89b4171127ebe7b29961250ddbcd9f86116eb195c46afe0857c8",
|
|
||||||
"aarch64-apple-darwin-0.5.21": "74f501d91b4db0b767d5d621086d3e2e8acc3f5356cf5527de80e97bb312a626",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.21": "c4cc2ec78a294378b867ebd08c5842d3ce71074c2818dc7f641422fb3bf4b2d2",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.21": "26152b092f6ace9bec1fe91b39fe11f55428ce5fba87f5de0ec6b16e2c65928f",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.21": "2a90a8976a7efbe5eef613b84285f2f6b0cda7e9547a2e548bf6f253cc06dbb1",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.21": "71b0e840af1e50368d60bdb6a4bb22483b0462e7238e7e08fb624466c4b22c65",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.21": "46a3be0330ebfbeb4c521a523545334ef3bd38ac0b4acab19734c0d50399ac6f",
|
|
||||||
"i686-pc-windows-msvc-0.5.21": "a0583cd71a410ce8329cd0951a72966a1219c1a7c12c437c3072779ce7dfe893",
|
|
||||||
"i686-unknown-linux-gnu-0.5.21": "5d46307d7883f5ec5416c589b65bfedd17544accbe54eabd13d27417bcdf435e",
|
|
||||||
"i686-unknown-linux-musl-0.5.21": "27d220b8e8effd1dc566e6ae7f90e7a074af07f4e61a0406f2c8c9883ef82e33",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.21": "ca744fee2634dfe203683fa809e4b5998564ebf2b8e7f0c329c1229edbe1ea8a",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.21": "1c08d342b4644158eee7723a75f59b3f388ceb4a91106d284d343acfb906bb77",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.21": "892c78a989164f1e6e97a8e07d995bf1ab6c5374ee85d4b47c47c6706bb2e8fe",
|
|
||||||
"x86_64-apple-darwin-0.5.21": "66a0f5ea3aee2d497450138ae1e99f734eed7457af5e839a41ef219d51e90e17",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.21": "9968e8ef4b567d5690ccb9ac6e8338eb56cb964c57430a2843dd21f88ec5b81a",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.21": "e108c300eafae22ad8e6d94519605530f18f8762eb58d2b98a617edfb5d088fc",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.21": "71347d2fdda9e3e7105ecd3a8566e3b607da9fddf23ac83adafcf6451ea9139d",
|
|
||||||
"aarch64-apple-darwin-0.5.20": "d7f0c219808073f8ae8c6a991e85e5c7539b4e539b014a4ca5b3286911f06fd5",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.20": "3d2281312d047288ecb021f4c761cd351f993514e3ea7f369354701b3a44c756",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.20": "162b19dbe6d82fd7846dd6ff25a7a6250ce4ee5d0d55e2e245625382984072b0",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.20": "19a06cf913bfb3d8ecb0e1c0368f98b03e9ec5a35ea3edc03a4e0af04f4f95ad",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.20": "769c07de286d607d0e13e9e83051a5ac0cfe1c34695ece976934345e09e97f4b",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.20": "1330f3e38f6bdae2d2e2d458957e5531cf729989db942832aede12c5e5d5a1ab",
|
|
||||||
"i686-pc-windows-msvc-0.5.20": "389182a593b6f761dffb7c82c3eee3f8e4f4848fbf26fa1e6ab95ac3fcad687b",
|
|
||||||
"i686-unknown-linux-gnu-0.5.20": "88a1e7b7c08682fb379f540cfab31c38c31d5a7a3f227e5446dd9000519c7195",
|
|
||||||
"i686-unknown-linux-musl-0.5.20": "fb105fc9c3bbb4ad44ac5c0066cb9f48912f55a97f65dabaa48367198c0f87ea",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.20": "a42c4bf4e397ed0d85bc5ed8d589f1e3dbd6f24fdbb16469ffa20b63977894aa",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.20": "bf52e43047ad4e7f178b62d2a175f0ee272f014a520726fe293960d03bfa122d",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.20": "69c198eca4c81299a7a323df729e03ce6198d84fa26e9d98ea1e02436933469f",
|
|
||||||
"x86_64-apple-darwin-0.5.20": "22bb373a2bb0f15e441819a054e68798534d536b1b1943fdb813d6b53ffe48a4",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.20": "dede2f71e7a15137ca17e3a1106e3797a650a2e2d607658f31ad4e986de3d67d",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.20": "8fdbfca767917f957e4541747cbf7b23b45c211109dbba97b49962fa3547aab4",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.20": "5326a6d14d4668dafee4ecf36f7664103a25bf0918dfe162c8c49dab017b74ed",
|
|
||||||
"aarch64-apple-darwin-0.5.19": "f223bb08d04257dbba421736f906d91b040f654ab49963afc2f30f7949ae7b79",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.19": "2da1baa85958e5ee36f2ac85b0c56cb99c0c3140f6ff18c60825485b8193eedb",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.19": "ff5b42337bd94f41db157f73b39d41586be8c76d8824550b0f6d5e808e5f0356",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.19": "84ae72130383340e14df47656f1974eb76a28ab7ed8b5c479bdbc8b907ad91e7",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.19": "bec22bc7e1d584749f26bc4d84116faf925f9db484fe0afb58f6a2aa0c04707c",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.19": "79c575e9dcd58cf88e8b2fd37242ac923d04c31a62bed54db78219e35257a262",
|
|
||||||
"i686-pc-windows-msvc-0.5.19": "7f0439c0977baf5573d0c31820887fb0c478d2ef29fdad4256bf0a0b536a387f",
|
|
||||||
"i686-unknown-linux-gnu-0.5.19": "0b9a88787f80bda623987a314875c7cccfed599b5d2803565734c292e2cd33ef",
|
|
||||||
"i686-unknown-linux-musl-0.5.19": "e9a89334fadda0905da42017db76c63da9b1ef02ef9595acea322d1e73f1fea0",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.19": "d891e5a5849e0220a49a31396371303d7f9de6c86b34f306c129a87dc6debfac",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.19": "efeb6ce7adff1ef45ca2e3351011a9a423add39f08676f5f4b85fdf2244fb8cd",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.19": "a37620a3ce3d351adc57ce70249ee0bdce2fbd336886db6b4de4d31447644acb",
|
|
||||||
"x86_64-apple-darwin-0.5.19": "9af5050495e9fc114cabcb4c2dbaded65569ccc0583ab3f62a6d9977984b65fa",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.19": "ada2b3d704a78e118f6c8e215468e8f50eef440211938970cdef79dfafe9ddc5",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.19": "ace8c180865bb87fb3d7004a8cafde78270676d87ab5531615f136cc860db78d",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.19": "eb9d0e1db24c6abbfec3e589f55efd2ef9ce9313f89bf1dd934635d194762b57",
|
|
||||||
"aarch64-apple-darwin-0.5.18": "13bcde0a15c50af976980b484f140e10969df67488542856a2152534f255c675",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.18": "a511f609236b9bfc9dedfcb9867ef1d0f1dc23cc2012f9e4e38e0c184657fd31",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.18": "5b1bd1471f4d8298f11da5f025bdbcc4c8057a24c8b95573003c0320b6fa99a8",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.18": "4262e0a6c14998c8637f1ba018980464a5e6aeb5f35aaa0149643c99a32631b3",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.18": "29d4f9b0c020f55de11c9bd24cf8360771c1893275dd9e3b978f0fe4421bfb4f",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.18": "95049e75c3da2113142da0b9e60451c43fac44702590f4e5abb6fc7cde744429",
|
|
||||||
"i686-pc-windows-msvc-0.5.18": "06729cf6685f0271e91bcb5cf748d18a5c5d793fa9e0a611d0c7541a0aed574a",
|
|
||||||
"i686-unknown-linux-gnu-0.5.18": "d92146688e5b1a7ddb79e8f91d91c8174d44a5945b06797cd17bbf187f13da64",
|
|
||||||
"i686-unknown-linux-musl-0.5.18": "1ec37579d0dec4739c707cb5096c52dea9319196dfd63ea6e121e16074892cac",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.18": "e6cf16040aabb5b1940e88841dcc90967aa592c8c7492699449ca050713cb567",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.18": "3efccbb5820be67b270333f9ca87d2d598e38648a6ea7a3fb9970a5a424be11f",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.18": "f7903ade2a7747041d5d10f043e01e0a6c9c881b6fe7cb1bd54b9efac8ed7620",
|
|
||||||
"x86_64-apple-darwin-0.5.18": "e77b6b35169d2e0a3b43d43690f813136c94e24e4eef72d560e7901e42621d18",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.18": "77f414173d0970c8977a614585fc013290659b0d74ae22be24559fde915832de",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.18": "1dbaeffc5cfac769f99700c0fc8c4ef4494a339720c6bf8b79367b1acd701b46",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.18": "d4d3bf7dda0fd66a34ee99407506b753213bbe6e4076c0c38c4b645d00406979",
|
|
||||||
"aarch64-apple-darwin-0.5.17": "9e041a7c0bbd8a653b2272e03ba5de5b726dcbbccc3ffcc526dc7de9f14ad334",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.17": "22164a4a86272ab2a4af2b01773a7e636f643426831f4dd9c71b2760c592a57b",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.17": "86021b10ad06f97a82d605ae7b7e580cd17d29b2877b65e31ef63db50514d2b0",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.17": "b68e96d7abb87180a44f9b315db2d3f88ad59325b10451b561e0620edd71d476",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.17": "125662419ae6b2332d2bab6764ba8ef9396fd0cc9487a5fbbcf41bdcf379e697",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.17": "f8d2dcee69ad15858a827265db527184bdbd07b60a24e04d2d9787abf781cc0b",
|
|
||||||
"i686-pc-windows-msvc-0.5.17": "1aecdd843d15a0149cf83d07c3b36d184578a6a07fcf2730ef9986393259e960",
|
|
||||||
"i686-unknown-linux-gnu-0.5.17": "4165443b8757cdcd615ccfe721aac5137c7d4165ae9dc2640975c1035018f09c",
|
|
||||||
"i686-unknown-linux-musl-0.5.17": "0242308d2ffe1de6538d79a13aae4cee8a48bfc76e71d559836a2f43808393c0",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.17": "a79bfc1c004339c1da253421b35471af383e724eaffe8ab332685b253402a7c1",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.17": "db2f384a7b9605b9ae03ca493f0c35174577a3b53d238861b11b9dc1c404cb16",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.17": "4312abce9f52dca597c4b4896e8f2f7575d50b2183af4c74412bc26eb6278d3f",
|
|
||||||
"x86_64-apple-darwin-0.5.17": "f66f961bf0c6e2bbc3e45de4692cdebb126edd5af4e920dea91a3fedabc502ee",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.17": "00aed721abc4bb125d92b45733aa65a2254344bffed984d85cf0de6b164f5011",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.17": "6121d9693b2013e970e495872c5a750ff0e471c2618821c2d4314666c0bd9ee7",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.17": "0aa0d03f80422a066396a54c7d9f7f78576a22827860273fd635f97e04f3e1a7",
|
|
||||||
"aarch64-apple-darwin-0.5.16": "0b16039f469df078c1445f5b7f84d3c0342580c4592b5a4b604db2c86dc37c3e",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.16": "59d28abe79037f835020ba834f01ac5c1f96c8556c6ff9a06a8fd5701048731c",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.16": "8913580d960e1d5a24316506b9925cb6aa4ab6547d88d7cab1aa5049825e1d4a",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.16": "e97d623d641a3c807bcafef222544786813ed5176d0dbea8d0f6adc2deea88b7",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.16": "fe814f38a72c7f264e4cd8fdcb84519bf92a88f0e67d7a0a6a38dc18e938c0fc",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.16": "f72c8302fa59190a90ccb743d90d3efae71e78ea7c6b52c68b3e23b6c6fb3276",
|
|
||||||
"i686-pc-windows-msvc-0.5.16": "fe24a7b1438152d8dcc7acedaad3b15362ef2e58d496611819fd8b99942dc2ed",
|
|
||||||
"i686-unknown-linux-gnu-0.5.16": "d2ddc285d3962b45e05a59e62fb188d7bad3f969b45ff5256db0226efe44208b",
|
|
||||||
"i686-unknown-linux-musl-0.5.16": "ac6b59b6b383a852ba5c22df777f9c3f39a85364a485bcc4203ca427417cb25b",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.16": "1ff9c39c6660548aa69934a25c8d92ffb11a7c9c1f39db9795e9f061ff34a8bd",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.16": "87c568a126d59d66b99ec087182f4cd9de336678dfb60c51da35d678160875d6",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.16": "23c8331689d99c6fb70646a41a9d8ef5211d4eefe25baebb08b6b6c7f126af6e",
|
|
||||||
"x86_64-apple-darwin-0.5.16": "72732a379d2aff6585c6bfd52593042a470e752d6af685cc01e1ee06d817cddb",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.16": "3fe298d7b10b63e9cec6711d03853874735f1dd33f655ad3ee6677965807883f",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.16": "a320393232ac29acfe75cd0d3fb943ee2a5cc3727d2c9d1bb14bb9eea1fc60c9",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.16": "82962a1ef9ca888c32933fe9022c4b946e9bf047ffb0084a614b8cf7a5306dbf",
|
|
||||||
"aarch64-apple-darwin-0.5.15": "bb7409c4d7d503e929bcd31bf179ae6f555f5092d0d5dc38df37be9f29832859",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.15": "02f69686d0e1fe9673bb449fc45e53e6bfb0f48c5d371b35c145828c4239f123",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.15": "78ac5d4c7b9773bb3f6867f452ed83dd2f38f26116d2369ff5b4ea02eb7519bd",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.15": "f416a9350161feacc48a96f90a1a38244d70f3ba07fbf96010ed477ff69814ed",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.15": "182c316f44df157979e7430fb952eced1ad8020d1d8d810e88ce6985c9428615",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.15": "0b4400e8c22921355d5e69cf17cb0a44da93af09125e1dc636a69d2175a23898",
|
|
||||||
"i686-pc-windows-msvc-0.5.15": "9092e142ce3a35f8c9f36058c3278f6b99718c02d8b904001ccc1cd918a0c798",
|
|
||||||
"i686-unknown-linux-gnu-0.5.15": "d945431e618c2688ac62e640c16022c587a6f80677c64346280143d83939f93f",
|
|
||||||
"i686-unknown-linux-musl-0.5.15": "6e1a968662a0952083e9a297ec067606621f93b55ccfbdd8ca475fd13b328d90",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.15": "58a6663e477645194c34dfac96b4c42ba6e7c4b5aa851c1e52276769b279b605",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.15": "c7281fa8fedd6332c594faa7e1dc1555960c7fb60d3e1b013309651b8d53377d",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.15": "590751ffaf36f3f01b66afcb7de844ed0f69aeb2b54595cf191a4e60ddfab11c",
|
|
||||||
"x86_64-apple-darwin-0.5.15": "6a729cb237d895eebeb65363419f41b217dbcd745819bcef61098a5ddd583f08",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.15": "2c49a892f793b957b0add32aa21a64940caf4bc03319cf0bb3b27caeebb985f7",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.15": "6c650324daafc07331c00b458872d50f56f160544015c8a499fd2e160b404ebb",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.15": "40d8564e954bbd18f2c5ba80978491c3a25ab49e067664daf525e34c38a370b8",
|
|
||||||
"aarch64-apple-darwin-0.5.14": "d548dffc256014c4c8c693e148140a3a21bcc2bf066a35e1d5f0d24c91d32112",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.14": "1c9cdb265b0c24ce2e74b7795a00842dc6d487c11ba49aa6c9ca1c784b82755a",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.14": "64c5321f5141db39e04209d170db34fcef5c8de3f561346dc0c1d132801c4f88",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.14": "903f87c609479099c87c229429f2a25f451689d862ee19170f6d87ab656815a0",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.14": "c33a4caa441c770ca720d301059eeb6af5473ceb22b69adf08b99043c3e4a854",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.14": "c3b1bbe0d70e916abdd557092bf94c4830f98c471fe7d45b23d4dec8546251f3",
|
|
||||||
"i686-pc-windows-msvc-0.5.14": "2ea709cf816b70661c6aa43d6aff7526faebafc2d45f7167d3192c5b9bb0a28f",
|
|
||||||
"i686-unknown-linux-gnu-0.5.14": "74fd05a1e04bb8c591cb4531d517848d1e2cdc05762ccd291429c165e2a19aa1",
|
|
||||||
"i686-unknown-linux-musl-0.5.14": "a616553164336a57fc154a424d44cd75eb06104bc4e69f3d757e3da90a90d31f",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.14": "4b675ac963f4d90034f8b8de8b03e0691b7e48eb8ce7bf5449ea65774750dfd4",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.14": "2a7bb1d27a6a057cbd5f62a5bc2ec77175c71224de8fb1bb5107acb1a07cc02a",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.14": "68acbfadd9e100b69b31f4995265b716465df909a7d110bba76d93e8adc3a76b",
|
|
||||||
"x86_64-apple-darwin-0.5.14": "8caf91b936ede1167abaebae07c2a1cbb22473355fa0ad7ebb2580307e84fb47",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.14": "ee2468e40320a0a2a36435e66bbd0d861228c4c06767f22d97876528138f4ba0",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.14": "22034760075b92487b326da5aa1a2a3e1917e2e766c12c0fd466fccda77013c7",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.14": "e1ccdfe1691c1f791d84bb6e1697e49416ca4b62103dcdf3b63772f03834f113",
|
|
||||||
"aarch64-apple-darwin-0.5.13": "8a1ddbe5131c50cbf5247f2f335252d14767a7ff74f08c8a1813f003bc86d37f",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.13": "d0054db9ba0ec472ee6d28fa3eda94fb021b5e77c962f3bb1ff4b4fa7934e66d",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.13": "fcbc405bdf8f6edf25818b756af702e8161528f4317d65310d9a0d4e02d7f544",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.13": "ba382034294dffcbe36d4a299a5c69c4f48caac9c4b78a1727c7fc9101175202",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.13": "cc28eeaa29b85f17c27cefe96497b3448024e14b5bc92921e1b7d157375d2334",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.13": "449b680c4a3d936e9005e39983208a183e0fffa62fe73e6daed85f51389fc40e",
|
|
||||||
"i686-pc-windows-msvc-0.5.13": "c1531c2f1eb8c36b2947abf039caf1aeba4253c3c35716705ca339a0a3d96594",
|
|
||||||
"i686-unknown-linux-gnu-0.5.13": "35b964c75699b6569d950fb39561146b830101403c9a937ace1fc64fc1967c1b",
|
|
||||||
"i686-unknown-linux-musl-0.5.13": "a33007ed60d67fa4c5b7689c1adb33751a5c1a8732057ed84b9deddbb39cd3a6",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.13": "9e34fc400e51f3331452083dd5e54fadc0f3be81f7901772366faf4c75e2680b",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.13": "ee01812f102379bc9bb6ea991f81536c9546a5f0d4990b9ed1fbb1900cb5f647",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.13": "f43c42318411ff5f3e8ea4be2228e71fb28b01ffcc08259bb301877c7f7155e0",
|
|
||||||
"x86_64-apple-darwin-0.5.13": "f871b2b002b750438e5e6df4b0809a9f7d089bc5d4d0466bc63577c9ecc59979",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.13": "c8a2e7e8bd87866fd1d52dbd4b4c0d85f328a6dcdeff17b85cc9c9af447ef3c3",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.13": "0127da50d3c361d094545aab32921bbce856b3fcc24f1d10436a6426b3f16330",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.13": "1afaef0180a6b9fe43fa6658443796b8e235fc41382a451634515890cf3aca06",
|
|
||||||
"aarch64-apple-darwin-0.5.12": "9eb8e0d3487f5389bec2c60cea37bb0a4d028513bffe854b9ece82d538c0f312",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.12": "ed8b4928a148365a84133ce96344fc22ac62674db2c6bef88853d0e38791e8d8",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.12": "3ce19d81232cd2dcc2646060370a1583ca5558e7f61d934ae22798006719341d",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.12": "744409cd0b7f6314b8ba140cb63f72e2576dfec5c83491d12455775d870d508d",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.12": "452f8b769818858c3343444396d270d34026f0f7649cc89c4076ecdc8eb6d391",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.12": "35abf5e98f2c9a8250045a58a568086f0e223be703c090134bedaf6279ebaac5",
|
|
||||||
"i686-pc-windows-msvc-0.5.12": "04f91508e6aeb7a2054e98552ff537b9863afbcbd4f72ba8bf8d9e9e25b37808",
|
|
||||||
"i686-unknown-linux-gnu-0.5.12": "38c8fbdb74ee9eb95ecdb4b843d9014d47214cdf5415520378161979d1b0cb34",
|
|
||||||
"i686-unknown-linux-musl-0.5.12": "6a8bb35f83c2a66711da3cee8d939e8893b34b25ae6cb53590c111637a93d527",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.12": "d1477f41b919c60d10a191bd81aeec0185cec7efb0364d9689b202b3a6607912",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.12": "12629950b444487c66a3a99f0ff0f82f11a7b0a57e8305b2767eed5b85a4a3bb",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.12": "36fc6d9ee6294ce54a2e3e92f10df094bebdd2862c29223bde18361aad9a9f1d",
|
|
||||||
"x86_64-apple-darwin-0.5.12": "78f38c88bf5e410600cd8f8ee4d5ba3ee781c94c091b1a57566256a2178ef4a3",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.12": "04b45a4af12c0bb7cc31004dfcfed2e722c4ca07e1ac58850f93a9343dd5d06f",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.12": "65b8dcf3f3e592887fae0daf1b3a9e3aad1262f74bb21cf80d1700c7caba7f23",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.12": "bd517e6508feef0261289b16c844c377127f21377c18c4a564d0d09add556fca",
|
|
||||||
"aarch64-apple-darwin-0.5.11": "695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4",
|
"aarch64-apple-darwin-0.5.11": "695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4",
|
||||||
"aarch64-unknown-linux-gnu-0.5.11": "055c329c38a93c01d378349d51cb4d521d1998c8a79355ddc00f863ce451942f",
|
"aarch64-unknown-linux-gnu-0.5.11": "055c329c38a93c01d378349d51cb4d521d1998c8a79355ddc00f863ce451942f",
|
||||||
"aarch64-unknown-linux-musl-0.5.11": "d0bb82d8bceb561dc785f3811f5f5a427f1be47b654f0cc5d6c36d779e03a3ff",
|
"aarch64-unknown-linux-musl-0.5.11": "d0bb82d8bceb561dc785f3811f5f5a427f1be47b654f0cc5d6c36d779e03a3ff",
|
||||||
@@ -30660,28 +34607,39 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.updateChecksums = updateChecksums;
|
exports.updateChecksums = updateChecksums;
|
||||||
const node_fs_1 = __nccwpck_require__(3024);
|
const node_fs_1 = __nccwpck_require__(3024);
|
||||||
const tc = __importStar(__nccwpck_require__(3472));
|
const tc = __importStar(__nccwpck_require__(3472));
|
||||||
const known_checksums_1 = __nccwpck_require__(2764);
|
const known_checksums_1 = __nccwpck_require__(2764);
|
||||||
async function updateChecksums(filePath, downloadUrls) {
|
function updateChecksums(filePath, downloadUrls) {
|
||||||
await node_fs_1.promises.rm(filePath);
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
await node_fs_1.promises.appendFile(filePath, "// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: { [key: string]: string } = {\n");
|
yield node_fs_1.promises.rm(filePath);
|
||||||
let firstLine = true;
|
yield node_fs_1.promises.appendFile(filePath, "// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: { [key: string]: string } = {\n");
|
||||||
for (const downloadUrl of downloadUrls) {
|
let firstLine = true;
|
||||||
const key = getKey(downloadUrl);
|
for (const downloadUrl of downloadUrls) {
|
||||||
if (key === undefined) {
|
const key = getKey(downloadUrl);
|
||||||
continue;
|
if (key === undefined) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
const checksum = yield getOrDownloadChecksum(key, downloadUrl);
|
||||||
|
if (!firstLine) {
|
||||||
|
yield node_fs_1.promises.appendFile(filePath, ",\n");
|
||||||
|
}
|
||||||
|
yield node_fs_1.promises.appendFile(filePath, ` "${key}":\n "${checksum}"`);
|
||||||
|
firstLine = false;
|
||||||
}
|
}
|
||||||
const checksum = await getOrDownloadChecksum(key, downloadUrl);
|
yield node_fs_1.promises.appendFile(filePath, ",\n};\n");
|
||||||
if (!firstLine) {
|
});
|
||||||
await node_fs_1.promises.appendFile(filePath, ",\n");
|
|
||||||
}
|
|
||||||
await node_fs_1.promises.appendFile(filePath, ` "${key}":\n "${checksum}"`);
|
|
||||||
firstLine = false;
|
|
||||||
}
|
|
||||||
await node_fs_1.promises.appendFile(filePath, ",\n};\n");
|
|
||||||
}
|
}
|
||||||
function getKey(downloadUrl) {
|
function getKey(downloadUrl) {
|
||||||
// https://github.com/astral-sh/uv/releases/download/0.3.2/uv-aarch64-apple-darwin.tar.gz.sha256
|
// https://github.com/astral-sh/uv/releases/download/0.3.2/uv-aarch64-apple-darwin.tar.gz.sha256
|
||||||
@@ -30694,21 +34652,25 @@ function getKey(downloadUrl) {
|
|||||||
const version = parts[parts.length - 2];
|
const version = parts[parts.length - 2];
|
||||||
return `${name}-${version}`;
|
return `${name}-${version}`;
|
||||||
}
|
}
|
||||||
async function getOrDownloadChecksum(key, downloadUrl) {
|
function getOrDownloadChecksum(key, downloadUrl) {
|
||||||
let checksum = "";
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (key in known_checksums_1.KNOWN_CHECKSUMS) {
|
let checksum = "";
|
||||||
checksum = known_checksums_1.KNOWN_CHECKSUMS[key];
|
if (key in known_checksums_1.KNOWN_CHECKSUMS) {
|
||||||
}
|
checksum = known_checksums_1.KNOWN_CHECKSUMS[key];
|
||||||
else {
|
}
|
||||||
const content = await downloadAssetContent(downloadUrl);
|
else {
|
||||||
checksum = content.split(" ")[0].trim();
|
const content = yield downloadAssetContent(downloadUrl);
|
||||||
}
|
checksum = content.split(" ")[0].trim();
|
||||||
return checksum;
|
}
|
||||||
|
return checksum;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
async function downloadAssetContent(downloadUrl) {
|
function downloadAssetContent(downloadUrl) {
|
||||||
const downloadPath = await tc.downloadTool(downloadUrl);
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const content = await node_fs_1.promises.readFile(downloadPath, "utf8");
|
const downloadPath = yield tc.downloadTool(downloadUrl);
|
||||||
return content;
|
const content = yield node_fs_1.promises.readFile(downloadPath, "utf8");
|
||||||
|
return content;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -30752,33 +34714,39 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const semver = __importStar(__nccwpck_require__(9318));
|
const github = __importStar(__nccwpck_require__(3228));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const core_1 = __nccwpck_require__(767);
|
|
||||||
const plugin_paginate_rest_1 = __nccwpck_require__(3779);
|
|
||||||
const plugin_rest_endpoint_methods_1 = __nccwpck_require__(9210);
|
|
||||||
const constants_1 = __nccwpck_require__(6156);
|
const constants_1 = __nccwpck_require__(6156);
|
||||||
|
const semver = __importStar(__nccwpck_require__(9318));
|
||||||
const update_known_checksums_1 = __nccwpck_require__(6182);
|
const update_known_checksums_1 = __nccwpck_require__(6182);
|
||||||
const PaginatingOctokit = core_1.Octokit.plugin(plugin_paginate_rest_1.paginateRest, plugin_rest_endpoint_methods_1.restEndpointMethods);
|
function run() {
|
||||||
async function run() {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const checksumFilePath = process.argv.slice(2)[0];
|
const checksumFilePath = process.argv.slice(2)[0];
|
||||||
const github_token = process.argv.slice(2)[1];
|
const github_token = process.argv.slice(2)[1];
|
||||||
const octokit = new PaginatingOctokit({
|
const octokit = github.getOctokit(github_token, { baseUrl: constants_1.GITHUB_COM_API });
|
||||||
auth: github_token,
|
const response = yield octokit.paginate(octokit.rest.repos.listReleases, {
|
||||||
|
owner: constants_1.OWNER,
|
||||||
|
repo: constants_1.REPO,
|
||||||
|
});
|
||||||
|
const downloadUrls = response.flatMap((release) => release.assets
|
||||||
|
.filter((asset) => asset.name.endsWith(".sha256"))
|
||||||
|
.map((asset) => asset.browser_download_url));
|
||||||
|
yield (0, update_known_checksums_1.updateChecksums)(checksumFilePath, downloadUrls);
|
||||||
|
const latestVersion = response
|
||||||
|
.map((release) => release.tag_name)
|
||||||
|
.sort(semver.rcompare)[0];
|
||||||
|
core.setOutput("latest-version", latestVersion);
|
||||||
});
|
});
|
||||||
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
|
||||||
owner: constants_1.OWNER,
|
|
||||||
repo: constants_1.REPO,
|
|
||||||
});
|
|
||||||
const downloadUrls = response.flatMap((release) => release.assets
|
|
||||||
.filter((asset) => asset.name.endsWith(".sha256"))
|
|
||||||
.map((asset) => asset.browser_download_url));
|
|
||||||
await (0, update_known_checksums_1.updateChecksums)(checksumFilePath, downloadUrls);
|
|
||||||
const latestVersion = response
|
|
||||||
.map((release) => release.tag_name)
|
|
||||||
.sort(semver.rcompare)[0];
|
|
||||||
core.setOutput("latest-version", latestVersion);
|
|
||||||
}
|
}
|
||||||
run();
|
run();
|
||||||
|
|
||||||
@@ -30791,10 +34759,11 @@ run();
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.TOOL_CACHE_NAME = exports.OWNER = exports.REPO = void 0;
|
exports.GITHUB_COM_API = exports.TOOL_CACHE_NAME = exports.OWNER = exports.REPO = void 0;
|
||||||
exports.REPO = "uv";
|
exports.REPO = "uv";
|
||||||
exports.OWNER = "astral-sh";
|
exports.OWNER = "astral-sh";
|
||||||
exports.TOOL_CACHE_NAME = "uv";
|
exports.TOOL_CACHE_NAME = "uv";
|
||||||
|
exports.GITHUB_COM_API = "https://api.github.com";
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -30903,14 +34872,6 @@ module.exports = require("net");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7598:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
module.exports = require("node:crypto");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 8474:
|
/***/ 8474:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@@ -32672,3894 +36633,6 @@ function parseParams (str) {
|
|||||||
module.exports = parseParams
|
module.exports = parseParams
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 1120:
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
var __webpack_unused_export__;
|
|
||||||
|
|
||||||
|
|
||||||
const NullObject = function NullObject () { }
|
|
||||||
NullObject.prototype = Object.create(null)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RegExp to match *( ";" parameter ) in RFC 7231 sec 3.1.1.1
|
|
||||||
*
|
|
||||||
* parameter = token "=" ( token / quoted-string )
|
|
||||||
* token = 1*tchar
|
|
||||||
* tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
||||||
* / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
|
|
||||||
* / DIGIT / ALPHA
|
|
||||||
* ; any VCHAR, except delimiters
|
|
||||||
* quoted-string = DQUOTE *( qdtext / quoted-pair ) DQUOTE
|
|
||||||
* qdtext = HTAB / SP / %x21 / %x23-5B / %x5D-7E / obs-text
|
|
||||||
* obs-text = %x80-FF
|
|
||||||
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
|
||||||
*/
|
|
||||||
const paramRE = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RegExp to match quoted-pair in RFC 7230 sec 3.2.6
|
|
||||||
*
|
|
||||||
* quoted-pair = "\" ( HTAB / SP / VCHAR / obs-text )
|
|
||||||
* obs-text = %x80-FF
|
|
||||||
*/
|
|
||||||
const quotedPairRE = /\\([\v\u0020-\u00ff])/gu
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RegExp to match type in RFC 7231 sec 3.1.1.1
|
|
||||||
*
|
|
||||||
* media-type = type "/" subtype
|
|
||||||
* type = token
|
|
||||||
* subtype = token
|
|
||||||
*/
|
|
||||||
const mediaTypeRE = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u
|
|
||||||
|
|
||||||
// default ContentType to prevent repeated object creation
|
|
||||||
const defaultContentType = { type: '', parameters: new NullObject() }
|
|
||||||
Object.freeze(defaultContentType.parameters)
|
|
||||||
Object.freeze(defaultContentType)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Parse media type to object.
|
|
||||||
*
|
|
||||||
* @param {string|object} header
|
|
||||||
* @return {Object}
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
|
|
||||||
function parse (header) {
|
|
||||||
if (typeof header !== 'string') {
|
|
||||||
throw new TypeError('argument header is required and must be a string')
|
|
||||||
}
|
|
||||||
|
|
||||||
let index = header.indexOf(';')
|
|
||||||
const type = index !== -1
|
|
||||||
? header.slice(0, index).trim()
|
|
||||||
: header.trim()
|
|
||||||
|
|
||||||
if (mediaTypeRE.test(type) === false) {
|
|
||||||
throw new TypeError('invalid media type')
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = {
|
|
||||||
type: type.toLowerCase(),
|
|
||||||
parameters: new NullObject()
|
|
||||||
}
|
|
||||||
|
|
||||||
// parse parameters
|
|
||||||
if (index === -1) {
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
let key
|
|
||||||
let match
|
|
||||||
let value
|
|
||||||
|
|
||||||
paramRE.lastIndex = index
|
|
||||||
|
|
||||||
while ((match = paramRE.exec(header))) {
|
|
||||||
if (match.index !== index) {
|
|
||||||
throw new TypeError('invalid parameter format')
|
|
||||||
}
|
|
||||||
|
|
||||||
index += match[0].length
|
|
||||||
key = match[1].toLowerCase()
|
|
||||||
value = match[2]
|
|
||||||
|
|
||||||
if (value[0] === '"') {
|
|
||||||
// remove quotes and escapes
|
|
||||||
value = value
|
|
||||||
.slice(1, value.length - 1)
|
|
||||||
|
|
||||||
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, '$1'))
|
|
||||||
}
|
|
||||||
|
|
||||||
result.parameters[key] = value
|
|
||||||
}
|
|
||||||
|
|
||||||
if (index !== header.length) {
|
|
||||||
throw new TypeError('invalid parameter format')
|
|
||||||
}
|
|
||||||
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
function safeParse (header) {
|
|
||||||
if (typeof header !== 'string') {
|
|
||||||
return defaultContentType
|
|
||||||
}
|
|
||||||
|
|
||||||
let index = header.indexOf(';')
|
|
||||||
const type = index !== -1
|
|
||||||
? header.slice(0, index).trim()
|
|
||||||
: header.trim()
|
|
||||||
|
|
||||||
if (mediaTypeRE.test(type) === false) {
|
|
||||||
return defaultContentType
|
|
||||||
}
|
|
||||||
|
|
||||||
const result = {
|
|
||||||
type: type.toLowerCase(),
|
|
||||||
parameters: new NullObject()
|
|
||||||
}
|
|
||||||
|
|
||||||
// parse parameters
|
|
||||||
if (index === -1) {
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
let key
|
|
||||||
let match
|
|
||||||
let value
|
|
||||||
|
|
||||||
paramRE.lastIndex = index
|
|
||||||
|
|
||||||
while ((match = paramRE.exec(header))) {
|
|
||||||
if (match.index !== index) {
|
|
||||||
return defaultContentType
|
|
||||||
}
|
|
||||||
|
|
||||||
index += match[0].length
|
|
||||||
key = match[1].toLowerCase()
|
|
||||||
value = match[2]
|
|
||||||
|
|
||||||
if (value[0] === '"') {
|
|
||||||
// remove quotes and escapes
|
|
||||||
value = value
|
|
||||||
.slice(1, value.length - 1)
|
|
||||||
|
|
||||||
quotedPairRE.test(value) && (value = value.replace(quotedPairRE, '$1'))
|
|
||||||
}
|
|
||||||
|
|
||||||
result.parameters[key] = value
|
|
||||||
}
|
|
||||||
|
|
||||||
if (index !== header.length) {
|
|
||||||
return defaultContentType
|
|
||||||
}
|
|
||||||
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
__webpack_unused_export__ = { parse, safeParse }
|
|
||||||
__webpack_unused_export__ = parse
|
|
||||||
module.exports.xL = safeParse
|
|
||||||
__webpack_unused_export__ = defaultContentType
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 767:
|
|
||||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
// ESM COMPAT FLAG
|
|
||||||
__nccwpck_require__.r(__webpack_exports__);
|
|
||||||
|
|
||||||
// EXPORTS
|
|
||||||
__nccwpck_require__.d(__webpack_exports__, {
|
|
||||||
Octokit: () => (/* binding */ Octokit)
|
|
||||||
});
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/universal-user-agent/index.js
|
|
||||||
function getUserAgent() {
|
|
||||||
if (typeof navigator === "object" && "userAgent" in navigator) {
|
|
||||||
return navigator.userAgent;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof process === "object" && process.version !== undefined) {
|
|
||||||
return `Node.js/${process.version.substr(1)} (${process.platform}; ${
|
|
||||||
process.arch
|
|
||||||
})`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return "<environment undetectable>";
|
|
||||||
}
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/lib/register.js
|
|
||||||
// @ts-check
|
|
||||||
|
|
||||||
function register(state, name, method, options) {
|
|
||||||
if (typeof method !== "function") {
|
|
||||||
throw new Error("method for before hook must be a function");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!options) {
|
|
||||||
options = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Array.isArray(name)) {
|
|
||||||
return name.reverse().reduce((callback, name) => {
|
|
||||||
return register.bind(null, state, name, callback, options);
|
|
||||||
}, method)();
|
|
||||||
}
|
|
||||||
|
|
||||||
return Promise.resolve().then(() => {
|
|
||||||
if (!state.registry[name]) {
|
|
||||||
return method(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
return state.registry[name].reduce((method, registered) => {
|
|
||||||
return registered.hook.bind(null, method, options);
|
|
||||||
}, method)();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/lib/add.js
|
|
||||||
// @ts-check
|
|
||||||
|
|
||||||
function addHook(state, kind, name, hook) {
|
|
||||||
const orig = hook;
|
|
||||||
if (!state.registry[name]) {
|
|
||||||
state.registry[name] = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
if (kind === "before") {
|
|
||||||
hook = (method, options) => {
|
|
||||||
return Promise.resolve()
|
|
||||||
.then(orig.bind(null, options))
|
|
||||||
.then(method.bind(null, options));
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (kind === "after") {
|
|
||||||
hook = (method, options) => {
|
|
||||||
let result;
|
|
||||||
return Promise.resolve()
|
|
||||||
.then(method.bind(null, options))
|
|
||||||
.then((result_) => {
|
|
||||||
result = result_;
|
|
||||||
return orig(result, options);
|
|
||||||
})
|
|
||||||
.then(() => {
|
|
||||||
return result;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (kind === "error") {
|
|
||||||
hook = (method, options) => {
|
|
||||||
return Promise.resolve()
|
|
||||||
.then(method.bind(null, options))
|
|
||||||
.catch((error) => {
|
|
||||||
return orig(error, options);
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
state.registry[name].push({
|
|
||||||
hook: hook,
|
|
||||||
orig: orig,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/lib/remove.js
|
|
||||||
// @ts-check
|
|
||||||
|
|
||||||
function removeHook(state, name, method) {
|
|
||||||
if (!state.registry[name]) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const index = state.registry[name]
|
|
||||||
.map((registered) => {
|
|
||||||
return registered.orig;
|
|
||||||
})
|
|
||||||
.indexOf(method);
|
|
||||||
|
|
||||||
if (index === -1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
state.registry[name].splice(index, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/before-after-hook/index.js
|
|
||||||
// @ts-check
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// bind with array of arguments: https://stackoverflow.com/a/21792913
|
|
||||||
const bind = Function.bind;
|
|
||||||
const bindable = bind.bind(bind);
|
|
||||||
|
|
||||||
function bindApi(hook, state, name) {
|
|
||||||
const removeHookRef = bindable(removeHook, null).apply(
|
|
||||||
null,
|
|
||||||
name ? [state, name] : [state]
|
|
||||||
);
|
|
||||||
hook.api = { remove: removeHookRef };
|
|
||||||
hook.remove = removeHookRef;
|
|
||||||
["before", "error", "after", "wrap"].forEach((kind) => {
|
|
||||||
const args = name ? [state, kind, name] : [state, kind];
|
|
||||||
hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function Singular() {
|
|
||||||
const singularHookName = Symbol("Singular");
|
|
||||||
const singularHookState = {
|
|
||||||
registry: {},
|
|
||||||
};
|
|
||||||
const singularHook = register.bind(null, singularHookState, singularHookName);
|
|
||||||
bindApi(singularHook, singularHookState, singularHookName);
|
|
||||||
return singularHook;
|
|
||||||
}
|
|
||||||
|
|
||||||
function Collection() {
|
|
||||||
const state = {
|
|
||||||
registry: {},
|
|
||||||
};
|
|
||||||
|
|
||||||
const hook = register.bind(null, state);
|
|
||||||
bindApi(hook, state);
|
|
||||||
|
|
||||||
return hook;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ const before_after_hook = ({ Singular, Collection });
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/endpoint/dist-bundle/index.js
|
|
||||||
// pkg/dist-src/defaults.js
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/version.js
|
|
||||||
var VERSION = "0.0.0-development";
|
|
||||||
|
|
||||||
// pkg/dist-src/defaults.js
|
|
||||||
var userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
|
||||||
var DEFAULTS = {
|
|
||||||
method: "GET",
|
|
||||||
baseUrl: "https://api.github.com",
|
|
||||||
headers: {
|
|
||||||
accept: "application/vnd.github.v3+json",
|
|
||||||
"user-agent": userAgent
|
|
||||||
},
|
|
||||||
mediaType: {
|
|
||||||
format: ""
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// pkg/dist-src/util/lowercase-keys.js
|
|
||||||
function lowercaseKeys(object) {
|
|
||||||
if (!object) {
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
return Object.keys(object).reduce((newObj, key) => {
|
|
||||||
newObj[key.toLowerCase()] = object[key];
|
|
||||||
return newObj;
|
|
||||||
}, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/is-plain-object.js
|
|
||||||
function isPlainObject(value) {
|
|
||||||
if (typeof value !== "object" || value === null) return false;
|
|
||||||
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
||||||
const proto = Object.getPrototypeOf(value);
|
|
||||||
if (proto === null) return true;
|
|
||||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
||||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/merge-deep.js
|
|
||||||
function mergeDeep(defaults, options) {
|
|
||||||
const result = Object.assign({}, defaults);
|
|
||||||
Object.keys(options).forEach((key) => {
|
|
||||||
if (isPlainObject(options[key])) {
|
|
||||||
if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
|
|
||||||
else result[key] = mergeDeep(defaults[key], options[key]);
|
|
||||||
} else {
|
|
||||||
Object.assign(result, { [key]: options[key] });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/remove-undefined-properties.js
|
|
||||||
function removeUndefinedProperties(obj) {
|
|
||||||
for (const key in obj) {
|
|
||||||
if (obj[key] === void 0) {
|
|
||||||
delete obj[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/merge.js
|
|
||||||
function merge(defaults, route, options) {
|
|
||||||
if (typeof route === "string") {
|
|
||||||
let [method, url] = route.split(" ");
|
|
||||||
options = Object.assign(url ? { method, url } : { url: method }, options);
|
|
||||||
} else {
|
|
||||||
options = Object.assign({}, route);
|
|
||||||
}
|
|
||||||
options.headers = lowercaseKeys(options.headers);
|
|
||||||
removeUndefinedProperties(options);
|
|
||||||
removeUndefinedProperties(options.headers);
|
|
||||||
const mergedOptions = mergeDeep(defaults || {}, options);
|
|
||||||
if (options.url === "/graphql") {
|
|
||||||
if (defaults && defaults.mediaType.previews?.length) {
|
|
||||||
mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(
|
|
||||||
(preview) => !mergedOptions.mediaType.previews.includes(preview)
|
|
||||||
).concat(mergedOptions.mediaType.previews);
|
|
||||||
}
|
|
||||||
mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
|
|
||||||
}
|
|
||||||
return mergedOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/add-query-parameters.js
|
|
||||||
function addQueryParameters(url, parameters) {
|
|
||||||
const separator = /\?/.test(url) ? "&" : "?";
|
|
||||||
const names = Object.keys(parameters);
|
|
||||||
if (names.length === 0) {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
return url + separator + names.map((name) => {
|
|
||||||
if (name === "q") {
|
|
||||||
return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
|
|
||||||
}
|
|
||||||
return `${name}=${encodeURIComponent(parameters[name])}`;
|
|
||||||
}).join("&");
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/extract-url-variable-names.js
|
|
||||||
var urlVariableRegex = /\{[^}]+\}/g;
|
|
||||||
function removeNonChars(variableName) {
|
|
||||||
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
|
|
||||||
}
|
|
||||||
function extractUrlVariableNames(url) {
|
|
||||||
const matches = url.match(urlVariableRegex);
|
|
||||||
if (!matches) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/omit.js
|
|
||||||
function omit(object, keysToOmit) {
|
|
||||||
const result = { __proto__: null };
|
|
||||||
for (const key of Object.keys(object)) {
|
|
||||||
if (keysToOmit.indexOf(key) === -1) {
|
|
||||||
result[key] = object[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/util/url-template.js
|
|
||||||
function encodeReserved(str) {
|
|
||||||
return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
|
|
||||||
if (!/%[0-9A-Fa-f]/.test(part)) {
|
|
||||||
part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
|
|
||||||
}
|
|
||||||
return part;
|
|
||||||
}).join("");
|
|
||||||
}
|
|
||||||
function encodeUnreserved(str) {
|
|
||||||
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
|
|
||||||
return "%" + c.charCodeAt(0).toString(16).toUpperCase();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function encodeValue(operator, value, key) {
|
|
||||||
value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
|
|
||||||
if (key) {
|
|
||||||
return encodeUnreserved(key) + "=" + value;
|
|
||||||
} else {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function isDefined(value) {
|
|
||||||
return value !== void 0 && value !== null;
|
|
||||||
}
|
|
||||||
function isKeyOperator(operator) {
|
|
||||||
return operator === ";" || operator === "&" || operator === "?";
|
|
||||||
}
|
|
||||||
function getValues(context, operator, key, modifier) {
|
|
||||||
var value = context[key], result = [];
|
|
||||||
if (isDefined(value) && value !== "") {
|
|
||||||
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
||||||
value = value.toString();
|
|
||||||
if (modifier && modifier !== "*") {
|
|
||||||
value = value.substring(0, parseInt(modifier, 10));
|
|
||||||
}
|
|
||||||
result.push(
|
|
||||||
encodeValue(operator, value, isKeyOperator(operator) ? key : "")
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
if (modifier === "*") {
|
|
||||||
if (Array.isArray(value)) {
|
|
||||||
value.filter(isDefined).forEach(function(value2) {
|
|
||||||
result.push(
|
|
||||||
encodeValue(operator, value2, isKeyOperator(operator) ? key : "")
|
|
||||||
);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
Object.keys(value).forEach(function(k) {
|
|
||||||
if (isDefined(value[k])) {
|
|
||||||
result.push(encodeValue(operator, value[k], k));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
const tmp = [];
|
|
||||||
if (Array.isArray(value)) {
|
|
||||||
value.filter(isDefined).forEach(function(value2) {
|
|
||||||
tmp.push(encodeValue(operator, value2));
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
Object.keys(value).forEach(function(k) {
|
|
||||||
if (isDefined(value[k])) {
|
|
||||||
tmp.push(encodeUnreserved(k));
|
|
||||||
tmp.push(encodeValue(operator, value[k].toString()));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (isKeyOperator(operator)) {
|
|
||||||
result.push(encodeUnreserved(key) + "=" + tmp.join(","));
|
|
||||||
} else if (tmp.length !== 0) {
|
|
||||||
result.push(tmp.join(","));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (operator === ";") {
|
|
||||||
if (isDefined(value)) {
|
|
||||||
result.push(encodeUnreserved(key));
|
|
||||||
}
|
|
||||||
} else if (value === "" && (operator === "&" || operator === "?")) {
|
|
||||||
result.push(encodeUnreserved(key) + "=");
|
|
||||||
} else if (value === "") {
|
|
||||||
result.push("");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
function parseUrl(template) {
|
|
||||||
return {
|
|
||||||
expand: expand.bind(null, template)
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function expand(template, context) {
|
|
||||||
var operators = ["+", "#", ".", "/", ";", "?", "&"];
|
|
||||||
template = template.replace(
|
|
||||||
/\{([^\{\}]+)\}|([^\{\}]+)/g,
|
|
||||||
function(_, expression, literal) {
|
|
||||||
if (expression) {
|
|
||||||
let operator = "";
|
|
||||||
const values = [];
|
|
||||||
if (operators.indexOf(expression.charAt(0)) !== -1) {
|
|
||||||
operator = expression.charAt(0);
|
|
||||||
expression = expression.substr(1);
|
|
||||||
}
|
|
||||||
expression.split(/,/g).forEach(function(variable) {
|
|
||||||
var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
|
|
||||||
values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
|
|
||||||
});
|
|
||||||
if (operator && operator !== "+") {
|
|
||||||
var separator = ",";
|
|
||||||
if (operator === "?") {
|
|
||||||
separator = "&";
|
|
||||||
} else if (operator !== "#") {
|
|
||||||
separator = operator;
|
|
||||||
}
|
|
||||||
return (values.length !== 0 ? operator : "") + values.join(separator);
|
|
||||||
} else {
|
|
||||||
return values.join(",");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return encodeReserved(literal);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
if (template === "/") {
|
|
||||||
return template;
|
|
||||||
} else {
|
|
||||||
return template.replace(/\/$/, "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/parse.js
|
|
||||||
function parse(options) {
|
|
||||||
let method = options.method.toUpperCase();
|
|
||||||
let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
|
|
||||||
let headers = Object.assign({}, options.headers);
|
|
||||||
let body;
|
|
||||||
let parameters = omit(options, [
|
|
||||||
"method",
|
|
||||||
"baseUrl",
|
|
||||||
"url",
|
|
||||||
"headers",
|
|
||||||
"request",
|
|
||||||
"mediaType"
|
|
||||||
]);
|
|
||||||
const urlVariableNames = extractUrlVariableNames(url);
|
|
||||||
url = parseUrl(url).expand(parameters);
|
|
||||||
if (!/^http/.test(url)) {
|
|
||||||
url = options.baseUrl + url;
|
|
||||||
}
|
|
||||||
const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl");
|
|
||||||
const remainingParameters = omit(parameters, omittedParameters);
|
|
||||||
const isBinaryRequest = /application\/octet-stream/i.test(headers.accept);
|
|
||||||
if (!isBinaryRequest) {
|
|
||||||
if (options.mediaType.format) {
|
|
||||||
headers.accept = headers.accept.split(/,/).map(
|
|
||||||
(format) => format.replace(
|
|
||||||
/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,
|
|
||||||
`application/vnd$1$2.${options.mediaType.format}`
|
|
||||||
)
|
|
||||||
).join(",");
|
|
||||||
}
|
|
||||||
if (url.endsWith("/graphql")) {
|
|
||||||
if (options.mediaType.previews?.length) {
|
|
||||||
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
|
|
||||||
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
|
|
||||||
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
|
|
||||||
return `application/vnd.github.${preview}-preview${format}`;
|
|
||||||
}).join(",");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (["GET", "HEAD"].includes(method)) {
|
|
||||||
url = addQueryParameters(url, remainingParameters);
|
|
||||||
} else {
|
|
||||||
if ("data" in remainingParameters) {
|
|
||||||
body = remainingParameters.data;
|
|
||||||
} else {
|
|
||||||
if (Object.keys(remainingParameters).length) {
|
|
||||||
body = remainingParameters;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!headers["content-type"] && typeof body !== "undefined") {
|
|
||||||
headers["content-type"] = "application/json; charset=utf-8";
|
|
||||||
}
|
|
||||||
if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
|
|
||||||
body = "";
|
|
||||||
}
|
|
||||||
return Object.assign(
|
|
||||||
{ method, url, headers },
|
|
||||||
typeof body !== "undefined" ? { body } : null,
|
|
||||||
options.request ? { request: options.request } : null
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/endpoint-with-defaults.js
|
|
||||||
function endpointWithDefaults(defaults, route, options) {
|
|
||||||
return parse(merge(defaults, route, options));
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/with-defaults.js
|
|
||||||
function withDefaults(oldDefaults, newDefaults) {
|
|
||||||
const DEFAULTS2 = merge(oldDefaults, newDefaults);
|
|
||||||
const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
|
|
||||||
return Object.assign(endpoint2, {
|
|
||||||
DEFAULTS: DEFAULTS2,
|
|
||||||
defaults: withDefaults.bind(null, DEFAULTS2),
|
|
||||||
merge: merge.bind(null, DEFAULTS2),
|
|
||||||
parse
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
var endpoint = withDefaults(null, DEFAULTS);
|
|
||||||
|
|
||||||
|
|
||||||
// EXTERNAL MODULE: ./node_modules/fast-content-type-parse/index.js
|
|
||||||
var fast_content_type_parse = __nccwpck_require__(1120);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/request-error/dist-src/index.js
|
|
||||||
class RequestError extends Error {
|
|
||||||
name;
|
|
||||||
/**
|
|
||||||
* http status code
|
|
||||||
*/
|
|
||||||
status;
|
|
||||||
/**
|
|
||||||
* Request options that lead to the error.
|
|
||||||
*/
|
|
||||||
request;
|
|
||||||
/**
|
|
||||||
* Response object if a response was received
|
|
||||||
*/
|
|
||||||
response;
|
|
||||||
constructor(message, statusCode, options) {
|
|
||||||
super(message);
|
|
||||||
this.name = "HttpError";
|
|
||||||
this.status = Number.parseInt(statusCode);
|
|
||||||
if (Number.isNaN(this.status)) {
|
|
||||||
this.status = 0;
|
|
||||||
}
|
|
||||||
if ("response" in options) {
|
|
||||||
this.response = options.response;
|
|
||||||
}
|
|
||||||
const requestCopy = Object.assign({}, options.request);
|
|
||||||
if (options.request.headers.authorization) {
|
|
||||||
requestCopy.headers = Object.assign({}, options.request.headers, {
|
|
||||||
authorization: options.request.headers.authorization.replace(
|
|
||||||
/ .*$/,
|
|
||||||
" [REDACTED]"
|
|
||||||
)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
|
|
||||||
this.request = requestCopy;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/request/dist-bundle/index.js
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/defaults.js
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/version.js
|
|
||||||
var dist_bundle_VERSION = "0.0.0-development";
|
|
||||||
|
|
||||||
// pkg/dist-src/defaults.js
|
|
||||||
var defaults_default = {
|
|
||||||
headers: {
|
|
||||||
"user-agent": `octokit-request.js/${dist_bundle_VERSION} ${getUserAgent()}`
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// pkg/dist-src/fetch-wrapper.js
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/is-plain-object.js
|
|
||||||
function dist_bundle_isPlainObject(value) {
|
|
||||||
if (typeof value !== "object" || value === null) return false;
|
|
||||||
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
||||||
const proto = Object.getPrototypeOf(value);
|
|
||||||
if (proto === null) return true;
|
|
||||||
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
||||||
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/fetch-wrapper.js
|
|
||||||
|
|
||||||
async function fetchWrapper(requestOptions) {
|
|
||||||
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
|
||||||
if (!fetch) {
|
|
||||||
throw new Error(
|
|
||||||
"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"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
const log = requestOptions.request?.log || console;
|
|
||||||
const parseSuccessResponseBody = requestOptions.request?.parseSuccessResponseBody !== false;
|
|
||||||
const body = dist_bundle_isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body) ? JSON.stringify(requestOptions.body) : requestOptions.body;
|
|
||||||
const requestHeaders = Object.fromEntries(
|
|
||||||
Object.entries(requestOptions.headers).map(([name, value]) => [
|
|
||||||
name,
|
|
||||||
String(value)
|
|
||||||
])
|
|
||||||
);
|
|
||||||
let fetchResponse;
|
|
||||||
try {
|
|
||||||
fetchResponse = await fetch(requestOptions.url, {
|
|
||||||
method: requestOptions.method,
|
|
||||||
body,
|
|
||||||
redirect: requestOptions.request?.redirect,
|
|
||||||
headers: requestHeaders,
|
|
||||||
signal: requestOptions.request?.signal,
|
|
||||||
// duplex must be set if request.body is ReadableStream or Async Iterables.
|
|
||||||
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
|
|
||||||
...requestOptions.body && { duplex: "half" }
|
|
||||||
});
|
|
||||||
} catch (error) {
|
|
||||||
let message = "Unknown Error";
|
|
||||||
if (error instanceof Error) {
|
|
||||||
if (error.name === "AbortError") {
|
|
||||||
error.status = 500;
|
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
message = error.message;
|
|
||||||
if (error.name === "TypeError" && "cause" in error) {
|
|
||||||
if (error.cause instanceof Error) {
|
|
||||||
message = error.cause.message;
|
|
||||||
} else if (typeof error.cause === "string") {
|
|
||||||
message = error.cause;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const requestError = new RequestError(message, 500, {
|
|
||||||
request: requestOptions
|
|
||||||
});
|
|
||||||
requestError.cause = error;
|
|
||||||
throw requestError;
|
|
||||||
}
|
|
||||||
const status = fetchResponse.status;
|
|
||||||
const url = fetchResponse.url;
|
|
||||||
const responseHeaders = {};
|
|
||||||
for (const [key, value] of fetchResponse.headers) {
|
|
||||||
responseHeaders[key] = value;
|
|
||||||
}
|
|
||||||
const octokitResponse = {
|
|
||||||
url,
|
|
||||||
status,
|
|
||||||
headers: responseHeaders,
|
|
||||||
data: ""
|
|
||||||
};
|
|
||||||
if ("deprecation" in responseHeaders) {
|
|
||||||
const matches = responseHeaders.link && responseHeaders.link.match(/<([^>]+)>; rel="deprecation"/);
|
|
||||||
const deprecationLink = matches && matches.pop();
|
|
||||||
log.warn(
|
|
||||||
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${responseHeaders.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (status === 204 || status === 205) {
|
|
||||||
return octokitResponse;
|
|
||||||
}
|
|
||||||
if (requestOptions.method === "HEAD") {
|
|
||||||
if (status < 400) {
|
|
||||||
return octokitResponse;
|
|
||||||
}
|
|
||||||
throw new RequestError(fetchResponse.statusText, status, {
|
|
||||||
response: octokitResponse,
|
|
||||||
request: requestOptions
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (status === 304) {
|
|
||||||
octokitResponse.data = await getResponseData(fetchResponse);
|
|
||||||
throw new RequestError("Not modified", status, {
|
|
||||||
response: octokitResponse,
|
|
||||||
request: requestOptions
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (status >= 400) {
|
|
||||||
octokitResponse.data = await getResponseData(fetchResponse);
|
|
||||||
throw new RequestError(toErrorMessage(octokitResponse.data), status, {
|
|
||||||
response: octokitResponse,
|
|
||||||
request: requestOptions
|
|
||||||
});
|
|
||||||
}
|
|
||||||
octokitResponse.data = parseSuccessResponseBody ? await getResponseData(fetchResponse) : fetchResponse.body;
|
|
||||||
return octokitResponse;
|
|
||||||
}
|
|
||||||
async function getResponseData(response) {
|
|
||||||
const contentType = response.headers.get("content-type");
|
|
||||||
if (!contentType) {
|
|
||||||
return response.text().catch(() => "");
|
|
||||||
}
|
|
||||||
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
|
||||||
if (isJSONResponse(mimetype)) {
|
|
||||||
let text = "";
|
|
||||||
try {
|
|
||||||
text = await response.text();
|
|
||||||
return JSON.parse(text);
|
|
||||||
} catch (err) {
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
|
||||||
return response.text().catch(() => "");
|
|
||||||
} else {
|
|
||||||
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function isJSONResponse(mimetype) {
|
|
||||||
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
|
|
||||||
}
|
|
||||||
function toErrorMessage(data) {
|
|
||||||
if (typeof data === "string") {
|
|
||||||
return data;
|
|
||||||
}
|
|
||||||
if (data instanceof ArrayBuffer) {
|
|
||||||
return "Unknown error";
|
|
||||||
}
|
|
||||||
if ("message" in data) {
|
|
||||||
const suffix = "documentation_url" in data ? ` - ${data.documentation_url}` : "";
|
|
||||||
return Array.isArray(data.errors) ? `${data.message}: ${data.errors.map((v) => JSON.stringify(v)).join(", ")}${suffix}` : `${data.message}${suffix}`;
|
|
||||||
}
|
|
||||||
return `Unknown error: ${JSON.stringify(data)}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/with-defaults.js
|
|
||||||
function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
|
||||||
const endpoint2 = oldEndpoint.defaults(newDefaults);
|
|
||||||
const newApi = function(route, parameters) {
|
|
||||||
const endpointOptions = endpoint2.merge(route, parameters);
|
|
||||||
if (!endpointOptions.request || !endpointOptions.request.hook) {
|
|
||||||
return fetchWrapper(endpoint2.parse(endpointOptions));
|
|
||||||
}
|
|
||||||
const request2 = (route2, parameters2) => {
|
|
||||||
return fetchWrapper(
|
|
||||||
endpoint2.parse(endpoint2.merge(route2, parameters2))
|
|
||||||
);
|
|
||||||
};
|
|
||||||
Object.assign(request2, {
|
|
||||||
endpoint: endpoint2,
|
|
||||||
defaults: dist_bundle_withDefaults.bind(null, endpoint2)
|
|
||||||
});
|
|
||||||
return endpointOptions.request.hook(request2, endpointOptions);
|
|
||||||
};
|
|
||||||
return Object.assign(newApi, {
|
|
||||||
endpoint: endpoint2,
|
|
||||||
defaults: dist_bundle_withDefaults.bind(null, endpoint2)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/version.js
|
|
||||||
var graphql_dist_bundle_VERSION = "0.0.0-development";
|
|
||||||
|
|
||||||
// pkg/dist-src/with-defaults.js
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/graphql.js
|
|
||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/error.js
|
|
||||||
function _buildMessageForResponseErrors(data) {
|
|
||||||
return `Request failed due to following response errors:
|
|
||||||
` + data.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
||||||
}
|
|
||||||
var GraphqlResponseError = class extends Error {
|
|
||||||
constructor(request2, headers, response) {
|
|
||||||
super(_buildMessageForResponseErrors(response));
|
|
||||||
this.request = request2;
|
|
||||||
this.headers = headers;
|
|
||||||
this.response = response;
|
|
||||||
this.errors = response.errors;
|
|
||||||
this.data = response.data;
|
|
||||||
if (Error.captureStackTrace) {
|
|
||||||
Error.captureStackTrace(this, this.constructor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
name = "GraphqlResponseError";
|
|
||||||
errors;
|
|
||||||
data;
|
|
||||||
};
|
|
||||||
|
|
||||||
// pkg/dist-src/graphql.js
|
|
||||||
var NON_VARIABLE_OPTIONS = [
|
|
||||||
"method",
|
|
||||||
"baseUrl",
|
|
||||||
"url",
|
|
||||||
"headers",
|
|
||||||
"request",
|
|
||||||
"query",
|
|
||||||
"mediaType"
|
|
||||||
];
|
|
||||||
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
|
|
||||||
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
|
|
||||||
function graphql(request2, query, options) {
|
|
||||||
if (options) {
|
|
||||||
if (typeof query === "string" && "query" in options) {
|
|
||||||
return Promise.reject(
|
|
||||||
new Error(`[@octokit/graphql] "query" cannot be used as variable name`)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
for (const key in options) {
|
|
||||||
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
|
|
||||||
return Promise.reject(
|
|
||||||
new Error(
|
|
||||||
`[@octokit/graphql] "${key}" cannot be used as variable name`
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query;
|
|
||||||
const requestOptions = Object.keys(
|
|
||||||
parsedOptions
|
|
||||||
).reduce((result, key) => {
|
|
||||||
if (NON_VARIABLE_OPTIONS.includes(key)) {
|
|
||||||
result[key] = parsedOptions[key];
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
if (!result.variables) {
|
|
||||||
result.variables = {};
|
|
||||||
}
|
|
||||||
result.variables[key] = parsedOptions[key];
|
|
||||||
return result;
|
|
||||||
}, {});
|
|
||||||
const baseUrl = parsedOptions.baseUrl || request2.endpoint.DEFAULTS.baseUrl;
|
|
||||||
if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {
|
|
||||||
requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql");
|
|
||||||
}
|
|
||||||
return request2(requestOptions).then((response) => {
|
|
||||||
if (response.data.errors) {
|
|
||||||
const headers = {};
|
|
||||||
for (const key of Object.keys(response.headers)) {
|
|
||||||
headers[key] = response.headers[key];
|
|
||||||
}
|
|
||||||
throw new GraphqlResponseError(
|
|
||||||
requestOptions,
|
|
||||||
headers,
|
|
||||||
response.data
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return response.data.data;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/with-defaults.js
|
|
||||||
function graphql_dist_bundle_withDefaults(request2, newDefaults) {
|
|
||||||
const newRequest = request2.defaults(newDefaults);
|
|
||||||
const newApi = (query, options) => {
|
|
||||||
return graphql(newRequest, query, options);
|
|
||||||
};
|
|
||||||
return Object.assign(newApi, {
|
|
||||||
defaults: graphql_dist_bundle_withDefaults.bind(null, newRequest),
|
|
||||||
endpoint: newRequest.endpoint
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
var graphql2 = graphql_dist_bundle_withDefaults(request, {
|
|
||||||
headers: {
|
|
||||||
"user-agent": `octokit-graphql.js/${graphql_dist_bundle_VERSION} ${getUserAgent()}`
|
|
||||||
},
|
|
||||||
method: "POST",
|
|
||||||
url: "/graphql"
|
|
||||||
});
|
|
||||||
function withCustomRequest(customRequest) {
|
|
||||||
return graphql_dist_bundle_withDefaults(customRequest, {
|
|
||||||
method: "POST",
|
|
||||||
url: "/graphql"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/auth-token/dist-bundle/index.js
|
|
||||||
// pkg/dist-src/is-jwt.js
|
|
||||||
var b64url = "(?:[a-zA-Z0-9_-]+)";
|
|
||||||
var sep = "\\.";
|
|
||||||
var jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);
|
|
||||||
var isJWT = jwtRE.test.bind(jwtRE);
|
|
||||||
|
|
||||||
// pkg/dist-src/auth.js
|
|
||||||
async function auth(token) {
|
|
||||||
const isApp = isJWT(token);
|
|
||||||
const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
|
|
||||||
const isUserToServer = token.startsWith("ghu_");
|
|
||||||
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
||||||
return {
|
|
||||||
type: "token",
|
|
||||||
token,
|
|
||||||
tokenType
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/with-authorization-prefix.js
|
|
||||||
function withAuthorizationPrefix(token) {
|
|
||||||
if (token.split(/\./).length === 3) {
|
|
||||||
return `bearer ${token}`;
|
|
||||||
}
|
|
||||||
return `token ${token}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/hook.js
|
|
||||||
async function hook(token, request, route, parameters) {
|
|
||||||
const endpoint = request.endpoint.merge(
|
|
||||||
route,
|
|
||||||
parameters
|
|
||||||
);
|
|
||||||
endpoint.headers.authorization = withAuthorizationPrefix(token);
|
|
||||||
return request(endpoint);
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
var createTokenAuth = function createTokenAuth2(token) {
|
|
||||||
if (!token) {
|
|
||||||
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
||||||
}
|
|
||||||
if (typeof token !== "string") {
|
|
||||||
throw new Error(
|
|
||||||
"[@octokit/auth-token] Token passed to createTokenAuth is not a string"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
token = token.replace(/^(token|bearer) +/i, "");
|
|
||||||
return Object.assign(auth.bind(null, token), {
|
|
||||||
hook: hook.bind(null, token)
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
|
||||||
const version_VERSION = "6.1.3";
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const noop = () => {
|
|
||||||
};
|
|
||||||
const consoleWarn = console.warn.bind(console);
|
|
||||||
const consoleError = console.error.bind(console);
|
|
||||||
const userAgentTrail = `octokit-core.js/${version_VERSION} ${getUserAgent()}`;
|
|
||||||
class Octokit {
|
|
||||||
static VERSION = version_VERSION;
|
|
||||||
static defaults(defaults) {
|
|
||||||
const OctokitWithDefaults = class extends this {
|
|
||||||
constructor(...args) {
|
|
||||||
const options = args[0] || {};
|
|
||||||
if (typeof defaults === "function") {
|
|
||||||
super(defaults(options));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
super(
|
|
||||||
Object.assign(
|
|
||||||
{},
|
|
||||||
defaults,
|
|
||||||
options,
|
|
||||||
options.userAgent && defaults.userAgent ? {
|
|
||||||
userAgent: `${options.userAgent} ${defaults.userAgent}`
|
|
||||||
} : null
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return OctokitWithDefaults;
|
|
||||||
}
|
|
||||||
static plugins = [];
|
|
||||||
/**
|
|
||||||
* Attach a plugin (or many) to your Octokit instance.
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
|
|
||||||
*/
|
|
||||||
static plugin(...newPlugins) {
|
|
||||||
const currentPlugins = this.plugins;
|
|
||||||
const NewOctokit = class extends this {
|
|
||||||
static plugins = currentPlugins.concat(
|
|
||||||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
|
|
||||||
);
|
|
||||||
};
|
|
||||||
return NewOctokit;
|
|
||||||
}
|
|
||||||
constructor(options = {}) {
|
|
||||||
const hook = new before_after_hook.Collection();
|
|
||||||
const requestDefaults = {
|
|
||||||
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
||||||
headers: {},
|
|
||||||
request: Object.assign({}, options.request, {
|
|
||||||
// @ts-ignore internal usage only, no need to type
|
|
||||||
hook: hook.bind(null, "request")
|
|
||||||
}),
|
|
||||||
mediaType: {
|
|
||||||
previews: [],
|
|
||||||
format: ""
|
|
||||||
}
|
|
||||||
};
|
|
||||||
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
|
|
||||||
if (options.baseUrl) {
|
|
||||||
requestDefaults.baseUrl = options.baseUrl;
|
|
||||||
}
|
|
||||||
if (options.previews) {
|
|
||||||
requestDefaults.mediaType.previews = options.previews;
|
|
||||||
}
|
|
||||||
if (options.timeZone) {
|
|
||||||
requestDefaults.headers["time-zone"] = options.timeZone;
|
|
||||||
}
|
|
||||||
this.request = request.defaults(requestDefaults);
|
|
||||||
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
||||||
this.log = Object.assign(
|
|
||||||
{
|
|
||||||
debug: noop,
|
|
||||||
info: noop,
|
|
||||||
warn: consoleWarn,
|
|
||||||
error: consoleError
|
|
||||||
},
|
|
||||||
options.log
|
|
||||||
);
|
|
||||||
this.hook = hook;
|
|
||||||
if (!options.authStrategy) {
|
|
||||||
if (!options.auth) {
|
|
||||||
this.auth = async () => ({
|
|
||||||
type: "unauthenticated"
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
const auth = createTokenAuth(options.auth);
|
|
||||||
hook.wrap("request", auth.hook);
|
|
||||||
this.auth = auth;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
const { authStrategy, ...otherOptions } = options;
|
|
||||||
const auth = authStrategy(
|
|
||||||
Object.assign(
|
|
||||||
{
|
|
||||||
request: this.request,
|
|
||||||
log: this.log,
|
|
||||||
// we pass the current octokit instance as well as its constructor options
|
|
||||||
// to allow for authentication strategies that return a new octokit instance
|
|
||||||
// that shares the same internal state as the current one. The original
|
|
||||||
// requirement for this was the "event-octokit" authentication strategy
|
|
||||||
// of https://github.com/probot/octokit-auth-probot.
|
|
||||||
octokit: this,
|
|
||||||
octokitOptions: otherOptions
|
|
||||||
},
|
|
||||||
options.auth
|
|
||||||
)
|
|
||||||
);
|
|
||||||
hook.wrap("request", auth.hook);
|
|
||||||
this.auth = auth;
|
|
||||||
}
|
|
||||||
const classConstructor = this.constructor;
|
|
||||||
for (let i = 0; i < classConstructor.plugins.length; ++i) {
|
|
||||||
Object.assign(this, classConstructor.plugins[i](this, options));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// assigned during constructor
|
|
||||||
request;
|
|
||||||
graphql;
|
|
||||||
log;
|
|
||||||
hook;
|
|
||||||
// TODO: type `octokit.auth` based on passed options.authStrategy
|
|
||||||
auth;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 3779:
|
|
||||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
__nccwpck_require__.r(__webpack_exports__);
|
|
||||||
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
|
||||||
/* harmony export */ composePaginateRest: () => (/* binding */ composePaginateRest),
|
|
||||||
/* harmony export */ isPaginatingEndpoint: () => (/* binding */ isPaginatingEndpoint),
|
|
||||||
/* harmony export */ paginateRest: () => (/* binding */ paginateRest),
|
|
||||||
/* harmony export */ paginatingEndpoints: () => (/* binding */ paginatingEndpoints)
|
|
||||||
/* harmony export */ });
|
|
||||||
// pkg/dist-src/version.js
|
|
||||||
var VERSION = "0.0.0-development";
|
|
||||||
|
|
||||||
// pkg/dist-src/normalize-paginated-list-response.js
|
|
||||||
function normalizePaginatedListResponse(response) {
|
|
||||||
if (!response.data) {
|
|
||||||
return {
|
|
||||||
...response,
|
|
||||||
data: []
|
|
||||||
};
|
|
||||||
}
|
|
||||||
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
||||||
if (!responseNeedsNormalization) return response;
|
|
||||||
const incompleteResults = response.data.incomplete_results;
|
|
||||||
const repositorySelection = response.data.repository_selection;
|
|
||||||
const totalCount = response.data.total_count;
|
|
||||||
delete response.data.incomplete_results;
|
|
||||||
delete response.data.repository_selection;
|
|
||||||
delete response.data.total_count;
|
|
||||||
const namespaceKey = Object.keys(response.data)[0];
|
|
||||||
const data = response.data[namespaceKey];
|
|
||||||
response.data = data;
|
|
||||||
if (typeof incompleteResults !== "undefined") {
|
|
||||||
response.data.incomplete_results = incompleteResults;
|
|
||||||
}
|
|
||||||
if (typeof repositorySelection !== "undefined") {
|
|
||||||
response.data.repository_selection = repositorySelection;
|
|
||||||
}
|
|
||||||
response.data.total_count = totalCount;
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/iterator.js
|
|
||||||
function iterator(octokit, route, parameters) {
|
|
||||||
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
||||||
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
||||||
const method = options.method;
|
|
||||||
const headers = options.headers;
|
|
||||||
let url = options.url;
|
|
||||||
return {
|
|
||||||
[Symbol.asyncIterator]: () => ({
|
|
||||||
async next() {
|
|
||||||
if (!url) return { done: true };
|
|
||||||
try {
|
|
||||||
const response = await requestMethod({ method, url, headers });
|
|
||||||
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
||||||
url = ((normalizedResponse.headers.link || "").match(
|
|
||||||
/<([^>]+)>;\s*rel="next"/
|
|
||||||
) || [])[1];
|
|
||||||
return { value: normalizedResponse };
|
|
||||||
} catch (error) {
|
|
||||||
if (error.status !== 409) throw error;
|
|
||||||
url = "";
|
|
||||||
return {
|
|
||||||
value: {
|
|
||||||
status: 200,
|
|
||||||
headers: {},
|
|
||||||
data: []
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/paginate.js
|
|
||||||
function paginate(octokit, route, parameters, mapFn) {
|
|
||||||
if (typeof parameters === "function") {
|
|
||||||
mapFn = parameters;
|
|
||||||
parameters = void 0;
|
|
||||||
}
|
|
||||||
return gather(
|
|
||||||
octokit,
|
|
||||||
[],
|
|
||||||
iterator(octokit, route, parameters)[Symbol.asyncIterator](),
|
|
||||||
mapFn
|
|
||||||
);
|
|
||||||
}
|
|
||||||
function gather(octokit, results, iterator2, mapFn) {
|
|
||||||
return iterator2.next().then((result) => {
|
|
||||||
if (result.done) {
|
|
||||||
return results;
|
|
||||||
}
|
|
||||||
let earlyExit = false;
|
|
||||||
function done() {
|
|
||||||
earlyExit = true;
|
|
||||||
}
|
|
||||||
results = results.concat(
|
|
||||||
mapFn ? mapFn(result.value, done) : result.value.data
|
|
||||||
);
|
|
||||||
if (earlyExit) {
|
|
||||||
return results;
|
|
||||||
}
|
|
||||||
return gather(octokit, results, iterator2, mapFn);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/compose-paginate.js
|
|
||||||
var composePaginateRest = Object.assign(paginate, {
|
|
||||||
iterator
|
|
||||||
});
|
|
||||||
|
|
||||||
// pkg/dist-src/generated/paginating-endpoints.js
|
|
||||||
var paginatingEndpoints = [
|
|
||||||
"GET /advisories",
|
|
||||||
"GET /app/hook/deliveries",
|
|
||||||
"GET /app/installation-requests",
|
|
||||||
"GET /app/installations",
|
|
||||||
"GET /assignments/{assignment_id}/accepted_assignments",
|
|
||||||
"GET /classrooms",
|
|
||||||
"GET /classrooms/{classroom_id}/assignments",
|
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations",
|
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
|
||||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
|
||||||
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
|
||||||
"GET /events",
|
|
||||||
"GET /gists",
|
|
||||||
"GET /gists/public",
|
|
||||||
"GET /gists/starred",
|
|
||||||
"GET /gists/{gist_id}/comments",
|
|
||||||
"GET /gists/{gist_id}/commits",
|
|
||||||
"GET /gists/{gist_id}/forks",
|
|
||||||
"GET /installation/repositories",
|
|
||||||
"GET /issues",
|
|
||||||
"GET /licenses",
|
|
||||||
"GET /marketplace_listing/plans",
|
|
||||||
"GET /marketplace_listing/plans/{plan_id}/accounts",
|
|
||||||
"GET /marketplace_listing/stubbed/plans",
|
|
||||||
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
|
|
||||||
"GET /networks/{owner}/{repo}/events",
|
|
||||||
"GET /notifications",
|
|
||||||
"GET /organizations",
|
|
||||||
"GET /orgs/{org}/actions/cache/usage-by-repository",
|
|
||||||
"GET /orgs/{org}/actions/permissions/repositories",
|
|
||||||
"GET /orgs/{org}/actions/runner-groups",
|
|
||||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
|
|
||||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners",
|
|
||||||
"GET /orgs/{org}/actions/runners",
|
|
||||||
"GET /orgs/{org}/actions/secrets",
|
|
||||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
|
||||||
"GET /orgs/{org}/actions/variables",
|
|
||||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
|
||||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
|
||||||
"GET /orgs/{org}/blocks",
|
|
||||||
"GET /orgs/{org}/code-scanning/alerts",
|
|
||||||
"GET /orgs/{org}/code-security/configurations",
|
|
||||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories",
|
|
||||||
"GET /orgs/{org}/codespaces",
|
|
||||||
"GET /orgs/{org}/codespaces/secrets",
|
|
||||||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories",
|
|
||||||
"GET /orgs/{org}/copilot/billing/seats",
|
|
||||||
"GET /orgs/{org}/copilot/metrics",
|
|
||||||
"GET /orgs/{org}/copilot/usage",
|
|
||||||
"GET /orgs/{org}/dependabot/alerts",
|
|
||||||
"GET /orgs/{org}/dependabot/secrets",
|
|
||||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
|
|
||||||
"GET /orgs/{org}/events",
|
|
||||||
"GET /orgs/{org}/failed_invitations",
|
|
||||||
"GET /orgs/{org}/hooks",
|
|
||||||
"GET /orgs/{org}/hooks/{hook_id}/deliveries",
|
|
||||||
"GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}",
|
|
||||||
"GET /orgs/{org}/insights/api/subject-stats",
|
|
||||||
"GET /orgs/{org}/insights/api/user-stats/{user_id}",
|
|
||||||
"GET /orgs/{org}/installations",
|
|
||||||
"GET /orgs/{org}/invitations",
|
|
||||||
"GET /orgs/{org}/invitations/{invitation_id}/teams",
|
|
||||||
"GET /orgs/{org}/issues",
|
|
||||||
"GET /orgs/{org}/members",
|
|
||||||
"GET /orgs/{org}/members/{username}/codespaces",
|
|
||||||
"GET /orgs/{org}/migrations",
|
|
||||||
"GET /orgs/{org}/migrations/{migration_id}/repositories",
|
|
||||||
"GET /orgs/{org}/organization-roles/{role_id}/teams",
|
|
||||||
"GET /orgs/{org}/organization-roles/{role_id}/users",
|
|
||||||
"GET /orgs/{org}/outside_collaborators",
|
|
||||||
"GET /orgs/{org}/packages",
|
|
||||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
||||||
"GET /orgs/{org}/personal-access-token-requests",
|
|
||||||
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories",
|
|
||||||
"GET /orgs/{org}/personal-access-tokens",
|
|
||||||
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories",
|
|
||||||
"GET /orgs/{org}/private-registries",
|
|
||||||
"GET /orgs/{org}/projects",
|
|
||||||
"GET /orgs/{org}/properties/values",
|
|
||||||
"GET /orgs/{org}/public_members",
|
|
||||||
"GET /orgs/{org}/repos",
|
|
||||||
"GET /orgs/{org}/rulesets",
|
|
||||||
"GET /orgs/{org}/rulesets/rule-suites",
|
|
||||||
"GET /orgs/{org}/secret-scanning/alerts",
|
|
||||||
"GET /orgs/{org}/security-advisories",
|
|
||||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
|
||||||
"GET /orgs/{org}/team/{team_slug}/copilot/usage",
|
|
||||||
"GET /orgs/{org}/teams",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/invitations",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/members",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/projects",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
|
||||||
"GET /projects/columns/{column_id}/cards",
|
|
||||||
"GET /projects/{project_id}/collaborators",
|
|
||||||
"GET /projects/{project_id}/columns",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/caches",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/organization-variables",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runners",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/secrets",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/variables",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/workflows",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
|
|
||||||
"GET /repos/{owner}/{repo}/activity",
|
|
||||||
"GET /repos/{owner}/{repo}/assignees",
|
|
||||||
"GET /repos/{owner}/{repo}/attestations/{subject_digest}",
|
|
||||||
"GET /repos/{owner}/{repo}/branches",
|
|
||||||
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
|
|
||||||
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/alerts",
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/analyses",
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces",
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/devcontainers",
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/secrets",
|
|
||||||
"GET /repos/{owner}/{repo}/collaborators",
|
|
||||||
"GET /repos/{owner}/{repo}/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
|
|
||||||
"GET /repos/{owner}/{repo}/commits",
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{ref}/status",
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{ref}/statuses",
|
|
||||||
"GET /repos/{owner}/{repo}/contributors",
|
|
||||||
"GET /repos/{owner}/{repo}/dependabot/alerts",
|
|
||||||
"GET /repos/{owner}/{repo}/dependabot/secrets",
|
|
||||||
"GET /repos/{owner}/{repo}/deployments",
|
|
||||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
|
|
||||||
"GET /repos/{owner}/{repo}/environments",
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies",
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps",
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets",
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables",
|
|
||||||
"GET /repos/{owner}/{repo}/events",
|
|
||||||
"GET /repos/{owner}/{repo}/forks",
|
|
||||||
"GET /repos/{owner}/{repo}/hooks",
|
|
||||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
|
|
||||||
"GET /repos/{owner}/{repo}/invitations",
|
|
||||||
"GET /repos/{owner}/{repo}/issues",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/events",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/events",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues",
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
|
|
||||||
"GET /repos/{owner}/{repo}/keys",
|
|
||||||
"GET /repos/{owner}/{repo}/labels",
|
|
||||||
"GET /repos/{owner}/{repo}/milestones",
|
|
||||||
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
|
|
||||||
"GET /repos/{owner}/{repo}/notifications",
|
|
||||||
"GET /repos/{owner}/{repo}/pages/builds",
|
|
||||||
"GET /repos/{owner}/{repo}/projects",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
|
|
||||||
"GET /repos/{owner}/{repo}/releases",
|
|
||||||
"GET /repos/{owner}/{repo}/releases/{release_id}/assets",
|
|
||||||
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
|
|
||||||
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
|
|
||||||
"GET /repos/{owner}/{repo}/rulesets",
|
|
||||||
"GET /repos/{owner}/{repo}/rulesets/rule-suites",
|
|
||||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
|
|
||||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
|
|
||||||
"GET /repos/{owner}/{repo}/security-advisories",
|
|
||||||
"GET /repos/{owner}/{repo}/stargazers",
|
|
||||||
"GET /repos/{owner}/{repo}/subscribers",
|
|
||||||
"GET /repos/{owner}/{repo}/tags",
|
|
||||||
"GET /repos/{owner}/{repo}/teams",
|
|
||||||
"GET /repos/{owner}/{repo}/topics",
|
|
||||||
"GET /repositories",
|
|
||||||
"GET /search/code",
|
|
||||||
"GET /search/commits",
|
|
||||||
"GET /search/issues",
|
|
||||||
"GET /search/labels",
|
|
||||||
"GET /search/repositories",
|
|
||||||
"GET /search/topics",
|
|
||||||
"GET /search/users",
|
|
||||||
"GET /teams/{team_id}/discussions",
|
|
||||||
"GET /teams/{team_id}/discussions/{discussion_number}/comments",
|
|
||||||
"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
|
|
||||||
"GET /teams/{team_id}/discussions/{discussion_number}/reactions",
|
|
||||||
"GET /teams/{team_id}/invitations",
|
|
||||||
"GET /teams/{team_id}/members",
|
|
||||||
"GET /teams/{team_id}/projects",
|
|
||||||
"GET /teams/{team_id}/repos",
|
|
||||||
"GET /teams/{team_id}/teams",
|
|
||||||
"GET /user/blocks",
|
|
||||||
"GET /user/codespaces",
|
|
||||||
"GET /user/codespaces/secrets",
|
|
||||||
"GET /user/emails",
|
|
||||||
"GET /user/followers",
|
|
||||||
"GET /user/following",
|
|
||||||
"GET /user/gpg_keys",
|
|
||||||
"GET /user/installations",
|
|
||||||
"GET /user/installations/{installation_id}/repositories",
|
|
||||||
"GET /user/issues",
|
|
||||||
"GET /user/keys",
|
|
||||||
"GET /user/marketplace_purchases",
|
|
||||||
"GET /user/marketplace_purchases/stubbed",
|
|
||||||
"GET /user/memberships/orgs",
|
|
||||||
"GET /user/migrations",
|
|
||||||
"GET /user/migrations/{migration_id}/repositories",
|
|
||||||
"GET /user/orgs",
|
|
||||||
"GET /user/packages",
|
|
||||||
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
||||||
"GET /user/public_emails",
|
|
||||||
"GET /user/repos",
|
|
||||||
"GET /user/repository_invitations",
|
|
||||||
"GET /user/social_accounts",
|
|
||||||
"GET /user/ssh_signing_keys",
|
|
||||||
"GET /user/starred",
|
|
||||||
"GET /user/subscriptions",
|
|
||||||
"GET /user/teams",
|
|
||||||
"GET /users",
|
|
||||||
"GET /users/{username}/attestations/{subject_digest}",
|
|
||||||
"GET /users/{username}/events",
|
|
||||||
"GET /users/{username}/events/orgs/{org}",
|
|
||||||
"GET /users/{username}/events/public",
|
|
||||||
"GET /users/{username}/followers",
|
|
||||||
"GET /users/{username}/following",
|
|
||||||
"GET /users/{username}/gists",
|
|
||||||
"GET /users/{username}/gpg_keys",
|
|
||||||
"GET /users/{username}/keys",
|
|
||||||
"GET /users/{username}/orgs",
|
|
||||||
"GET /users/{username}/packages",
|
|
||||||
"GET /users/{username}/projects",
|
|
||||||
"GET /users/{username}/received_events",
|
|
||||||
"GET /users/{username}/received_events/public",
|
|
||||||
"GET /users/{username}/repos",
|
|
||||||
"GET /users/{username}/social_accounts",
|
|
||||||
"GET /users/{username}/ssh_signing_keys",
|
|
||||||
"GET /users/{username}/starred",
|
|
||||||
"GET /users/{username}/subscriptions"
|
|
||||||
];
|
|
||||||
|
|
||||||
// pkg/dist-src/paginating-endpoints.js
|
|
||||||
function isPaginatingEndpoint(arg) {
|
|
||||||
if (typeof arg === "string") {
|
|
||||||
return paginatingEndpoints.includes(arg);
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// pkg/dist-src/index.js
|
|
||||||
function paginateRest(octokit) {
|
|
||||||
return {
|
|
||||||
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
||||||
iterator: iterator.bind(null, octokit)
|
|
||||||
})
|
|
||||||
};
|
|
||||||
}
|
|
||||||
paginateRest.VERSION = VERSION;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ 9210:
|
|
||||||
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
|
||||||
|
|
||||||
"use strict";
|
|
||||||
// ESM COMPAT FLAG
|
|
||||||
__nccwpck_require__.r(__webpack_exports__);
|
|
||||||
|
|
||||||
// EXPORTS
|
|
||||||
__nccwpck_require__.d(__webpack_exports__, {
|
|
||||||
legacyRestEndpointMethods: () => (/* binding */ legacyRestEndpointMethods),
|
|
||||||
restEndpointMethods: () => (/* binding */ restEndpointMethods)
|
|
||||||
});
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
|
||||||
const VERSION = "13.3.0";
|
|
||||||
|
|
||||||
//# sourceMappingURL=version.js.map
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js
|
|
||||||
const Endpoints = {
|
|
||||||
actions: {
|
|
||||||
addCustomLabelsToSelfHostedRunnerForOrg: [
|
|
||||||
"POST /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
addCustomLabelsToSelfHostedRunnerForRepo: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
addRepoAccessToSelfHostedRunnerGroupInOrg: [
|
|
||||||
"PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
addSelectedRepoToOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
addSelectedRepoToOrgVariable: [
|
|
||||||
"PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
approveWorkflowRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"
|
|
||||||
],
|
|
||||||
cancelWorkflowRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"
|
|
||||||
],
|
|
||||||
createEnvironmentVariable: [
|
|
||||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
||||||
],
|
|
||||||
createOrUpdateEnvironmentSecret: [
|
|
||||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"],
|
|
||||||
createOrUpdateRepoSecret: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
createOrgVariable: ["POST /orgs/{org}/actions/variables"],
|
|
||||||
createRegistrationTokenForOrg: [
|
|
||||||
"POST /orgs/{org}/actions/runners/registration-token"
|
|
||||||
],
|
|
||||||
createRegistrationTokenForRepo: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runners/registration-token"
|
|
||||||
],
|
|
||||||
createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"],
|
|
||||||
createRemoveTokenForRepo: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runners/remove-token"
|
|
||||||
],
|
|
||||||
createRepoVariable: ["POST /repos/{owner}/{repo}/actions/variables"],
|
|
||||||
createWorkflowDispatch: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
|
|
||||||
],
|
|
||||||
deleteActionsCacheById: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"
|
|
||||||
],
|
|
||||||
deleteActionsCacheByKey: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"
|
|
||||||
],
|
|
||||||
deleteArtifact: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
|
||||||
],
|
|
||||||
deleteEnvironmentSecret: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
deleteEnvironmentVariable: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
||||||
],
|
|
||||||
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
|
|
||||||
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
|
|
||||||
deleteRepoSecret: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
deleteRepoVariable: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/variables/{name}"
|
|
||||||
],
|
|
||||||
deleteSelfHostedRunnerFromOrg: [
|
|
||||||
"DELETE /orgs/{org}/actions/runners/{runner_id}"
|
|
||||||
],
|
|
||||||
deleteSelfHostedRunnerFromRepo: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
||||||
],
|
|
||||||
deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
||||||
deleteWorkflowRunLogs: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
||||||
],
|
|
||||||
disableSelectedRepositoryGithubActionsOrganization: [
|
|
||||||
"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
disableWorkflow: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"
|
|
||||||
],
|
|
||||||
downloadArtifact: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"
|
|
||||||
],
|
|
||||||
downloadJobLogsForWorkflowRun: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"
|
|
||||||
],
|
|
||||||
downloadWorkflowRunAttemptLogs: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"
|
|
||||||
],
|
|
||||||
downloadWorkflowRunLogs: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"
|
|
||||||
],
|
|
||||||
enableSelectedRepositoryGithubActionsOrganization: [
|
|
||||||
"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
enableWorkflow: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"
|
|
||||||
],
|
|
||||||
forceCancelWorkflowRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"
|
|
||||||
],
|
|
||||||
generateRunnerJitconfigForOrg: [
|
|
||||||
"POST /orgs/{org}/actions/runners/generate-jitconfig"
|
|
||||||
],
|
|
||||||
generateRunnerJitconfigForRepo: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"
|
|
||||||
],
|
|
||||||
getActionsCacheList: ["GET /repos/{owner}/{repo}/actions/caches"],
|
|
||||||
getActionsCacheUsage: ["GET /repos/{owner}/{repo}/actions/cache/usage"],
|
|
||||||
getActionsCacheUsageByRepoForOrg: [
|
|
||||||
"GET /orgs/{org}/actions/cache/usage-by-repository"
|
|
||||||
],
|
|
||||||
getActionsCacheUsageForOrg: ["GET /orgs/{org}/actions/cache/usage"],
|
|
||||||
getAllowedActionsOrganization: [
|
|
||||||
"GET /orgs/{org}/actions/permissions/selected-actions"
|
|
||||||
],
|
|
||||||
getAllowedActionsRepository: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
||||||
],
|
|
||||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
|
||||||
getCustomOidcSubClaimForRepo: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
||||||
],
|
|
||||||
getEnvironmentPublicKey: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"
|
|
||||||
],
|
|
||||||
getEnvironmentSecret: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
getEnvironmentVariable: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
||||||
],
|
|
||||||
getGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
||||||
"GET /orgs/{org}/actions/permissions/workflow"
|
|
||||||
],
|
|
||||||
getGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
||||||
],
|
|
||||||
getGithubActionsPermissionsOrganization: [
|
|
||||||
"GET /orgs/{org}/actions/permissions"
|
|
||||||
],
|
|
||||||
getGithubActionsPermissionsRepository: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/permissions"
|
|
||||||
],
|
|
||||||
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
|
|
||||||
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
|
|
||||||
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
|
|
||||||
getOrgVariable: ["GET /orgs/{org}/actions/variables/{name}"],
|
|
||||||
getPendingDeploymentsForRun: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
||||||
],
|
|
||||||
getRepoPermissions: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/permissions",
|
|
||||||
{},
|
|
||||||
{ renamed: ["actions", "getGithubActionsPermissionsRepository"] }
|
|
||||||
],
|
|
||||||
getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"],
|
|
||||||
getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],
|
|
||||||
getRepoVariable: ["GET /repos/{owner}/{repo}/actions/variables/{name}"],
|
|
||||||
getReviewsForRun: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"
|
|
||||||
],
|
|
||||||
getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"],
|
|
||||||
getSelfHostedRunnerForRepo: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}"
|
|
||||||
],
|
|
||||||
getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],
|
|
||||||
getWorkflowAccessToRepository: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/permissions/access"
|
|
||||||
],
|
|
||||||
getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],
|
|
||||||
getWorkflowRunAttempt: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"
|
|
||||||
],
|
|
||||||
getWorkflowRunUsage: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"
|
|
||||||
],
|
|
||||||
getWorkflowUsage: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
|
||||||
],
|
|
||||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
|
||||||
listEnvironmentSecrets: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
|
||||||
],
|
|
||||||
listEnvironmentVariables: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
|
|
||||||
],
|
|
||||||
listJobsForWorkflowRun: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
|
|
||||||
],
|
|
||||||
listJobsForWorkflowRunAttempt: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"
|
|
||||||
],
|
|
||||||
listLabelsForSelfHostedRunnerForOrg: [
|
|
||||||
"GET /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
listLabelsForSelfHostedRunnerForRepo: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
listOrgSecrets: ["GET /orgs/{org}/actions/secrets"],
|
|
||||||
listOrgVariables: ["GET /orgs/{org}/actions/variables"],
|
|
||||||
listRepoOrganizationSecrets: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/organization-secrets"
|
|
||||||
],
|
|
||||||
listRepoOrganizationVariables: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/organization-variables"
|
|
||||||
],
|
|
||||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"],
|
|
||||||
listRepoVariables: ["GET /repos/{owner}/{repo}/actions/variables"],
|
|
||||||
listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"],
|
|
||||||
listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"],
|
|
||||||
listRunnerApplicationsForRepo: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runners/downloads"
|
|
||||||
],
|
|
||||||
listSelectedReposForOrgSecret: [
|
|
||||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
listSelectedReposForOrgVariable: [
|
|
||||||
"GET /orgs/{org}/actions/variables/{name}/repositories"
|
|
||||||
],
|
|
||||||
listSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
||||||
"GET /orgs/{org}/actions/permissions/repositories"
|
|
||||||
],
|
|
||||||
listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"],
|
|
||||||
listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"],
|
|
||||||
listWorkflowRunArtifacts: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"
|
|
||||||
],
|
|
||||||
listWorkflowRuns: [
|
|
||||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"
|
|
||||||
],
|
|
||||||
listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"],
|
|
||||||
reRunJobForWorkflowRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"
|
|
||||||
],
|
|
||||||
reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],
|
|
||||||
reRunWorkflowFailedJobs: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"
|
|
||||||
],
|
|
||||||
removeAllCustomLabelsFromSelfHostedRunnerForOrg: [
|
|
||||||
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
removeAllCustomLabelsFromSelfHostedRunnerForRepo: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
removeCustomLabelFromSelfHostedRunnerForOrg: [
|
|
||||||
"DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"
|
|
||||||
],
|
|
||||||
removeCustomLabelFromSelfHostedRunnerForRepo: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"
|
|
||||||
],
|
|
||||||
removeSelectedRepoFromOrgSecret: [
|
|
||||||
"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
removeSelectedRepoFromOrgVariable: [
|
|
||||||
"DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
reviewCustomGatesForRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"
|
|
||||||
],
|
|
||||||
reviewPendingDeploymentsForRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"
|
|
||||||
],
|
|
||||||
setAllowedActionsOrganization: [
|
|
||||||
"PUT /orgs/{org}/actions/permissions/selected-actions"
|
|
||||||
],
|
|
||||||
setAllowedActionsRepository: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
|
||||||
],
|
|
||||||
setCustomLabelsForSelfHostedRunnerForOrg: [
|
|
||||||
"PUT /orgs/{org}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
setCustomLabelsForSelfHostedRunnerForRepo: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"
|
|
||||||
],
|
|
||||||
setCustomOidcSubClaimForRepo: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
|
||||||
],
|
|
||||||
setGithubActionsDefaultWorkflowPermissionsOrganization: [
|
|
||||||
"PUT /orgs/{org}/actions/permissions/workflow"
|
|
||||||
],
|
|
||||||
setGithubActionsDefaultWorkflowPermissionsRepository: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/permissions/workflow"
|
|
||||||
],
|
|
||||||
setGithubActionsPermissionsOrganization: [
|
|
||||||
"PUT /orgs/{org}/actions/permissions"
|
|
||||||
],
|
|
||||||
setGithubActionsPermissionsRepository: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/permissions"
|
|
||||||
],
|
|
||||||
setSelectedReposForOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
setSelectedReposForOrgVariable: [
|
|
||||||
"PUT /orgs/{org}/actions/variables/{name}/repositories"
|
|
||||||
],
|
|
||||||
setSelectedRepositoriesEnabledGithubActionsOrganization: [
|
|
||||||
"PUT /orgs/{org}/actions/permissions/repositories"
|
|
||||||
],
|
|
||||||
setWorkflowAccessToRepository: [
|
|
||||||
"PUT /repos/{owner}/{repo}/actions/permissions/access"
|
|
||||||
],
|
|
||||||
updateEnvironmentVariable: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
|
|
||||||
],
|
|
||||||
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
|
|
||||||
updateRepoVariable: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
activity: {
|
|
||||||
checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"],
|
|
||||||
deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"],
|
|
||||||
deleteThreadSubscription: [
|
|
||||||
"DELETE /notifications/threads/{thread_id}/subscription"
|
|
||||||
],
|
|
||||||
getFeeds: ["GET /feeds"],
|
|
||||||
getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"],
|
|
||||||
getThread: ["GET /notifications/threads/{thread_id}"],
|
|
||||||
getThreadSubscriptionForAuthenticatedUser: [
|
|
||||||
"GET /notifications/threads/{thread_id}/subscription"
|
|
||||||
],
|
|
||||||
listEventsForAuthenticatedUser: ["GET /users/{username}/events"],
|
|
||||||
listNotificationsForAuthenticatedUser: ["GET /notifications"],
|
|
||||||
listOrgEventsForAuthenticatedUser: [
|
|
||||||
"GET /users/{username}/events/orgs/{org}"
|
|
||||||
],
|
|
||||||
listPublicEvents: ["GET /events"],
|
|
||||||
listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"],
|
|
||||||
listPublicEventsForUser: ["GET /users/{username}/events/public"],
|
|
||||||
listPublicOrgEvents: ["GET /orgs/{org}/events"],
|
|
||||||
listReceivedEventsForUser: ["GET /users/{username}/received_events"],
|
|
||||||
listReceivedPublicEventsForUser: [
|
|
||||||
"GET /users/{username}/received_events/public"
|
|
||||||
],
|
|
||||||
listRepoEvents: ["GET /repos/{owner}/{repo}/events"],
|
|
||||||
listRepoNotificationsForAuthenticatedUser: [
|
|
||||||
"GET /repos/{owner}/{repo}/notifications"
|
|
||||||
],
|
|
||||||
listReposStarredByAuthenticatedUser: ["GET /user/starred"],
|
|
||||||
listReposStarredByUser: ["GET /users/{username}/starred"],
|
|
||||||
listReposWatchedByUser: ["GET /users/{username}/subscriptions"],
|
|
||||||
listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"],
|
|
||||||
listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"],
|
|
||||||
listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"],
|
|
||||||
markNotificationsAsRead: ["PUT /notifications"],
|
|
||||||
markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"],
|
|
||||||
markThreadAsDone: ["DELETE /notifications/threads/{thread_id}"],
|
|
||||||
markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"],
|
|
||||||
setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"],
|
|
||||||
setThreadSubscription: [
|
|
||||||
"PUT /notifications/threads/{thread_id}/subscription"
|
|
||||||
],
|
|
||||||
starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"],
|
|
||||||
unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"]
|
|
||||||
},
|
|
||||||
apps: {
|
|
||||||
addRepoToInstallation: [
|
|
||||||
"PUT /user/installations/{installation_id}/repositories/{repository_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["apps", "addRepoToInstallationForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
addRepoToInstallationForAuthenticatedUser: [
|
|
||||||
"PUT /user/installations/{installation_id}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
checkToken: ["POST /applications/{client_id}/token"],
|
|
||||||
createFromManifest: ["POST /app-manifests/{code}/conversions"],
|
|
||||||
createInstallationAccessToken: [
|
|
||||||
"POST /app/installations/{installation_id}/access_tokens"
|
|
||||||
],
|
|
||||||
deleteAuthorization: ["DELETE /applications/{client_id}/grant"],
|
|
||||||
deleteInstallation: ["DELETE /app/installations/{installation_id}"],
|
|
||||||
deleteToken: ["DELETE /applications/{client_id}/token"],
|
|
||||||
getAuthenticated: ["GET /app"],
|
|
||||||
getBySlug: ["GET /apps/{app_slug}"],
|
|
||||||
getInstallation: ["GET /app/installations/{installation_id}"],
|
|
||||||
getOrgInstallation: ["GET /orgs/{org}/installation"],
|
|
||||||
getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"],
|
|
||||||
getSubscriptionPlanForAccount: [
|
|
||||||
"GET /marketplace_listing/accounts/{account_id}"
|
|
||||||
],
|
|
||||||
getSubscriptionPlanForAccountStubbed: [
|
|
||||||
"GET /marketplace_listing/stubbed/accounts/{account_id}"
|
|
||||||
],
|
|
||||||
getUserInstallation: ["GET /users/{username}/installation"],
|
|
||||||
getWebhookConfigForApp: ["GET /app/hook/config"],
|
|
||||||
getWebhookDelivery: ["GET /app/hook/deliveries/{delivery_id}"],
|
|
||||||
listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"],
|
|
||||||
listAccountsForPlanStubbed: [
|
|
||||||
"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"
|
|
||||||
],
|
|
||||||
listInstallationReposForAuthenticatedUser: [
|
|
||||||
"GET /user/installations/{installation_id}/repositories"
|
|
||||||
],
|
|
||||||
listInstallationRequestsForAuthenticatedApp: [
|
|
||||||
"GET /app/installation-requests"
|
|
||||||
],
|
|
||||||
listInstallations: ["GET /app/installations"],
|
|
||||||
listInstallationsForAuthenticatedUser: ["GET /user/installations"],
|
|
||||||
listPlans: ["GET /marketplace_listing/plans"],
|
|
||||||
listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"],
|
|
||||||
listReposAccessibleToInstallation: ["GET /installation/repositories"],
|
|
||||||
listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"],
|
|
||||||
listSubscriptionsForAuthenticatedUserStubbed: [
|
|
||||||
"GET /user/marketplace_purchases/stubbed"
|
|
||||||
],
|
|
||||||
listWebhookDeliveries: ["GET /app/hook/deliveries"],
|
|
||||||
redeliverWebhookDelivery: [
|
|
||||||
"POST /app/hook/deliveries/{delivery_id}/attempts"
|
|
||||||
],
|
|
||||||
removeRepoFromInstallation: [
|
|
||||||
"DELETE /user/installations/{installation_id}/repositories/{repository_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["apps", "removeRepoFromInstallationForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
removeRepoFromInstallationForAuthenticatedUser: [
|
|
||||||
"DELETE /user/installations/{installation_id}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
resetToken: ["PATCH /applications/{client_id}/token"],
|
|
||||||
revokeInstallationAccessToken: ["DELETE /installation/token"],
|
|
||||||
scopeToken: ["POST /applications/{client_id}/token/scoped"],
|
|
||||||
suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"],
|
|
||||||
unsuspendInstallation: [
|
|
||||||
"DELETE /app/installations/{installation_id}/suspended"
|
|
||||||
],
|
|
||||||
updateWebhookConfigForApp: ["PATCH /app/hook/config"]
|
|
||||||
},
|
|
||||||
billing: {
|
|
||||||
getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"],
|
|
||||||
getGithubActionsBillingUser: [
|
|
||||||
"GET /users/{username}/settings/billing/actions"
|
|
||||||
],
|
|
||||||
getGithubBillingUsageReportOrg: [
|
|
||||||
"GET /organizations/{org}/settings/billing/usage"
|
|
||||||
],
|
|
||||||
getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"],
|
|
||||||
getGithubPackagesBillingUser: [
|
|
||||||
"GET /users/{username}/settings/billing/packages"
|
|
||||||
],
|
|
||||||
getSharedStorageBillingOrg: [
|
|
||||||
"GET /orgs/{org}/settings/billing/shared-storage"
|
|
||||||
],
|
|
||||||
getSharedStorageBillingUser: [
|
|
||||||
"GET /users/{username}/settings/billing/shared-storage"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
checks: {
|
|
||||||
create: ["POST /repos/{owner}/{repo}/check-runs"],
|
|
||||||
createSuite: ["POST /repos/{owner}/{repo}/check-suites"],
|
|
||||||
get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],
|
|
||||||
getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],
|
|
||||||
listAnnotations: [
|
|
||||||
"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"
|
|
||||||
],
|
|
||||||
listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],
|
|
||||||
listForSuite: [
|
|
||||||
"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"
|
|
||||||
],
|
|
||||||
listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],
|
|
||||||
rerequestRun: [
|
|
||||||
"POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"
|
|
||||||
],
|
|
||||||
rerequestSuite: [
|
|
||||||
"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"
|
|
||||||
],
|
|
||||||
setSuitesPreferences: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/check-suites/preferences"
|
|
||||||
],
|
|
||||||
update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]
|
|
||||||
},
|
|
||||||
codeScanning: {
|
|
||||||
commitAutofix: [
|
|
||||||
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"
|
|
||||||
],
|
|
||||||
createAutofix: [
|
|
||||||
"POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
|
||||||
],
|
|
||||||
createVariantAnalysis: [
|
|
||||||
"POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"
|
|
||||||
],
|
|
||||||
deleteAnalysis: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"
|
|
||||||
],
|
|
||||||
deleteCodeqlDatabase: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
||||||
],
|
|
||||||
getAlert: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
|
|
||||||
{},
|
|
||||||
{ renamedParameters: { alert_id: "alert_number" } }
|
|
||||||
],
|
|
||||||
getAnalysis: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"
|
|
||||||
],
|
|
||||||
getAutofix: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"
|
|
||||||
],
|
|
||||||
getCodeqlDatabase: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"
|
|
||||||
],
|
|
||||||
getDefaultSetup: ["GET /repos/{owner}/{repo}/code-scanning/default-setup"],
|
|
||||||
getSarif: ["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],
|
|
||||||
getVariantAnalysis: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"
|
|
||||||
],
|
|
||||||
getVariantAnalysisRepoTask: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"
|
|
||||||
],
|
|
||||||
listAlertInstances: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"
|
|
||||||
],
|
|
||||||
listAlertsForOrg: ["GET /orgs/{org}/code-scanning/alerts"],
|
|
||||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"],
|
|
||||||
listAlertsInstances: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
|
|
||||||
{},
|
|
||||||
{ renamed: ["codeScanning", "listAlertInstances"] }
|
|
||||||
],
|
|
||||||
listCodeqlDatabases: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-scanning/codeql/databases"
|
|
||||||
],
|
|
||||||
listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"],
|
|
||||||
updateAlert: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"
|
|
||||||
],
|
|
||||||
updateDefaultSetup: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/code-scanning/default-setup"
|
|
||||||
],
|
|
||||||
uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"]
|
|
||||||
},
|
|
||||||
codeSecurity: {
|
|
||||||
attachConfiguration: [
|
|
||||||
"POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"
|
|
||||||
],
|
|
||||||
attachEnterpriseConfiguration: [
|
|
||||||
"POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"
|
|
||||||
],
|
|
||||||
createConfiguration: ["POST /orgs/{org}/code-security/configurations"],
|
|
||||||
createConfigurationForEnterprise: [
|
|
||||||
"POST /enterprises/{enterprise}/code-security/configurations"
|
|
||||||
],
|
|
||||||
deleteConfiguration: [
|
|
||||||
"DELETE /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
||||||
],
|
|
||||||
deleteConfigurationForEnterprise: [
|
|
||||||
"DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
||||||
],
|
|
||||||
detachConfiguration: [
|
|
||||||
"DELETE /orgs/{org}/code-security/configurations/detach"
|
|
||||||
],
|
|
||||||
getConfiguration: [
|
|
||||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
||||||
],
|
|
||||||
getConfigurationForRepository: [
|
|
||||||
"GET /repos/{owner}/{repo}/code-security-configuration"
|
|
||||||
],
|
|
||||||
getConfigurationsForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations"
|
|
||||||
],
|
|
||||||
getConfigurationsForOrg: ["GET /orgs/{org}/code-security/configurations"],
|
|
||||||
getDefaultConfigurations: [
|
|
||||||
"GET /orgs/{org}/code-security/configurations/defaults"
|
|
||||||
],
|
|
||||||
getDefaultConfigurationsForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations/defaults"
|
|
||||||
],
|
|
||||||
getRepositoriesForConfiguration: [
|
|
||||||
"GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"
|
|
||||||
],
|
|
||||||
getRepositoriesForEnterpriseConfiguration: [
|
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"
|
|
||||||
],
|
|
||||||
getSingleConfigurationForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
||||||
],
|
|
||||||
setConfigurationAsDefault: [
|
|
||||||
"PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"
|
|
||||||
],
|
|
||||||
setConfigurationAsDefaultForEnterprise: [
|
|
||||||
"PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"
|
|
||||||
],
|
|
||||||
updateConfiguration: [
|
|
||||||
"PATCH /orgs/{org}/code-security/configurations/{configuration_id}"
|
|
||||||
],
|
|
||||||
updateEnterpriseConfiguration: [
|
|
||||||
"PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
codesOfConduct: {
|
|
||||||
getAllCodesOfConduct: ["GET /codes_of_conduct"],
|
|
||||||
getConductCode: ["GET /codes_of_conduct/{key}"]
|
|
||||||
},
|
|
||||||
codespaces: {
|
|
||||||
addRepositoryForSecretForAuthenticatedUser: [
|
|
||||||
"PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
addSelectedRepoToOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
checkPermissionsForDevcontainer: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/permissions_check"
|
|
||||||
],
|
|
||||||
codespaceMachinesForAuthenticatedUser: [
|
|
||||||
"GET /user/codespaces/{codespace_name}/machines"
|
|
||||||
],
|
|
||||||
createForAuthenticatedUser: ["POST /user/codespaces"],
|
|
||||||
createOrUpdateOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
createOrUpdateRepoSecret: [
|
|
||||||
"PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
createOrUpdateSecretForAuthenticatedUser: [
|
|
||||||
"PUT /user/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
createWithPrForAuthenticatedUser: [
|
|
||||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"
|
|
||||||
],
|
|
||||||
createWithRepoForAuthenticatedUser: [
|
|
||||||
"POST /repos/{owner}/{repo}/codespaces"
|
|
||||||
],
|
|
||||||
deleteForAuthenticatedUser: ["DELETE /user/codespaces/{codespace_name}"],
|
|
||||||
deleteFromOrganization: [
|
|
||||||
"DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"
|
|
||||||
],
|
|
||||||
deleteOrgSecret: ["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
||||||
deleteRepoSecret: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
deleteSecretForAuthenticatedUser: [
|
|
||||||
"DELETE /user/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
exportForAuthenticatedUser: [
|
|
||||||
"POST /user/codespaces/{codespace_name}/exports"
|
|
||||||
],
|
|
||||||
getCodespacesForUserInOrg: [
|
|
||||||
"GET /orgs/{org}/members/{username}/codespaces"
|
|
||||||
],
|
|
||||||
getExportDetailsForAuthenticatedUser: [
|
|
||||||
"GET /user/codespaces/{codespace_name}/exports/{export_id}"
|
|
||||||
],
|
|
||||||
getForAuthenticatedUser: ["GET /user/codespaces/{codespace_name}"],
|
|
||||||
getOrgPublicKey: ["GET /orgs/{org}/codespaces/secrets/public-key"],
|
|
||||||
getOrgSecret: ["GET /orgs/{org}/codespaces/secrets/{secret_name}"],
|
|
||||||
getPublicKeyForAuthenticatedUser: [
|
|
||||||
"GET /user/codespaces/secrets/public-key"
|
|
||||||
],
|
|
||||||
getRepoPublicKey: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/secrets/public-key"
|
|
||||||
],
|
|
||||||
getRepoSecret: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
getSecretForAuthenticatedUser: [
|
|
||||||
"GET /user/codespaces/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
listDevcontainersInRepositoryForAuthenticatedUser: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/devcontainers"
|
|
||||||
],
|
|
||||||
listForAuthenticatedUser: ["GET /user/codespaces"],
|
|
||||||
listInOrganization: [
|
|
||||||
"GET /orgs/{org}/codespaces",
|
|
||||||
{},
|
|
||||||
{ renamedParameters: { org_id: "org" } }
|
|
||||||
],
|
|
||||||
listInRepositoryForAuthenticatedUser: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces"
|
|
||||||
],
|
|
||||||
listOrgSecrets: ["GET /orgs/{org}/codespaces/secrets"],
|
|
||||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/codespaces/secrets"],
|
|
||||||
listRepositoriesForSecretForAuthenticatedUser: [
|
|
||||||
"GET /user/codespaces/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
listSecretsForAuthenticatedUser: ["GET /user/codespaces/secrets"],
|
|
||||||
listSelectedReposForOrgSecret: [
|
|
||||||
"GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
preFlightWithRepoForAuthenticatedUser: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/new"
|
|
||||||
],
|
|
||||||
publishForAuthenticatedUser: [
|
|
||||||
"POST /user/codespaces/{codespace_name}/publish"
|
|
||||||
],
|
|
||||||
removeRepositoryForSecretForAuthenticatedUser: [
|
|
||||||
"DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
removeSelectedRepoFromOrgSecret: [
|
|
||||||
"DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
repoMachinesForAuthenticatedUser: [
|
|
||||||
"GET /repos/{owner}/{repo}/codespaces/machines"
|
|
||||||
],
|
|
||||||
setRepositoriesForSecretForAuthenticatedUser: [
|
|
||||||
"PUT /user/codespaces/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
setSelectedReposForOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
startForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/start"],
|
|
||||||
stopForAuthenticatedUser: ["POST /user/codespaces/{codespace_name}/stop"],
|
|
||||||
stopInOrganization: [
|
|
||||||
"POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"
|
|
||||||
],
|
|
||||||
updateForAuthenticatedUser: ["PATCH /user/codespaces/{codespace_name}"]
|
|
||||||
},
|
|
||||||
copilot: {
|
|
||||||
addCopilotSeatsForTeams: [
|
|
||||||
"POST /orgs/{org}/copilot/billing/selected_teams"
|
|
||||||
],
|
|
||||||
addCopilotSeatsForUsers: [
|
|
||||||
"POST /orgs/{org}/copilot/billing/selected_users"
|
|
||||||
],
|
|
||||||
cancelCopilotSeatAssignmentForTeams: [
|
|
||||||
"DELETE /orgs/{org}/copilot/billing/selected_teams"
|
|
||||||
],
|
|
||||||
cancelCopilotSeatAssignmentForUsers: [
|
|
||||||
"DELETE /orgs/{org}/copilot/billing/selected_users"
|
|
||||||
],
|
|
||||||
copilotMetricsForOrganization: ["GET /orgs/{org}/copilot/metrics"],
|
|
||||||
copilotMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],
|
|
||||||
getCopilotOrganizationDetails: ["GET /orgs/{org}/copilot/billing"],
|
|
||||||
getCopilotSeatDetailsForUser: [
|
|
||||||
"GET /orgs/{org}/members/{username}/copilot"
|
|
||||||
],
|
|
||||||
listCopilotSeats: ["GET /orgs/{org}/copilot/billing/seats"],
|
|
||||||
usageMetricsForOrg: ["GET /orgs/{org}/copilot/usage"],
|
|
||||||
usageMetricsForTeam: ["GET /orgs/{org}/team/{team_slug}/copilot/usage"]
|
|
||||||
},
|
|
||||||
dependabot: {
|
|
||||||
addSelectedRepoToOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
createOrUpdateOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
createOrUpdateRepoSecret: [
|
|
||||||
"PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
deleteOrgSecret: ["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
||||||
deleteRepoSecret: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
getAlert: ["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],
|
|
||||||
getOrgPublicKey: ["GET /orgs/{org}/dependabot/secrets/public-key"],
|
|
||||||
getOrgSecret: ["GET /orgs/{org}/dependabot/secrets/{secret_name}"],
|
|
||||||
getRepoPublicKey: [
|
|
||||||
"GET /repos/{owner}/{repo}/dependabot/secrets/public-key"
|
|
||||||
],
|
|
||||||
getRepoSecret: [
|
|
||||||
"GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"
|
|
||||||
],
|
|
||||||
listAlertsForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/dependabot/alerts"
|
|
||||||
],
|
|
||||||
listAlertsForOrg: ["GET /orgs/{org}/dependabot/alerts"],
|
|
||||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/dependabot/alerts"],
|
|
||||||
listOrgSecrets: ["GET /orgs/{org}/dependabot/secrets"],
|
|
||||||
listRepoSecrets: ["GET /repos/{owner}/{repo}/dependabot/secrets"],
|
|
||||||
listSelectedReposForOrgSecret: [
|
|
||||||
"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
removeSelectedRepoFromOrgSecret: [
|
|
||||||
"DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"
|
|
||||||
],
|
|
||||||
setSelectedReposForOrgSecret: [
|
|
||||||
"PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"
|
|
||||||
],
|
|
||||||
updateAlert: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
dependencyGraph: {
|
|
||||||
createRepositorySnapshot: [
|
|
||||||
"POST /repos/{owner}/{repo}/dependency-graph/snapshots"
|
|
||||||
],
|
|
||||||
diffRange: [
|
|
||||||
"GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"
|
|
||||||
],
|
|
||||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
|
||||||
},
|
|
||||||
emojis: { get: ["GET /emojis"] },
|
|
||||||
gists: {
|
|
||||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
|
||||||
create: ["POST /gists"],
|
|
||||||
createComment: ["POST /gists/{gist_id}/comments"],
|
|
||||||
delete: ["DELETE /gists/{gist_id}"],
|
|
||||||
deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"],
|
|
||||||
fork: ["POST /gists/{gist_id}/forks"],
|
|
||||||
get: ["GET /gists/{gist_id}"],
|
|
||||||
getComment: ["GET /gists/{gist_id}/comments/{comment_id}"],
|
|
||||||
getRevision: ["GET /gists/{gist_id}/{sha}"],
|
|
||||||
list: ["GET /gists"],
|
|
||||||
listComments: ["GET /gists/{gist_id}/comments"],
|
|
||||||
listCommits: ["GET /gists/{gist_id}/commits"],
|
|
||||||
listForUser: ["GET /users/{username}/gists"],
|
|
||||||
listForks: ["GET /gists/{gist_id}/forks"],
|
|
||||||
listPublic: ["GET /gists/public"],
|
|
||||||
listStarred: ["GET /gists/starred"],
|
|
||||||
star: ["PUT /gists/{gist_id}/star"],
|
|
||||||
unstar: ["DELETE /gists/{gist_id}/star"],
|
|
||||||
update: ["PATCH /gists/{gist_id}"],
|
|
||||||
updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"]
|
|
||||||
},
|
|
||||||
git: {
|
|
||||||
createBlob: ["POST /repos/{owner}/{repo}/git/blobs"],
|
|
||||||
createCommit: ["POST /repos/{owner}/{repo}/git/commits"],
|
|
||||||
createRef: ["POST /repos/{owner}/{repo}/git/refs"],
|
|
||||||
createTag: ["POST /repos/{owner}/{repo}/git/tags"],
|
|
||||||
createTree: ["POST /repos/{owner}/{repo}/git/trees"],
|
|
||||||
deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],
|
|
||||||
getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],
|
|
||||||
getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],
|
|
||||||
getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"],
|
|
||||||
getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],
|
|
||||||
getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],
|
|
||||||
listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],
|
|
||||||
updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]
|
|
||||||
},
|
|
||||||
gitignore: {
|
|
||||||
getAllTemplates: ["GET /gitignore/templates"],
|
|
||||||
getTemplate: ["GET /gitignore/templates/{name}"]
|
|
||||||
},
|
|
||||||
interactions: {
|
|
||||||
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
|
|
||||||
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
|
|
||||||
getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"],
|
|
||||||
getRestrictionsForYourPublicRepos: [
|
|
||||||
"GET /user/interaction-limits",
|
|
||||||
{},
|
|
||||||
{ renamed: ["interactions", "getRestrictionsForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
removeRestrictionsForAuthenticatedUser: ["DELETE /user/interaction-limits"],
|
|
||||||
removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"],
|
|
||||||
removeRestrictionsForRepo: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/interaction-limits"
|
|
||||||
],
|
|
||||||
removeRestrictionsForYourPublicRepos: [
|
|
||||||
"DELETE /user/interaction-limits",
|
|
||||||
{},
|
|
||||||
{ renamed: ["interactions", "removeRestrictionsForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
setRestrictionsForAuthenticatedUser: ["PUT /user/interaction-limits"],
|
|
||||||
setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"],
|
|
||||||
setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"],
|
|
||||||
setRestrictionsForYourPublicRepos: [
|
|
||||||
"PUT /user/interaction-limits",
|
|
||||||
{},
|
|
||||||
{ renamed: ["interactions", "setRestrictionsForAuthenticatedUser"] }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
issues: {
|
|
||||||
addAssignees: [
|
|
||||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
||||||
],
|
|
||||||
addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
||||||
addSubIssue: [
|
|
||||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
||||||
],
|
|
||||||
checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"],
|
|
||||||
checkUserCanBeAssignedToIssue: [
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"
|
|
||||||
],
|
|
||||||
create: ["POST /repos/{owner}/{repo}/issues"],
|
|
||||||
createComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/comments"
|
|
||||||
],
|
|
||||||
createLabel: ["POST /repos/{owner}/{repo}/labels"],
|
|
||||||
createMilestone: ["POST /repos/{owner}/{repo}/milestones"],
|
|
||||||
deleteComment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"
|
|
||||||
],
|
|
||||||
deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"],
|
|
||||||
deleteMilestone: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
||||||
],
|
|
||||||
get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
||||||
getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
||||||
getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"],
|
|
||||||
getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"],
|
|
||||||
getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],
|
|
||||||
list: ["GET /issues"],
|
|
||||||
listAssignees: ["GET /repos/{owner}/{repo}/assignees"],
|
|
||||||
listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],
|
|
||||||
listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"],
|
|
||||||
listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],
|
|
||||||
listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"],
|
|
||||||
listEventsForTimeline: [
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"
|
|
||||||
],
|
|
||||||
listForAuthenticatedUser: ["GET /user/issues"],
|
|
||||||
listForOrg: ["GET /orgs/{org}/issues"],
|
|
||||||
listForRepo: ["GET /repos/{owner}/{repo}/issues"],
|
|
||||||
listLabelsForMilestone: [
|
|
||||||
"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"
|
|
||||||
],
|
|
||||||
listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"],
|
|
||||||
listLabelsOnIssue: [
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
||||||
],
|
|
||||||
listMilestones: ["GET /repos/{owner}/{repo}/milestones"],
|
|
||||||
listSubIssues: [
|
|
||||||
"GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"
|
|
||||||
],
|
|
||||||
lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
||||||
removeAllLabels: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"
|
|
||||||
],
|
|
||||||
removeAssignees: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"
|
|
||||||
],
|
|
||||||
removeLabel: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
|
|
||||||
],
|
|
||||||
removeSubIssue: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"
|
|
||||||
],
|
|
||||||
reprioritizeSubIssue: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"
|
|
||||||
],
|
|
||||||
setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],
|
|
||||||
unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],
|
|
||||||
update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],
|
|
||||||
updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],
|
|
||||||
updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"],
|
|
||||||
updateMilestone: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
licenses: {
|
|
||||||
get: ["GET /licenses/{license}"],
|
|
||||||
getAllCommonlyUsed: ["GET /licenses"],
|
|
||||||
getForRepo: ["GET /repos/{owner}/{repo}/license"]
|
|
||||||
},
|
|
||||||
markdown: {
|
|
||||||
render: ["POST /markdown"],
|
|
||||||
renderRaw: [
|
|
||||||
"POST /markdown/raw",
|
|
||||||
{ headers: { "content-type": "text/plain; charset=utf-8" } }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
meta: {
|
|
||||||
get: ["GET /meta"],
|
|
||||||
getAllVersions: ["GET /versions"],
|
|
||||||
getOctocat: ["GET /octocat"],
|
|
||||||
getZen: ["GET /zen"],
|
|
||||||
root: ["GET /"]
|
|
||||||
},
|
|
||||||
migrations: {
|
|
||||||
deleteArchiveForAuthenticatedUser: [
|
|
||||||
"DELETE /user/migrations/{migration_id}/archive"
|
|
||||||
],
|
|
||||||
deleteArchiveForOrg: [
|
|
||||||
"DELETE /orgs/{org}/migrations/{migration_id}/archive"
|
|
||||||
],
|
|
||||||
downloadArchiveForOrg: [
|
|
||||||
"GET /orgs/{org}/migrations/{migration_id}/archive"
|
|
||||||
],
|
|
||||||
getArchiveForAuthenticatedUser: [
|
|
||||||
"GET /user/migrations/{migration_id}/archive"
|
|
||||||
],
|
|
||||||
getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}"],
|
|
||||||
getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}"],
|
|
||||||
listForAuthenticatedUser: ["GET /user/migrations"],
|
|
||||||
listForOrg: ["GET /orgs/{org}/migrations"],
|
|
||||||
listReposForAuthenticatedUser: [
|
|
||||||
"GET /user/migrations/{migration_id}/repositories"
|
|
||||||
],
|
|
||||||
listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories"],
|
|
||||||
listReposForUser: [
|
|
||||||
"GET /user/migrations/{migration_id}/repositories",
|
|
||||||
{},
|
|
||||||
{ renamed: ["migrations", "listReposForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
startForAuthenticatedUser: ["POST /user/migrations"],
|
|
||||||
startForOrg: ["POST /orgs/{org}/migrations"],
|
|
||||||
unlockRepoForAuthenticatedUser: [
|
|
||||||
"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
||||||
],
|
|
||||||
unlockRepoForOrg: [
|
|
||||||
"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
oidc: {
|
|
||||||
getOidcCustomSubTemplateForOrg: [
|
|
||||||
"GET /orgs/{org}/actions/oidc/customization/sub"
|
|
||||||
],
|
|
||||||
updateOidcCustomSubTemplateForOrg: [
|
|
||||||
"PUT /orgs/{org}/actions/oidc/customization/sub"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
orgs: {
|
|
||||||
addSecurityManagerTeam: [
|
|
||||||
"PUT /orgs/{org}/security-managers/teams/{team_slug}",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
deprecated: "octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
assignTeamToOrgRole: [
|
|
||||||
"PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
||||||
],
|
|
||||||
assignUserToOrgRole: [
|
|
||||||
"PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
||||||
],
|
|
||||||
blockUser: ["PUT /orgs/{org}/blocks/{username}"],
|
|
||||||
cancelInvitation: ["DELETE /orgs/{org}/invitations/{invitation_id}"],
|
|
||||||
checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"],
|
|
||||||
checkMembershipForUser: ["GET /orgs/{org}/members/{username}"],
|
|
||||||
checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"],
|
|
||||||
convertMemberToOutsideCollaborator: [
|
|
||||||
"PUT /orgs/{org}/outside_collaborators/{username}"
|
|
||||||
],
|
|
||||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
|
||||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
|
||||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
|
||||||
"PATCH /orgs/{org}/properties/values"
|
|
||||||
],
|
|
||||||
createOrUpdateCustomProperty: [
|
|
||||||
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
|
||||||
],
|
|
||||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
|
||||||
delete: ["DELETE /orgs/{org}"],
|
|
||||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
|
||||||
enableOrDisableSecurityProductOnAllOrgRepos: [
|
|
||||||
"POST /orgs/{org}/{security_product}/{enablement}",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
deprecated: "octokit.rest.orgs.enableOrDisableSecurityProductOnAllOrgRepos() is deprecated, see https://docs.github.com/rest/orgs/orgs#enable-or-disable-a-security-feature-for-an-organization"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
get: ["GET /orgs/{org}"],
|
|
||||||
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
|
||||||
getCustomProperty: [
|
|
||||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
|
||||||
],
|
|
||||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
|
||||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
|
||||||
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
|
|
||||||
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
|
|
||||||
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
|
|
||||||
getWebhookDelivery: [
|
|
||||||
"GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
||||||
],
|
|
||||||
list: ["GET /organizations"],
|
|
||||||
listAppInstallations: ["GET /orgs/{org}/installations"],
|
|
||||||
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
|
||||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
|
||||||
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
||||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
|
||||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
|
||||||
listForUser: ["GET /users/{username}/orgs"],
|
|
||||||
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
|
|
||||||
listMembers: ["GET /orgs/{org}/members"],
|
|
||||||
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
|
|
||||||
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
|
|
||||||
listOrgRoleUsers: ["GET /orgs/{org}/organization-roles/{role_id}/users"],
|
|
||||||
listOrgRoles: ["GET /orgs/{org}/organization-roles"],
|
|
||||||
listOrganizationFineGrainedPermissions: [
|
|
||||||
"GET /orgs/{org}/organization-fine-grained-permissions"
|
|
||||||
],
|
|
||||||
listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"],
|
|
||||||
listPatGrantRepositories: [
|
|
||||||
"GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"
|
|
||||||
],
|
|
||||||
listPatGrantRequestRepositories: [
|
|
||||||
"GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"
|
|
||||||
],
|
|
||||||
listPatGrantRequests: ["GET /orgs/{org}/personal-access-token-requests"],
|
|
||||||
listPatGrants: ["GET /orgs/{org}/personal-access-tokens"],
|
|
||||||
listPendingInvitations: ["GET /orgs/{org}/invitations"],
|
|
||||||
listPublicMembers: ["GET /orgs/{org}/public_members"],
|
|
||||||
listSecurityManagerTeams: [
|
|
||||||
"GET /orgs/{org}/security-managers",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
deprecated: "octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
listWebhookDeliveries: ["GET /orgs/{org}/hooks/{hook_id}/deliveries"],
|
|
||||||
listWebhooks: ["GET /orgs/{org}/hooks"],
|
|
||||||
pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"],
|
|
||||||
redeliverWebhookDelivery: [
|
|
||||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
||||||
],
|
|
||||||
removeCustomProperty: [
|
|
||||||
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
|
||||||
],
|
|
||||||
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
|
||||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
|
||||||
removeOutsideCollaborator: [
|
|
||||||
"DELETE /orgs/{org}/outside_collaborators/{username}"
|
|
||||||
],
|
|
||||||
removePublicMembershipForAuthenticatedUser: [
|
|
||||||
"DELETE /orgs/{org}/public_members/{username}"
|
|
||||||
],
|
|
||||||
removeSecurityManagerTeam: [
|
|
||||||
"DELETE /orgs/{org}/security-managers/teams/{team_slug}",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
deprecated: "octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
reviewPatGrantRequest: [
|
|
||||||
"POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"
|
|
||||||
],
|
|
||||||
reviewPatGrantRequestsInBulk: [
|
|
||||||
"POST /orgs/{org}/personal-access-token-requests"
|
|
||||||
],
|
|
||||||
revokeAllOrgRolesTeam: [
|
|
||||||
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}"
|
|
||||||
],
|
|
||||||
revokeAllOrgRolesUser: [
|
|
||||||
"DELETE /orgs/{org}/organization-roles/users/{username}"
|
|
||||||
],
|
|
||||||
revokeOrgRoleTeam: [
|
|
||||||
"DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"
|
|
||||||
],
|
|
||||||
revokeOrgRoleUser: [
|
|
||||||
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
|
||||||
],
|
|
||||||
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
|
||||||
setPublicMembershipForAuthenticatedUser: [
|
|
||||||
"PUT /orgs/{org}/public_members/{username}"
|
|
||||||
],
|
|
||||||
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
|
|
||||||
update: ["PATCH /orgs/{org}"],
|
|
||||||
updateMembershipForAuthenticatedUser: [
|
|
||||||
"PATCH /user/memberships/orgs/{org}"
|
|
||||||
],
|
|
||||||
updatePatAccess: ["POST /orgs/{org}/personal-access-tokens/{pat_id}"],
|
|
||||||
updatePatAccesses: ["POST /orgs/{org}/personal-access-tokens"],
|
|
||||||
updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"],
|
|
||||||
updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"]
|
|
||||||
},
|
|
||||||
packages: {
|
|
||||||
deletePackageForAuthenticatedUser: [
|
|
||||||
"DELETE /user/packages/{package_type}/{package_name}"
|
|
||||||
],
|
|
||||||
deletePackageForOrg: [
|
|
||||||
"DELETE /orgs/{org}/packages/{package_type}/{package_name}"
|
|
||||||
],
|
|
||||||
deletePackageForUser: [
|
|
||||||
"DELETE /users/{username}/packages/{package_type}/{package_name}"
|
|
||||||
],
|
|
||||||
deletePackageVersionForAuthenticatedUser: [
|
|
||||||
"DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
||||||
],
|
|
||||||
deletePackageVersionForOrg: [
|
|
||||||
"DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
||||||
],
|
|
||||||
deletePackageVersionForUser: [
|
|
||||||
"DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
||||||
],
|
|
||||||
getAllPackageVersionsForAPackageOwnedByAnOrg: [
|
|
||||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
|
|
||||||
{},
|
|
||||||
{ renamed: ["packages", "getAllPackageVersionsForPackageOwnedByOrg"] }
|
|
||||||
],
|
|
||||||
getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser: [
|
|
||||||
"GET /user/packages/{package_type}/{package_name}/versions",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
renamed: [
|
|
||||||
"packages",
|
|
||||||
"getAllPackageVersionsForPackageOwnedByAuthenticatedUser"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
getAllPackageVersionsForPackageOwnedByAuthenticatedUser: [
|
|
||||||
"GET /user/packages/{package_type}/{package_name}/versions"
|
|
||||||
],
|
|
||||||
getAllPackageVersionsForPackageOwnedByOrg: [
|
|
||||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions"
|
|
||||||
],
|
|
||||||
getAllPackageVersionsForPackageOwnedByUser: [
|
|
||||||
"GET /users/{username}/packages/{package_type}/{package_name}/versions"
|
|
||||||
],
|
|
||||||
getPackageForAuthenticatedUser: [
|
|
||||||
"GET /user/packages/{package_type}/{package_name}"
|
|
||||||
],
|
|
||||||
getPackageForOrganization: [
|
|
||||||
"GET /orgs/{org}/packages/{package_type}/{package_name}"
|
|
||||||
],
|
|
||||||
getPackageForUser: [
|
|
||||||
"GET /users/{username}/packages/{package_type}/{package_name}"
|
|
||||||
],
|
|
||||||
getPackageVersionForAuthenticatedUser: [
|
|
||||||
"GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
||||||
],
|
|
||||||
getPackageVersionForOrganization: [
|
|
||||||
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
||||||
],
|
|
||||||
getPackageVersionForUser: [
|
|
||||||
"GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"
|
|
||||||
],
|
|
||||||
listDockerMigrationConflictingPackagesForAuthenticatedUser: [
|
|
||||||
"GET /user/docker/conflicts"
|
|
||||||
],
|
|
||||||
listDockerMigrationConflictingPackagesForOrganization: [
|
|
||||||
"GET /orgs/{org}/docker/conflicts"
|
|
||||||
],
|
|
||||||
listDockerMigrationConflictingPackagesForUser: [
|
|
||||||
"GET /users/{username}/docker/conflicts"
|
|
||||||
],
|
|
||||||
listPackagesForAuthenticatedUser: ["GET /user/packages"],
|
|
||||||
listPackagesForOrganization: ["GET /orgs/{org}/packages"],
|
|
||||||
listPackagesForUser: ["GET /users/{username}/packages"],
|
|
||||||
restorePackageForAuthenticatedUser: [
|
|
||||||
"POST /user/packages/{package_type}/{package_name}/restore{?token}"
|
|
||||||
],
|
|
||||||
restorePackageForOrg: [
|
|
||||||
"POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"
|
|
||||||
],
|
|
||||||
restorePackageForUser: [
|
|
||||||
"POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"
|
|
||||||
],
|
|
||||||
restorePackageVersionForAuthenticatedUser: [
|
|
||||||
"POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
||||||
],
|
|
||||||
restorePackageVersionForOrg: [
|
|
||||||
"POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
||||||
],
|
|
||||||
restorePackageVersionForUser: [
|
|
||||||
"POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
privateRegistries: {
|
|
||||||
createOrgPrivateRegistry: ["POST /orgs/{org}/private-registries"],
|
|
||||||
deleteOrgPrivateRegistry: [
|
|
||||||
"DELETE /orgs/{org}/private-registries/{secret_name}"
|
|
||||||
],
|
|
||||||
getOrgPrivateRegistry: ["GET /orgs/{org}/private-registries/{secret_name}"],
|
|
||||||
getOrgPublicKey: ["GET /orgs/{org}/private-registries/public-key"],
|
|
||||||
listOrgPrivateRegistries: ["GET /orgs/{org}/private-registries"],
|
|
||||||
updateOrgPrivateRegistry: [
|
|
||||||
"PATCH /orgs/{org}/private-registries/{secret_name}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
projects: {
|
|
||||||
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
|
|
||||||
createCard: ["POST /projects/columns/{column_id}/cards"],
|
|
||||||
createColumn: ["POST /projects/{project_id}/columns"],
|
|
||||||
createForAuthenticatedUser: ["POST /user/projects"],
|
|
||||||
createForOrg: ["POST /orgs/{org}/projects"],
|
|
||||||
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
|
|
||||||
delete: ["DELETE /projects/{project_id}"],
|
|
||||||
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
|
|
||||||
deleteColumn: ["DELETE /projects/columns/{column_id}"],
|
|
||||||
get: ["GET /projects/{project_id}"],
|
|
||||||
getCard: ["GET /projects/columns/cards/{card_id}"],
|
|
||||||
getColumn: ["GET /projects/columns/{column_id}"],
|
|
||||||
getPermissionForUser: [
|
|
||||||
"GET /projects/{project_id}/collaborators/{username}/permission"
|
|
||||||
],
|
|
||||||
listCards: ["GET /projects/columns/{column_id}/cards"],
|
|
||||||
listCollaborators: ["GET /projects/{project_id}/collaborators"],
|
|
||||||
listColumns: ["GET /projects/{project_id}/columns"],
|
|
||||||
listForOrg: ["GET /orgs/{org}/projects"],
|
|
||||||
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
|
|
||||||
listForUser: ["GET /users/{username}/projects"],
|
|
||||||
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
|
|
||||||
moveColumn: ["POST /projects/columns/{column_id}/moves"],
|
|
||||||
removeCollaborator: [
|
|
||||||
"DELETE /projects/{project_id}/collaborators/{username}"
|
|
||||||
],
|
|
||||||
update: ["PATCH /projects/{project_id}"],
|
|
||||||
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
|
|
||||||
updateColumn: ["PATCH /projects/columns/{column_id}"]
|
|
||||||
},
|
|
||||||
pulls: {
|
|
||||||
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
||||||
create: ["POST /repos/{owner}/{repo}/pulls"],
|
|
||||||
createReplyForReviewComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"
|
|
||||||
],
|
|
||||||
createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
||||||
createReviewComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
||||||
],
|
|
||||||
deletePendingReview: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
||||||
],
|
|
||||||
deleteReviewComment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
||||||
],
|
|
||||||
dismissReview: [
|
|
||||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"
|
|
||||||
],
|
|
||||||
get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
||||||
getReview: [
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
||||||
],
|
|
||||||
getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],
|
|
||||||
list: ["GET /repos/{owner}/{repo}/pulls"],
|
|
||||||
listCommentsForReview: [
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"
|
|
||||||
],
|
|
||||||
listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],
|
|
||||||
listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],
|
|
||||||
listRequestedReviewers: [
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
||||||
],
|
|
||||||
listReviewComments: [
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"
|
|
||||||
],
|
|
||||||
listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"],
|
|
||||||
listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],
|
|
||||||
merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
|
|
||||||
removeRequestedReviewers: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
||||||
],
|
|
||||||
requestReviewers: [
|
|
||||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"
|
|
||||||
],
|
|
||||||
submitReview: [
|
|
||||||
"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"
|
|
||||||
],
|
|
||||||
update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],
|
|
||||||
updateBranch: [
|
|
||||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"
|
|
||||||
],
|
|
||||||
updateReview: [
|
|
||||||
"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"
|
|
||||||
],
|
|
||||||
updateReviewComment: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
rateLimit: { get: ["GET /rate_limit"] },
|
|
||||||
reactions: {
|
|
||||||
createForCommitComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
||||||
],
|
|
||||||
createForIssue: [
|
|
||||||
"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"
|
|
||||||
],
|
|
||||||
createForIssueComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
||||||
],
|
|
||||||
createForPullRequestReviewComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
||||||
],
|
|
||||||
createForRelease: [
|
|
||||||
"POST /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
||||||
],
|
|
||||||
createForTeamDiscussionCommentInOrg: [
|
|
||||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
||||||
],
|
|
||||||
createForTeamDiscussionInOrg: [
|
|
||||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
||||||
],
|
|
||||||
deleteForCommitComment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
deleteForIssue: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
deleteForIssueComment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
deleteForPullRequestComment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
deleteForRelease: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
deleteForTeamDiscussion: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
deleteForTeamDiscussionComment: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"
|
|
||||||
],
|
|
||||||
listForCommitComment: [
|
|
||||||
"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"
|
|
||||||
],
|
|
||||||
listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],
|
|
||||||
listForIssueComment: [
|
|
||||||
"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"
|
|
||||||
],
|
|
||||||
listForPullRequestReviewComment: [
|
|
||||||
"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"
|
|
||||||
],
|
|
||||||
listForRelease: [
|
|
||||||
"GET /repos/{owner}/{repo}/releases/{release_id}/reactions"
|
|
||||||
],
|
|
||||||
listForTeamDiscussionCommentInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"
|
|
||||||
],
|
|
||||||
listForTeamDiscussionInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
repos: {
|
|
||||||
acceptInvitation: [
|
|
||||||
"PATCH /user/repository_invitations/{invitation_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["repos", "acceptInvitationForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
acceptInvitationForAuthenticatedUser: [
|
|
||||||
"PATCH /user/repository_invitations/{invitation_id}"
|
|
||||||
],
|
|
||||||
addAppAccessRestrictions: [
|
|
||||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
||||||
{},
|
|
||||||
{ mapToData: "apps" }
|
|
||||||
],
|
|
||||||
addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"],
|
|
||||||
addStatusCheckContexts: [
|
|
||||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
||||||
{},
|
|
||||||
{ mapToData: "contexts" }
|
|
||||||
],
|
|
||||||
addTeamAccessRestrictions: [
|
|
||||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
||||||
{},
|
|
||||||
{ mapToData: "teams" }
|
|
||||||
],
|
|
||||||
addUserAccessRestrictions: [
|
|
||||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
||||||
{},
|
|
||||||
{ mapToData: "users" }
|
|
||||||
],
|
|
||||||
cancelPagesDeployment: [
|
|
||||||
"POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"
|
|
||||||
],
|
|
||||||
checkAutomatedSecurityFixes: [
|
|
||||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
|
||||||
],
|
|
||||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
|
||||||
checkPrivateVulnerabilityReporting: [
|
|
||||||
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
||||||
],
|
|
||||||
checkVulnerabilityAlerts: [
|
|
||||||
"GET /repos/{owner}/{repo}/vulnerability-alerts"
|
|
||||||
],
|
|
||||||
codeownersErrors: ["GET /repos/{owner}/{repo}/codeowners/errors"],
|
|
||||||
compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"],
|
|
||||||
compareCommitsWithBasehead: [
|
|
||||||
"GET /repos/{owner}/{repo}/compare/{basehead}"
|
|
||||||
],
|
|
||||||
createAttestation: ["POST /repos/{owner}/{repo}/attestations"],
|
|
||||||
createAutolink: ["POST /repos/{owner}/{repo}/autolinks"],
|
|
||||||
createCommitComment: [
|
|
||||||
"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
||||||
],
|
|
||||||
createCommitSignatureProtection: [
|
|
||||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
||||||
],
|
|
||||||
createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"],
|
|
||||||
createDeployKey: ["POST /repos/{owner}/{repo}/keys"],
|
|
||||||
createDeployment: ["POST /repos/{owner}/{repo}/deployments"],
|
|
||||||
createDeploymentBranchPolicy: [
|
|
||||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
||||||
],
|
|
||||||
createDeploymentProtectionRule: [
|
|
||||||
"POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
||||||
],
|
|
||||||
createDeploymentStatus: [
|
|
||||||
"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
||||||
],
|
|
||||||
createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"],
|
|
||||||
createForAuthenticatedUser: ["POST /user/repos"],
|
|
||||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
|
||||||
createInOrg: ["POST /orgs/{org}/repos"],
|
|
||||||
createOrUpdateCustomPropertiesValues: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
||||||
],
|
|
||||||
createOrUpdateEnvironment: [
|
|
||||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
|
||||||
],
|
|
||||||
createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"],
|
|
||||||
createOrgRuleset: ["POST /orgs/{org}/rulesets"],
|
|
||||||
createPagesDeployment: ["POST /repos/{owner}/{repo}/pages/deployments"],
|
|
||||||
createPagesSite: ["POST /repos/{owner}/{repo}/pages"],
|
|
||||||
createRelease: ["POST /repos/{owner}/{repo}/releases"],
|
|
||||||
createRepoRuleset: ["POST /repos/{owner}/{repo}/rulesets"],
|
|
||||||
createUsingTemplate: [
|
|
||||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
|
||||||
],
|
|
||||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
|
||||||
declineInvitation: [
|
|
||||||
"DELETE /user/repository_invitations/{invitation_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["repos", "declineInvitationForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
declineInvitationForAuthenticatedUser: [
|
|
||||||
"DELETE /user/repository_invitations/{invitation_id}"
|
|
||||||
],
|
|
||||||
delete: ["DELETE /repos/{owner}/{repo}"],
|
|
||||||
deleteAccessRestrictions: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
||||||
],
|
|
||||||
deleteAdminBranchProtection: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
||||||
],
|
|
||||||
deleteAnEnvironment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}"
|
|
||||||
],
|
|
||||||
deleteAutolink: ["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
||||||
deleteBranchProtection: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
||||||
],
|
|
||||||
deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
||||||
deleteCommitSignatureProtection: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
||||||
],
|
|
||||||
deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"],
|
|
||||||
deleteDeployment: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"
|
|
||||||
],
|
|
||||||
deleteDeploymentBranchPolicy: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
||||||
],
|
|
||||||
deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"],
|
|
||||||
deleteInvitation: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
||||||
],
|
|
||||||
deleteOrgRuleset: ["DELETE /orgs/{org}/rulesets/{ruleset_id}"],
|
|
||||||
deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages"],
|
|
||||||
deletePullRequestReviewProtection: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
||||||
],
|
|
||||||
deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"],
|
|
||||||
deleteReleaseAsset: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
||||||
],
|
|
||||||
deleteRepoRuleset: ["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
||||||
deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
||||||
disableAutomatedSecurityFixes: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/automated-security-fixes"
|
|
||||||
],
|
|
||||||
disableDeploymentProtectionRule: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
||||||
],
|
|
||||||
disablePrivateVulnerabilityReporting: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
||||||
],
|
|
||||||
disableVulnerabilityAlerts: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/vulnerability-alerts"
|
|
||||||
],
|
|
||||||
downloadArchive: [
|
|
||||||
"GET /repos/{owner}/{repo}/zipball/{ref}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["repos", "downloadZipballArchive"] }
|
|
||||||
],
|
|
||||||
downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"],
|
|
||||||
downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"],
|
|
||||||
enableAutomatedSecurityFixes: [
|
|
||||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
|
||||||
],
|
|
||||||
enablePrivateVulnerabilityReporting: [
|
|
||||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
|
||||||
],
|
|
||||||
enableVulnerabilityAlerts: [
|
|
||||||
"PUT /repos/{owner}/{repo}/vulnerability-alerts"
|
|
||||||
],
|
|
||||||
generateReleaseNotes: [
|
|
||||||
"POST /repos/{owner}/{repo}/releases/generate-notes"
|
|
||||||
],
|
|
||||||
get: ["GET /repos/{owner}/{repo}"],
|
|
||||||
getAccessRestrictions: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"
|
|
||||||
],
|
|
||||||
getAdminBranchProtection: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
||||||
],
|
|
||||||
getAllDeploymentProtectionRules: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"
|
|
||||||
],
|
|
||||||
getAllEnvironments: ["GET /repos/{owner}/{repo}/environments"],
|
|
||||||
getAllStatusCheckContexts: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"
|
|
||||||
],
|
|
||||||
getAllTopics: ["GET /repos/{owner}/{repo}/topics"],
|
|
||||||
getAppsWithAccessToProtectedBranch: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"
|
|
||||||
],
|
|
||||||
getAutolink: ["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],
|
|
||||||
getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"],
|
|
||||||
getBranchProtection: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
||||||
],
|
|
||||||
getBranchRules: ["GET /repos/{owner}/{repo}/rules/branches/{branch}"],
|
|
||||||
getClones: ["GET /repos/{owner}/{repo}/traffic/clones"],
|
|
||||||
getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"],
|
|
||||||
getCollaboratorPermissionLevel: [
|
|
||||||
"GET /repos/{owner}/{repo}/collaborators/{username}/permission"
|
|
||||||
],
|
|
||||||
getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"],
|
|
||||||
getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"],
|
|
||||||
getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"],
|
|
||||||
getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
||||||
getCommitSignatureProtection: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"
|
|
||||||
],
|
|
||||||
getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"],
|
|
||||||
getContent: ["GET /repos/{owner}/{repo}/contents/{path}"],
|
|
||||||
getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"],
|
|
||||||
getCustomDeploymentProtectionRule: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
|
||||||
],
|
|
||||||
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
|
||||||
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
|
||||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
|
||||||
getDeploymentBranchPolicy: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
||||||
],
|
|
||||||
getDeploymentStatus: [
|
|
||||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"
|
|
||||||
],
|
|
||||||
getEnvironment: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}"
|
|
||||||
],
|
|
||||||
getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"],
|
|
||||||
getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"],
|
|
||||||
getOrgRuleSuite: ["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],
|
|
||||||
getOrgRuleSuites: ["GET /orgs/{org}/rulesets/rule-suites"],
|
|
||||||
getOrgRuleset: ["GET /orgs/{org}/rulesets/{ruleset_id}"],
|
|
||||||
getOrgRulesets: ["GET /orgs/{org}/rulesets"],
|
|
||||||
getPages: ["GET /repos/{owner}/{repo}/pages"],
|
|
||||||
getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],
|
|
||||||
getPagesDeployment: [
|
|
||||||
"GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"
|
|
||||||
],
|
|
||||||
getPagesHealthCheck: ["GET /repos/{owner}/{repo}/pages/health"],
|
|
||||||
getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"],
|
|
||||||
getPullRequestReviewProtection: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
||||||
],
|
|
||||||
getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"],
|
|
||||||
getReadme: ["GET /repos/{owner}/{repo}/readme"],
|
|
||||||
getReadmeInDirectory: ["GET /repos/{owner}/{repo}/readme/{dir}"],
|
|
||||||
getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"],
|
|
||||||
getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],
|
|
||||||
getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"],
|
|
||||||
getRepoRuleSuite: [
|
|
||||||
"GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"
|
|
||||||
],
|
|
||||||
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
|
|
||||||
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
||||||
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
|
|
||||||
getStatusChecksProtection: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
||||||
],
|
|
||||||
getTeamsWithAccessToProtectedBranch: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"
|
|
||||||
],
|
|
||||||
getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"],
|
|
||||||
getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"],
|
|
||||||
getUsersWithAccessToProtectedBranch: [
|
|
||||||
"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"
|
|
||||||
],
|
|
||||||
getViews: ["GET /repos/{owner}/{repo}/traffic/views"],
|
|
||||||
getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
||||||
getWebhookConfigForRepo: [
|
|
||||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
||||||
],
|
|
||||||
getWebhookDelivery: [
|
|
||||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"
|
|
||||||
],
|
|
||||||
listActivities: ["GET /repos/{owner}/{repo}/activity"],
|
|
||||||
listAttestations: [
|
|
||||||
"GET /repos/{owner}/{repo}/attestations/{subject_digest}"
|
|
||||||
],
|
|
||||||
listAutolinks: ["GET /repos/{owner}/{repo}/autolinks"],
|
|
||||||
listBranches: ["GET /repos/{owner}/{repo}/branches"],
|
|
||||||
listBranchesForHeadCommit: [
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"
|
|
||||||
],
|
|
||||||
listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"],
|
|
||||||
listCommentsForCommit: [
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"
|
|
||||||
],
|
|
||||||
listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"],
|
|
||||||
listCommitStatusesForRef: [
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{ref}/statuses"
|
|
||||||
],
|
|
||||||
listCommits: ["GET /repos/{owner}/{repo}/commits"],
|
|
||||||
listContributors: ["GET /repos/{owner}/{repo}/contributors"],
|
|
||||||
listCustomDeploymentRuleIntegrations: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"
|
|
||||||
],
|
|
||||||
listDeployKeys: ["GET /repos/{owner}/{repo}/keys"],
|
|
||||||
listDeploymentBranchPolicies: [
|
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"
|
|
||||||
],
|
|
||||||
listDeploymentStatuses: [
|
|
||||||
"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"
|
|
||||||
],
|
|
||||||
listDeployments: ["GET /repos/{owner}/{repo}/deployments"],
|
|
||||||
listForAuthenticatedUser: ["GET /user/repos"],
|
|
||||||
listForOrg: ["GET /orgs/{org}/repos"],
|
|
||||||
listForUser: ["GET /users/{username}/repos"],
|
|
||||||
listForks: ["GET /repos/{owner}/{repo}/forks"],
|
|
||||||
listInvitations: ["GET /repos/{owner}/{repo}/invitations"],
|
|
||||||
listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"],
|
|
||||||
listLanguages: ["GET /repos/{owner}/{repo}/languages"],
|
|
||||||
listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"],
|
|
||||||
listPublic: ["GET /repositories"],
|
|
||||||
listPullRequestsAssociatedWithCommit: [
|
|
||||||
"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"
|
|
||||||
],
|
|
||||||
listReleaseAssets: [
|
|
||||||
"GET /repos/{owner}/{repo}/releases/{release_id}/assets"
|
|
||||||
],
|
|
||||||
listReleases: ["GET /repos/{owner}/{repo}/releases"],
|
|
||||||
listTags: ["GET /repos/{owner}/{repo}/tags"],
|
|
||||||
listTeams: ["GET /repos/{owner}/{repo}/teams"],
|
|
||||||
listWebhookDeliveries: [
|
|
||||||
"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"
|
|
||||||
],
|
|
||||||
listWebhooks: ["GET /repos/{owner}/{repo}/hooks"],
|
|
||||||
merge: ["POST /repos/{owner}/{repo}/merges"],
|
|
||||||
mergeUpstream: ["POST /repos/{owner}/{repo}/merge-upstream"],
|
|
||||||
pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],
|
|
||||||
redeliverWebhookDelivery: [
|
|
||||||
"POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
|
||||||
],
|
|
||||||
removeAppAccessRestrictions: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
||||||
{},
|
|
||||||
{ mapToData: "apps" }
|
|
||||||
],
|
|
||||||
removeCollaborator: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/collaborators/{username}"
|
|
||||||
],
|
|
||||||
removeStatusCheckContexts: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
||||||
{},
|
|
||||||
{ mapToData: "contexts" }
|
|
||||||
],
|
|
||||||
removeStatusCheckProtection: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
||||||
],
|
|
||||||
removeTeamAccessRestrictions: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
||||||
{},
|
|
||||||
{ mapToData: "teams" }
|
|
||||||
],
|
|
||||||
removeUserAccessRestrictions: [
|
|
||||||
"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
||||||
{},
|
|
||||||
{ mapToData: "users" }
|
|
||||||
],
|
|
||||||
renameBranch: ["POST /repos/{owner}/{repo}/branches/{branch}/rename"],
|
|
||||||
replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics"],
|
|
||||||
requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"],
|
|
||||||
setAdminBranchProtection: [
|
|
||||||
"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
|
|
||||||
],
|
|
||||||
setAppAccessRestrictions: [
|
|
||||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
|
|
||||||
{},
|
|
||||||
{ mapToData: "apps" }
|
|
||||||
],
|
|
||||||
setStatusCheckContexts: [
|
|
||||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
|
|
||||||
{},
|
|
||||||
{ mapToData: "contexts" }
|
|
||||||
],
|
|
||||||
setTeamAccessRestrictions: [
|
|
||||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
|
|
||||||
{},
|
|
||||||
{ mapToData: "teams" }
|
|
||||||
],
|
|
||||||
setUserAccessRestrictions: [
|
|
||||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
|
|
||||||
{},
|
|
||||||
{ mapToData: "users" }
|
|
||||||
],
|
|
||||||
testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],
|
|
||||||
transfer: ["POST /repos/{owner}/{repo}/transfer"],
|
|
||||||
update: ["PATCH /repos/{owner}/{repo}"],
|
|
||||||
updateBranchProtection: [
|
|
||||||
"PUT /repos/{owner}/{repo}/branches/{branch}/protection"
|
|
||||||
],
|
|
||||||
updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],
|
|
||||||
updateDeploymentBranchPolicy: [
|
|
||||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"
|
|
||||||
],
|
|
||||||
updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"],
|
|
||||||
updateInvitation: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"
|
|
||||||
],
|
|
||||||
updateOrgRuleset: ["PUT /orgs/{org}/rulesets/{ruleset_id}"],
|
|
||||||
updatePullRequestReviewProtection: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"
|
|
||||||
],
|
|
||||||
updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"],
|
|
||||||
updateReleaseAsset: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"
|
|
||||||
],
|
|
||||||
updateRepoRuleset: ["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
|
|
||||||
updateStatusCheckPotection: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
|
|
||||||
{},
|
|
||||||
{ renamed: ["repos", "updateStatusCheckProtection"] }
|
|
||||||
],
|
|
||||||
updateStatusCheckProtection: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
|
|
||||||
],
|
|
||||||
updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],
|
|
||||||
updateWebhookConfigForRepo: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"
|
|
||||||
],
|
|
||||||
uploadReleaseAsset: [
|
|
||||||
"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",
|
|
||||||
{ baseUrl: "https://uploads.github.com" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
search: {
|
|
||||||
code: ["GET /search/code"],
|
|
||||||
commits: ["GET /search/commits"],
|
|
||||||
issuesAndPullRequests: ["GET /search/issues"],
|
|
||||||
labels: ["GET /search/labels"],
|
|
||||||
repos: ["GET /search/repositories"],
|
|
||||||
topics: ["GET /search/topics"],
|
|
||||||
users: ["GET /search/users"]
|
|
||||||
},
|
|
||||||
secretScanning: {
|
|
||||||
createPushProtectionBypass: [
|
|
||||||
"POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"
|
|
||||||
],
|
|
||||||
getAlert: [
|
|
||||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
||||||
],
|
|
||||||
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
|
||||||
listAlertsForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
||||||
],
|
|
||||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
|
||||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
|
||||||
listLocationsForAlert: [
|
|
||||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"
|
|
||||||
],
|
|
||||||
updateAlert: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
securityAdvisories: {
|
|
||||||
createFork: [
|
|
||||||
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"
|
|
||||||
],
|
|
||||||
createPrivateVulnerabilityReport: [
|
|
||||||
"POST /repos/{owner}/{repo}/security-advisories/reports"
|
|
||||||
],
|
|
||||||
createRepositoryAdvisory: [
|
|
||||||
"POST /repos/{owner}/{repo}/security-advisories"
|
|
||||||
],
|
|
||||||
createRepositoryAdvisoryCveRequest: [
|
|
||||||
"POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"
|
|
||||||
],
|
|
||||||
getGlobalAdvisory: ["GET /advisories/{ghsa_id}"],
|
|
||||||
getRepositoryAdvisory: [
|
|
||||||
"GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
||||||
],
|
|
||||||
listGlobalAdvisories: ["GET /advisories"],
|
|
||||||
listOrgRepositoryAdvisories: ["GET /orgs/{org}/security-advisories"],
|
|
||||||
listRepositoryAdvisories: ["GET /repos/{owner}/{repo}/security-advisories"],
|
|
||||||
updateRepositoryAdvisory: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
teams: {
|
|
||||||
addOrUpdateMembershipForUserInOrg: [
|
|
||||||
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
||||||
],
|
|
||||||
addOrUpdateProjectPermissionsInOrg: [
|
|
||||||
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
||||||
],
|
|
||||||
addOrUpdateRepoPermissionsInOrg: [
|
|
||||||
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
||||||
],
|
|
||||||
checkPermissionsForProjectInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
||||||
],
|
|
||||||
checkPermissionsForRepoInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
||||||
],
|
|
||||||
create: ["POST /orgs/{org}/teams"],
|
|
||||||
createDiscussionCommentInOrg: [
|
|
||||||
"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
||||||
],
|
|
||||||
createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"],
|
|
||||||
deleteDiscussionCommentInOrg: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
||||||
],
|
|
||||||
deleteDiscussionInOrg: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
||||||
],
|
|
||||||
deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"],
|
|
||||||
getByName: ["GET /orgs/{org}/teams/{team_slug}"],
|
|
||||||
getDiscussionCommentInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
||||||
],
|
|
||||||
getDiscussionInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
||||||
],
|
|
||||||
getMembershipForUserInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
||||||
],
|
|
||||||
list: ["GET /orgs/{org}/teams"],
|
|
||||||
listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"],
|
|
||||||
listDiscussionCommentsInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"
|
|
||||||
],
|
|
||||||
listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"],
|
|
||||||
listForAuthenticatedUser: ["GET /user/teams"],
|
|
||||||
listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"],
|
|
||||||
listPendingInvitationsInOrg: [
|
|
||||||
"GET /orgs/{org}/teams/{team_slug}/invitations"
|
|
||||||
],
|
|
||||||
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
|
|
||||||
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
|
|
||||||
removeMembershipForUserInOrg: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
|
|
||||||
],
|
|
||||||
removeProjectInOrg: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
|
|
||||||
],
|
|
||||||
removeRepoInOrg: [
|
|
||||||
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
|
|
||||||
],
|
|
||||||
updateDiscussionCommentInOrg: [
|
|
||||||
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"
|
|
||||||
],
|
|
||||||
updateDiscussionInOrg: [
|
|
||||||
"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"
|
|
||||||
],
|
|
||||||
updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"]
|
|
||||||
},
|
|
||||||
users: {
|
|
||||||
addEmailForAuthenticated: [
|
|
||||||
"POST /user/emails",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "addEmailForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
addEmailForAuthenticatedUser: ["POST /user/emails"],
|
|
||||||
addSocialAccountForAuthenticatedUser: ["POST /user/social_accounts"],
|
|
||||||
block: ["PUT /user/blocks/{username}"],
|
|
||||||
checkBlocked: ["GET /user/blocks/{username}"],
|
|
||||||
checkFollowingForUser: ["GET /users/{username}/following/{target_user}"],
|
|
||||||
checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"],
|
|
||||||
createGpgKeyForAuthenticated: [
|
|
||||||
"POST /user/gpg_keys",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "createGpgKeyForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
createGpgKeyForAuthenticatedUser: ["POST /user/gpg_keys"],
|
|
||||||
createPublicSshKeyForAuthenticated: [
|
|
||||||
"POST /user/keys",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "createPublicSshKeyForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
createPublicSshKeyForAuthenticatedUser: ["POST /user/keys"],
|
|
||||||
createSshSigningKeyForAuthenticatedUser: ["POST /user/ssh_signing_keys"],
|
|
||||||
deleteEmailForAuthenticated: [
|
|
||||||
"DELETE /user/emails",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "deleteEmailForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
deleteEmailForAuthenticatedUser: ["DELETE /user/emails"],
|
|
||||||
deleteGpgKeyForAuthenticated: [
|
|
||||||
"DELETE /user/gpg_keys/{gpg_key_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "deleteGpgKeyForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
deleteGpgKeyForAuthenticatedUser: ["DELETE /user/gpg_keys/{gpg_key_id}"],
|
|
||||||
deletePublicSshKeyForAuthenticated: [
|
|
||||||
"DELETE /user/keys/{key_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "deletePublicSshKeyForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
deletePublicSshKeyForAuthenticatedUser: ["DELETE /user/keys/{key_id}"],
|
|
||||||
deleteSocialAccountForAuthenticatedUser: ["DELETE /user/social_accounts"],
|
|
||||||
deleteSshSigningKeyForAuthenticatedUser: [
|
|
||||||
"DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
||||||
],
|
|
||||||
follow: ["PUT /user/following/{username}"],
|
|
||||||
getAuthenticated: ["GET /user"],
|
|
||||||
getById: ["GET /user/{account_id}"],
|
|
||||||
getByUsername: ["GET /users/{username}"],
|
|
||||||
getContextForUser: ["GET /users/{username}/hovercard"],
|
|
||||||
getGpgKeyForAuthenticated: [
|
|
||||||
"GET /user/gpg_keys/{gpg_key_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "getGpgKeyForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
getGpgKeyForAuthenticatedUser: ["GET /user/gpg_keys/{gpg_key_id}"],
|
|
||||||
getPublicSshKeyForAuthenticated: [
|
|
||||||
"GET /user/keys/{key_id}",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "getPublicSshKeyForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
getPublicSshKeyForAuthenticatedUser: ["GET /user/keys/{key_id}"],
|
|
||||||
getSshSigningKeyForAuthenticatedUser: [
|
|
||||||
"GET /user/ssh_signing_keys/{ssh_signing_key_id}"
|
|
||||||
],
|
|
||||||
list: ["GET /users"],
|
|
||||||
listAttestations: ["GET /users/{username}/attestations/{subject_digest}"],
|
|
||||||
listBlockedByAuthenticated: [
|
|
||||||
"GET /user/blocks",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "listBlockedByAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
listBlockedByAuthenticatedUser: ["GET /user/blocks"],
|
|
||||||
listEmailsForAuthenticated: [
|
|
||||||
"GET /user/emails",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "listEmailsForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
listEmailsForAuthenticatedUser: ["GET /user/emails"],
|
|
||||||
listFollowedByAuthenticated: [
|
|
||||||
"GET /user/following",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "listFollowedByAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
listFollowedByAuthenticatedUser: ["GET /user/following"],
|
|
||||||
listFollowersForAuthenticatedUser: ["GET /user/followers"],
|
|
||||||
listFollowersForUser: ["GET /users/{username}/followers"],
|
|
||||||
listFollowingForUser: ["GET /users/{username}/following"],
|
|
||||||
listGpgKeysForAuthenticated: [
|
|
||||||
"GET /user/gpg_keys",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "listGpgKeysForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
listGpgKeysForAuthenticatedUser: ["GET /user/gpg_keys"],
|
|
||||||
listGpgKeysForUser: ["GET /users/{username}/gpg_keys"],
|
|
||||||
listPublicEmailsForAuthenticated: [
|
|
||||||
"GET /user/public_emails",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "listPublicEmailsForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
listPublicEmailsForAuthenticatedUser: ["GET /user/public_emails"],
|
|
||||||
listPublicKeysForUser: ["GET /users/{username}/keys"],
|
|
||||||
listPublicSshKeysForAuthenticated: [
|
|
||||||
"GET /user/keys",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "listPublicSshKeysForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
listPublicSshKeysForAuthenticatedUser: ["GET /user/keys"],
|
|
||||||
listSocialAccountsForAuthenticatedUser: ["GET /user/social_accounts"],
|
|
||||||
listSocialAccountsForUser: ["GET /users/{username}/social_accounts"],
|
|
||||||
listSshSigningKeysForAuthenticatedUser: ["GET /user/ssh_signing_keys"],
|
|
||||||
listSshSigningKeysForUser: ["GET /users/{username}/ssh_signing_keys"],
|
|
||||||
setPrimaryEmailVisibilityForAuthenticated: [
|
|
||||||
"PATCH /user/email/visibility",
|
|
||||||
{},
|
|
||||||
{ renamed: ["users", "setPrimaryEmailVisibilityForAuthenticatedUser"] }
|
|
||||||
],
|
|
||||||
setPrimaryEmailVisibilityForAuthenticatedUser: [
|
|
||||||
"PATCH /user/email/visibility"
|
|
||||||
],
|
|
||||||
unblock: ["DELETE /user/blocks/{username}"],
|
|
||||||
unfollow: ["DELETE /user/following/{username}"],
|
|
||||||
updateAuthenticated: ["PATCH /user"]
|
|
||||||
}
|
|
||||||
};
|
|
||||||
var endpoints_default = Endpoints;
|
|
||||||
|
|
||||||
//# sourceMappingURL=endpoints.js.map
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js
|
|
||||||
|
|
||||||
const endpointMethodsMap = /* @__PURE__ */ new Map();
|
|
||||||
for (const [scope, endpoints] of Object.entries(endpoints_default)) {
|
|
||||||
for (const [methodName, endpoint] of Object.entries(endpoints)) {
|
|
||||||
const [route, defaults, decorations] = endpoint;
|
|
||||||
const [method, url] = route.split(/ /);
|
|
||||||
const endpointDefaults = Object.assign(
|
|
||||||
{
|
|
||||||
method,
|
|
||||||
url
|
|
||||||
},
|
|
||||||
defaults
|
|
||||||
);
|
|
||||||
if (!endpointMethodsMap.has(scope)) {
|
|
||||||
endpointMethodsMap.set(scope, /* @__PURE__ */ new Map());
|
|
||||||
}
|
|
||||||
endpointMethodsMap.get(scope).set(methodName, {
|
|
||||||
scope,
|
|
||||||
methodName,
|
|
||||||
endpointDefaults,
|
|
||||||
decorations
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const handler = {
|
|
||||||
has({ scope }, methodName) {
|
|
||||||
return endpointMethodsMap.get(scope).has(methodName);
|
|
||||||
},
|
|
||||||
getOwnPropertyDescriptor(target, methodName) {
|
|
||||||
return {
|
|
||||||
value: this.get(target, methodName),
|
|
||||||
// ensures method is in the cache
|
|
||||||
configurable: true,
|
|
||||||
writable: true,
|
|
||||||
enumerable: true
|
|
||||||
};
|
|
||||||
},
|
|
||||||
defineProperty(target, methodName, descriptor) {
|
|
||||||
Object.defineProperty(target.cache, methodName, descriptor);
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
deleteProperty(target, methodName) {
|
|
||||||
delete target.cache[methodName];
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
ownKeys({ scope }) {
|
|
||||||
return [...endpointMethodsMap.get(scope).keys()];
|
|
||||||
},
|
|
||||||
set(target, methodName, value) {
|
|
||||||
return target.cache[methodName] = value;
|
|
||||||
},
|
|
||||||
get({ octokit, scope, cache }, methodName) {
|
|
||||||
if (cache[methodName]) {
|
|
||||||
return cache[methodName];
|
|
||||||
}
|
|
||||||
const method = endpointMethodsMap.get(scope).get(methodName);
|
|
||||||
if (!method) {
|
|
||||||
return void 0;
|
|
||||||
}
|
|
||||||
const { endpointDefaults, decorations } = method;
|
|
||||||
if (decorations) {
|
|
||||||
cache[methodName] = decorate(
|
|
||||||
octokit,
|
|
||||||
scope,
|
|
||||||
methodName,
|
|
||||||
endpointDefaults,
|
|
||||||
decorations
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
cache[methodName] = octokit.request.defaults(endpointDefaults);
|
|
||||||
}
|
|
||||||
return cache[methodName];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
function endpointsToMethods(octokit) {
|
|
||||||
const newMethods = {};
|
|
||||||
for (const scope of endpointMethodsMap.keys()) {
|
|
||||||
newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler);
|
|
||||||
}
|
|
||||||
return newMethods;
|
|
||||||
}
|
|
||||||
function decorate(octokit, scope, methodName, defaults, decorations) {
|
|
||||||
const requestWithDefaults = octokit.request.defaults(defaults);
|
|
||||||
function withDecorations(...args) {
|
|
||||||
let options = requestWithDefaults.endpoint.merge(...args);
|
|
||||||
if (decorations.mapToData) {
|
|
||||||
options = Object.assign({}, options, {
|
|
||||||
data: options[decorations.mapToData],
|
|
||||||
[decorations.mapToData]: void 0
|
|
||||||
});
|
|
||||||
return requestWithDefaults(options);
|
|
||||||
}
|
|
||||||
if (decorations.renamed) {
|
|
||||||
const [newScope, newMethodName] = decorations.renamed;
|
|
||||||
octokit.log.warn(
|
|
||||||
`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (decorations.deprecated) {
|
|
||||||
octokit.log.warn(decorations.deprecated);
|
|
||||||
}
|
|
||||||
if (decorations.renamedParameters) {
|
|
||||||
const options2 = requestWithDefaults.endpoint.merge(...args);
|
|
||||||
for (const [name, alias] of Object.entries(
|
|
||||||
decorations.renamedParameters
|
|
||||||
)) {
|
|
||||||
if (name in options2) {
|
|
||||||
octokit.log.warn(
|
|
||||||
`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`
|
|
||||||
);
|
|
||||||
if (!(alias in options2)) {
|
|
||||||
options2[alias] = options2[name];
|
|
||||||
}
|
|
||||||
delete options2[name];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return requestWithDefaults(options2);
|
|
||||||
}
|
|
||||||
return requestWithDefaults(...args);
|
|
||||||
}
|
|
||||||
return Object.assign(withDecorations, requestWithDefaults);
|
|
||||||
}
|
|
||||||
|
|
||||||
//# sourceMappingURL=endpoints-to-methods.js.map
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
||||||
|
|
||||||
|
|
||||||
function restEndpointMethods(octokit) {
|
|
||||||
const api = endpointsToMethods(octokit);
|
|
||||||
return {
|
|
||||||
rest: api
|
|
||||||
};
|
|
||||||
}
|
|
||||||
restEndpointMethods.VERSION = VERSION;
|
|
||||||
function legacyRestEndpointMethods(octokit) {
|
|
||||||
const api = endpointsToMethods(octokit);
|
|
||||||
return {
|
|
||||||
...api,
|
|
||||||
rest: api
|
|
||||||
};
|
|
||||||
}
|
|
||||||
legacyRestEndpointMethods.VERSION = VERSION;
|
|
||||||
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
||||||
|
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
/******/ });
|
/******/ });
|
||||||
@@ -36595,34 +36668,6 @@ legacyRestEndpointMethods.VERSION = VERSION;
|
|||||||
/******/ }
|
/******/ }
|
||||||
/******/
|
/******/
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/******/ /* webpack/runtime/define property getters */
|
|
||||||
/******/ (() => {
|
|
||||||
/******/ // define getter functions for harmony exports
|
|
||||||
/******/ __nccwpck_require__.d = (exports, definition) => {
|
|
||||||
/******/ for(var key in definition) {
|
|
||||||
/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) {
|
|
||||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
||||||
/******/ }
|
|
||||||
/******/ }
|
|
||||||
/******/ };
|
|
||||||
/******/ })();
|
|
||||||
/******/
|
|
||||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
||||||
/******/ (() => {
|
|
||||||
/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
||||||
/******/ })();
|
|
||||||
/******/
|
|
||||||
/******/ /* webpack/runtime/make namespace object */
|
|
||||||
/******/ (() => {
|
|
||||||
/******/ // define __esModule on exports
|
|
||||||
/******/ __nccwpck_require__.r = (exports) => {
|
|
||||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
||||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
||||||
/******/ }
|
|
||||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
||||||
/******/ };
|
|
||||||
/******/ })();
|
|
||||||
/******/
|
|
||||||
/******/ /* webpack/runtime/compat */
|
/******/ /* webpack/runtime/compat */
|
||||||
/******/
|
/******/
|
||||||
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
||||||
|
|||||||
791
package-lock.json
generated
791
package-lock.json
generated
@@ -12,23 +12,21 @@
|
|||||||
"@actions/cache": "^4.0.0",
|
"@actions/cache": "^4.0.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
|
"@actions/github": "^6.0.0",
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@octokit/core": "^6.1.3",
|
"@octokit/rest": "^21.0.2"
|
||||||
"@octokit/plugin-paginate-rest": "^11.4.0",
|
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
|
||||||
"smol-toml": "^1.3.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"@types/node": "^22.12.0",
|
"@types/node": "^22.10.2",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"ts-jest": "^29.2.5",
|
"ts-jest": "^29.2.5",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.7.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/cache": {
|
"node_modules/@actions/cache": {
|
||||||
@@ -75,6 +73,17 @@
|
|||||||
"@actions/io": "^1.0.1"
|
"@actions/io": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@actions/github": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==",
|
||||||
|
"dependencies": {
|
||||||
|
"@actions/http-client": "^2.2.0",
|
||||||
|
"@octokit/core": "^5.0.1",
|
||||||
|
"@octokit/plugin-paginate-rest": "^9.0.0",
|
||||||
|
"@octokit/plugin-rest-endpoint-methods": "^10.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@actions/glob": {
|
"node_modules/@actions/glob": {
|
||||||
"version": "0.5.0",
|
"version": "0.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.5.0.tgz",
|
||||||
@@ -99,15 +108,16 @@
|
|||||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
||||||
},
|
},
|
||||||
"node_modules/@actions/tool-cache": {
|
"node_modules/@actions/tool-cache": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz",
|
||||||
"integrity": "sha512-fBhNNOWxuoLxztQebpOaWu6WeVmuwa77Z+DxIZ1B+OYvGkGQon6kTVg6Z32Cb13WCuw0szqonK+hh03mJV7Z6w==",
|
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.2.6",
|
||||||
"@actions/exec": "^1.0.0",
|
"@actions/exec": "^1.0.0",
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/http-client": "^2.0.1",
|
||||||
"@actions/io": "^1.1.1",
|
"@actions/io": "^1.1.1",
|
||||||
"semver": "^6.1.0"
|
"semver": "^6.1.0",
|
||||||
|
"uuid": "^3.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
@@ -1577,23 +1587,212 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/auth-token": {
|
"node_modules/@octokit/auth-token": {
|
||||||
"version": "5.1.2",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
|
||||||
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==",
|
"integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/core": {
|
"node_modules/@octokit/core": {
|
||||||
"version": "6.1.3",
|
"version": "5.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz",
|
||||||
"integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==",
|
"integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/auth-token": "^4.0.0",
|
||||||
|
"@octokit/graphql": "^7.1.0",
|
||||||
|
"@octokit/request": "^8.3.1",
|
||||||
|
"@octokit/request-error": "^5.1.0",
|
||||||
|
"@octokit/types": "^13.0.0",
|
||||||
|
"before-after-hook": "^2.2.0",
|
||||||
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/core/node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/core/node_modules/@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/endpoint": {
|
||||||
|
"version": "9.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz",
|
||||||
|
"integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/types": "^13.1.0",
|
||||||
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/endpoint/node_modules/@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/graphql": {
|
||||||
|
"version": "7.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz",
|
||||||
|
"integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/request": "^8.3.0",
|
||||||
|
"@octokit/types": "^13.0.0",
|
||||||
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/graphql/node_modules/@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "19.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz",
|
||||||
|
"integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/plugin-paginate-rest": {
|
||||||
|
"version": "9.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz",
|
||||||
|
"integrity": "sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/types": "^12.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@octokit/core": ">=5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||||
|
"version": "10.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.0.0.tgz",
|
||||||
|
"integrity": "sha512-16VkwE2v6rXU+/gBsYC62M8lKWOphY5Lg4wpjYnVE9Zbu0J6IwiT5kILoj1YOB53XLmcJR+Nqp8DmifOPY4H3g==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/types": "^12.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@octokit/core": ">=5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/request": {
|
||||||
|
"version": "8.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz",
|
||||||
|
"integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/endpoint": "^9.0.1",
|
||||||
|
"@octokit/request-error": "^5.1.0",
|
||||||
|
"@octokit/types": "^13.1.0",
|
||||||
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/request-error": {
|
||||||
|
"version": "5.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz",
|
||||||
|
"integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/types": "^13.1.0",
|
||||||
|
"deprecation": "^2.0.0",
|
||||||
|
"once": "^1.4.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/request-error/node_modules/@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/request/node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/request/node_modules/@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/rest": {
|
||||||
|
"version": "21.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-21.0.2.tgz",
|
||||||
|
"integrity": "sha512-+CiLisCoyWmYicH25y1cDfCrv41kRSvTq6pPWtRroRJzhsCZWZyCqGyI8foJT5LmScADSwRAnr/xo+eewL04wQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/core": "^6.1.2",
|
||||||
|
"@octokit/plugin-paginate-rest": "^11.0.0",
|
||||||
|
"@octokit/plugin-request-log": "^5.3.1",
|
||||||
|
"@octokit/plugin-rest-endpoint-methods": "^13.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/rest/node_modules/@octokit/auth-token": {
|
||||||
|
"version": "5.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz",
|
||||||
|
"integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/rest/node_modules/@octokit/core": {
|
||||||
|
"version": "6.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz",
|
||||||
|
"integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/auth-token": "^5.0.0",
|
"@octokit/auth-token": "^5.0.0",
|
||||||
"@octokit/graphql": "^8.1.2",
|
"@octokit/graphql": "^8.0.0",
|
||||||
"@octokit/request": "^9.1.4",
|
"@octokit/request": "^9.0.0",
|
||||||
"@octokit/request-error": "^6.1.6",
|
"@octokit/request-error": "^6.0.1",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.0.0",
|
||||||
"before-after-hook": "^3.0.2",
|
"before-after-hook": "^3.0.2",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
},
|
},
|
||||||
@@ -1601,96 +1800,124 @@
|
|||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/endpoint": {
|
"node_modules/@octokit/rest/node_modules/@octokit/endpoint": {
|
||||||
"version": "10.1.2",
|
"version": "10.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz",
|
||||||
"integrity": "sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==",
|
"integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.0.0",
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^7.0.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/graphql": {
|
"node_modules/@octokit/rest/node_modules/@octokit/graphql": {
|
||||||
"version": "8.1.2",
|
"version": "8.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.1.tgz",
|
||||||
"integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==",
|
"integrity": "sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/request": "^9.1.4",
|
"@octokit/request": "^9.0.0",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.0.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/openapi-types": {
|
"node_modules/@octokit/rest/node_modules/@octokit/openapi-types": {
|
||||||
"version": "23.0.1",
|
"version": "22.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g=="
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/plugin-paginate-rest": {
|
"node_modules/@octokit/rest/node_modules/@octokit/plugin-paginate-rest": {
|
||||||
"version": "11.4.0",
|
"version": "11.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.3.1.tgz",
|
||||||
"integrity": "sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==",
|
"integrity": "sha512-ryqobs26cLtM1kQxqeZui4v8FeznirUsksiA+RYemMPJ7Micju0WSkv50dBksTuZks9O5cg4wp+t8fZ/cLY56g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^13.7.0"
|
"@octokit/types": "^13.5.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
},
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@octokit/core": "5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/rest/node_modules/@octokit/plugin-request-log": {
|
||||||
|
"version": "5.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz",
|
||||||
|
"integrity": "sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18"
|
||||||
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@octokit/core": ">=6"
|
"@octokit/core": ">=6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
"node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||||
"version": "13.3.0",
|
"version": "13.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.2.tgz",
|
||||||
"integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==",
|
"integrity": "sha512-EI7kXWidkt3Xlok5uN43suK99VWqc8OaIMktY9d9+RNKl69juoTyxmLoWPIZgJYzi41qj/9zU7G/ljnNOJ5AFA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^13.7.0"
|
"@octokit/types": "^13.5.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@octokit/core": ">=6"
|
"@octokit/core": "^5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/request": {
|
"node_modules/@octokit/rest/node_modules/@octokit/request": {
|
||||||
"version": "9.2.0",
|
"version": "9.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.3.tgz",
|
||||||
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
|
"integrity": "sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/endpoint": "^10.0.0",
|
"@octokit/endpoint": "^10.0.0",
|
||||||
"@octokit/request-error": "^6.0.1",
|
"@octokit/request-error": "^6.0.1",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.1.0",
|
||||||
"fast-content-type-parse": "^2.0.0",
|
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^7.0.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/request-error": {
|
"node_modules/@octokit/rest/node_modules/@octokit/request-error": {
|
||||||
"version": "6.1.6",
|
"version": "6.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.4.tgz",
|
||||||
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
|
"integrity": "sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^13.6.2"
|
"@octokit/types": "^13.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/types": {
|
"node_modules/@octokit/rest/node_modules/@octokit/types": {
|
||||||
"version": "13.7.0",
|
"version": "13.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
"integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==",
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/openapi-types": "^23.0.1"
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/rest/node_modules/before-after-hook": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/rest/node_modules/universal-user-agent": {
|
||||||
|
"version": "7.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
||||||
|
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||||
|
},
|
||||||
|
"node_modules/@octokit/types": {
|
||||||
|
"version": "12.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz",
|
||||||
|
"integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": "^19.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@opentelemetry/api": {
|
"node_modules/@opentelemetry/api": {
|
||||||
@@ -1870,10 +2097,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.12.0",
|
"version": "22.10.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz",
|
||||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
"integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.20.0"
|
"undici-types": "~6.20.0"
|
||||||
}
|
}
|
||||||
@@ -2133,9 +2359,9 @@
|
|||||||
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
||||||
},
|
},
|
||||||
"node_modules/before-after-hook": {
|
"node_modules/before-after-hook": {
|
||||||
"version": "3.0.2",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
|
||||||
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
|
||||||
},
|
},
|
||||||
"node_modules/brace-expansion": {
|
"node_modules/brace-expansion": {
|
||||||
"version": "1.1.11",
|
"version": "1.1.11",
|
||||||
@@ -2472,6 +2698,11 @@
|
|||||||
"node": ">=0.4.0"
|
"node": ">=0.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/deprecation": {
|
||||||
|
"version": "2.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
||||||
|
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
|
||||||
|
},
|
||||||
"node_modules/detect-newline": {
|
"node_modules/detect-newline": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
||||||
@@ -2645,21 +2876,6 @@
|
|||||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/fast-content-type-parse": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==",
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"type": "github",
|
|
||||||
"url": "https://github.com/sponsors/fastify"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/fastify"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"node_modules/fast-json-stable-stringify": {
|
"node_modules/fast-json-stable-stringify": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
||||||
@@ -4339,17 +4555,6 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/smol-toml": {
|
|
||||||
"version": "1.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz",
|
|
||||||
"integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 18"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/cyyynthia"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/source-map": {
|
"node_modules/source-map": {
|
||||||
"version": "0.6.1",
|
"version": "0.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
@@ -4646,9 +4851,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.7.3",
|
"version": "5.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz",
|
||||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
"integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
@@ -4659,9 +4864,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "5.28.5",
|
"version": "5.28.4",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.5.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
||||||
"integrity": "sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==",
|
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
},
|
},
|
||||||
@@ -4675,9 +4880,9 @@
|
|||||||
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
|
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
|
||||||
},
|
},
|
||||||
"node_modules/universal-user-agent": {
|
"node_modules/universal-user-agent": {
|
||||||
"version": "7.0.2",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
|
||||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
"integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ=="
|
||||||
},
|
},
|
||||||
"node_modules/update-browserslist-db": {
|
"node_modules/update-browserslist-db": {
|
||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
@@ -4705,6 +4910,15 @@
|
|||||||
"browserslist": ">= 4.21.0"
|
"browserslist": ">= 4.21.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/uuid": {
|
||||||
|
"version": "3.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
||||||
|
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
|
||||||
|
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
|
||||||
|
"bin": {
|
||||||
|
"uuid": "bin/uuid"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/v8-to-istanbul": {
|
"node_modules/v8-to-istanbul": {
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz",
|
||||||
@@ -4928,6 +5142,17 @@
|
|||||||
"@actions/io": "^1.0.1"
|
"@actions/io": "^1.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@actions/github": {
|
||||||
|
"version": "6.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/github/-/github-6.0.0.tgz",
|
||||||
|
"integrity": "sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==",
|
||||||
|
"requires": {
|
||||||
|
"@actions/http-client": "^2.2.0",
|
||||||
|
"@octokit/core": "^5.0.1",
|
||||||
|
"@octokit/plugin-paginate-rest": "^9.0.0",
|
||||||
|
"@octokit/plugin-rest-endpoint-methods": "^10.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"@actions/glob": {
|
"@actions/glob": {
|
||||||
"version": "0.5.0",
|
"version": "0.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/glob/-/glob-0.5.0.tgz",
|
||||||
@@ -4952,15 +5177,16 @@
|
|||||||
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
|
||||||
},
|
},
|
||||||
"@actions/tool-cache": {
|
"@actions/tool-cache": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz",
|
||||||
"integrity": "sha512-fBhNNOWxuoLxztQebpOaWu6WeVmuwa77Z+DxIZ1B+OYvGkGQon6kTVg6Z32Cb13WCuw0szqonK+hh03mJV7Z6w==",
|
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.2.6",
|
||||||
"@actions/exec": "^1.0.0",
|
"@actions/exec": "^1.0.0",
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/http-client": "^2.0.1",
|
||||||
"@actions/io": "^1.1.1",
|
"@actions/io": "^1.1.1",
|
||||||
"semver": "^6.1.0"
|
"semver": "^6.1.0",
|
||||||
|
"uuid": "^3.3.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@ampproject/remapping": {
|
"@ampproject/remapping": {
|
||||||
@@ -6070,90 +6296,281 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/auth-token": {
|
"@octokit/auth-token": {
|
||||||
"version": "5.1.2",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
|
||||||
"integrity": "sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw=="
|
"integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA=="
|
||||||
},
|
},
|
||||||
"@octokit/core": {
|
"@octokit/core": {
|
||||||
"version": "6.1.3",
|
"version": "5.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.0.tgz",
|
||||||
"integrity": "sha512-z+j7DixNnfpdToYsOutStDgeRzJSMnbj8T1C/oQjB6Aa+kRfNjs/Fn7W6c8bmlt6mfy3FkgeKBRnDjxQow5dow==",
|
"integrity": "sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/auth-token": "^5.0.0",
|
"@octokit/auth-token": "^4.0.0",
|
||||||
"@octokit/graphql": "^8.1.2",
|
"@octokit/graphql": "^7.1.0",
|
||||||
"@octokit/request": "^9.1.4",
|
"@octokit/request": "^8.3.1",
|
||||||
"@octokit/request-error": "^6.1.6",
|
"@octokit/request-error": "^5.1.0",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.0.0",
|
||||||
"before-after-hook": "^3.0.2",
|
"before-after-hook": "^2.2.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/endpoint": {
|
"@octokit/endpoint": {
|
||||||
"version": "10.1.2",
|
"version": "9.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.5.tgz",
|
||||||
"integrity": "sha512-XybpFv9Ms4hX5OCHMZqyODYqGTZ3H6K6Vva+M9LR7ib/xr1y1ZnlChYv9H680y77Vd/i/k+thXApeRASBQkzhA==",
|
"integrity": "sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.1.0",
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/graphql": {
|
"@octokit/graphql": {
|
||||||
"version": "8.1.2",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.0.tgz",
|
||||||
"integrity": "sha512-bdlj/CJVjpaz06NBpfHhp4kGJaRZfz7AzC+6EwUImRtrwIw8dIgJ63Xg0OzV9pRn3rIzrt5c2sa++BL0JJ8GLw==",
|
"integrity": "sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/request": "^9.1.4",
|
"@octokit/request": "^8.3.0",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.0.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^6.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/openapi-types": {
|
"@octokit/openapi-types": {
|
||||||
"version": "23.0.1",
|
"version": "19.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz",
|
||||||
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g=="
|
"integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw=="
|
||||||
},
|
},
|
||||||
"@octokit/plugin-paginate-rest": {
|
"@octokit/plugin-paginate-rest": {
|
||||||
"version": "11.4.0",
|
"version": "9.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz",
|
||||||
"integrity": "sha512-ttpGck5AYWkwMkMazNCZMqxKqIq1fJBNxBfsFwwfyYKTf914jKkLF0POMS3YkPBwp5g1c2Y4L79gDz01GhSr1g==",
|
"integrity": "sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^13.7.0"
|
"@octokit/types": "^12.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/plugin-rest-endpoint-methods": {
|
"@octokit/plugin-rest-endpoint-methods": {
|
||||||
"version": "13.3.0",
|
"version": "10.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.0.0.tgz",
|
||||||
"integrity": "sha512-LUm44shlmkp/6VC+qQgHl3W5vzUP99ZM54zH6BuqkJK4DqfFLhegANd+fM4YRLapTvPm4049iG7F3haANKMYvQ==",
|
"integrity": "sha512-16VkwE2v6rXU+/gBsYC62M8lKWOphY5Lg4wpjYnVE9Zbu0J6IwiT5kILoj1YOB53XLmcJR+Nqp8DmifOPY4H3g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^13.7.0"
|
"@octokit/types": "^12.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/request": {
|
"@octokit/request": {
|
||||||
"version": "9.2.0",
|
"version": "8.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.0.tgz",
|
||||||
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
|
"integrity": "sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/endpoint": "^10.0.0",
|
"@octokit/endpoint": "^9.0.1",
|
||||||
"@octokit/request-error": "^6.0.1",
|
"@octokit/request-error": "^5.1.0",
|
||||||
"@octokit/types": "^13.6.2",
|
"@octokit/types": "^13.1.0",
|
||||||
"fast-content-type-parse": "^2.0.0",
|
"universal-user-agent": "^6.0.0"
|
||||||
"universal-user-agent": "^7.0.2"
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/request-error": {
|
"@octokit/request-error": {
|
||||||
"version": "6.1.6",
|
"version": "5.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.0.tgz",
|
||||||
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
|
"integrity": "sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^13.6.2"
|
"@octokit/types": "^13.1.0",
|
||||||
|
"deprecation": "^2.0.0",
|
||||||
|
"once": "^1.4.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/rest": {
|
||||||
|
"version": "21.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-21.0.2.tgz",
|
||||||
|
"integrity": "sha512-+CiLisCoyWmYicH25y1cDfCrv41kRSvTq6pPWtRroRJzhsCZWZyCqGyI8foJT5LmScADSwRAnr/xo+eewL04wQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/core": "^6.1.2",
|
||||||
|
"@octokit/plugin-paginate-rest": "^11.0.0",
|
||||||
|
"@octokit/plugin-request-log": "^5.3.1",
|
||||||
|
"@octokit/plugin-rest-endpoint-methods": "^13.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@octokit/auth-token": {
|
||||||
|
"version": "5.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.1.tgz",
|
||||||
|
"integrity": "sha512-rh3G3wDO8J9wSjfI436JUKzHIxq8NaiL0tVeB2aXmG6p/9859aUOAjA9pmSPNGGZxfwmaJ9ozOJImuNVJdpvbA=="
|
||||||
|
},
|
||||||
|
"@octokit/core": {
|
||||||
|
"version": "6.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz",
|
||||||
|
"integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/auth-token": "^5.0.0",
|
||||||
|
"@octokit/graphql": "^8.0.0",
|
||||||
|
"@octokit/request": "^9.0.0",
|
||||||
|
"@octokit/request-error": "^6.0.1",
|
||||||
|
"@octokit/types": "^13.0.0",
|
||||||
|
"before-after-hook": "^3.0.2",
|
||||||
|
"universal-user-agent": "^7.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/endpoint": {
|
||||||
|
"version": "10.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.1.tgz",
|
||||||
|
"integrity": "sha512-JYjh5rMOwXMJyUpj028cu0Gbp7qe/ihxfJMLc8VZBMMqSwLgOxDI1911gV4Enl1QSavAQNJcwmwBF9M0VvLh6Q==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/types": "^13.0.0",
|
||||||
|
"universal-user-agent": "^7.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/graphql": {
|
||||||
|
"version": "8.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.1.tgz",
|
||||||
|
"integrity": "sha512-ukiRmuHTi6ebQx/HFRCXKbDlOh/7xEV6QUXaE7MJEKGNAncGI/STSbOkl12qVXZrfZdpXctx5O9X1AIaebiDBg==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/request": "^9.0.0",
|
||||||
|
"@octokit/types": "^13.0.0",
|
||||||
|
"universal-user-agent": "^7.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/openapi-types": {
|
||||||
|
"version": "22.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.2.0.tgz",
|
||||||
|
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
|
||||||
|
},
|
||||||
|
"@octokit/plugin-paginate-rest": {
|
||||||
|
"version": "11.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.3.1.tgz",
|
||||||
|
"integrity": "sha512-ryqobs26cLtM1kQxqeZui4v8FeznirUsksiA+RYemMPJ7Micju0WSkv50dBksTuZks9O5cg4wp+t8fZ/cLY56g==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/types": "^13.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/plugin-request-log": {
|
||||||
|
"version": "5.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.3.1.tgz",
|
||||||
|
"integrity": "sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"@octokit/plugin-rest-endpoint-methods": {
|
||||||
|
"version": "13.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.2.2.tgz",
|
||||||
|
"integrity": "sha512-EI7kXWidkt3Xlok5uN43suK99VWqc8OaIMktY9d9+RNKl69juoTyxmLoWPIZgJYzi41qj/9zU7G/ljnNOJ5AFA==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/types": "^13.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/request": {
|
||||||
|
"version": "9.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.3.tgz",
|
||||||
|
"integrity": "sha512-V+TFhu5fdF3K58rs1pGUJIDH5RZLbZm5BI+MNF+6o/ssFNT4vWlCh/tVpF3NxGtP15HUxTTMUbsG5llAuU2CZA==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/endpoint": "^10.0.0",
|
||||||
|
"@octokit/request-error": "^6.0.1",
|
||||||
|
"@octokit/types": "^13.1.0",
|
||||||
|
"universal-user-agent": "^7.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/request-error": {
|
||||||
|
"version": "6.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.4.tgz",
|
||||||
|
"integrity": "sha512-VpAhIUxwhWZQImo/dWAN/NpPqqojR6PSLgLYAituLM6U+ddx9hCioFGwBr5Mi+oi5CLeJkcAs3gJ0PYYzU6wUg==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/types": "^13.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@octokit/types": {
|
||||||
|
"version": "13.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.5.0.tgz",
|
||||||
|
"integrity": "sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==",
|
||||||
|
"requires": {
|
||||||
|
"@octokit/openapi-types": "^22.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"before-after-hook": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
||||||
|
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
||||||
|
},
|
||||||
|
"universal-user-agent": {
|
||||||
|
"version": "7.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
||||||
|
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/types": {
|
"@octokit/types": {
|
||||||
"version": "13.7.0",
|
"version": "12.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz",
|
||||||
"integrity": "sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA==",
|
"integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/openapi-types": "^23.0.1"
|
"@octokit/openapi-types": "^19.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@opentelemetry/api": {
|
"@opentelemetry/api": {
|
||||||
@@ -6313,9 +6730,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "22.12.0",
|
"version": "22.10.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz",
|
||||||
"integrity": "sha512-Fll2FZ1riMjNmlmJOdAyY5pUbkftXslB5DgEzlIuNaiWhXd00FhWxVC/r4yV/4wBb9JfImTu+jiSvXTkJ7F/gA==",
|
"integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"undici-types": "~6.20.0"
|
"undici-types": "~6.20.0"
|
||||||
}
|
}
|
||||||
@@ -6525,9 +6942,9 @@
|
|||||||
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
"integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
|
||||||
},
|
},
|
||||||
"before-after-hook": {
|
"before-after-hook": {
|
||||||
"version": "3.0.2",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-3.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
|
||||||
"integrity": "sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A=="
|
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
|
||||||
},
|
},
|
||||||
"brace-expansion": {
|
"brace-expansion": {
|
||||||
"version": "1.1.11",
|
"version": "1.1.11",
|
||||||
@@ -6760,6 +7177,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
||||||
},
|
},
|
||||||
|
"deprecation": {
|
||||||
|
"version": "2.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
|
||||||
|
"integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
|
||||||
|
},
|
||||||
"detect-newline": {
|
"detect-newline": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
|
||||||
@@ -6881,11 +7303,6 @@
|
|||||||
"jest-util": "^29.7.0"
|
"jest-util": "^29.7.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fast-content-type-parse": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q=="
|
|
||||||
},
|
|
||||||
"fast-json-stable-stringify": {
|
"fast-json-stable-stringify": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
|
||||||
@@ -8157,11 +8574,6 @@
|
|||||||
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
|
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"smol-toml": {
|
|
||||||
"version": "1.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.1.tgz",
|
|
||||||
"integrity": "sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ=="
|
|
||||||
},
|
|
||||||
"source-map": {
|
"source-map": {
|
||||||
"version": "0.6.1",
|
"version": "0.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
@@ -8359,15 +8771,15 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "5.7.3",
|
"version": "5.7.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz",
|
||||||
"integrity": "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==",
|
"integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"undici": {
|
"undici": {
|
||||||
"version": "5.28.5",
|
"version": "5.28.4",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.5.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
|
||||||
"integrity": "sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==",
|
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
}
|
}
|
||||||
@@ -8378,9 +8790,9 @@
|
|||||||
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
|
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="
|
||||||
},
|
},
|
||||||
"universal-user-agent": {
|
"universal-user-agent": {
|
||||||
"version": "7.0.2",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
|
||||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
"integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ=="
|
||||||
},
|
},
|
||||||
"update-browserslist-db": {
|
"update-browserslist-db": {
|
||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
@@ -8392,6 +8804,11 @@
|
|||||||
"picocolors": "^1.0.0"
|
"picocolors": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"uuid": {
|
||||||
|
"version": "3.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
||||||
|
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
|
||||||
|
},
|
||||||
"v8-to-istanbul": {
|
"v8-to-istanbul": {
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz",
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -26,22 +26,20 @@
|
|||||||
"@actions/cache": "^4.0.0",
|
"@actions/cache": "^4.0.0",
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
|
"@actions/github": "^6.0.0",
|
||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.1",
|
||||||
"@octokit/core": "^6.1.3",
|
"@octokit/rest": "^21.0.2"
|
||||||
"@octokit/plugin-paginate-rest": "^11.4.0",
|
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^13.3.0",
|
|
||||||
"smol-toml": "^1.3.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "1.9.4",
|
||||||
"@types/node": "^22.12.0",
|
"@types/node": "^22.10.2",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@vercel/ncc": "^0.38.3",
|
"@vercel/ncc": "^0.38.3",
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"ts-jest": "^29.2.5",
|
"ts-jest": "^29.2.5",
|
||||||
"typescript": "^5.7.3"
|
"typescript": "^5.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,455 +1,5 @@
|
|||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||||
"aarch64-apple-darwin-0.5.25":
|
|
||||||
"3c29e941d691614bc4eba95629c8f8dee106e5d44d70a03efed66a544588caa1",
|
|
||||||
"aarch64-pc-windows-msvc-0.5.25":
|
|
||||||
"e3c4d014dc8aa14a36fab9316d9f435a93900893d7164472452c39037112b829",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.25":
|
|
||||||
"402342f9a5ff1544b41af368794ab436965a1a03109b43bd0dd552ce6af8256d",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.25":
|
|
||||||
"6648d924f01ce01e4968e377c1f32a53592b55485a859f97421619d3a7dd7d86",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.25":
|
|
||||||
"45ed53c20c5852d9dba97deeceaa1cb8fdccdaec69952c0940329e27b3830e83",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.25":
|
|
||||||
"54bd4af03e93acdc7ac6546f62923a782fc871a20850356fa8870dd256a6c2e8",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.25":
|
|
||||||
"f2adbe37fbe57540c39396d6d47878c86027eae91b442d609c2e97da2398dff5",
|
|
||||||
"i686-pc-windows-msvc-0.5.25":
|
|
||||||
"7f55c0e6ab90218d2646c3915b111378fc0ffd61308893d495ddc8e49f16ed36",
|
|
||||||
"i686-unknown-linux-gnu-0.5.25":
|
|
||||||
"8d71e66e4efcc1097e2beedd3572867eb7ea9b5cdac286c115a5118fcf5d2219",
|
|
||||||
"i686-unknown-linux-musl-0.5.25":
|
|
||||||
"406630b6b20bcef76069e08c5eaaa5420e190ae0036f4a85e2a14f3d7c610be6",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.25":
|
|
||||||
"202aa6bc9e541bc322ad743f6afe334ef31dcb5c568f24cd5c963fa535538f20",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.25":
|
|
||||||
"7956759f6543ca7ed4e51ab7d68a2dca6d9e73d12a19afbe40d275f2384b8535",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.25":
|
|
||||||
"b17eed40b701252cf6e02c64533bc741dfa6e05340da64cd9feef36afcfed897",
|
|
||||||
"x86_64-apple-darwin-0.5.25":
|
|
||||||
"f76e3fb259ec74b2e003ed7e47d1f06a431686381665fc03e2f35e2ee72e6a57",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.25":
|
|
||||||
"51ea202a472e552c04e6a13ac7eece0d56748750b9726e4b94f4f3dc96b5f77f",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.25":
|
|
||||||
"fe04914881e2e01fe62001b223344a7c43af734faba447d4764fe92d3baf794e",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.25":
|
|
||||||
"aeade1b8fa1fa3c021d30e8f1932fd2c24dca62217c7d6d9da740dde75b7e52f",
|
|
||||||
"aarch64-apple-darwin-0.5.24":
|
|
||||||
"8016d47f4cce265b3d122ad8cbbf701713caf803fa7d3ef69d8a1fd6793d939a",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.24":
|
|
||||||
"3cf910468c37c709580d83d19b7b55352cfe05d6e1cc038718698410b6b8c6f0",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.24":
|
|
||||||
"aaae0b6fb17b3cafa9869292f4e03104b26fd0de4a36182a6edec44c1665f6a5",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.24":
|
|
||||||
"a11698237ff36b72d119467805c8630d5bfdf6132fe98d01f7c44451c783d450",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.24":
|
|
||||||
"e44001c955b7a2c3e53006a262bf74189f75bc2e6d63ac2e71638fb8eee20501",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.24":
|
|
||||||
"8ca5c602c5a31a6c497abf10dd96694fb2bb9df362fdc604d156fa5044786379",
|
|
||||||
"i686-pc-windows-msvc-0.5.24":
|
|
||||||
"d2550254b96753214f9098a03091fa398d948c971738d50ff36113a3b27e391e",
|
|
||||||
"i686-unknown-linux-gnu-0.5.24":
|
|
||||||
"7b335c5736fa50aa3092f4212201ea7a65a15c6f40282a315861ec36bf64a41e",
|
|
||||||
"i686-unknown-linux-musl-0.5.24":
|
|
||||||
"6b7a8df65d15ad782ca17d82f79b4d7a235e85bf50411e3f7549878909b2a0bb",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.24":
|
|
||||||
"22c2fb1971cd4ea77d78fc2c7c5574f5e4646525473d08d1b16a4389cda560a8",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.24":
|
|
||||||
"1e3cfaa0890d42f448bed7d6c7b66240abfe43130c6923b1d5fb7b0ebc302b94",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.24":
|
|
||||||
"a3c8e92deb720dcbf7414d8d0bb91934016d0ace23c3dd452f49a1b92490e0bf",
|
|
||||||
"x86_64-apple-darwin-0.5.24":
|
|
||||||
"dcee10ef84309cf0de4153cb7913b0b506eae0a2e6407faa0f1717f015c35f0c",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.24":
|
|
||||||
"bd3fedeee0da543d7ac0a530328b3880bc83c1b332b3996f0da691f83423e813",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.24":
|
|
||||||
"a0eb614f7fc38a6e14ef1c4819f1f187591db8e0d3c4218dae38b1bd663a00e2",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.24":
|
|
||||||
"5a5a1231a3ecb4f01aab9c839a49764d9ea1ae8e5e467a0aa2a2754c94f9f81c",
|
|
||||||
"aarch64-apple-darwin-0.5.23":
|
|
||||||
"bedfc709b281ab4c6ff1c84c0ad7e4525bf2669f56f009f6fb308657bebe165b",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.23":
|
|
||||||
"0f864a958e88693b8102dd7bc0e543a6b6f56e514ba8798235e54fb95c4856a4",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.23":
|
|
||||||
"bbfafc3623267d25f63713c934eb57bf521b8b14b94d18412c697d69dbd68251",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.23":
|
|
||||||
"3031d44ae02a6189182956de345c0e22c40b6a8f19bbe67ed7016df228da5cd6",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.23":
|
|
||||||
"48429f7f01e9bd6bfb80c2e97db878c05d7d1be1d10de432a33650c65c9d6172",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.23":
|
|
||||||
"baa22c4e66f80eb1a900437b58966f529af70c89739b690096fa665d6324f540",
|
|
||||||
"i686-pc-windows-msvc-0.5.23":
|
|
||||||
"c9d6f5806666921a31f0a3ac88f9848884c67cd7348b0c0dd420c92ae40371ff",
|
|
||||||
"i686-unknown-linux-gnu-0.5.23":
|
|
||||||
"91bf1765b77010318d9666601d6ec41108f561a8be5d8a3a0b41c4fbd38c4bb1",
|
|
||||||
"i686-unknown-linux-musl-0.5.23":
|
|
||||||
"79093074197e76be9c7699ad361cf6fccc95dd8cea2b10ac2875acc658be55b3",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.23":
|
|
||||||
"acce824961d78934ec9735bd9dac2a8b7f16e9638c6d909671690c43283bd644",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.23":
|
|
||||||
"678773a17cccfa5d8c8e7043e4ebbbaf48b3e1aa482dd334c36e06ba8ebe993e",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.23":
|
|
||||||
"34700493c47fcf668ac175ab66c8fb6bdc058dfc56a3f868d34b6e5a586957dd",
|
|
||||||
"x86_64-apple-darwin-0.5.23":
|
|
||||||
"40525eceff3a95051e0139839140ec3597a45221cca5000b8290d20d771294f5",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.23":
|
|
||||||
"140be2cf57e37c7c86be4840d17b71fbc7daa21e2f46ed60830b4a39ef527663",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.23":
|
|
||||||
"6c45b9a95328b5c250bab14a17af574f7fa284fac0830d6a827e5f6f0b0e6732",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.23":
|
|
||||||
"d656e3c274b43e8d9253d79ce3bd20d6bf1bd3fdb13dfd13e5e07d7aa528906d",
|
|
||||||
"aarch64-apple-darwin-0.5.22":
|
|
||||||
"95496f513653e7246589b2334a04e2a001f6436919af30d68180ce480fd3971a",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.22":
|
|
||||||
"0ff503ff9d473d25d0460a375ff6ec3ed186ee6be2ffedc67642b3c7d77b6299",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.22":
|
|
||||||
"43593ffde18d83f9453a69db70f5dbc61726beefc3bbdb80d1db61612eb26a41",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.22":
|
|
||||||
"78829476fad51a9361aefbb8ee5ed7aa19b981a7d6384e6033115277b761fe94",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.22":
|
|
||||||
"2c6b4876c6aa6e642466fb389cc106f5f9cb4ebb9e389bf2c9e883012d3d127b",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.22":
|
|
||||||
"fc62722c44cd4ccae7e713452bc5d81907852da6d50f3123c4878e510fba52f7",
|
|
||||||
"i686-pc-windows-msvc-0.5.22":
|
|
||||||
"4c4e029f05cd94b09cb3c3ac9d2dd4adeb2a1e54d13a09ba79c244d95d960ba7",
|
|
||||||
"i686-unknown-linux-gnu-0.5.22":
|
|
||||||
"d17ee5a2ea99875781c21ba2acc3785d86ebf27cc76011fa59ae52f21d349a49",
|
|
||||||
"i686-unknown-linux-musl-0.5.22":
|
|
||||||
"092387e1a32a40cee94165d96072e219b299b8d76a25a764659ccb178855c3d8",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.22":
|
|
||||||
"bd8c2b70f461d6cc189abaaaa0d4e75f6b3044eddaef0f790920436f2d7cb772",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.22":
|
|
||||||
"ecd4c18c0a889b7ceaca906340f89ef815b5a7e37fbfb318ec6131f23627b794",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.22":
|
|
||||||
"5c092fb46def4c7a45094905990acfab34cf4ad3af60e6accddbfa81b1409c03",
|
|
||||||
"x86_64-apple-darwin-0.5.22":
|
|
||||||
"5f636c75a976389ec0a4b03b4a7a78b5634daf1915703079cbc514a26c691e18",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.22":
|
|
||||||
"bbe5dc1b2777f170d53d3d7856376eda9229a2c4f74332336e0ef0603325cbe5",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.22":
|
|
||||||
"d15f8595f080817f55f207bf9a67cbce6423e5b1fbfeba58c7e67e86bcc7be41",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.22":
|
|
||||||
"fba667f90b0b89b4171127ebe7b29961250ddbcd9f86116eb195c46afe0857c8",
|
|
||||||
"aarch64-apple-darwin-0.5.21":
|
|
||||||
"74f501d91b4db0b767d5d621086d3e2e8acc3f5356cf5527de80e97bb312a626",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.21":
|
|
||||||
"c4cc2ec78a294378b867ebd08c5842d3ce71074c2818dc7f641422fb3bf4b2d2",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.21":
|
|
||||||
"26152b092f6ace9bec1fe91b39fe11f55428ce5fba87f5de0ec6b16e2c65928f",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.21":
|
|
||||||
"2a90a8976a7efbe5eef613b84285f2f6b0cda7e9547a2e548bf6f253cc06dbb1",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.21":
|
|
||||||
"71b0e840af1e50368d60bdb6a4bb22483b0462e7238e7e08fb624466c4b22c65",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.21":
|
|
||||||
"46a3be0330ebfbeb4c521a523545334ef3bd38ac0b4acab19734c0d50399ac6f",
|
|
||||||
"i686-pc-windows-msvc-0.5.21":
|
|
||||||
"a0583cd71a410ce8329cd0951a72966a1219c1a7c12c437c3072779ce7dfe893",
|
|
||||||
"i686-unknown-linux-gnu-0.5.21":
|
|
||||||
"5d46307d7883f5ec5416c589b65bfedd17544accbe54eabd13d27417bcdf435e",
|
|
||||||
"i686-unknown-linux-musl-0.5.21":
|
|
||||||
"27d220b8e8effd1dc566e6ae7f90e7a074af07f4e61a0406f2c8c9883ef82e33",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.21":
|
|
||||||
"ca744fee2634dfe203683fa809e4b5998564ebf2b8e7f0c329c1229edbe1ea8a",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.21":
|
|
||||||
"1c08d342b4644158eee7723a75f59b3f388ceb4a91106d284d343acfb906bb77",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.21":
|
|
||||||
"892c78a989164f1e6e97a8e07d995bf1ab6c5374ee85d4b47c47c6706bb2e8fe",
|
|
||||||
"x86_64-apple-darwin-0.5.21":
|
|
||||||
"66a0f5ea3aee2d497450138ae1e99f734eed7457af5e839a41ef219d51e90e17",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.21":
|
|
||||||
"9968e8ef4b567d5690ccb9ac6e8338eb56cb964c57430a2843dd21f88ec5b81a",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.21":
|
|
||||||
"e108c300eafae22ad8e6d94519605530f18f8762eb58d2b98a617edfb5d088fc",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.21":
|
|
||||||
"71347d2fdda9e3e7105ecd3a8566e3b607da9fddf23ac83adafcf6451ea9139d",
|
|
||||||
"aarch64-apple-darwin-0.5.20":
|
|
||||||
"d7f0c219808073f8ae8c6a991e85e5c7539b4e539b014a4ca5b3286911f06fd5",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.20":
|
|
||||||
"3d2281312d047288ecb021f4c761cd351f993514e3ea7f369354701b3a44c756",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.20":
|
|
||||||
"162b19dbe6d82fd7846dd6ff25a7a6250ce4ee5d0d55e2e245625382984072b0",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.20":
|
|
||||||
"19a06cf913bfb3d8ecb0e1c0368f98b03e9ec5a35ea3edc03a4e0af04f4f95ad",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.20":
|
|
||||||
"769c07de286d607d0e13e9e83051a5ac0cfe1c34695ece976934345e09e97f4b",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.20":
|
|
||||||
"1330f3e38f6bdae2d2e2d458957e5531cf729989db942832aede12c5e5d5a1ab",
|
|
||||||
"i686-pc-windows-msvc-0.5.20":
|
|
||||||
"389182a593b6f761dffb7c82c3eee3f8e4f4848fbf26fa1e6ab95ac3fcad687b",
|
|
||||||
"i686-unknown-linux-gnu-0.5.20":
|
|
||||||
"88a1e7b7c08682fb379f540cfab31c38c31d5a7a3f227e5446dd9000519c7195",
|
|
||||||
"i686-unknown-linux-musl-0.5.20":
|
|
||||||
"fb105fc9c3bbb4ad44ac5c0066cb9f48912f55a97f65dabaa48367198c0f87ea",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.20":
|
|
||||||
"a42c4bf4e397ed0d85bc5ed8d589f1e3dbd6f24fdbb16469ffa20b63977894aa",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.20":
|
|
||||||
"bf52e43047ad4e7f178b62d2a175f0ee272f014a520726fe293960d03bfa122d",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.20":
|
|
||||||
"69c198eca4c81299a7a323df729e03ce6198d84fa26e9d98ea1e02436933469f",
|
|
||||||
"x86_64-apple-darwin-0.5.20":
|
|
||||||
"22bb373a2bb0f15e441819a054e68798534d536b1b1943fdb813d6b53ffe48a4",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.20":
|
|
||||||
"dede2f71e7a15137ca17e3a1106e3797a650a2e2d607658f31ad4e986de3d67d",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.20":
|
|
||||||
"8fdbfca767917f957e4541747cbf7b23b45c211109dbba97b49962fa3547aab4",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.20":
|
|
||||||
"5326a6d14d4668dafee4ecf36f7664103a25bf0918dfe162c8c49dab017b74ed",
|
|
||||||
"aarch64-apple-darwin-0.5.19":
|
|
||||||
"f223bb08d04257dbba421736f906d91b040f654ab49963afc2f30f7949ae7b79",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.19":
|
|
||||||
"2da1baa85958e5ee36f2ac85b0c56cb99c0c3140f6ff18c60825485b8193eedb",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.19":
|
|
||||||
"ff5b42337bd94f41db157f73b39d41586be8c76d8824550b0f6d5e808e5f0356",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.19":
|
|
||||||
"84ae72130383340e14df47656f1974eb76a28ab7ed8b5c479bdbc8b907ad91e7",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.19":
|
|
||||||
"bec22bc7e1d584749f26bc4d84116faf925f9db484fe0afb58f6a2aa0c04707c",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.19":
|
|
||||||
"79c575e9dcd58cf88e8b2fd37242ac923d04c31a62bed54db78219e35257a262",
|
|
||||||
"i686-pc-windows-msvc-0.5.19":
|
|
||||||
"7f0439c0977baf5573d0c31820887fb0c478d2ef29fdad4256bf0a0b536a387f",
|
|
||||||
"i686-unknown-linux-gnu-0.5.19":
|
|
||||||
"0b9a88787f80bda623987a314875c7cccfed599b5d2803565734c292e2cd33ef",
|
|
||||||
"i686-unknown-linux-musl-0.5.19":
|
|
||||||
"e9a89334fadda0905da42017db76c63da9b1ef02ef9595acea322d1e73f1fea0",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.19":
|
|
||||||
"d891e5a5849e0220a49a31396371303d7f9de6c86b34f306c129a87dc6debfac",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.19":
|
|
||||||
"efeb6ce7adff1ef45ca2e3351011a9a423add39f08676f5f4b85fdf2244fb8cd",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.19":
|
|
||||||
"a37620a3ce3d351adc57ce70249ee0bdce2fbd336886db6b4de4d31447644acb",
|
|
||||||
"x86_64-apple-darwin-0.5.19":
|
|
||||||
"9af5050495e9fc114cabcb4c2dbaded65569ccc0583ab3f62a6d9977984b65fa",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.19":
|
|
||||||
"ada2b3d704a78e118f6c8e215468e8f50eef440211938970cdef79dfafe9ddc5",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.19":
|
|
||||||
"ace8c180865bb87fb3d7004a8cafde78270676d87ab5531615f136cc860db78d",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.19":
|
|
||||||
"eb9d0e1db24c6abbfec3e589f55efd2ef9ce9313f89bf1dd934635d194762b57",
|
|
||||||
"aarch64-apple-darwin-0.5.18":
|
|
||||||
"13bcde0a15c50af976980b484f140e10969df67488542856a2152534f255c675",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.18":
|
|
||||||
"a511f609236b9bfc9dedfcb9867ef1d0f1dc23cc2012f9e4e38e0c184657fd31",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.18":
|
|
||||||
"5b1bd1471f4d8298f11da5f025bdbcc4c8057a24c8b95573003c0320b6fa99a8",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.18":
|
|
||||||
"4262e0a6c14998c8637f1ba018980464a5e6aeb5f35aaa0149643c99a32631b3",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.18":
|
|
||||||
"29d4f9b0c020f55de11c9bd24cf8360771c1893275dd9e3b978f0fe4421bfb4f",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.18":
|
|
||||||
"95049e75c3da2113142da0b9e60451c43fac44702590f4e5abb6fc7cde744429",
|
|
||||||
"i686-pc-windows-msvc-0.5.18":
|
|
||||||
"06729cf6685f0271e91bcb5cf748d18a5c5d793fa9e0a611d0c7541a0aed574a",
|
|
||||||
"i686-unknown-linux-gnu-0.5.18":
|
|
||||||
"d92146688e5b1a7ddb79e8f91d91c8174d44a5945b06797cd17bbf187f13da64",
|
|
||||||
"i686-unknown-linux-musl-0.5.18":
|
|
||||||
"1ec37579d0dec4739c707cb5096c52dea9319196dfd63ea6e121e16074892cac",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.18":
|
|
||||||
"e6cf16040aabb5b1940e88841dcc90967aa592c8c7492699449ca050713cb567",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.18":
|
|
||||||
"3efccbb5820be67b270333f9ca87d2d598e38648a6ea7a3fb9970a5a424be11f",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.18":
|
|
||||||
"f7903ade2a7747041d5d10f043e01e0a6c9c881b6fe7cb1bd54b9efac8ed7620",
|
|
||||||
"x86_64-apple-darwin-0.5.18":
|
|
||||||
"e77b6b35169d2e0a3b43d43690f813136c94e24e4eef72d560e7901e42621d18",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.18":
|
|
||||||
"77f414173d0970c8977a614585fc013290659b0d74ae22be24559fde915832de",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.18":
|
|
||||||
"1dbaeffc5cfac769f99700c0fc8c4ef4494a339720c6bf8b79367b1acd701b46",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.18":
|
|
||||||
"d4d3bf7dda0fd66a34ee99407506b753213bbe6e4076c0c38c4b645d00406979",
|
|
||||||
"aarch64-apple-darwin-0.5.17":
|
|
||||||
"9e041a7c0bbd8a653b2272e03ba5de5b726dcbbccc3ffcc526dc7de9f14ad334",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.17":
|
|
||||||
"22164a4a86272ab2a4af2b01773a7e636f643426831f4dd9c71b2760c592a57b",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.17":
|
|
||||||
"86021b10ad06f97a82d605ae7b7e580cd17d29b2877b65e31ef63db50514d2b0",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.17":
|
|
||||||
"b68e96d7abb87180a44f9b315db2d3f88ad59325b10451b561e0620edd71d476",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.17":
|
|
||||||
"125662419ae6b2332d2bab6764ba8ef9396fd0cc9487a5fbbcf41bdcf379e697",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.17":
|
|
||||||
"f8d2dcee69ad15858a827265db527184bdbd07b60a24e04d2d9787abf781cc0b",
|
|
||||||
"i686-pc-windows-msvc-0.5.17":
|
|
||||||
"1aecdd843d15a0149cf83d07c3b36d184578a6a07fcf2730ef9986393259e960",
|
|
||||||
"i686-unknown-linux-gnu-0.5.17":
|
|
||||||
"4165443b8757cdcd615ccfe721aac5137c7d4165ae9dc2640975c1035018f09c",
|
|
||||||
"i686-unknown-linux-musl-0.5.17":
|
|
||||||
"0242308d2ffe1de6538d79a13aae4cee8a48bfc76e71d559836a2f43808393c0",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.17":
|
|
||||||
"a79bfc1c004339c1da253421b35471af383e724eaffe8ab332685b253402a7c1",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.17":
|
|
||||||
"db2f384a7b9605b9ae03ca493f0c35174577a3b53d238861b11b9dc1c404cb16",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.17":
|
|
||||||
"4312abce9f52dca597c4b4896e8f2f7575d50b2183af4c74412bc26eb6278d3f",
|
|
||||||
"x86_64-apple-darwin-0.5.17":
|
|
||||||
"f66f961bf0c6e2bbc3e45de4692cdebb126edd5af4e920dea91a3fedabc502ee",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.17":
|
|
||||||
"00aed721abc4bb125d92b45733aa65a2254344bffed984d85cf0de6b164f5011",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.17":
|
|
||||||
"6121d9693b2013e970e495872c5a750ff0e471c2618821c2d4314666c0bd9ee7",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.17":
|
|
||||||
"0aa0d03f80422a066396a54c7d9f7f78576a22827860273fd635f97e04f3e1a7",
|
|
||||||
"aarch64-apple-darwin-0.5.16":
|
|
||||||
"0b16039f469df078c1445f5b7f84d3c0342580c4592b5a4b604db2c86dc37c3e",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.16":
|
|
||||||
"59d28abe79037f835020ba834f01ac5c1f96c8556c6ff9a06a8fd5701048731c",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.16":
|
|
||||||
"8913580d960e1d5a24316506b9925cb6aa4ab6547d88d7cab1aa5049825e1d4a",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.16":
|
|
||||||
"e97d623d641a3c807bcafef222544786813ed5176d0dbea8d0f6adc2deea88b7",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.16":
|
|
||||||
"fe814f38a72c7f264e4cd8fdcb84519bf92a88f0e67d7a0a6a38dc18e938c0fc",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.16":
|
|
||||||
"f72c8302fa59190a90ccb743d90d3efae71e78ea7c6b52c68b3e23b6c6fb3276",
|
|
||||||
"i686-pc-windows-msvc-0.5.16":
|
|
||||||
"fe24a7b1438152d8dcc7acedaad3b15362ef2e58d496611819fd8b99942dc2ed",
|
|
||||||
"i686-unknown-linux-gnu-0.5.16":
|
|
||||||
"d2ddc285d3962b45e05a59e62fb188d7bad3f969b45ff5256db0226efe44208b",
|
|
||||||
"i686-unknown-linux-musl-0.5.16":
|
|
||||||
"ac6b59b6b383a852ba5c22df777f9c3f39a85364a485bcc4203ca427417cb25b",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.16":
|
|
||||||
"1ff9c39c6660548aa69934a25c8d92ffb11a7c9c1f39db9795e9f061ff34a8bd",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.16":
|
|
||||||
"87c568a126d59d66b99ec087182f4cd9de336678dfb60c51da35d678160875d6",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.16":
|
|
||||||
"23c8331689d99c6fb70646a41a9d8ef5211d4eefe25baebb08b6b6c7f126af6e",
|
|
||||||
"x86_64-apple-darwin-0.5.16":
|
|
||||||
"72732a379d2aff6585c6bfd52593042a470e752d6af685cc01e1ee06d817cddb",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.16":
|
|
||||||
"3fe298d7b10b63e9cec6711d03853874735f1dd33f655ad3ee6677965807883f",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.16":
|
|
||||||
"a320393232ac29acfe75cd0d3fb943ee2a5cc3727d2c9d1bb14bb9eea1fc60c9",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.16":
|
|
||||||
"82962a1ef9ca888c32933fe9022c4b946e9bf047ffb0084a614b8cf7a5306dbf",
|
|
||||||
"aarch64-apple-darwin-0.5.15":
|
|
||||||
"bb7409c4d7d503e929bcd31bf179ae6f555f5092d0d5dc38df37be9f29832859",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.15":
|
|
||||||
"02f69686d0e1fe9673bb449fc45e53e6bfb0f48c5d371b35c145828c4239f123",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.15":
|
|
||||||
"78ac5d4c7b9773bb3f6867f452ed83dd2f38f26116d2369ff5b4ea02eb7519bd",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.15":
|
|
||||||
"f416a9350161feacc48a96f90a1a38244d70f3ba07fbf96010ed477ff69814ed",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.15":
|
|
||||||
"182c316f44df157979e7430fb952eced1ad8020d1d8d810e88ce6985c9428615",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.15":
|
|
||||||
"0b4400e8c22921355d5e69cf17cb0a44da93af09125e1dc636a69d2175a23898",
|
|
||||||
"i686-pc-windows-msvc-0.5.15":
|
|
||||||
"9092e142ce3a35f8c9f36058c3278f6b99718c02d8b904001ccc1cd918a0c798",
|
|
||||||
"i686-unknown-linux-gnu-0.5.15":
|
|
||||||
"d945431e618c2688ac62e640c16022c587a6f80677c64346280143d83939f93f",
|
|
||||||
"i686-unknown-linux-musl-0.5.15":
|
|
||||||
"6e1a968662a0952083e9a297ec067606621f93b55ccfbdd8ca475fd13b328d90",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.15":
|
|
||||||
"58a6663e477645194c34dfac96b4c42ba6e7c4b5aa851c1e52276769b279b605",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.15":
|
|
||||||
"c7281fa8fedd6332c594faa7e1dc1555960c7fb60d3e1b013309651b8d53377d",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.15":
|
|
||||||
"590751ffaf36f3f01b66afcb7de844ed0f69aeb2b54595cf191a4e60ddfab11c",
|
|
||||||
"x86_64-apple-darwin-0.5.15":
|
|
||||||
"6a729cb237d895eebeb65363419f41b217dbcd745819bcef61098a5ddd583f08",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.15":
|
|
||||||
"2c49a892f793b957b0add32aa21a64940caf4bc03319cf0bb3b27caeebb985f7",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.15":
|
|
||||||
"6c650324daafc07331c00b458872d50f56f160544015c8a499fd2e160b404ebb",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.15":
|
|
||||||
"40d8564e954bbd18f2c5ba80978491c3a25ab49e067664daf525e34c38a370b8",
|
|
||||||
"aarch64-apple-darwin-0.5.14":
|
|
||||||
"d548dffc256014c4c8c693e148140a3a21bcc2bf066a35e1d5f0d24c91d32112",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.14":
|
|
||||||
"1c9cdb265b0c24ce2e74b7795a00842dc6d487c11ba49aa6c9ca1c784b82755a",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.14":
|
|
||||||
"64c5321f5141db39e04209d170db34fcef5c8de3f561346dc0c1d132801c4f88",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.14":
|
|
||||||
"903f87c609479099c87c229429f2a25f451689d862ee19170f6d87ab656815a0",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.14":
|
|
||||||
"c33a4caa441c770ca720d301059eeb6af5473ceb22b69adf08b99043c3e4a854",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.14":
|
|
||||||
"c3b1bbe0d70e916abdd557092bf94c4830f98c471fe7d45b23d4dec8546251f3",
|
|
||||||
"i686-pc-windows-msvc-0.5.14":
|
|
||||||
"2ea709cf816b70661c6aa43d6aff7526faebafc2d45f7167d3192c5b9bb0a28f",
|
|
||||||
"i686-unknown-linux-gnu-0.5.14":
|
|
||||||
"74fd05a1e04bb8c591cb4531d517848d1e2cdc05762ccd291429c165e2a19aa1",
|
|
||||||
"i686-unknown-linux-musl-0.5.14":
|
|
||||||
"a616553164336a57fc154a424d44cd75eb06104bc4e69f3d757e3da90a90d31f",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.14":
|
|
||||||
"4b675ac963f4d90034f8b8de8b03e0691b7e48eb8ce7bf5449ea65774750dfd4",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.14":
|
|
||||||
"2a7bb1d27a6a057cbd5f62a5bc2ec77175c71224de8fb1bb5107acb1a07cc02a",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.14":
|
|
||||||
"68acbfadd9e100b69b31f4995265b716465df909a7d110bba76d93e8adc3a76b",
|
|
||||||
"x86_64-apple-darwin-0.5.14":
|
|
||||||
"8caf91b936ede1167abaebae07c2a1cbb22473355fa0ad7ebb2580307e84fb47",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.14":
|
|
||||||
"ee2468e40320a0a2a36435e66bbd0d861228c4c06767f22d97876528138f4ba0",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.14":
|
|
||||||
"22034760075b92487b326da5aa1a2a3e1917e2e766c12c0fd466fccda77013c7",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.14":
|
|
||||||
"e1ccdfe1691c1f791d84bb6e1697e49416ca4b62103dcdf3b63772f03834f113",
|
|
||||||
"aarch64-apple-darwin-0.5.13":
|
|
||||||
"8a1ddbe5131c50cbf5247f2f335252d14767a7ff74f08c8a1813f003bc86d37f",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.13":
|
|
||||||
"d0054db9ba0ec472ee6d28fa3eda94fb021b5e77c962f3bb1ff4b4fa7934e66d",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.13":
|
|
||||||
"fcbc405bdf8f6edf25818b756af702e8161528f4317d65310d9a0d4e02d7f544",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.13":
|
|
||||||
"ba382034294dffcbe36d4a299a5c69c4f48caac9c4b78a1727c7fc9101175202",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.13":
|
|
||||||
"cc28eeaa29b85f17c27cefe96497b3448024e14b5bc92921e1b7d157375d2334",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.13":
|
|
||||||
"449b680c4a3d936e9005e39983208a183e0fffa62fe73e6daed85f51389fc40e",
|
|
||||||
"i686-pc-windows-msvc-0.5.13":
|
|
||||||
"c1531c2f1eb8c36b2947abf039caf1aeba4253c3c35716705ca339a0a3d96594",
|
|
||||||
"i686-unknown-linux-gnu-0.5.13":
|
|
||||||
"35b964c75699b6569d950fb39561146b830101403c9a937ace1fc64fc1967c1b",
|
|
||||||
"i686-unknown-linux-musl-0.5.13":
|
|
||||||
"a33007ed60d67fa4c5b7689c1adb33751a5c1a8732057ed84b9deddbb39cd3a6",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.13":
|
|
||||||
"9e34fc400e51f3331452083dd5e54fadc0f3be81f7901772366faf4c75e2680b",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.13":
|
|
||||||
"ee01812f102379bc9bb6ea991f81536c9546a5f0d4990b9ed1fbb1900cb5f647",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.13":
|
|
||||||
"f43c42318411ff5f3e8ea4be2228e71fb28b01ffcc08259bb301877c7f7155e0",
|
|
||||||
"x86_64-apple-darwin-0.5.13":
|
|
||||||
"f871b2b002b750438e5e6df4b0809a9f7d089bc5d4d0466bc63577c9ecc59979",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.13":
|
|
||||||
"c8a2e7e8bd87866fd1d52dbd4b4c0d85f328a6dcdeff17b85cc9c9af447ef3c3",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.13":
|
|
||||||
"0127da50d3c361d094545aab32921bbce856b3fcc24f1d10436a6426b3f16330",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.13":
|
|
||||||
"1afaef0180a6b9fe43fa6658443796b8e235fc41382a451634515890cf3aca06",
|
|
||||||
"aarch64-apple-darwin-0.5.12":
|
|
||||||
"9eb8e0d3487f5389bec2c60cea37bb0a4d028513bffe854b9ece82d538c0f312",
|
|
||||||
"aarch64-unknown-linux-gnu-0.5.12":
|
|
||||||
"ed8b4928a148365a84133ce96344fc22ac62674db2c6bef88853d0e38791e8d8",
|
|
||||||
"aarch64-unknown-linux-musl-0.5.12":
|
|
||||||
"3ce19d81232cd2dcc2646060370a1583ca5558e7f61d934ae22798006719341d",
|
|
||||||
"arm-unknown-linux-musleabihf-0.5.12":
|
|
||||||
"744409cd0b7f6314b8ba140cb63f72e2576dfec5c83491d12455775d870d508d",
|
|
||||||
"armv7-unknown-linux-gnueabihf-0.5.12":
|
|
||||||
"452f8b769818858c3343444396d270d34026f0f7649cc89c4076ecdc8eb6d391",
|
|
||||||
"armv7-unknown-linux-musleabihf-0.5.12":
|
|
||||||
"35abf5e98f2c9a8250045a58a568086f0e223be703c090134bedaf6279ebaac5",
|
|
||||||
"i686-pc-windows-msvc-0.5.12":
|
|
||||||
"04f91508e6aeb7a2054e98552ff537b9863afbcbd4f72ba8bf8d9e9e25b37808",
|
|
||||||
"i686-unknown-linux-gnu-0.5.12":
|
|
||||||
"38c8fbdb74ee9eb95ecdb4b843d9014d47214cdf5415520378161979d1b0cb34",
|
|
||||||
"i686-unknown-linux-musl-0.5.12":
|
|
||||||
"6a8bb35f83c2a66711da3cee8d939e8893b34b25ae6cb53590c111637a93d527",
|
|
||||||
"powerpc64-unknown-linux-gnu-0.5.12":
|
|
||||||
"d1477f41b919c60d10a191bd81aeec0185cec7efb0364d9689b202b3a6607912",
|
|
||||||
"powerpc64le-unknown-linux-gnu-0.5.12":
|
|
||||||
"12629950b444487c66a3a99f0ff0f82f11a7b0a57e8305b2767eed5b85a4a3bb",
|
|
||||||
"s390x-unknown-linux-gnu-0.5.12":
|
|
||||||
"36fc6d9ee6294ce54a2e3e92f10df094bebdd2862c29223bde18361aad9a9f1d",
|
|
||||||
"x86_64-apple-darwin-0.5.12":
|
|
||||||
"78f38c88bf5e410600cd8f8ee4d5ba3ee781c94c091b1a57566256a2178ef4a3",
|
|
||||||
"x86_64-pc-windows-msvc-0.5.12":
|
|
||||||
"04b45a4af12c0bb7cc31004dfcfed2e722c4ca07e1ac58850f93a9343dd5d06f",
|
|
||||||
"x86_64-unknown-linux-gnu-0.5.12":
|
|
||||||
"65b8dcf3f3e592887fae0daf1b3a9e3aad1262f74bb21cf80d1700c7caba7f23",
|
|
||||||
"x86_64-unknown-linux-musl-0.5.12":
|
|
||||||
"bd517e6508feef0261289b16c844c377127f21377c18c4a564d0d09add556fca",
|
|
||||||
"aarch64-apple-darwin-0.5.11":
|
"aarch64-apple-darwin-0.5.11":
|
||||||
"695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4",
|
"695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4",
|
||||||
"aarch64-unknown-linux-gnu-0.5.11":
|
"aarch64-unknown-linux-gnu-0.5.11":
|
||||||
|
|||||||
@@ -2,14 +2,15 @@ import * as core from "@actions/core";
|
|||||||
import * as tc from "@actions/tool-cache";
|
import * as tc from "@actions/tool-cache";
|
||||||
import * as path from "node:path";
|
import * as path from "node:path";
|
||||||
import { promises as fs } from "node:fs";
|
import { promises as fs } from "node:fs";
|
||||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
import {
|
||||||
|
GITHUB_COM_API,
|
||||||
|
OWNER,
|
||||||
|
REPO,
|
||||||
|
TOOL_CACHE_NAME,
|
||||||
|
} from "../utils/constants";
|
||||||
import type { Architecture, Platform } from "../utils/platforms";
|
import type { Architecture, Platform } from "../utils/platforms";
|
||||||
import { validateChecksum } from "./checksum/checksum";
|
import { validateChecksum } from "./checksum/checksum";
|
||||||
import { Octokit } from "@octokit/core";
|
import * as github from "@actions/github";
|
||||||
import { paginateRest } from "@octokit/plugin-paginate-rest";
|
|
||||||
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
|
||||||
|
|
||||||
const PaginatingOctokit = Octokit.plugin(paginateRest, restEndpointMethods);
|
|
||||||
|
|
||||||
export function tryGetFromToolCache(
|
export function tryGetFromToolCache(
|
||||||
arch: Architecture,
|
arch: Architecture,
|
||||||
@@ -95,26 +96,8 @@ export async function resolveVersion(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getAvailableVersions(githubToken: string): Promise<string[]> {
|
async function getAvailableVersions(githubToken: string): Promise<string[]> {
|
||||||
try {
|
const octokit = github.getOctokit(githubToken, { baseUrl: GITHUB_COM_API });
|
||||||
const octokit = new PaginatingOctokit({
|
|
||||||
auth: githubToken,
|
|
||||||
});
|
|
||||||
return await getReleaseTagNames(octokit);
|
|
||||||
} catch (err) {
|
|
||||||
if ((err as Error).message.includes("Bad credentials")) {
|
|
||||||
core.info(
|
|
||||||
"No (valid) GitHub token provided. Falling back to anonymous. Requests might be rate limited.",
|
|
||||||
);
|
|
||||||
const octokit = new PaginatingOctokit();
|
|
||||||
return await getReleaseTagNames(octokit);
|
|
||||||
}
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getReleaseTagNames(
|
|
||||||
octokit: InstanceType<typeof PaginatingOctokit>,
|
|
||||||
): Promise<string[]> {
|
|
||||||
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
||||||
owner: OWNER,
|
owner: OWNER,
|
||||||
repo: REPO,
|
repo: REPO,
|
||||||
@@ -123,37 +106,15 @@ async function getReleaseTagNames(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getLatestVersion(githubToken: string) {
|
async function getLatestVersion(githubToken: string) {
|
||||||
const octokit = new PaginatingOctokit({
|
const octokit = github.getOctokit(githubToken, { baseUrl: GITHUB_COM_API });
|
||||||
auth: githubToken,
|
|
||||||
});
|
|
||||||
|
|
||||||
let latestRelease: { tag_name: string } | undefined;
|
const { data: latestRelease } = await octokit.rest.repos.getLatestRelease({
|
||||||
try {
|
owner: OWNER,
|
||||||
latestRelease = await getLatestRelease(octokit);
|
repo: REPO,
|
||||||
} catch (err) {
|
});
|
||||||
if ((err as Error).message.includes("Bad credentials")) {
|
|
||||||
core.info(
|
|
||||||
"No (valid) GitHub token provided. Falling back to anonymous. Requests might be rate limited.",
|
|
||||||
);
|
|
||||||
const octokit = new PaginatingOctokit();
|
|
||||||
latestRelease = await getLatestRelease(octokit);
|
|
||||||
} else {
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!latestRelease) {
|
if (!latestRelease) {
|
||||||
throw new Error("Could not determine latest release.");
|
throw new Error("Could not determine latest release.");
|
||||||
}
|
}
|
||||||
return latestRelease.tag_name;
|
return latestRelease.tag_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getLatestRelease(
|
|
||||||
octokit: InstanceType<typeof PaginatingOctokit>,
|
|
||||||
) {
|
|
||||||
const { data: latestRelease } = await octokit.rest.repos.getLatestRelease({
|
|
||||||
owner: OWNER,
|
|
||||||
repo: REPO,
|
|
||||||
});
|
|
||||||
return latestRelease;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -18,16 +18,12 @@ import {
|
|||||||
checkSum,
|
checkSum,
|
||||||
enableCache,
|
enableCache,
|
||||||
githubToken,
|
githubToken,
|
||||||
pyProjectFile,
|
|
||||||
pythonVersion,
|
pythonVersion,
|
||||||
toolBinDir,
|
toolBinDir,
|
||||||
toolDir,
|
toolDir,
|
||||||
uvFile,
|
version,
|
||||||
version as versionInput,
|
|
||||||
} from "./utils/inputs";
|
} from "./utils/inputs";
|
||||||
import * as exec from "@actions/exec";
|
import * as exec from "@actions/exec";
|
||||||
import fs from "node:fs";
|
|
||||||
import { getUvVersionFromConfigFile } from "./utils/pyproject";
|
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
const platform = getPlatform();
|
const platform = getPlatform();
|
||||||
@@ -40,7 +36,13 @@ async function run(): Promise<void> {
|
|||||||
if (arch === undefined) {
|
if (arch === undefined) {
|
||||||
throw new Error(`Unsupported architecture: ${process.arch}`);
|
throw new Error(`Unsupported architecture: ${process.arch}`);
|
||||||
}
|
}
|
||||||
const setupResult = await setupUv(platform, arch, checkSum, githubToken);
|
const setupResult = await setupUv(
|
||||||
|
platform,
|
||||||
|
arch,
|
||||||
|
version,
|
||||||
|
checkSum,
|
||||||
|
githubToken,
|
||||||
|
);
|
||||||
|
|
||||||
addUvToPath(setupResult.uvDir);
|
addUvToPath(setupResult.uvDir);
|
||||||
addToolBinToPath();
|
addToolBinToPath();
|
||||||
@@ -64,10 +66,11 @@ async function run(): Promise<void> {
|
|||||||
async function setupUv(
|
async function setupUv(
|
||||||
platform: Platform,
|
platform: Platform,
|
||||||
arch: Architecture,
|
arch: Architecture,
|
||||||
|
versionInput: string,
|
||||||
checkSum: string | undefined,
|
checkSum: string | undefined,
|
||||||
githubToken: string,
|
githubToken: string,
|
||||||
): Promise<{ uvDir: string; version: string }> {
|
): Promise<{ uvDir: string; version: string }> {
|
||||||
const resolvedVersion = await determineVersion();
|
const resolvedVersion = await resolveVersion(versionInput, githubToken);
|
||||||
const toolCacheResult = tryGetFromToolCache(arch, resolvedVersion);
|
const toolCacheResult = tryGetFromToolCache(arch, resolvedVersion);
|
||||||
if (toolCacheResult.installedPath) {
|
if (toolCacheResult.installedPath) {
|
||||||
core.info(`Found uv in tool-cache for ${toolCacheResult.version}`);
|
core.info(`Found uv in tool-cache for ${toolCacheResult.version}`);
|
||||||
@@ -91,28 +94,6 @@ async function setupUv(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async function determineVersion(): Promise<string> {
|
|
||||||
if (versionInput !== "") {
|
|
||||||
return await resolveVersion(versionInput, githubToken);
|
|
||||||
}
|
|
||||||
const configFile = uvFile !== "" ? uvFile : pyProjectFile;
|
|
||||||
if (configFile !== "") {
|
|
||||||
const versionFromConfigFile = getUvVersionFromConfigFile(configFile);
|
|
||||||
if (versionFromConfigFile === undefined) {
|
|
||||||
core.warning(
|
|
||||||
`Could not find required-version under [tool.uv] in ${configFile}. Falling back to latest`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return await resolveVersion(versionFromConfigFile || "latest", githubToken);
|
|
||||||
}
|
|
||||||
if (!fs.existsSync("uv.toml") && !fs.existsSync("pyproject.toml")) {
|
|
||||||
return await resolveVersion("latest", githubToken);
|
|
||||||
}
|
|
||||||
const versionFile = fs.existsSync("uv.toml") ? "uv.toml" : "pyproject.toml";
|
|
||||||
const versionFromConfigFile = getUvVersionFromConfigFile(versionFile);
|
|
||||||
return await resolveVersion(versionFromConfigFile || "latest", githubToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
function addUvToPath(cachedPath: string): void {
|
function addUvToPath(cachedPath: string): void {
|
||||||
core.addPath(cachedPath);
|
core.addPath(cachedPath);
|
||||||
core.info(`Added ${cachedPath} to the path`);
|
core.info(`Added ${cachedPath} to the path`);
|
||||||
@@ -161,8 +142,8 @@ async function setupPython(): Promise<void> {
|
|||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
venvBinPath = ".venv/Scripts";
|
venvBinPath = ".venv/Scripts";
|
||||||
}
|
}
|
||||||
core.addPath(path.resolve(venvBinPath));
|
core.addPath(venvBinPath);
|
||||||
core.exportVariable("VIRTUAL_ENV", path.resolve(".venv"));
|
core.exportVariable("VIRTUAL_ENV", ".venv");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,16 @@
|
|||||||
import * as semver from "semver";
|
import * as github from "@actions/github";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import { Octokit } from "@octokit/core";
|
|
||||||
import { paginateRest } from "@octokit/plugin-paginate-rest";
|
|
||||||
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
|
||||||
|
|
||||||
import { OWNER, REPO } from "./utils/constants";
|
import { GITHUB_COM_API, OWNER, REPO } from "./utils/constants";
|
||||||
|
import * as semver from "semver";
|
||||||
|
|
||||||
import { updateChecksums } from "./download/checksum/update-known-checksums";
|
import { updateChecksums } from "./download/checksum/update-known-checksums";
|
||||||
|
|
||||||
const PaginatingOctokit = Octokit.plugin(paginateRest, restEndpointMethods);
|
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
const checksumFilePath = process.argv.slice(2)[0];
|
const checksumFilePath = process.argv.slice(2)[0];
|
||||||
const github_token = process.argv.slice(2)[1];
|
const github_token = process.argv.slice(2)[1];
|
||||||
|
|
||||||
const octokit = new PaginatingOctokit({
|
const octokit = github.getOctokit(github_token, { baseUrl: GITHUB_COM_API });
|
||||||
auth: github_token,
|
|
||||||
});
|
|
||||||
|
|
||||||
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
const response = await octokit.paginate(octokit.rest.repos.listReleases, {
|
||||||
owner: OWNER,
|
owner: OWNER,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
export const REPO = "uv";
|
export const REPO = "uv";
|
||||||
export const OWNER = "astral-sh";
|
export const OWNER = "astral-sh";
|
||||||
export const TOOL_CACHE_NAME = "uv";
|
export const TOOL_CACHE_NAME = "uv";
|
||||||
|
export const GITHUB_COM_API = "https://api.github.com";
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import * as core from "@actions/core";
|
|||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
export const version = core.getInput("version");
|
export const version = core.getInput("version");
|
||||||
export const pyProjectFile = core.getInput("pyproject-file");
|
|
||||||
export const uvFile = core.getInput("uv-file");
|
|
||||||
export const pythonVersion = core.getInput("python-version");
|
export const pythonVersion = core.getInput("python-version");
|
||||||
export const checkSum = core.getInput("checksum");
|
export const checkSum = core.getInput("checksum");
|
||||||
export const enableCache = getEnableCache();
|
export const enableCache = getEnableCache();
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
import fs from "node:fs";
|
|
||||||
import * as core from "@actions/core";
|
|
||||||
import * as toml from "smol-toml";
|
|
||||||
|
|
||||||
export function getUvVersionFromConfigFile(
|
|
||||||
filePath: string,
|
|
||||||
): string | undefined {
|
|
||||||
if (!fs.existsSync(filePath)) {
|
|
||||||
core.warning(`Could not find file: ${filePath}`);
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
let requiredVersion: string | undefined;
|
|
||||||
try {
|
|
||||||
requiredVersion = getRequiredVersion(filePath);
|
|
||||||
} catch (err) {
|
|
||||||
const message = (err as Error).message;
|
|
||||||
core.warning(`Error while parsing ${filePath}: ${message}`);
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (requiredVersion?.startsWith("==")) {
|
|
||||||
requiredVersion = requiredVersion.slice(2);
|
|
||||||
}
|
|
||||||
if (requiredVersion !== undefined) {
|
|
||||||
core.info(
|
|
||||||
`Found required-version for uv in ${filePath}: ${requiredVersion}`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return requiredVersion;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getRequiredVersion(filePath: string): string | undefined {
|
|
||||||
const fileContent = fs.readFileSync(filePath, "utf-8");
|
|
||||||
|
|
||||||
if (filePath.endsWith("pyproject.toml")) {
|
|
||||||
const tomlContent = toml.parse(fileContent) as {
|
|
||||||
tool?: { uv?: { "required-version"?: string } };
|
|
||||||
};
|
|
||||||
return tomlContent?.tool?.uv?.["required-version"];
|
|
||||||
}
|
|
||||||
const tomlContent = toml.parse(fileContent) as {
|
|
||||||
"required-version"?: string;
|
|
||||||
};
|
|
||||||
return tomlContent["required-version"];
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
||||||
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
||||||
"outDir": "./lib" /* Redirect output structure to the directory. */,
|
"outDir": "./lib" /* Redirect output structure to the directory. */,
|
||||||
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
||||||
|
|||||||
Reference in New Issue
Block a user