Skip to content

Commit fca9117

Browse files
authored
v6 (#2082)
1 parent b6ec9cb commit fca9117

File tree

8 files changed

+4696
-9820
lines changed

8 files changed

+4696
-9820
lines changed

.eslintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@
1414
"plugins": ["@typescript-eslint"],
1515
"rules": {
1616
"@typescript-eslint/camelcase": "off"
17+
},
18+
"settings": {
19+
"import/resolver": {
20+
"typescript": {}
21+
}
1722
}
1823
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v5
2424
- uses: actions/setup-node@v5
2525
with:
26-
node-version: 20.x
26+
node-version-file: package.json
2727
cache: npm
2828
- run: npm ci
2929
- run: npm run build

.github/workflows/update-major-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
type: choice
1212
description: The major version tag to update
1313
options:
14-
- v5
14+
- v6
1515

1616
jobs:
1717
tag:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If the file does not exist the action exits silently.
1414

1515
```yml
1616
- name: Create Issue From File
17-
uses: peter-evans/create-issue-from-file@v5
17+
uses: peter-evans/create-issue-from-file@v6
1818
with:
1919
title: An example issue
2020
content-filepath: ./example-content/output.md

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ outputs:
2222
issue-number:
2323
description: 'The number of the created issue'
2424
runs:
25-
using: 'node20'
25+
using: 'node24'
2626
main: 'dist/index.js'
2727
branding:
2828
icon: 'alert-circle'

dist/index.js

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3749,25 +3749,40 @@ var __copyProps = (to, from, except, desc) => {
37493749
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
37503750

37513751
// pkg/dist-src/index.js
3752-
var dist_src_exports = {};
3753-
__export(dist_src_exports, {
3752+
var index_exports = {};
3753+
__export(index_exports, {
37543754
Octokit: () => Octokit
37553755
});
3756-
module.exports = __toCommonJS(dist_src_exports);
3756+
module.exports = __toCommonJS(index_exports);
37573757
var import_universal_user_agent = __nccwpck_require__(3843);
37583758
var import_before_after_hook = __nccwpck_require__(2732);
37593759
var import_request = __nccwpck_require__(8636);
37603760
var import_graphql = __nccwpck_require__(7);
37613761
var import_auth_token = __nccwpck_require__(7864);
37623762

37633763
// pkg/dist-src/version.js
3764-
var VERSION = "5.2.0";
3764+
var VERSION = "5.2.2";
37653765

37663766
// pkg/dist-src/index.js
37673767
var noop = () => {
37683768
};
37693769
var consoleWarn = console.warn.bind(console);
37703770
var consoleError = console.error.bind(console);
3771+
function createLogger(logger = {}) {
3772+
if (typeof logger.debug !== "function") {
3773+
logger.debug = noop;
3774+
}
3775+
if (typeof logger.info !== "function") {
3776+
logger.info = noop;
3777+
}
3778+
if (typeof logger.warn !== "function") {
3779+
logger.warn = consoleWarn;
3780+
}
3781+
if (typeof logger.error !== "function") {
3782+
logger.error = consoleError;
3783+
}
3784+
return logger;
3785+
}
37713786
var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
37723787
var Octokit = class {
37733788
static {
@@ -3841,15 +3856,7 @@ var Octokit = class {
38413856
}
38423857
this.request = import_request.request.defaults(requestDefaults);
38433858
this.graphql = (0, import_graphql.withCustomRequest)(this.request).defaults(requestDefaults);
3844-
this.log = Object.assign(
3845-
{
3846-
debug: noop,
3847-
info: noop,
3848-
warn: consoleWarn,
3849-
error: consoleError
3850-
},
3851-
options.log
3852-
);
3859+
this.log = createLogger(options.log);
38533860
this.hook = hook;
38543861
if (!options.authStrategy) {
38553862
if (!options.auth) {
@@ -4302,18 +4309,18 @@ var __copyProps = (to, from, except, desc) => {
43024309
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43034310

43044311
// pkg/dist-src/index.js
4305-
var dist_src_exports = {};
4306-
__export(dist_src_exports, {
4312+
var index_exports = {};
4313+
__export(index_exports, {
43074314
GraphqlResponseError: () => GraphqlResponseError,
43084315
graphql: () => graphql2,
43094316
withCustomRequest: () => withCustomRequest
43104317
});
4311-
module.exports = __toCommonJS(dist_src_exports);
4318+
module.exports = __toCommonJS(index_exports);
43124319
var import_request3 = __nccwpck_require__(8636);
43134320
var import_universal_user_agent = __nccwpck_require__(3843);
43144321

43154322
// pkg/dist-src/version.js
4316-
var VERSION = "7.1.0";
4323+
var VERSION = "7.1.1";
43174324

43184325
// pkg/dist-src/with-defaults.js
43194326
var import_request2 = __nccwpck_require__(8636);
@@ -4361,8 +4368,7 @@ function graphql(request2, query, options) {
43614368
);
43624369
}
43634370
for (const key in options) {
4364-
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key))
4365-
continue;
4371+
if (!FORBIDDEN_VARIABLE_OPTIONS.includes(key)) continue;
43664372
return Promise.reject(
43674373
new Error(
43684374
`[@octokit/graphql] "${key}" cannot be used as variable name`

0 commit comments

Comments
 (0)