Merge pull request #187 from mikepenz/develop

dev -> main
This commit is contained in:
Mike Penz
2021-02-15 17:23:19 +01:00
committed by GitHub
5 changed files with 694 additions and 609 deletions
+2
View File
@@ -131,6 +131,8 @@ The action supports flexible configuration options to modify vast areas of its b
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
⚠️ When running this action for a non tags trigger the `toTag` can't be automatically resolved, as such it is either required to provide `toTag` directly, or to specify a different `fetch-depth:` with the checkout action to include tags.
💡 By default not specifying `fromTag` or `toTag` will resolve `toTag` from either the `ref` or alternatively fallback to the latest tag from git. `fromTag` is resolved by sorting tags using [semver](https://semver.org/). Check the [configuration](#configuration-specification) for alternatives.
This configuration is a `.json` file in the following format.
Generated Vendored
+64 -54
View File
@@ -3831,7 +3831,7 @@ function _objectWithoutProperties(source, excluded) {
return target;
}
const VERSION = "3.2.4";
const VERSION = "3.2.5";
class Octokit {
constructor(options = {}) {
@@ -4335,7 +4335,7 @@ function withDefaults(oldDefaults, newDefaults) {
});
}
const VERSION = "6.0.10";
const VERSION = "6.0.11";
const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
// So we use RequestParameters and add method as additional required property.
@@ -4372,7 +4372,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
var request = __nccwpck_require__(6234);
var universalUserAgent = __nccwpck_require__(5030);
const VERSION = "4.5.8";
const VERSION = "4.6.0";
class GraphqlError extends Error {
constructor(request, response) {
@@ -4485,7 +4485,7 @@ exports.withCustomRequest = withCustomRequest;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const VERSION = "2.8.0";
const VERSION = "2.9.1";
/**
* Some list response that can be paginated have a different response structure
@@ -4625,7 +4625,7 @@ exports.paginateRest = paginateRest;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const VERSION = "1.0.2";
const VERSION = "1.0.3";
/**
* @param octokit Octokit instance
@@ -4907,15 +4907,24 @@ const Endpoints = {
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"],
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"],
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"]
setRestrictionsForYourPublicRepos: ["PUT /user/interaction-limits", {}, {
renamed: ["interactions", "setRestrictionsForAuthenticatedUser"]
}]
},
issues: {
addAssignees: ["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],
@@ -5695,7 +5704,7 @@ const Endpoints = {
}
};
const VERSION = "4.8.0";
const VERSION = "4.10.3";
function endpointsToMethods(octokit, endpointsMap) {
const newMethods = {};
@@ -5879,7 +5888,7 @@ var isPlainObject = __nccwpck_require__(3287);
var nodeFetch = _interopDefault(__nccwpck_require__(467));
var requestError = __nccwpck_require__(537);
const VERSION = "5.4.12";
const VERSION = "5.4.14";
function getBufferResponse(response) {
return response.arrayBuffer();
@@ -6032,7 +6041,7 @@ var pluginRequestLog = __nccwpck_require__(8883);
var pluginPaginateRest = __nccwpck_require__(4193);
var pluginRestEndpointMethods = __nccwpck_require__(3044);
const VERSION = "18.0.14";
const VERSION = "18.1.1";
const Octokit = core.Octokit.plugin(pluginRequestLog.requestLog, pluginRestEndpointMethods.restEndpointMethods, pluginPaginateRest.paginateRest).defaults({
userAgent: `octokit-rest.js/${VERSION}`
@@ -6111,51 +6120,51 @@ module.exports.Collection = Hook.Collection
/***/ 5549:
/***/ ((module) => {
module.exports = addHook
module.exports = addHook;
function addHook (state, kind, name, hook) {
var orig = hook
function addHook(state, kind, name, hook) {
var orig = hook;
if (!state.registry[name]) {
state.registry[name] = []
state.registry[name] = [];
}
if (kind === 'before') {
if (kind === "before") {
hook = function (method, options) {
return Promise.resolve()
.then(orig.bind(null, options))
.then(method.bind(null, options))
}
.then(method.bind(null, options));
};
}
if (kind === 'after') {
if (kind === "after") {
hook = function (method, options) {
var result
var result;
return Promise.resolve()
.then(method.bind(null, options))
.then(function (result_) {
result = result_
return orig(result, options)
result = result_;
return orig(result, options);
})
.then(function () {
return result
})
}
return result;
});
};
}
if (kind === 'error') {
if (kind === "error") {
hook = function (method, options) {
return Promise.resolve()
.then(method.bind(null, options))
.catch(function (error) {
return orig(error, options)
})
}
return orig(error, options);
});
};
}
state.registry[name].push({
hook: hook,
orig: orig
})
orig: orig,
});
}
@@ -6164,33 +6173,32 @@ function addHook (state, kind, name, hook) {
/***/ 4670:
/***/ ((module) => {
module.exports = register
module.exports = register;
function register (state, name, method, options) {
if (typeof method !== 'function') {
throw new Error('method for before hook must be a function')
function register(state, name, method, options) {
if (typeof method !== "function") {
throw new Error("method for before hook must be a function");
}
if (!options) {
options = {}
options = {};
}
if (Array.isArray(name)) {
return name.reverse().reduce(function (callback, name) {
return register.bind(null, state, name, callback, options)
}, method)()
return register.bind(null, state, name, callback, options);
}, method)();
}
return Promise.resolve()
.then(function () {
if (!state.registry[name]) {
return method(options)
}
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)()
})
return state.registry[name].reduce(function (method, registered) {
return registered.hook.bind(null, method, options);
}, method)();
});
}
@@ -6199,22 +6207,24 @@ function register (state, name, method, options) {
/***/ 6819:
/***/ ((module) => {
module.exports = removeHook
module.exports = removeHook;
function removeHook (state, name, method) {
function removeHook(state, name, method) {
if (!state.registry[name]) {
return
return;
}
var index = state.registry[name]
.map(function (registered) { return registered.orig })
.indexOf(method)
.map(function (registered) {
return registered.orig;
})
.indexOf(method);
if (index === -1) {
return
return;
}
state.registry[name].splice(index, 1)
state.registry[name].splice(index, 1);
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+621 -548
View File
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -35,24 +35,24 @@
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.4",
"@actions/github": "^4.0.0",
"@octokit/rest": "^18.0.13",
"@octokit/rest": "^18.1.1",
"@types/semver": "^7.3.4",
"moment": "^2.29.1",
"semver": "^7.3.4"
},
"devDependencies": {
"@types/jest": "^26.0.19",
"@types/node": "^14.14.22",
"@typescript-eslint/parser": "^4.14.0",
"@types/node": "^14.14.28",
"@typescript-eslint/parser": "^4.15.0",
"@vercel/ncc": "^0.27.0",
"eslint": "^7.18.0",
"eslint": "^7.20.0",
"eslint-plugin-github": "^4.1.1",
"eslint-plugin-jest": "^24.1.3",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"js-yaml": "^4.0.0",
"prettier": "2.2.1",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3"
"ts-jest": "^26.5.1",
"typescript": "^4.1.5"
}
}