├── .github └── workflows │ ├── main.yml │ └── move_from_comment.yml ├── .gitignore ├── LICENSE ├── README.md ├── action.yml ├── index.js ├── node_modules ├── @actions │ ├── core │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── lib │ │ │ ├── command.d.ts │ │ │ ├── command.js │ │ │ ├── command.js.map │ │ │ ├── core.d.ts │ │ │ ├── core.js │ │ │ ├── core.js.map │ │ │ ├── file-command.d.ts │ │ │ ├── file-command.js │ │ │ ├── file-command.js.map │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ └── package.json │ ├── github │ │ ├── README.md │ │ ├── lib │ │ │ ├── context.d.ts │ │ │ ├── context.js │ │ │ ├── context.js.map │ │ │ ├── github.d.ts │ │ │ ├── github.js │ │ │ ├── github.js.map │ │ │ ├── interfaces.d.ts │ │ │ ├── interfaces.js │ │ │ ├── interfaces.js.map │ │ │ ├── internal │ │ │ │ ├── utils.d.ts │ │ │ │ ├── utils.js │ │ │ │ └── utils.js.map │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ └── package.json │ └── http-client │ │ ├── LICENSE │ │ ├── README.md │ │ ├── RELEASES.md │ │ ├── actions.png │ │ ├── auth.d.ts │ │ ├── auth.js │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── interfaces.d.ts │ │ ├── interfaces.js │ │ ├── package.json │ │ ├── proxy.d.ts │ │ └── proxy.js ├── @octokit │ ├── auth-token │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── auth.js │ │ │ ├── hook.js │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ └── with-authorization-prefix.js │ │ ├── dist-types │ │ │ ├── auth.d.ts │ │ │ ├── hook.d.ts │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ └── with-authorization-prefix.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── core │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── endpoint │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── defaults.js │ │ │ ├── endpoint-with-defaults.js │ │ │ ├── index.js │ │ │ ├── merge.js │ │ │ ├── parse.js │ │ │ ├── util │ │ │ │ ├── add-query-parameters.js │ │ │ │ ├── extract-url-variable-names.js │ │ │ │ ├── lowercase-keys.js │ │ │ │ ├── merge-deep.js │ │ │ │ ├── omit.js │ │ │ │ ├── remove-undefined-properties.js │ │ │ │ └── url-template.js │ │ │ ├── version.js │ │ │ └── with-defaults.js │ │ ├── dist-types │ │ │ ├── defaults.d.ts │ │ │ ├── endpoint-with-defaults.d.ts │ │ │ ├── index.d.ts │ │ │ ├── merge.d.ts │ │ │ ├── parse.d.ts │ │ │ ├── util │ │ │ │ ├── add-query-parameters.d.ts │ │ │ │ ├── extract-url-variable-names.d.ts │ │ │ │ ├── lowercase-keys.d.ts │ │ │ │ ├── merge-deep.d.ts │ │ │ │ ├── omit.d.ts │ │ │ │ ├── remove-undefined-properties.d.ts │ │ │ │ └── url-template.d.ts │ │ │ ├── version.d.ts │ │ │ └── with-defaults.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── graphql │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── error.js │ │ │ ├── graphql.js │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ ├── version.js │ │ │ └── with-defaults.js │ │ ├── dist-types │ │ │ ├── error.d.ts │ │ │ ├── graphql.d.ts │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ ├── version.d.ts │ │ │ └── with-defaults.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── openapi-types │ │ ├── .github │ │ │ ├── dependabot.yml │ │ │ └── workflows │ │ │ │ ├── release-notification.yml │ │ │ │ ├── release.yml │ │ │ │ └── update.yml │ │ ├── CODE_OF_CONDUCT.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cache │ │ │ └── openapi-schema.json │ │ ├── generated │ │ │ └── types.ts │ │ ├── package.json │ │ └── scripts │ │ │ ├── download.js │ │ │ └── update-package.js │ ├── plugin-paginate-rest │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── compose-paginate.js │ │ │ ├── generated │ │ │ │ └── paginating-endpoints.js │ │ │ ├── index.js │ │ │ ├── iterator.js │ │ │ ├── normalize-paginated-list-response.js │ │ │ ├── paginate.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── compose-paginate.d.ts │ │ │ ├── generated │ │ │ │ └── paginating-endpoints.d.ts │ │ │ ├── index.d.ts │ │ │ ├── iterator.d.ts │ │ │ ├── normalize-paginated-list-response.d.ts │ │ │ ├── paginate.d.ts │ │ │ ├── types.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── plugin-request-log │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── index.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── plugin-rest-endpoint-methods │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── endpoints-to-methods.js │ │ │ ├── generated │ │ │ │ ├── endpoints.js │ │ │ │ ├── method-types.js │ │ │ │ └── parameters-and-response-types.js │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── endpoints-to-methods.d.ts │ │ │ ├── generated │ │ │ │ ├── endpoints.d.ts │ │ │ │ ├── method-types.d.ts │ │ │ │ └── parameters-and-response-types.d.ts │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── request-error │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ └── types.js │ │ ├── dist-types │ │ │ ├── index.d.ts │ │ │ └── types.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── request │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── fetch-wrapper.js │ │ │ ├── get-buffer-response.js │ │ │ ├── index.js │ │ │ ├── version.js │ │ │ └── with-defaults.js │ │ ├── dist-types │ │ │ ├── fetch-wrapper.d.ts │ │ │ ├── get-buffer-response.d.ts │ │ │ ├── index.d.ts │ │ │ ├── version.d.ts │ │ │ └── with-defaults.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── rest │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── index.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ └── types │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ ├── index.js │ │ └── index.js.map │ │ ├── dist-src │ │ ├── AuthInterface.js │ │ ├── EndpointDefaults.js │ │ ├── EndpointInterface.js │ │ ├── EndpointOptions.js │ │ ├── Fetch.js │ │ ├── GetResponseTypeFromEndpointMethod.js │ │ ├── OctokitResponse.js │ │ ├── RequestError.js │ │ ├── RequestHeaders.js │ │ ├── RequestInterface.js │ │ ├── RequestMethod.js │ │ ├── RequestOptions.js │ │ ├── RequestParameters.js │ │ ├── RequestRequestOptions.js │ │ ├── ResponseHeaders.js │ │ ├── Route.js │ │ ├── Signal.js │ │ ├── StrategyInterface.js │ │ ├── Url.js │ │ ├── VERSION.js │ │ ├── generated │ │ │ └── Endpoints.js │ │ └── index.js │ │ ├── dist-types │ │ ├── AuthInterface.d.ts │ │ ├── EndpointDefaults.d.ts │ │ ├── EndpointInterface.d.ts │ │ ├── EndpointOptions.d.ts │ │ ├── Fetch.d.ts │ │ ├── GetResponseTypeFromEndpointMethod.d.ts │ │ ├── OctokitResponse.d.ts │ │ ├── RequestError.d.ts │ │ ├── RequestHeaders.d.ts │ │ ├── RequestInterface.d.ts │ │ ├── RequestMethod.d.ts │ │ ├── RequestOptions.d.ts │ │ ├── RequestParameters.d.ts │ │ ├── RequestRequestOptions.d.ts │ │ ├── ResponseHeaders.d.ts │ │ ├── Route.d.ts │ │ ├── Signal.d.ts │ │ ├── StrategyInterface.d.ts │ │ ├── Url.d.ts │ │ ├── VERSION.d.ts │ │ ├── generated │ │ │ └── Endpoints.d.ts │ │ └── index.d.ts │ │ ├── dist-web │ │ ├── index.js │ │ └── index.js.map │ │ └── package.json ├── @types │ └── node │ │ ├── LICENSE │ │ ├── README.md │ │ ├── assert.d.ts │ │ ├── async_hooks.d.ts │ │ ├── base.d.ts │ │ ├── buffer.d.ts │ │ ├── child_process.d.ts │ │ ├── cluster.d.ts │ │ ├── console.d.ts │ │ ├── constants.d.ts │ │ ├── crypto.d.ts │ │ ├── dgram.d.ts │ │ ├── dns.d.ts │ │ ├── domain.d.ts │ │ ├── events.d.ts │ │ ├── fs.d.ts │ │ ├── fs │ │ └── promises.d.ts │ │ ├── globals.d.ts │ │ ├── globals.global.d.ts │ │ ├── http.d.ts │ │ ├── http2.d.ts │ │ ├── https.d.ts │ │ ├── index.d.ts │ │ ├── inspector.d.ts │ │ ├── module.d.ts │ │ ├── net.d.ts │ │ ├── os.d.ts │ │ ├── package.json │ │ ├── path.d.ts │ │ ├── perf_hooks.d.ts │ │ ├── process.d.ts │ │ ├── punycode.d.ts │ │ ├── querystring.d.ts │ │ ├── readline.d.ts │ │ ├── repl.d.ts │ │ ├── stream.d.ts │ │ ├── string_decoder.d.ts │ │ ├── timers.d.ts │ │ ├── tls.d.ts │ │ ├── trace_events.d.ts │ │ ├── ts3.4 │ │ ├── assert.d.ts │ │ ├── base.d.ts │ │ ├── globals.global.d.ts │ │ └── index.d.ts │ │ ├── ts3.6 │ │ ├── base.d.ts │ │ └── index.d.ts │ │ ├── tty.d.ts │ │ ├── url.d.ts │ │ ├── util.d.ts │ │ ├── v8.d.ts │ │ ├── vm.d.ts │ │ ├── wasi.d.ts │ │ ├── worker_threads.d.ts │ │ └── zlib.d.ts ├── before-after-hook │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── index.js │ ├── lib │ │ ├── add.js │ │ ├── register.js │ │ └── remove.js │ └── package.json ├── deprecation │ ├── LICENSE │ ├── README.md │ ├── dist-node │ │ └── index.js │ ├── dist-src │ │ └── index.js │ ├── dist-types │ │ └── index.d.ts │ ├── dist-web │ │ └── index.js │ └── package.json ├── is-plain-object │ ├── LICENSE │ ├── README.md │ ├── dist │ │ ├── is-plain-object.js │ │ └── is-plain-object.mjs │ ├── is-plain-object.d.ts │ └── package.json ├── node-fetch │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── README.md │ ├── browser.js │ ├── lib │ │ ├── index.es.js │ │ ├── index.js │ │ └── index.mjs │ └── package.json ├── once │ ├── LICENSE │ ├── README.md │ ├── once.js │ └── package.json ├── tunnel │ ├── .idea │ │ ├── encodings.xml │ │ ├── modules.xml │ │ ├── node-tunnel.iml │ │ ├── vcs.xml │ │ └── workspace.xml │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ └── tunnel.js │ └── package.json ├── universal-user-agent │ ├── LICENSE.md │ ├── README.md │ ├── dist-node │ │ ├── index.js │ │ └── index.js.map │ ├── dist-src │ │ └── index.js │ ├── dist-types │ │ └── index.d.ts │ ├── dist-web │ │ ├── index.js │ │ └── index.js.map │ └── package.json └── wrappy │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── wrappy.js ├── package-lock.json ├── package.json └── test-events ├── pull-request-edited.json ├── pull-request-review-multi-issue.json └── pull-request-review.json /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Sync Review Status 2 | 3 | on: 4 | # Requires the event trigger to be of type pull_request or pull_request_target 5 | pull_request_target: 6 | types: [review_requested] 7 | 8 | jobs: 9 | sync-review-status: 10 | runs-on: ubuntu-latest 11 | name: Get Linked Issues 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v2 15 | - name: Get Linked Issues Action 16 | uses: ./ 17 | id: linked-issues 18 | with: 19 | # Required: personal access token with permissions to archive cards 20 | access-token: "${{ secrets.GITHUB_TOKEN }}" 21 | - name: Move to In Progress 22 | uses: kin/gh-action-move-issues-to-column@v1.0 23 | with: 24 | access-token: "${{ secrets.GITHUB_TOKEN }}" 25 | project-name: "My Project" 26 | target-column: "In Progress" 27 | issues: ${{ steps.linked-issues.outputs.issues }} 28 | -------------------------------------------------------------------------------- /.github/workflows/move_from_comment.yml: -------------------------------------------------------------------------------- 1 | on: 2 | issue_comment: 3 | types: [created] 4 | pull_request_review_comment: 5 | types: [created] 6 | name: Move Issues to In Progress 7 | jobs: 8 | Move_Commented_Issue_on_Board: 9 | name: In Progress 10 | if: startsWith(github.event.comment.body, '/in progress') 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v2 15 | - name: Get Linked Issues Action 16 | uses: ./ 17 | id: linked-issues 18 | with: 19 | access-token: "${{ secrets.CROSS_REPO_TOKEN }}" 20 | - name: Move to Ready for QA 21 | uses: kin/gh-action-move-issues-to-column@v1.0 22 | with: 23 | access-token: "${{ secrets.CROSS_REPO_TOKEN }}" 24 | project-name: "My Project" 25 | target-column: "In progress" 26 | issues: ${{ steps.linked-issues.outputs.issues }} 27 | always_job: 28 | name: Always run job 29 | runs-on: ubuntu-latest 30 | steps: 31 | - name: Alaways run 32 | run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped." 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.env 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Kin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: Get Linked Issues 2 | description: Find the issues linked to a given pull request 3 | inputs: 4 | access-token: 5 | description: 'Token with permissions to access issue information in repo' 6 | required: true 7 | outputs: 8 | issues: 9 | description: "Array of issues returned by Octokit" 10 | runs: 11 | using: "node12" 12 | main: "index.js" 13 | branding: 14 | icon: 'link' 15 | color: 'green' 16 | -------------------------------------------------------------------------------- /node_modules/@actions/core/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright 2019 GitHub 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/command.d.ts: -------------------------------------------------------------------------------- 1 | interface CommandProperties { 2 | [key: string]: any; 3 | } 4 | /** 5 | * Commands 6 | * 7 | * Command Format: 8 | * ::name key=value,key=value::message 9 | * 10 | * Examples: 11 | * ::warning::This is the message 12 | * ::set-env name=MY_VAR::some value 13 | */ 14 | export declare function issueCommand(command: string, properties: CommandProperties, message: any): void; 15 | export declare function issue(name: string, message?: string): void; 16 | export {}; 17 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/command.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.d.ts: -------------------------------------------------------------------------------- 1 | export declare function issueCommand(command: string, message: any): void; 2 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // For internal use, subject to change. 3 | var __importStar = (this && this.__importStar) || function (mod) { 4 | if (mod && mod.__esModule) return mod; 5 | var result = {}; 6 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; 7 | result["default"] = mod; 8 | return result; 9 | }; 10 | Object.defineProperty(exports, "__esModule", { value: true }); 11 | // We use any as a valid input type 12 | /* eslint-disable @typescript-eslint/no-explicit-any */ 13 | const fs = __importStar(require("fs")); 14 | const os = __importStar(require("os")); 15 | const utils_1 = require("./utils"); 16 | function issueCommand(command, message) { 17 | const filePath = process.env[`GITHUB_${command}`]; 18 | if (!filePath) { 19 | throw new Error(`Unable to find environment variable for file command ${command}`); 20 | } 21 | if (!fs.existsSync(filePath)) { 22 | throw new Error(`Missing file at path: ${filePath}`); 23 | } 24 | fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { 25 | encoding: 'utf8' 26 | }); 27 | } 28 | exports.issueCommand = issueCommand; 29 | //# sourceMappingURL=file-command.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Sanitizes an input into a string so it can be passed into issueCommand safely 3 | * @param input input to sanitize into a string 4 | */ 5 | export declare function toCommandValue(input: any): string; 6 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // We use any as a valid input type 3 | /* eslint-disable @typescript-eslint/no-explicit-any */ 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | /** 6 | * Sanitizes an input into a string so it can be passed into issueCommand safely 7 | * @param input input to sanitize into a string 8 | */ 9 | function toCommandValue(input) { 10 | if (input === null || input === undefined) { 11 | return ''; 12 | } 13 | else if (typeof input === 'string' || input instanceof String) { 14 | return input; 15 | } 16 | return JSON.stringify(input); 17 | } 18 | exports.toCommandValue = toCommandValue; 19 | //# sourceMappingURL=utils.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "@actions/core", 3 | "_id": "@actions/core@1.2.6", 4 | "_inBundle": false, 5 | "_integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==", 6 | "_location": "/@actions/core", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "tag", 10 | "registry": true, 11 | "raw": "@actions/core", 12 | "name": "@actions/core", 13 | "escapedName": "@actions%2fcore", 14 | "scope": "@actions", 15 | "rawSpec": "", 16 | "saveSpec": null, 17 | "fetchSpec": "latest" 18 | }, 19 | "_requiredBy": [ 20 | "#USER", 21 | "/" 22 | ], 23 | "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", 24 | "_shasum": "a78d49f41a4def18e88ce47c2cac615d5694bf09", 25 | "_spec": "@actions/core", 26 | "_where": "/Users/jeremyward/gh-action-get-linked-issues", 27 | "bugs": { 28 | "url": "https://github.com/actions/toolkit/issues" 29 | }, 30 | "bundleDependencies": false, 31 | "deprecated": false, 32 | "description": "Actions core lib", 33 | "devDependencies": { 34 | "@types/node": "^12.0.2" 35 | }, 36 | "directories": { 37 | "lib": "lib", 38 | "test": "__tests__" 39 | }, 40 | "files": [ 41 | "lib", 42 | "!.DS_Store" 43 | ], 44 | "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", 45 | "keywords": [ 46 | "github", 47 | "actions", 48 | "core" 49 | ], 50 | "license": "MIT", 51 | "main": "lib/core.js", 52 | "name": "@actions/core", 53 | "publishConfig": { 54 | "access": "public" 55 | }, 56 | "repository": { 57 | "type": "git", 58 | "url": "git+https://github.com/actions/toolkit.git", 59 | "directory": "packages/core" 60 | }, 61 | "scripts": { 62 | "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", 63 | "test": "echo \"Error: run tests from root\" && exit 1", 64 | "tsc": "tsc" 65 | }, 66 | "types": "lib/core.d.ts", 67 | "version": "1.2.6" 68 | } 69 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/context.d.ts: -------------------------------------------------------------------------------- 1 | import { WebhookPayload } from './interfaces'; 2 | export declare class Context { 3 | /** 4 | * Webhook payload object that triggered the workflow 5 | */ 6 | payload: WebhookPayload; 7 | eventName: string; 8 | sha: string; 9 | ref: string; 10 | workflow: string; 11 | action: string; 12 | actor: string; 13 | job: string; 14 | runNumber: number; 15 | runId: number; 16 | /** 17 | * Hydrate the context from the environment 18 | */ 19 | constructor(); 20 | get issue(): { 21 | owner: string; 22 | repo: string; 23 | number: number; 24 | }; 25 | get repo(): { 26 | owner: string; 27 | repo: string; 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/context.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.Context = void 0; 4 | const fs_1 = require("fs"); 5 | const os_1 = require("os"); 6 | class Context { 7 | /** 8 | * Hydrate the context from the environment 9 | */ 10 | constructor() { 11 | this.payload = {}; 12 | if (process.env.GITHUB_EVENT_PATH) { 13 | if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) { 14 | this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); 15 | } 16 | else { 17 | const path = process.env.GITHUB_EVENT_PATH; 18 | process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`); 19 | } 20 | } 21 | this.eventName = process.env.GITHUB_EVENT_NAME; 22 | this.sha = process.env.GITHUB_SHA; 23 | this.ref = process.env.GITHUB_REF; 24 | this.workflow = process.env.GITHUB_WORKFLOW; 25 | this.action = process.env.GITHUB_ACTION; 26 | this.actor = process.env.GITHUB_ACTOR; 27 | this.job = process.env.GITHUB_JOB; 28 | this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); 29 | this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); 30 | } 31 | get issue() { 32 | const payload = this.payload; 33 | return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number }); 34 | } 35 | get repo() { 36 | if (process.env.GITHUB_REPOSITORY) { 37 | const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); 38 | return { owner, repo }; 39 | } 40 | if (this.payload.repository) { 41 | return { 42 | owner: this.payload.repository.owner.login, 43 | repo: this.payload.repository.name 44 | }; 45 | } 46 | throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); 47 | } 48 | } 49 | exports.Context = Context; 50 | //# sourceMappingURL=context.js.map -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/context.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;AAEA,2BAA2C;AAC3C,2BAAsB;AAEtB,MAAa,OAAO;IAgBlB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,IAAI,eAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE;gBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CACvB,iBAAY,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAChE,CAAA;aACF;iBAAM;gBACL,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAA;gBAC1C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,qBAAqB,IAAI,kBAAkB,QAAG,EAAE,CAAC,CAAA;aACvE;SACF;QACD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAA2B,CAAA;QACxD,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAyB,CAAA;QACrD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAuB,CAAA;QACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,YAAsB,CAAA;QAC/C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iBAA2B,EAAE,EAAE,CAAC,CAAA;QACtE,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAuB,EAAE,EAAE,CAAC,CAAA;IAChE,CAAC;IAED,IAAI,KAAK;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAE5B,uCACK,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,CAAC,MAAM,IAClE;IACH,CAAC;IAED,IAAI,IAAI;QACN,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC9D,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,CAAA;SACrB;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC3B,OAAO;gBACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK;gBAC1C,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI;aACnC,CAAA;SACF;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAA;IACH,CAAC;CACF;AApED,0BAoEC"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/github.d.ts: -------------------------------------------------------------------------------- 1 | import * as Context from './context'; 2 | import { GitHub } from './utils'; 3 | import { OctokitOptions } from '@octokit/core/dist-types/types'; 4 | export declare const context: Context.Context; 5 | /** 6 | * Returns a hydrated octokit ready to use for GitHub Actions 7 | * 8 | * @param token the repo PAT or GITHUB_TOKEN 9 | * @param options other options to set 10 | */ 11 | export declare function getOctokit(token: string, options?: OctokitOptions): InstanceType; 12 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/github.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 10 | Object.defineProperty(o, "default", { enumerable: true, value: v }); 11 | }) : function(o, v) { 12 | o["default"] = v; 13 | }); 14 | var __importStar = (this && this.__importStar) || function (mod) { 15 | if (mod && mod.__esModule) return mod; 16 | var result = {}; 17 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 18 | __setModuleDefault(result, mod); 19 | return result; 20 | }; 21 | Object.defineProperty(exports, "__esModule", { value: true }); 22 | exports.getOctokit = exports.context = void 0; 23 | const Context = __importStar(require("./context")); 24 | const utils_1 = require("./utils"); 25 | exports.context = new Context.Context(); 26 | /** 27 | * Returns a hydrated octokit ready to use for GitHub Actions 28 | * 29 | * @param token the repo PAT or GITHUB_TOKEN 30 | * @param options other options to set 31 | */ 32 | function getOctokit(token, options) { 33 | return new utils_1.GitHub(utils_1.getOctokitOptions(token, options)); 34 | } 35 | exports.getOctokit = getOctokit; 36 | //# sourceMappingURL=github.js.map -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/github.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAoC;AACpC,mCAAiD;AAKpC,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C;;;;;GAKG;AACH,SAAgB,UAAU,CACxB,KAAa,EACb,OAAwB;IAExB,OAAO,IAAI,cAAM,CAAC,yBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AACtD,CAAC;AALD,gCAKC"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/interfaces.d.ts: -------------------------------------------------------------------------------- 1 | export interface PayloadRepository { 2 | [key: string]: any; 3 | full_name?: string; 4 | name: string; 5 | owner: { 6 | [key: string]: any; 7 | login: string; 8 | name?: string; 9 | }; 10 | html_url?: string; 11 | } 12 | export interface WebhookPayload { 13 | [key: string]: any; 14 | repository?: PayloadRepository; 15 | issue?: { 16 | [key: string]: any; 17 | number: number; 18 | html_url?: string; 19 | body?: string; 20 | }; 21 | pull_request?: { 22 | [key: string]: any; 23 | number: number; 24 | html_url?: string; 25 | body?: string; 26 | }; 27 | sender?: { 28 | [key: string]: any; 29 | type: string; 30 | }; 31 | action?: string; 32 | installation?: { 33 | id: number; 34 | [key: string]: any; 35 | }; 36 | comment?: { 37 | id: number; 38 | [key: string]: any; 39 | }; 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /* eslint-disable @typescript-eslint/no-explicit-any */ 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | //# sourceMappingURL=interfaces.js.map -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/interfaces.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA,uDAAuD"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/internal/utils.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import * as http from 'http'; 3 | import { OctokitOptions } from '@octokit/core/dist-types/types'; 4 | export declare function getAuthString(token: string, options: OctokitOptions): string | undefined; 5 | export declare function getProxyAgent(destinationUrl: string): http.Agent; 6 | export declare function getApiBaseUrl(): string; 7 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/internal/utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 3 | if (k2 === undefined) k2 = k; 4 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); 5 | }) : (function(o, m, k, k2) { 6 | if (k2 === undefined) k2 = k; 7 | o[k2] = m[k]; 8 | })); 9 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 10 | Object.defineProperty(o, "default", { enumerable: true, value: v }); 11 | }) : function(o, v) { 12 | o["default"] = v; 13 | }); 14 | var __importStar = (this && this.__importStar) || function (mod) { 15 | if (mod && mod.__esModule) return mod; 16 | var result = {}; 17 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 18 | __setModuleDefault(result, mod); 19 | return result; 20 | }; 21 | Object.defineProperty(exports, "__esModule", { value: true }); 22 | exports.getApiBaseUrl = exports.getProxyAgent = exports.getAuthString = void 0; 23 | const httpClient = __importStar(require("@actions/http-client")); 24 | function getAuthString(token, options) { 25 | if (!token && !options.auth) { 26 | throw new Error('Parameter token or opts.auth is required'); 27 | } 28 | else if (token && options.auth) { 29 | throw new Error('Parameters token and opts.auth may not both be specified'); 30 | } 31 | return typeof options.auth === 'string' ? options.auth : `token ${token}`; 32 | } 33 | exports.getAuthString = getAuthString; 34 | function getProxyAgent(destinationUrl) { 35 | const hc = new httpClient.HttpClient(); 36 | return hc.getAgent(destinationUrl); 37 | } 38 | exports.getProxyAgent = getProxyAgent; 39 | function getApiBaseUrl() { 40 | return process.env['GITHUB_API_URL'] || 'https://api.github.com'; 41 | } 42 | exports.getApiBaseUrl = getApiBaseUrl; 43 | //# sourceMappingURL=utils.js.map -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/internal/utils.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/internal/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,iEAAkD;AAGlD,SAAgB,aAAa,CAC3B,KAAa,EACb,OAAuB;IAEvB,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;QAC3B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;KAC5D;SAAM,IAAI,KAAK,IAAI,OAAO,CAAC,IAAI,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;KAC5E;IAED,OAAO,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAA;AAC3E,CAAC;AAXD,sCAWC;AAED,SAAgB,aAAa,CAAC,cAAsB;IAClD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAA;IACtC,OAAO,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;AACpC,CAAC;AAHD,sCAGC;AAED,SAAgB,aAAa;IAC3B,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,wBAAwB,CAAA;AAClE,CAAC;AAFD,sCAEC"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | import * as Context from './context'; 2 | import { Octokit } from '@octokit/core'; 3 | import { OctokitOptions } from '@octokit/core/dist-types/types'; 4 | export declare const context: Context.Context; 5 | export declare const GitHub: (new (...args: any[]) => { 6 | [x: string]: any; 7 | }) & { 8 | new (...args: any[]): { 9 | [x: string]: any; 10 | }; 11 | plugins: any[]; 12 | } & typeof Octokit & import("@octokit/core/dist-types/types").Constructor; 15 | /** 16 | * Convience function to correctly format Octokit Options to pass into the constructor. 17 | * 18 | * @param token the repo PAT or GITHUB_TOKEN 19 | * @param options other options to set 20 | */ 21 | export declare function getOctokitOptions(token: string, options?: OctokitOptions): OctokitOptions; 22 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/utils.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAoC;AACpC,wDAAyC;AAEzC,oBAAoB;AACpB,wCAAqC;AAErC,wFAAyE;AACzE,wEAA0D;AAE7C,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAA;AACrC,MAAM,QAAQ,GAAG;IACf,OAAO;IACP,OAAO,EAAE;QACP,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;KACpC;CACF,CAAA;AAEY,QAAA,MAAM,GAAG,cAAO,CAAC,MAAM,CAClC,kDAAmB,EACnB,mCAAY,CACb,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAEpB;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,KAAa,EACb,OAAwB;IAExB,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA,CAAC,iEAAiE;IAE/G,OAAO;IACP,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAC7C,IAAI,IAAI,EAAE;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;KACjB;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AAbD,8CAaC"} -------------------------------------------------------------------------------- /node_modules/@actions/http-client/LICENSE: -------------------------------------------------------------------------------- 1 | Actions Http Client for Node.js 2 | 3 | Copyright (c) GitHub, Inc. 4 | 5 | All rights reserved. 6 | 7 | MIT License 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 10 | associated documentation files (the "Software"), to deal in the Software without restriction, 11 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 12 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 18 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 19 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/RELEASES.md: -------------------------------------------------------------------------------- 1 | ## Releases 2 | 3 | ## 1.0.9 4 | Throw HttpClientError instead of a generic Error from the \Json() helper methods when the server responds with a non-successful status code. 5 | 6 | ## 1.0.8 7 | Fixed security issue where a redirect (e.g. 302) to another domain would pass headers. The fix was to strip the authorization header if the hostname was different. More [details in PR #27](https://github.com/actions/http-client/pull/27) 8 | 9 | ## 1.0.7 10 | Update NPM dependencies and add 429 to the list of HttpCodes 11 | 12 | ## 1.0.6 13 | Automatically sends Content-Type and Accept application/json headers for \Json() helper methods if not set in the client or parameters. 14 | 15 | ## 1.0.5 16 | Adds \Json() helper methods for json over http scenarios. 17 | 18 | ## 1.0.4 19 | Started to add \Json() helper methods. Do not use this release for that. Use >= 1.0.5 since there was an issue with types. 20 | 21 | ## 1.0.1 to 1.0.3 22 | Adds proxy support. 23 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/actions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kin/gh-action-get-linked-issues/8ef8d85f1410531f5adadb30609d92cda2c8a650/node_modules/@actions/http-client/actions.png -------------------------------------------------------------------------------- /node_modules/@actions/http-client/auth.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('./interfaces'); 2 | export declare class BasicCredentialHandler implements ifm.IRequestHandler { 3 | username: string; 4 | password: string; 5 | constructor(username: string, password: string); 6 | prepareRequest(options: any): void; 7 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 8 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 9 | } 10 | export declare class BearerCredentialHandler implements ifm.IRequestHandler { 11 | token: string; 12 | constructor(token: string); 13 | prepareRequest(options: any): void; 14 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 15 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 16 | } 17 | export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler { 18 | token: string; 19 | constructor(token: string); 20 | prepareRequest(options: any): void; 21 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 22 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/auth.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | class BasicCredentialHandler { 4 | constructor(username, password) { 5 | this.username = username; 6 | this.password = password; 7 | } 8 | prepareRequest(options) { 9 | options.headers['Authorization'] = 10 | 'Basic ' + 11 | Buffer.from(this.username + ':' + this.password).toString('base64'); 12 | } 13 | // This handler cannot handle 401 14 | canHandleAuthentication(response) { 15 | return false; 16 | } 17 | handleAuthentication(httpClient, requestInfo, objs) { 18 | return null; 19 | } 20 | } 21 | exports.BasicCredentialHandler = BasicCredentialHandler; 22 | class BearerCredentialHandler { 23 | constructor(token) { 24 | this.token = token; 25 | } 26 | // currently implements pre-authorization 27 | // TODO: support preAuth = false where it hooks on 401 28 | prepareRequest(options) { 29 | options.headers['Authorization'] = 'Bearer ' + this.token; 30 | } 31 | // This handler cannot handle 401 32 | canHandleAuthentication(response) { 33 | return false; 34 | } 35 | handleAuthentication(httpClient, requestInfo, objs) { 36 | return null; 37 | } 38 | } 39 | exports.BearerCredentialHandler = BearerCredentialHandler; 40 | class PersonalAccessTokenCredentialHandler { 41 | constructor(token) { 42 | this.token = token; 43 | } 44 | // currently implements pre-authorization 45 | // TODO: support preAuth = false where it hooks on 401 46 | prepareRequest(options) { 47 | options.headers['Authorization'] = 48 | 'Basic ' + Buffer.from('PAT:' + this.token).toString('base64'); 49 | } 50 | // This handler cannot handle 401 51 | canHandleAuthentication(response) { 52 | return false; 53 | } 54 | handleAuthentication(httpClient, requestInfo, objs) { 55 | return null; 56 | } 57 | } 58 | exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; 59 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/proxy.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getProxyUrl(reqUrl: URL): URL | undefined; 2 | export declare function checkBypass(reqUrl: URL): boolean; 3 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/proxy.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | function getProxyUrl(reqUrl) { 4 | let usingSsl = reqUrl.protocol === 'https:'; 5 | let proxyUrl; 6 | if (checkBypass(reqUrl)) { 7 | return proxyUrl; 8 | } 9 | let proxyVar; 10 | if (usingSsl) { 11 | proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; 12 | } 13 | else { 14 | proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; 15 | } 16 | if (proxyVar) { 17 | proxyUrl = new URL(proxyVar); 18 | } 19 | return proxyUrl; 20 | } 21 | exports.getProxyUrl = getProxyUrl; 22 | function checkBypass(reqUrl) { 23 | if (!reqUrl.hostname) { 24 | return false; 25 | } 26 | let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; 27 | if (!noProxy) { 28 | return false; 29 | } 30 | // Determine the request port 31 | let reqPort; 32 | if (reqUrl.port) { 33 | reqPort = Number(reqUrl.port); 34 | } 35 | else if (reqUrl.protocol === 'http:') { 36 | reqPort = 80; 37 | } 38 | else if (reqUrl.protocol === 'https:') { 39 | reqPort = 443; 40 | } 41 | // Format the request hostname and hostname with port 42 | let upperReqHosts = [reqUrl.hostname.toUpperCase()]; 43 | if (typeof reqPort === 'number') { 44 | upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); 45 | } 46 | // Compare request host against noproxy 47 | for (let upperNoProxyItem of noProxy 48 | .split(',') 49 | .map(x => x.trim().toUpperCase()) 50 | .filter(x => x)) { 51 | if (upperReqHosts.some(x => x === upperNoProxyItem)) { 52 | return true; 53 | } 54 | } 55 | return false; 56 | } 57 | exports.checkBypass = checkBypass; 58 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2019 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | async function auth(token) { 6 | const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth"; 7 | return { 8 | type: "token", 9 | token: token, 10 | tokenType 11 | }; 12 | } 13 | 14 | /** 15 | * Prefix token for usage in the Authorization header 16 | * 17 | * @param token OAuth token or JSON Web Token 18 | */ 19 | function withAuthorizationPrefix(token) { 20 | if (token.split(/\./).length === 3) { 21 | return `bearer ${token}`; 22 | } 23 | 24 | return `token ${token}`; 25 | } 26 | 27 | async function hook(token, request, route, parameters) { 28 | const endpoint = request.endpoint.merge(route, parameters); 29 | endpoint.headers.authorization = withAuthorizationPrefix(token); 30 | return request(endpoint); 31 | } 32 | 33 | const createTokenAuth = function createTokenAuth(token) { 34 | if (!token) { 35 | throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); 36 | } 37 | 38 | if (typeof token !== "string") { 39 | throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); 40 | } 41 | 42 | token = token.replace(/^(token|bearer) +/i, ""); 43 | return Object.assign(auth.bind(null, token), { 44 | hook: hook.bind(null, token) 45 | }); 46 | }; 47 | 48 | exports.createTokenAuth = createTokenAuth; 49 | //# sourceMappingURL=index.js.map 50 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/auth.js: -------------------------------------------------------------------------------- 1 | export async function auth(token) { 2 | const tokenType = token.split(/\./).length === 3 3 | ? "app" 4 | : /^v\d+\./.test(token) 5 | ? "installation" 6 | : "oauth"; 7 | return { 8 | type: "token", 9 | token: token, 10 | tokenType 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/hook.js: -------------------------------------------------------------------------------- 1 | import { withAuthorizationPrefix } from "./with-authorization-prefix"; 2 | export async function hook(token, request, route, parameters) { 3 | const endpoint = request.endpoint.merge(route, parameters); 4 | endpoint.headers.authorization = withAuthorizationPrefix(token); 5 | return request(endpoint); 6 | } 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { auth } from "./auth"; 2 | import { hook } from "./hook"; 3 | export const createTokenAuth = function createTokenAuth(token) { 4 | if (!token) { 5 | throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); 6 | } 7 | if (typeof token !== "string") { 8 | throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); 9 | } 10 | token = token.replace(/^(token|bearer) +/i, ""); 11 | return Object.assign(auth.bind(null, token), { 12 | hook: hook.bind(null, token) 13 | }); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kin/gh-action-get-linked-issues/8ef8d85f1410531f5adadb30609d92cda2c8a650/node_modules/@octokit/auth-token/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Prefix token for usage in the Authorization header 3 | * 4 | * @param token OAuth token or JSON Web Token 5 | */ 6 | export function withAuthorizationPrefix(token) { 7 | if (token.split(/\./).length === 3) { 8 | return `bearer ${token}`; 9 | } 10 | return `token ${token}`; 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/auth.d.ts: -------------------------------------------------------------------------------- 1 | import { Token, Authentication } from "./types"; 2 | export declare function auth(token: Token): Promise; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/hook.d.ts: -------------------------------------------------------------------------------- 1 | import { AnyResponse, EndpointOptions, RequestInterface, RequestParameters, Route, Token } from "./types"; 2 | export declare function hook(token: Token, request: RequestInterface, route: Route | EndpointOptions, parameters?: RequestParameters): Promise; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StrategyInterface, Token, Authentication } from "./types"; 2 | export declare type Types = { 3 | StrategyOptions: Token; 4 | AuthOptions: never; 5 | Authentication: Authentication; 6 | }; 7 | export declare const createTokenAuth: StrategyInterface; 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import * as OctokitTypes from "@octokit/types"; 2 | export declare type AnyResponse = OctokitTypes.OctokitResponse; 3 | export declare type StrategyInterface = OctokitTypes.StrategyInterface<[Token], [], Authentication>; 4 | export declare type EndpointDefaults = OctokitTypes.EndpointDefaults; 5 | export declare type EndpointOptions = OctokitTypes.EndpointOptions; 6 | export declare type RequestParameters = OctokitTypes.RequestParameters; 7 | export declare type RequestInterface = OctokitTypes.RequestInterface; 8 | export declare type Route = OctokitTypes.Route; 9 | export declare type Token = string; 10 | export declare type OAuthTokenAuthentication = { 11 | type: "token"; 12 | tokenType: "oauth"; 13 | token: Token; 14 | }; 15 | export declare type InstallationTokenAuthentication = { 16 | type: "token"; 17 | tokenType: "installation"; 18 | token: Token; 19 | }; 20 | export declare type AppAuthentication = { 21 | type: "token"; 22 | tokenType: "app"; 23 | token: Token; 24 | }; 25 | export declare type Authentication = OAuthTokenAuthentication | InstallationTokenAuthentication | AppAuthentication; 26 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Prefix token for usage in the Authorization header 3 | * 4 | * @param token OAuth token or JSON Web Token 5 | */ 6 | export declare function withAuthorizationPrefix(token: string): string; 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-web/index.js: -------------------------------------------------------------------------------- 1 | async function auth(token) { 2 | const tokenType = token.split(/\./).length === 3 3 | ? "app" 4 | : /^v\d+\./.test(token) 5 | ? "installation" 6 | : "oauth"; 7 | return { 8 | type: "token", 9 | token: token, 10 | tokenType 11 | }; 12 | } 13 | 14 | /** 15 | * Prefix token for usage in the Authorization header 16 | * 17 | * @param token OAuth token or JSON Web Token 18 | */ 19 | function withAuthorizationPrefix(token) { 20 | if (token.split(/\./).length === 3) { 21 | return `bearer ${token}`; 22 | } 23 | return `token ${token}`; 24 | } 25 | 26 | async function hook(token, request, route, parameters) { 27 | const endpoint = request.endpoint.merge(route, parameters); 28 | endpoint.headers.authorization = withAuthorizationPrefix(token); 29 | return request(endpoint); 30 | } 31 | 32 | const createTokenAuth = function createTokenAuth(token) { 33 | if (!token) { 34 | throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); 35 | } 36 | if (typeof token !== "string") { 37 | throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); 38 | } 39 | token = token.replace(/^(token|bearer) +/i, ""); 40 | return Object.assign(auth.bind(null, token), { 41 | hook: hook.bind(null, token) 42 | }); 43 | }; 44 | 45 | export { createTokenAuth }; 46 | //# sourceMappingURL=index.js.map 47 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2019 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-src/types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "3.2.4"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { HookCollection } from "before-after-hook"; 2 | import { request } from "@octokit/request"; 3 | import { graphql } from "@octokit/graphql"; 4 | import { Constructor, OctokitOptions, OctokitPlugin, ReturnTypeOf, UnionToIntersection } from "./types"; 5 | export declare class Octokit { 6 | static VERSION: string; 7 | static defaults>(this: S, defaults: OctokitOptions | Function): { 8 | new (...args: any[]): { 9 | [x: string]: any; 10 | }; 11 | } & S; 12 | static plugins: OctokitPlugin[]; 13 | /** 14 | * Attach a plugin (or many) to your Octokit instance. 15 | * 16 | * @example 17 | * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...) 18 | */ 19 | static plugin & { 20 | plugins: any[]; 21 | }, T extends OctokitPlugin[]>(this: S, ...newPlugins: T): { 22 | new (...args: any[]): { 23 | [x: string]: any; 24 | }; 25 | plugins: any[]; 26 | } & S & Constructor>>; 27 | constructor(options?: OctokitOptions); 28 | request: typeof request; 29 | graphql: typeof graphql; 30 | log: { 31 | debug: (message: string, additionalInfo?: object) => any; 32 | info: (message: string, additionalInfo?: object) => any; 33 | warn: (message: string, additionalInfo?: object) => any; 34 | error: (message: string, additionalInfo?: object) => any; 35 | [key: string]: any; 36 | }; 37 | hook: HookCollection; 38 | auth: (...args: unknown[]) => Promise; 39 | [key: string]: any; 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import * as OctokitTypes from "@octokit/types"; 2 | import { Octokit } from "."; 3 | export declare type RequestParameters = OctokitTypes.RequestParameters; 4 | export declare type OctokitOptions = { 5 | authStrategy?: any; 6 | auth?: any; 7 | userAgent?: string; 8 | previews?: string[]; 9 | baseUrl?: string; 10 | log?: { 11 | debug: (message: string) => unknown; 12 | info: (message: string) => unknown; 13 | warn: (message: string) => unknown; 14 | error: (message: string) => unknown; 15 | }; 16 | request?: OctokitTypes.RequestRequestOptions; 17 | timeZone?: string; 18 | [option: string]: any; 19 | }; 20 | export declare type Constructor = new (...args: any[]) => T; 21 | export declare type ReturnTypeOf = T extends AnyFunction ? ReturnType : T extends AnyFunction[] ? UnionToIntersection> : never; 22 | /** 23 | * @author https://stackoverflow.com/users/2887218/jcalz 24 | * @see https://stackoverflow.com/a/50375286/10325032 25 | */ 26 | export declare type UnionToIntersection = (Union extends any ? (argument: Union) => void : never) extends (argument: infer Intersection) => void ? Intersection : never; 27 | declare type AnyFunction = (...args: any) => any; 28 | export declare type OctokitPlugin = (octokit: Octokit, options: OctokitOptions) => { 29 | [key: string]: any; 30 | } | void; 31 | export {}; 32 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "3.2.4"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/defaults.js: -------------------------------------------------------------------------------- 1 | import { getUserAgent } from "universal-user-agent"; 2 | import { VERSION } from "./version"; 3 | const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; 4 | // DEFAULTS has all properties set that EndpointOptions has, except url. 5 | // So we use RequestParameters and add method as additional required property. 6 | export const DEFAULTS = { 7 | method: "GET", 8 | baseUrl: "https://api.github.com", 9 | headers: { 10 | accept: "application/vnd.github.v3+json", 11 | "user-agent": userAgent, 12 | }, 13 | mediaType: { 14 | format: "", 15 | previews: [], 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js: -------------------------------------------------------------------------------- 1 | import { merge } from "./merge"; 2 | import { parse } from "./parse"; 3 | export function endpointWithDefaults(defaults, route, options) { 4 | return parse(merge(defaults, route, options)); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { withDefaults } from "./with-defaults"; 2 | import { DEFAULTS } from "./defaults"; 3 | export const endpoint = withDefaults(null, DEFAULTS); 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/merge.js: -------------------------------------------------------------------------------- 1 | import { lowercaseKeys } from "./util/lowercase-keys"; 2 | import { mergeDeep } from "./util/merge-deep"; 3 | import { removeUndefinedProperties } from "./util/remove-undefined-properties"; 4 | export function merge(defaults, route, options) { 5 | if (typeof route === "string") { 6 | let [method, url] = route.split(" "); 7 | options = Object.assign(url ? { method, url } : { url: method }, options); 8 | } 9 | else { 10 | options = Object.assign({}, route); 11 | } 12 | // lowercase header names before merging with defaults to avoid duplicates 13 | options.headers = lowercaseKeys(options.headers); 14 | // remove properties with undefined values before merging 15 | removeUndefinedProperties(options); 16 | removeUndefinedProperties(options.headers); 17 | const mergedOptions = mergeDeep(defaults || {}, options); 18 | // mediaType.previews arrays are merged, instead of overwritten 19 | if (defaults && defaults.mediaType.previews.length) { 20 | mergedOptions.mediaType.previews = defaults.mediaType.previews 21 | .filter((preview) => !mergedOptions.mediaType.previews.includes(preview)) 22 | .concat(mergedOptions.mediaType.previews); 23 | } 24 | mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, "")); 25 | return mergedOptions; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js: -------------------------------------------------------------------------------- 1 | export function addQueryParameters(url, parameters) { 2 | const separator = /\?/.test(url) ? "&" : "?"; 3 | const names = Object.keys(parameters); 4 | if (names.length === 0) { 5 | return url; 6 | } 7 | return (url + 8 | separator + 9 | names 10 | .map((name) => { 11 | if (name === "q") { 12 | return ("q=" + parameters.q.split("+").map(encodeURIComponent).join("+")); 13 | } 14 | return `${name}=${encodeURIComponent(parameters[name])}`; 15 | }) 16 | .join("&")); 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js: -------------------------------------------------------------------------------- 1 | const urlVariableRegex = /\{[^}]+\}/g; 2 | function removeNonChars(variableName) { 3 | return variableName.replace(/^\W+|\W+$/g, "").split(/,/); 4 | } 5 | export function extractUrlVariableNames(url) { 6 | const matches = url.match(urlVariableRegex); 7 | if (!matches) { 8 | return []; 9 | } 10 | return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js: -------------------------------------------------------------------------------- 1 | export function lowercaseKeys(object) { 2 | if (!object) { 3 | return {}; 4 | } 5 | return Object.keys(object).reduce((newObj, key) => { 6 | newObj[key.toLowerCase()] = object[key]; 7 | return newObj; 8 | }, {}); 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/merge-deep.js: -------------------------------------------------------------------------------- 1 | import { isPlainObject } from "is-plain-object"; 2 | export function mergeDeep(defaults, options) { 3 | const result = Object.assign({}, defaults); 4 | Object.keys(options).forEach((key) => { 5 | if (isPlainObject(options[key])) { 6 | if (!(key in defaults)) 7 | Object.assign(result, { [key]: options[key] }); 8 | else 9 | result[key] = mergeDeep(defaults[key], options[key]); 10 | } 11 | else { 12 | Object.assign(result, { [key]: options[key] }); 13 | } 14 | }); 15 | return result; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/omit.js: -------------------------------------------------------------------------------- 1 | export function omit(object, keysToOmit) { 2 | return Object.keys(object) 3 | .filter((option) => !keysToOmit.includes(option)) 4 | .reduce((obj, key) => { 5 | obj[key] = object[key]; 6 | return obj; 7 | }, {}); 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js: -------------------------------------------------------------------------------- 1 | export function removeUndefinedProperties(obj) { 2 | for (const key in obj) { 3 | if (obj[key] === undefined) { 4 | delete obj[key]; 5 | } 6 | } 7 | return obj; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "6.0.10"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/with-defaults.js: -------------------------------------------------------------------------------- 1 | import { endpointWithDefaults } from "./endpoint-with-defaults"; 2 | import { merge } from "./merge"; 3 | import { parse } from "./parse"; 4 | export function withDefaults(oldDefaults, newDefaults) { 5 | const DEFAULTS = merge(oldDefaults, newDefaults); 6 | const endpoint = endpointWithDefaults.bind(null, DEFAULTS); 7 | return Object.assign(endpoint, { 8 | DEFAULTS, 9 | defaults: withDefaults.bind(null, DEFAULTS), 10 | merge: merge.bind(null, DEFAULTS), 11 | parse, 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointDefaults } from "@octokit/types"; 2 | export declare const DEFAULTS: EndpointDefaults; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/endpoint-with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointOptions, RequestParameters, Route } from "@octokit/types"; 2 | import { DEFAULTS } from "./defaults"; 3 | export declare function endpointWithDefaults(defaults: typeof DEFAULTS, route: Route | EndpointOptions, options?: RequestParameters): import("@octokit/types").RequestOptions; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare const endpoint: import("@octokit/types").EndpointInterface; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/merge.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointDefaults, RequestParameters, Route } from "@octokit/types"; 2 | export declare function merge(defaults: EndpointDefaults | null, route?: Route | RequestParameters, options?: RequestParameters): EndpointDefaults; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/parse.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointDefaults, RequestOptions } from "@octokit/types"; 2 | export declare function parse(options: EndpointDefaults): RequestOptions; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/add-query-parameters.d.ts: -------------------------------------------------------------------------------- 1 | export declare function addQueryParameters(url: string, parameters: { 2 | [x: string]: string | undefined; 3 | q?: string; 4 | }): string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/extract-url-variable-names.d.ts: -------------------------------------------------------------------------------- 1 | export declare function extractUrlVariableNames(url: string): string[]; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts: -------------------------------------------------------------------------------- 1 | export declare function lowercaseKeys(object?: { 2 | [key: string]: any; 3 | }): { 4 | [key: string]: any; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts: -------------------------------------------------------------------------------- 1 | export declare function mergeDeep(defaults: any, options: any): object; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/omit.d.ts: -------------------------------------------------------------------------------- 1 | export declare function omit(object: { 2 | [key: string]: any; 3 | }, keysToOmit: string[]): { 4 | [key: string]: any; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/remove-undefined-properties.d.ts: -------------------------------------------------------------------------------- 1 | export declare function removeUndefinedProperties(obj: any): any; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts: -------------------------------------------------------------------------------- 1 | export declare function parseUrl(template: string): { 2 | expand: (context: object) => string; 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "6.0.10"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface, RequestParameters, EndpointDefaults } from "@octokit/types"; 2 | export declare function withDefaults(oldDefaults: EndpointDefaults | null, newDefaults: RequestParameters): EndpointInterface; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/error.js: -------------------------------------------------------------------------------- 1 | export class GraphqlError extends Error { 2 | constructor(request, response) { 3 | const message = response.data.errors[0].message; 4 | super(message); 5 | Object.assign(this, response.data); 6 | Object.assign(this, { headers: response.headers }); 7 | this.name = "GraphqlError"; 8 | this.request = request; 9 | // Maintains proper stack trace (only available on V8) 10 | /* istanbul ignore next */ 11 | if (Error.captureStackTrace) { 12 | Error.captureStackTrace(this, this.constructor); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/graphql.js: -------------------------------------------------------------------------------- 1 | import { GraphqlError } from "./error"; 2 | const NON_VARIABLE_OPTIONS = [ 3 | "method", 4 | "baseUrl", 5 | "url", 6 | "headers", 7 | "request", 8 | "query", 9 | "mediaType", 10 | ]; 11 | const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/; 12 | export function graphql(request, query, options) { 13 | if (typeof query === "string" && options && "query" in options) { 14 | return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`)); 15 | } 16 | const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query; 17 | const requestOptions = Object.keys(parsedOptions).reduce((result, key) => { 18 | if (NON_VARIABLE_OPTIONS.includes(key)) { 19 | result[key] = parsedOptions[key]; 20 | return result; 21 | } 22 | if (!result.variables) { 23 | result.variables = {}; 24 | } 25 | result.variables[key] = parsedOptions[key]; 26 | return result; 27 | }, {}); 28 | // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix 29 | // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451 30 | const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl; 31 | if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) { 32 | requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql"); 33 | } 34 | return request(requestOptions).then((response) => { 35 | if (response.data.errors) { 36 | const headers = {}; 37 | for (const key of Object.keys(response.headers)) { 38 | headers[key] = response.headers[key]; 39 | } 40 | throw new GraphqlError(requestOptions, { 41 | headers, 42 | data: response.data, 43 | }); 44 | } 45 | return response.data.data; 46 | }); 47 | } 48 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { request } from "@octokit/request"; 2 | import { getUserAgent } from "universal-user-agent"; 3 | import { VERSION } from "./version"; 4 | import { withDefaults } from "./with-defaults"; 5 | export const graphql = withDefaults(request, { 6 | headers: { 7 | "user-agent": `octokit-graphql.js/${VERSION} ${getUserAgent()}`, 8 | }, 9 | method: "POST", 10 | url: "/graphql", 11 | }); 12 | export function withCustomRequest(customRequest) { 13 | return withDefaults(customRequest, { 14 | method: "POST", 15 | url: "/graphql", 16 | }); 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kin/gh-action-get-linked-issues/8ef8d85f1410531f5adadb30609d92cda2c8a650/node_modules/@octokit/graphql/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "4.5.8"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/with-defaults.js: -------------------------------------------------------------------------------- 1 | import { request as Request } from "@octokit/request"; 2 | import { graphql } from "./graphql"; 3 | export function withDefaults(request, newDefaults) { 4 | const newRequest = request.defaults(newDefaults); 5 | const newApi = (query, options) => { 6 | return graphql(newRequest, query, options); 7 | }; 8 | return Object.assign(newApi, { 9 | defaults: withDefaults.bind(null, newRequest), 10 | endpoint: Request.endpoint, 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/error.d.ts: -------------------------------------------------------------------------------- 1 | import { ResponseHeaders } from "@octokit/types"; 2 | import { GraphQlEndpointOptions, GraphQlQueryResponse } from "./types"; 3 | export declare class GraphqlError extends Error { 4 | request: GraphQlEndpointOptions; 5 | constructor(request: GraphQlEndpointOptions, response: { 6 | headers: ResponseHeaders; 7 | data: Required>; 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/graphql.d.ts: -------------------------------------------------------------------------------- 1 | import { request as Request } from "@octokit/request"; 2 | import { RequestParameters, GraphQlQueryResponseData } from "./types"; 3 | export declare function graphql(request: typeof Request, query: string | RequestParameters, options?: RequestParameters): Promise; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { request } from "@octokit/request"; 2 | export declare const graphql: import("./types").graphql; 3 | export declare function withCustomRequest(customRequest: typeof request): import("./types").graphql; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointOptions, RequestParameters as RequestParametersType, EndpointInterface } from "@octokit/types"; 2 | export declare type GraphQlEndpointOptions = EndpointOptions & { 3 | variables?: { 4 | [key: string]: unknown; 5 | }; 6 | }; 7 | export declare type RequestParameters = RequestParametersType; 8 | export declare type Query = string; 9 | export interface graphql { 10 | /** 11 | * Sends a GraphQL query request based on endpoint options 12 | * The GraphQL query must be specified in `options`. 13 | * 14 | * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. 15 | */ 16 | (options: RequestParameters): GraphQlResponse; 17 | /** 18 | * Sends a GraphQL query request based on endpoint options 19 | * 20 | * @param {string} query GraphQL query. Example: `'query { viewer { login } }'`. 21 | * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. 22 | */ 23 | (query: Query, parameters?: RequestParameters): GraphQlResponse; 24 | /** 25 | * Returns a new `endpoint` with updated route and parameters 26 | */ 27 | defaults: (newDefaults: RequestParameters) => graphql; 28 | /** 29 | * Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint} 30 | */ 31 | endpoint: EndpointInterface; 32 | } 33 | export declare type GraphQlResponse = Promise; 34 | export declare type GraphQlQueryResponseData = { 35 | [key: string]: any; 36 | }; 37 | export declare type GraphQlQueryResponse = { 38 | data: ResponseData; 39 | errors?: [{ 40 | message: string; 41 | path: [string]; 42 | extensions: { 43 | [key: string]: any; 44 | }; 45 | locations: [{ 46 | line: number; 47 | column: number; 48 | }]; 49 | }]; 50 | }; 51 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "4.5.8"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { request as Request } from "@octokit/request"; 2 | import { graphql as ApiInterface, RequestParameters } from "./types"; 3 | export declare function withDefaults(request: typeof Request, newDefaults: RequestParameters): ApiInterface; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | # create PRs for out-of-range updates 4 | - package-ecosystem: "npm" 5 | directory: "/" 6 | schedule: 7 | interval: "daily" 8 | versioning-strategy: "increase" 9 | labels: 10 | - "maintenance" 11 | 12 | # Update actions with branch-based versioning 13 | - package-ecosystem: "github-actions" 14 | directory: "/" 15 | schedule: 16 | interval: "daily" 17 | labels: 18 | - "maintenance" 19 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/.github/workflows/release-notification.yml: -------------------------------------------------------------------------------- 1 | name: Release notification 2 | on: 3 | release: 4 | types: 5 | - published 6 | 7 | jobs: 8 | notify: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: gr2m/release-notifier-action@v1 12 | with: 13 | app_id: ${{ secrets.RELEASE_NOTIFIER_APP_ID }} 14 | private_key: ${{ secrets.RELEASE_NOTIFIER_APP_PRIVATE_KEY }} 15 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: 3 | push: 4 | branches: 5 | - main 6 | - next 7 | - beta 8 | - "*.x" # maintenance releases 9 | 10 | jobs: 11 | release: 12 | name: release 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@v2 16 | - uses: actions/setup-node@v2.1.2 17 | - run: npm ci 18 | - run: npx semantic-release 19 | env: 20 | GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} 21 | NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }} 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2020 Gregor Martynus 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/README.md: -------------------------------------------------------------------------------- 1 | # openapi-types.ts 2 | 3 | > Generated TypeScript definitions based on GitHub's OpenAPI spec 4 | 5 | This repository continously converts [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/) into TypeScript definitions and publishes them to npm as `@octokit/openapi-types` 6 | 7 | ## License 8 | 9 | [MIT](LICENSE) 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "@octokit/openapi-types@^2.0.0", 3 | "_id": "@octokit/openapi-types@2.0.0", 4 | "_inBundle": false, 5 | "_integrity": "sha512-J4bfM7lf8oZvEAdpS71oTvC1ofKxfEZgU5vKVwzZKi4QPiL82udjpseJwxPid9Pu2FNmyRQOX4iEj6W1iOSnPw==", 6 | "_location": "/@octokit/openapi-types", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "range", 10 | "registry": true, 11 | "raw": "@octokit/openapi-types@^2.0.0", 12 | "name": "@octokit/openapi-types", 13 | "escapedName": "@octokit%2fopenapi-types", 14 | "scope": "@octokit", 15 | "rawSpec": "^2.0.0", 16 | "saveSpec": null, 17 | "fetchSpec": "^2.0.0" 18 | }, 19 | "_requiredBy": [ 20 | "/@octokit/types" 21 | ], 22 | "_resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-2.0.0.tgz", 23 | "_shasum": "6d8f8ad9db3b75a39115f5def2654df8bed39f28", 24 | "_spec": "@octokit/openapi-types@^2.0.0", 25 | "_where": "/Users/jeremyward/gh-action-get-linked-issues/node_modules/@octokit/types", 26 | "author": { 27 | "name": "Gregor Martynus", 28 | "url": "https://twitter.com/gr2m" 29 | }, 30 | "bugs": { 31 | "url": "https://github.com/octokit/openapi-types.ts/issues" 32 | }, 33 | "bundleDependencies": false, 34 | "deprecated": false, 35 | "description": "Generated TypeScript definitions based on GitHub's OpenAPI spec", 36 | "devDependencies": { 37 | "openapi-typescript": "^2.4.2" 38 | }, 39 | "homepage": "https://github.com/octokit/openapi-types.ts#readme", 40 | "keywords": [], 41 | "license": "MIT", 42 | "main": "generated/types.ts", 43 | "name": "@octokit/openapi-types", 44 | "octokit": { 45 | "openapi-version": "2.0.0" 46 | }, 47 | "publishConfig": { 48 | "access": "public" 49 | }, 50 | "release": { 51 | "branches": "main" 52 | }, 53 | "repository": { 54 | "type": "git", 55 | "url": "git+https://github.com/octokit/openapi-types.ts.git" 56 | }, 57 | "scripts": { 58 | "download": "node scripts/download", 59 | "generate-types": "npx openapi-typescript cache/openapi-schema.json -o generated/types.ts", 60 | "postgenerate-types": "node scripts/update-package" 61 | }, 62 | "version": "2.0.0" 63 | } 64 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/scripts/download.js: -------------------------------------------------------------------------------- 1 | const { get } = require("https"); 2 | const fs = require("fs"); 3 | 4 | if (!process.env.VERSION) { 5 | throw new Error("VERSION is not set"); 6 | } 7 | 8 | download(process.env.VERSION.replace(/^v/, "")).then( 9 | () => console.log("done"), 10 | console.error 11 | ); 12 | 13 | function download(version) { 14 | const path = `cache/openapi-schema.json`; 15 | const url = `https://unpkg.com/@octokit/openapi@${version}/generated/api.github.com.json`; 16 | 17 | const file = fs.createWriteStream(path); 18 | 19 | console.log("Downloading %s", url); 20 | 21 | return new Promise((resolve, reject) => { 22 | get(url, (response) => { 23 | response.pipe(file); 24 | file 25 | .on("finish", () => 26 | file.close((error) => { 27 | if (error) return reject(error); 28 | console.log("%s written", path); 29 | resolve(); 30 | }) 31 | ) 32 | .on("error", (error) => reject(error.message)); 33 | }); 34 | }); 35 | } 36 | -------------------------------------------------------------------------------- /node_modules/@octokit/openapi-types/scripts/update-package.js: -------------------------------------------------------------------------------- 1 | const { writeFileSync } = require("fs"); 2 | 3 | if (!process.env.VERSION) { 4 | throw new Error("VERSION is not set"); 5 | } 6 | 7 | const pkg = require("../package.json"); 8 | 9 | if (!pkg.octokit) { 10 | pkg.octokit = {}; 11 | } 12 | 13 | pkg.octokit["openapi-version"] = process.env.VERSION.replace(/^v/, ""); 14 | 15 | writeFileSync("package.json", JSON.stringify(pkg, null, 2) + "\n"); 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2019 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js: -------------------------------------------------------------------------------- 1 | import { paginate } from "./paginate"; 2 | import { iterator } from "./iterator"; 3 | export const composePaginateRest = Object.assign(paginate, { 4 | iterator, 5 | }); 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { VERSION } from "./version"; 2 | import { paginate } from "./paginate"; 3 | import { iterator } from "./iterator"; 4 | export { composePaginateRest } from "./compose-paginate"; 5 | /** 6 | * @param octokit Octokit instance 7 | * @param options Options passed to Octokit constructor 8 | */ 9 | export function paginateRest(octokit) { 10 | return { 11 | paginate: Object.assign(paginate.bind(null, octokit), { 12 | iterator: iterator.bind(null, octokit), 13 | }), 14 | }; 15 | } 16 | paginateRest.VERSION = VERSION; 17 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js: -------------------------------------------------------------------------------- 1 | import { normalizePaginatedListResponse } from "./normalize-paginated-list-response"; 2 | export function iterator(octokit, route, parameters) { 3 | const options = typeof route === "function" 4 | ? route.endpoint(parameters) 5 | : octokit.request.endpoint(route, parameters); 6 | const requestMethod = typeof route === "function" ? route : octokit.request; 7 | const method = options.method; 8 | const headers = options.headers; 9 | let url = options.url; 10 | return { 11 | [Symbol.asyncIterator]: () => ({ 12 | async next() { 13 | if (!url) 14 | return { done: true }; 15 | const response = await requestMethod({ method, url, headers }); 16 | const normalizedResponse = normalizePaginatedListResponse(response); 17 | // `response.headers.link` format: 18 | // '; rel="next", ; rel="last"' 19 | // sets `url` to undefined if "next" URL is not present or `link` header is not set 20 | url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; 21 | return { value: normalizedResponse }; 22 | }, 23 | }), 24 | }; 25 | } 26 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Some “list” response that can be paginated have a different response structure 3 | * 4 | * They have a `total_count` key in the response (search also has `incomplete_results`, 5 | * /installation/repositories also has `repository_selection`), as well as a key with 6 | * the list of the items which name varies from endpoint to endpoint. 7 | * 8 | * Octokit normalizes these responses so that paginated results are always returned following 9 | * the same structure. One challenge is that if the list response has only one page, no Link 10 | * header is provided, so this header alone is not sufficient to check wether a response is 11 | * paginated or not. 12 | * 13 | * We check if a "total_count" key is present in the response data, but also make sure that 14 | * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would 15 | * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref 16 | */ 17 | export function normalizePaginatedListResponse(response) { 18 | const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data); 19 | if (!responseNeedsNormalization) 20 | return response; 21 | // keep the additional properties intact as there is currently no other way 22 | // to retrieve the same information. 23 | const incompleteResults = response.data.incomplete_results; 24 | const repositorySelection = response.data.repository_selection; 25 | const totalCount = response.data.total_count; 26 | delete response.data.incomplete_results; 27 | delete response.data.repository_selection; 28 | delete response.data.total_count; 29 | const namespaceKey = Object.keys(response.data)[0]; 30 | const data = response.data[namespaceKey]; 31 | response.data = data; 32 | if (typeof incompleteResults !== "undefined") { 33 | response.data.incomplete_results = incompleteResults; 34 | } 35 | if (typeof repositorySelection !== "undefined") { 36 | response.data.repository_selection = repositorySelection; 37 | } 38 | response.data.total_count = totalCount; 39 | return response; 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js: -------------------------------------------------------------------------------- 1 | import { iterator } from "./iterator"; 2 | export function paginate(octokit, route, parameters, mapFn) { 3 | if (typeof parameters === "function") { 4 | mapFn = parameters; 5 | parameters = undefined; 6 | } 7 | return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn); 8 | } 9 | function gather(octokit, results, iterator, mapFn) { 10 | return iterator.next().then((result) => { 11 | if (result.done) { 12 | return results; 13 | } 14 | let earlyExit = false; 15 | function done() { 16 | earlyExit = true; 17 | } 18 | results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data); 19 | if (earlyExit) { 20 | return results; 21 | } 22 | return gather(octokit, results, iterator, mapFn); 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "2.6.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts: -------------------------------------------------------------------------------- 1 | import { ComposePaginateInterface } from "./types"; 2 | export declare const composePaginateRest: ComposePaginateInterface; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { PaginateInterface } from "./types"; 3 | export { PaginateInterface } from "./types"; 4 | export { composePaginateRest } from "./compose-paginate"; 5 | /** 6 | * @param octokit Octokit instance 7 | * @param options Options passed to Octokit constructor 8 | */ 9 | export declare function paginateRest(octokit: Octokit): { 10 | paginate: PaginateInterface; 11 | }; 12 | export declare namespace paginateRest { 13 | var VERSION: string; 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { RequestInterface, RequestParameters, Route } from "./types"; 3 | export declare function iterator(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters): { 4 | [Symbol.asyncIterator]: () => { 5 | next(): Promise<{ 6 | done: boolean; 7 | value?: undefined; 8 | } | { 9 | value: import("@octokit/types/dist-types/OctokitResponse").OctokitResponse; 10 | done?: undefined; 11 | }>; 12 | }; 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Some “list” response that can be paginated have a different response structure 3 | * 4 | * They have a `total_count` key in the response (search also has `incomplete_results`, 5 | * /installation/repositories also has `repository_selection`), as well as a key with 6 | * the list of the items which name varies from endpoint to endpoint. 7 | * 8 | * Octokit normalizes these responses so that paginated results are always returned following 9 | * the same structure. One challenge is that if the list response has only one page, no Link 10 | * header is provided, so this header alone is not sufficient to check wether a response is 11 | * paginated or not. 12 | * 13 | * We check if a "total_count" key is present in the response data, but also make sure that 14 | * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would 15 | * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref 16 | */ 17 | import { OctokitResponse } from "./types"; 18 | export declare function normalizePaginatedListResponse(response: OctokitResponse): OctokitResponse; 19 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { MapFunction, PaginationResults, RequestParameters, Route, RequestInterface } from "./types"; 3 | export declare function paginate(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters, mapFn?: MapFunction): Promise>; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "2.6.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2020 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/README.md: -------------------------------------------------------------------------------- 1 | # plugin-request-log.js 2 | 3 | > Log all requests and request errors 4 | 5 | [![@latest](https://img.shields.io/npm/v/@octokit/plugin-request-log.svg)](https://www.npmjs.com/package/@octokit/plugin-request-log) 6 | [![Build Status](https://github.com/octokit/plugin-request-log.js/workflows/Test/badge.svg)](https://github.com/octokit/plugin-request-log.js/actions?workflow=Test) 7 | 8 | ## Usage 9 | 10 | 11 | 12 | 26 | 38 | 39 |
13 | Browsers 14 | 15 | 16 | Load `@octokit/plugin-request-log` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.skypack.dev](https://cdn.skypack.dev) 17 | 18 | ```html 19 | 23 | ``` 24 | 25 |
27 | Node 28 | 29 | 30 | Install with `npm install @octokit/core @octokit/plugin-request-log`. Optionally replace `@octokit/core` with a core-compatible module 31 | 32 | ```js 33 | const { Octokit } = require("@octokit/core"); 34 | const { requestLog } = require("@octokit/plugin-request-log"); 35 | ``` 36 | 37 |
40 | 41 | ```js 42 | const MyOctokit = Octokit.plugin(requestLog); 43 | const octokit = new MyOctokit({ auth: "secret123" }); 44 | 45 | octokit.request("GET /"); 46 | // logs "GET / - 200 in 123ms 47 | 48 | octokit.request("GET /oops"); 49 | // logs "GET / - 404 in 123ms 50 | ``` 51 | 52 | In order to log all request options, the `log.debug` option needs to be set. We recommend the [console-log-level](https://github.com/watson/console-log-level) package for a configurable log level 53 | 54 | ```js 55 | const octokit = new MyOctokit({ 56 | log: require("console-log-level")({ 57 | auth: "secret123", 58 | level: "info", 59 | }), 60 | }); 61 | ``` 62 | 63 | ## Contributing 64 | 65 | See [CONTRIBUTING.md](CONTRIBUTING.md) 66 | 67 | ## License 68 | 69 | [MIT](LICENSE) 70 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | const VERSION = "1.0.2"; 6 | 7 | /** 8 | * @param octokit Octokit instance 9 | * @param options Options passed to Octokit constructor 10 | */ 11 | 12 | function requestLog(octokit) { 13 | octokit.hook.wrap("request", (request, options) => { 14 | octokit.log.debug("request", options); 15 | const start = Date.now(); 16 | const requestOptions = octokit.request.endpoint.parse(options); 17 | const path = requestOptions.url.replace(options.baseUrl, ""); 18 | return request(options).then(response => { 19 | octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); 20 | return response; 21 | }).catch(error => { 22 | octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); 23 | throw error; 24 | }); 25 | }); 26 | } 27 | requestLog.VERSION = VERSION; 28 | 29 | exports.requestLog = requestLog; 30 | //# sourceMappingURL=index.js.map 31 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.2\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then((response) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch((error) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":["VERSION","requestLog","octokit","hook","wrap","request","options","log","debug","start","Date","now","requestOptions","endpoint","parse","path","url","replace","baseUrl","then","response","info","method","status","catch","error"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACCP;;;;;AAIA,AAAO,SAASC,UAAT,CAAoBC,OAApB,EAA6B;AAChCA,EAAAA,OAAO,CAACC,IAAR,CAAaC,IAAb,CAAkB,SAAlB,EAA6B,CAACC,OAAD,EAAUC,OAAV,KAAsB;AAC/CJ,IAAAA,OAAO,CAACK,GAAR,CAAYC,KAAZ,CAAkB,SAAlB,EAA6BF,OAA7B;AACA,UAAMG,KAAK,GAAGC,IAAI,CAACC,GAAL,EAAd;AACA,UAAMC,cAAc,GAAGV,OAAO,CAACG,OAAR,CAAgBQ,QAAhB,CAAyBC,KAAzB,CAA+BR,OAA/B,CAAvB;AACA,UAAMS,IAAI,GAAGH,cAAc,CAACI,GAAf,CAAmBC,OAAnB,CAA2BX,OAAO,CAACY,OAAnC,EAA4C,EAA5C,CAAb;AACA,WAAOb,OAAO,CAACC,OAAD,CAAP,CACFa,IADE,CACIC,QAAD,IAAc;AACpBlB,MAAAA,OAAO,CAACK,GAAR,CAAYc,IAAZ,CAAkB,GAAET,cAAc,CAACU,MAAO,IAAGP,IAAK,MAAKK,QAAQ,CAACG,MAAO,OAAMb,IAAI,CAACC,GAAL,KAAaF,KAAM,IAAhG;AACA,aAAOW,QAAP;AACH,KAJM,EAKFI,KALE,CAKKC,KAAD,IAAW;AAClBvB,MAAAA,OAAO,CAACK,GAAR,CAAYc,IAAZ,CAAkB,GAAET,cAAc,CAACU,MAAO,IAAGP,IAAK,MAAKU,KAAK,CAACF,MAAO,OAAMb,IAAI,CAACC,GAAL,KAAaF,KAAM,IAA7F;AACA,YAAMgB,KAAN;AACH,KARM,CAAP;AASH,GAdD;AAeH;AACDxB,UAAU,CAACD,OAAX,GAAqBA,OAArB;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { VERSION } from "./version"; 2 | /** 3 | * @param octokit Octokit instance 4 | * @param options Options passed to Octokit constructor 5 | */ 6 | export function requestLog(octokit) { 7 | octokit.hook.wrap("request", (request, options) => { 8 | octokit.log.debug("request", options); 9 | const start = Date.now(); 10 | const requestOptions = octokit.request.endpoint.parse(options); 11 | const path = requestOptions.url.replace(options.baseUrl, ""); 12 | return request(options) 13 | .then((response) => { 14 | octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); 15 | return response; 16 | }) 17 | .catch((error) => { 18 | octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); 19 | throw error; 20 | }); 21 | }); 22 | } 23 | requestLog.VERSION = VERSION; 24 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "1.0.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import type { Octokit } from "@octokit/core"; 2 | /** 3 | * @param octokit Octokit instance 4 | * @param options Options passed to Octokit constructor 5 | */ 6 | export declare function requestLog(octokit: Octokit): void; 7 | export declare namespace requestLog { 8 | var VERSION: string; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "1.0.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-web/index.js: -------------------------------------------------------------------------------- 1 | const VERSION = "1.0.2"; 2 | 3 | /** 4 | * @param octokit Octokit instance 5 | * @param options Options passed to Octokit constructor 6 | */ 7 | function requestLog(octokit) { 8 | octokit.hook.wrap("request", (request, options) => { 9 | octokit.log.debug("request", options); 10 | const start = Date.now(); 11 | const requestOptions = octokit.request.endpoint.parse(options); 12 | const path = requestOptions.url.replace(options.baseUrl, ""); 13 | return request(options) 14 | .then((response) => { 15 | octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); 16 | return response; 17 | }) 18 | .catch((error) => { 19 | octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); 20 | throw error; 21 | }); 22 | }); 23 | } 24 | requestLog.VERSION = VERSION; 25 | 26 | export { requestLog }; 27 | //# sourceMappingURL=index.js.map 28 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.2\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then((response) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch((error) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACC1C;AACA;AACA;AACA;AACA,AAAO,SAAS,UAAU,CAAC,OAAO,EAAE;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK;AACvD,QAAQ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC9C,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACjC,QAAQ,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACvE,QAAQ,MAAM,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACrE,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC;AAC/B,aAAa,IAAI,CAAC,CAAC,QAAQ,KAAK;AAChC,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AACjH,YAAY,OAAO,QAAQ,CAAC;AAC5B,SAAS,CAAC;AACV,aAAa,KAAK,CAAC,CAAC,KAAK,KAAK;AAC9B,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9G,YAAY,MAAM,KAAK,CAAC;AACxB,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,CAAC;AACD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2019 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import ENDPOINTS from "./generated/endpoints"; 2 | import { VERSION } from "./version"; 3 | import { endpointsToMethods } from "./endpoints-to-methods"; 4 | /** 5 | * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary 6 | * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is 7 | * done, we will remove the registerEndpoints methods and return the methods 8 | * directly as with the other plugins. At that point we will also remove the 9 | * legacy workarounds and deprecations. 10 | * 11 | * See the plan at 12 | * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 13 | */ 14 | export function restEndpointMethods(octokit) { 15 | return endpointsToMethods(octokit, ENDPOINTS); 16 | } 17 | restEndpointMethods.VERSION = VERSION; 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "4.4.1"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { EndpointsDefaultsAndDecorations } from "./types"; 3 | import { RestEndpointMethods } from "./generated/method-types"; 4 | export declare function endpointsToMethods(octokit: Octokit, endpointsMap: EndpointsDefaultsAndDecorations): RestEndpointMethods; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointsDefaultsAndDecorations } from "../types"; 2 | declare const Endpoints: EndpointsDefaultsAndDecorations; 3 | export default Endpoints; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | export { RestEndpointMethodTypes } from "./generated/parameters-and-response-types"; 3 | import { Api } from "./types"; 4 | /** 5 | * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary 6 | * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is 7 | * done, we will remove the registerEndpoints methods and return the methods 8 | * directly as with the other plugins. At that point we will also remove the 9 | * legacy workarounds and deprecations. 10 | * 11 | * See the plan at 12 | * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 13 | */ 14 | export declare function restEndpointMethods(octokit: Octokit): Api; 15 | export declare namespace restEndpointMethods { 16 | var VERSION: string; 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import { Route, RequestParameters } from "@octokit/types"; 2 | import { RestEndpointMethods } from "./generated/method-types"; 3 | export declare type Api = RestEndpointMethods; 4 | export declare type EndpointDecorations = { 5 | mapToData?: string; 6 | deprecated?: string; 7 | renamed?: [string, string]; 8 | renamedParameters?: { 9 | [name: string]: string; 10 | }; 11 | }; 12 | export declare type EndpointsDefaultsAndDecorations = { 13 | [scope: string]: { 14 | [methodName: string]: [Route, RequestParameters?, EndpointDecorations?]; 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "4.4.1"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2019 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/README.md: -------------------------------------------------------------------------------- 1 | # http-error.js 2 | 3 | > Error class for Octokit request errors 4 | 5 | [![@latest](https://img.shields.io/npm/v/@octokit/request-error.svg)](https://www.npmjs.com/package/@octokit/request-error) 6 | [![Build Status](https://github.com/octokit/request-error.js/workflows/Test/badge.svg)](https://github.com/octokit/request-error.js/actions?query=workflow%3ATest) 7 | 8 | ## Usage 9 | 10 | 11 | 12 | 24 | 36 | 37 |
13 | Browsers 14 | 15 | Load @octokit/request-error directly from cdn.skypack.dev 16 | 17 | ```html 18 | 21 | ``` 22 | 23 |
25 | Node 26 | 27 | 28 | Install with npm install @octokit/request-error 29 | 30 | ```js 31 | const { RequestError } = require("@octokit/request-error"); 32 | // or: import { RequestError } from "@octokit/request-error"; 33 | ``` 34 | 35 |
38 | 39 | ```js 40 | const error = new RequestError("Oops", 500, { 41 | headers: { 42 | "x-github-request-id": "1:2:3:4", 43 | }, // response headers 44 | request: { 45 | method: "POST", 46 | url: "https://api.github.com/foo", 47 | body: { 48 | bar: "baz", 49 | }, 50 | headers: { 51 | authorization: "token secret123", 52 | }, 53 | }, 54 | }); 55 | 56 | error.message; // Oops 57 | error.status; // 500 58 | error.headers; // { 'x-github-request-id': '1:2:3:4' } 59 | error.request.method; // POST 60 | error.request.url; // https://api.github.com/foo 61 | error.request.body; // { bar: 'baz' } 62 | error.request.headers; // { authorization: 'token [REDACTED]' } 63 | ``` 64 | 65 | ## LICENSE 66 | 67 | [MIT](LICENSE) 68 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } 6 | 7 | var deprecation = require('deprecation'); 8 | var once = _interopDefault(require('once')); 9 | 10 | const logOnce = once(deprecation => console.warn(deprecation)); 11 | /** 12 | * Error with extra properties to help with debugging 13 | */ 14 | 15 | class RequestError extends Error { 16 | constructor(message, statusCode, options) { 17 | super(message); // Maintains proper stack trace (only available on V8) 18 | 19 | /* istanbul ignore next */ 20 | 21 | if (Error.captureStackTrace) { 22 | Error.captureStackTrace(this, this.constructor); 23 | } 24 | 25 | this.name = "HttpError"; 26 | this.status = statusCode; 27 | Object.defineProperty(this, "code", { 28 | get() { 29 | logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); 30 | return statusCode; 31 | } 32 | 33 | }); 34 | this.headers = options.headers || {}; // redact request credentials without mutating original request options 35 | 36 | const requestCopy = Object.assign({}, options.request); 37 | 38 | if (options.request.headers.authorization) { 39 | requestCopy.headers = Object.assign({}, options.request.headers, { 40 | authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") 41 | }); 42 | } 43 | 44 | requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit 45 | // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications 46 | .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended 47 | // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header 48 | .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); 49 | this.request = requestCopy; 50 | } 51 | 52 | } 53 | 54 | exports.RequestError = RequestError; 55 | //# sourceMappingURL=index.js.map 56 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { Deprecation } from "deprecation"; 2 | import once from "once"; 3 | const logOnce = once((deprecation) => console.warn(deprecation)); 4 | /** 5 | * Error with extra properties to help with debugging 6 | */ 7 | export class RequestError extends Error { 8 | constructor(message, statusCode, options) { 9 | super(message); 10 | // Maintains proper stack trace (only available on V8) 11 | /* istanbul ignore next */ 12 | if (Error.captureStackTrace) { 13 | Error.captureStackTrace(this, this.constructor); 14 | } 15 | this.name = "HttpError"; 16 | this.status = statusCode; 17 | Object.defineProperty(this, "code", { 18 | get() { 19 | logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); 20 | return statusCode; 21 | }, 22 | }); 23 | this.headers = options.headers || {}; 24 | // redact request credentials without mutating original request options 25 | const requestCopy = Object.assign({}, options.request); 26 | if (options.request.headers.authorization) { 27 | requestCopy.headers = Object.assign({}, options.request.headers, { 28 | authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"), 29 | }); 30 | } 31 | requestCopy.url = requestCopy.url 32 | // client_id & client_secret can be passed as URL query parameters to increase rate limit 33 | // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications 34 | .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") 35 | // OAuth tokens can be passed as URL query parameters, although it is not recommended 36 | // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header 37 | .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); 38 | this.request = requestCopy; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kin/gh-action-get-linked-issues/8ef8d85f1410531f5adadb30609d92cda2c8a650/node_modules/@octokit/request-error/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestOptions, ResponseHeaders } from "@octokit/types"; 2 | import { RequestErrorOptions } from "./types"; 3 | /** 4 | * Error with extra properties to help with debugging 5 | */ 6 | export declare class RequestError extends Error { 7 | name: "HttpError"; 8 | /** 9 | * http status code 10 | */ 11 | status: number; 12 | /** 13 | * http status code 14 | * 15 | * @deprecated `error.code` is deprecated in favor of `error.status` 16 | */ 17 | code: number; 18 | /** 19 | * error response headers 20 | */ 21 | headers: ResponseHeaders; 22 | /** 23 | * Request options that lead to the error. 24 | */ 25 | request: RequestOptions; 26 | constructor(message: string, statusCode: number, options: RequestErrorOptions); 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestOptions, ResponseHeaders } from "@octokit/types"; 2 | export declare type RequestErrorOptions = { 3 | headers?: ResponseHeaders; 4 | request: RequestOptions; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-web/index.js: -------------------------------------------------------------------------------- 1 | import { Deprecation } from 'deprecation'; 2 | import once from 'once'; 3 | 4 | const logOnce = once((deprecation) => console.warn(deprecation)); 5 | /** 6 | * Error with extra properties to help with debugging 7 | */ 8 | class RequestError extends Error { 9 | constructor(message, statusCode, options) { 10 | super(message); 11 | // Maintains proper stack trace (only available on V8) 12 | /* istanbul ignore next */ 13 | if (Error.captureStackTrace) { 14 | Error.captureStackTrace(this, this.constructor); 15 | } 16 | this.name = "HttpError"; 17 | this.status = statusCode; 18 | Object.defineProperty(this, "code", { 19 | get() { 20 | logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); 21 | return statusCode; 22 | }, 23 | }); 24 | this.headers = options.headers || {}; 25 | // redact request credentials without mutating original request options 26 | const requestCopy = Object.assign({}, options.request); 27 | if (options.request.headers.authorization) { 28 | requestCopy.headers = Object.assign({}, options.request.headers, { 29 | authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"), 30 | }); 31 | } 32 | requestCopy.url = requestCopy.url 33 | // client_id & client_secret can be passed as URL query parameters to increase rate limit 34 | // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications 35 | .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") 36 | // OAuth tokens can be passed as URL query parameters, although it is not recommended 37 | // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header 38 | .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); 39 | this.request = requestCopy; 40 | } 41 | } 42 | 43 | export { RequestError }; 44 | //# sourceMappingURL=index.js.map 45 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/get-buffer-response.js: -------------------------------------------------------------------------------- 1 | export default function getBufferResponse(response) { 2 | return response.arrayBuffer(); 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { endpoint } from "@octokit/endpoint"; 2 | import { getUserAgent } from "universal-user-agent"; 3 | import { VERSION } from "./version"; 4 | import withDefaults from "./with-defaults"; 5 | export const request = withDefaults(endpoint, { 6 | headers: { 7 | "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`, 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "5.4.12"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/with-defaults.js: -------------------------------------------------------------------------------- 1 | import fetchWrapper from "./fetch-wrapper"; 2 | export default function withDefaults(oldEndpoint, newDefaults) { 3 | const endpoint = oldEndpoint.defaults(newDefaults); 4 | const newApi = function (route, parameters) { 5 | const endpointOptions = endpoint.merge(route, parameters); 6 | if (!endpointOptions.request || !endpointOptions.request.hook) { 7 | return fetchWrapper(endpoint.parse(endpointOptions)); 8 | } 9 | const request = (route, parameters) => { 10 | return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); 11 | }; 12 | Object.assign(request, { 13 | endpoint, 14 | defaults: withDefaults.bind(null, endpoint), 15 | }); 16 | return endpointOptions.request.hook(request, endpointOptions); 17 | }; 18 | return Object.assign(newApi, { 19 | endpoint, 20 | defaults: withDefaults.bind(null, endpoint), 21 | }); 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface } from "@octokit/types"; 2 | export default function fetchWrapper(requestOptions: ReturnType & { 3 | redirect?: "error" | "follow" | "manual"; 4 | }): Promise<{ 5 | status: number; 6 | url: string; 7 | headers: { 8 | [header: string]: string; 9 | }; 10 | data: any; 11 | }>; 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/get-buffer-response.d.ts: -------------------------------------------------------------------------------- 1 | import { Response } from "node-fetch"; 2 | export default function getBufferResponse(response: Response): Promise; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare const request: import("@octokit/types").RequestInterface; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "5.4.12"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface, RequestInterface, RequestParameters } from "@octokit/types"; 2 | export default function withDefaults(oldEndpoint: EndpointInterface, newDefaults: RequestParameters): RequestInterface; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) 4 | Copyright (c) 2017-2018 Octokit contributors 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/README.md: -------------------------------------------------------------------------------- 1 | # rest.js 2 | 3 | > GitHub REST API client for JavaScript 4 | 5 | [![@latest](https://img.shields.io/npm/v/@octokit/rest.svg)](https://www.npmjs.com/package/@octokit/rest) 6 | [![Build Status](https://github.com/octokit/rest.js/workflows/Test/badge.svg)](https://github.com/octokit/rest.js/actions?query=workflow%3ATest+branch%3Amaster) 7 | 8 | ## Usage 9 | 10 | 11 | 12 | 24 | 36 | 37 |
13 | Browsers 14 | 15 | Load @octokit/rest directly from cdn.skypack.dev 16 | 17 | ```html 18 | 21 | ``` 22 | 23 |
25 | Node 26 | 27 | 28 | Install with npm install @octokit/rest 29 | 30 | ```js 31 | const { Octokit } = require("@octokit/rest"); 32 | // or: import { Octokit } from "@octokit/rest"; 33 | ``` 34 | 35 |
38 | 39 | ```js 40 | const octokit = new Octokit(); 41 | 42 | // Compare: https://docs.github.com/en/rest/reference/repos/#list-organization-repositories 43 | octokit.repos 44 | .listForOrg({ 45 | org: "octokit", 46 | type: "public", 47 | }) 48 | .then(({ data }) => { 49 | // handle data 50 | }); 51 | ``` 52 | 53 | See https://octokit.github.io/rest.js/ for full documentation. 54 | 55 | ## Contributing 56 | 57 | We would love you to contribute to `@octokit/rest`, pull requests are very welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information. 58 | 59 | ## Credits 60 | 61 | `@octokit/rest` was originally created as [`node-github`](https://www.npmjs.com/package/github) in 2012 by Mike de Boer from Cloud9 IDE, Inc. [The original commit](https://github.blog/2020-04-09-from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/) is from 2010 which predates the npm registry. 62 | 63 | It was adopted and renamed by GitHub in 2017. Learn more about it's origin on GitHub's blog: [From 48k lines of code to 10—the story of GitHub’s JavaScript SDK](https://github.blog/2020-04-09-from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/) 64 | 65 | ## LICENSE 66 | 67 | [MIT](LICENSE) 68 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | var core = require('@octokit/core'); 6 | var pluginRequestLog = require('@octokit/plugin-request-log'); 7 | var pluginPaginateRest = require('@octokit/plugin-paginate-rest'); 8 | var pluginRestEndpointMethods = require('@octokit/plugin-rest-endpoint-methods'); 9 | 10 | const VERSION = "18.0.12"; 11 | 12 | const Octokit = core.Octokit.plugin(pluginRequestLog.requestLog, pluginRestEndpointMethods.restEndpointMethods, pluginPaginateRest.paginateRest).defaults({ 13 | userAgent: `octokit-rest.js/${VERSION}` 14 | }); 15 | 16 | exports.Octokit = Octokit; 17 | //# sourceMappingURL=index.js.map 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"18.0.12\";\n","import { Octokit as Core } from \"@octokit/core\";\nimport { requestLog } from \"@octokit/plugin-request-log\";\nimport { paginateRest } from \"@octokit/plugin-paginate-rest\";\nimport { restEndpointMethods } from \"@octokit/plugin-rest-endpoint-methods\";\nimport { VERSION } from \"./version\";\nexport const Octokit = Core.plugin(requestLog, restEndpointMethods, paginateRest).defaults({\n userAgent: `octokit-rest.js/${VERSION}`,\n});\n"],"names":["VERSION","Octokit","Core","plugin","requestLog","restEndpointMethods","paginateRest","defaults","userAgent"],"mappings":";;;;;;;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;MCKMC,OAAO,GAAGC,YAAI,CAACC,MAAL,CAAYC,2BAAZ,EAAwBC,6CAAxB,EAA6CC,+BAA7C,EAA2DC,QAA3D,CAAoE;AACvFC,EAAAA,SAAS,EAAG,mBAAkBR,OAAQ;AADiD,CAApE,CAAhB;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { Octokit as Core } from "@octokit/core"; 2 | import { requestLog } from "@octokit/plugin-request-log"; 3 | import { paginateRest } from "@octokit/plugin-paginate-rest"; 4 | import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods"; 5 | import { VERSION } from "./version"; 6 | export const Octokit = Core.plugin(requestLog, restEndpointMethods, paginateRest).defaults({ 7 | userAgent: `octokit-rest.js/${VERSION}`, 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "18.0.12"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit as Core } from "@octokit/core"; 2 | export { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; 3 | export declare const Octokit: (new (...args: any[]) => { 4 | [x: string]: any; 5 | }) & { 6 | new (...args: any[]): { 7 | [x: string]: any; 8 | }; 9 | plugins: any[]; 10 | } & typeof Core & import("@octokit/core/dist-types/types").Constructor; 13 | export declare type Octokit = InstanceType; 14 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "18.0.12"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-web/index.js: -------------------------------------------------------------------------------- 1 | import { Octokit as Octokit$1 } from '@octokit/core'; 2 | import { requestLog } from '@octokit/plugin-request-log'; 3 | import { paginateRest } from '@octokit/plugin-paginate-rest'; 4 | import { restEndpointMethods } from '@octokit/plugin-rest-endpoint-methods'; 5 | 6 | const VERSION = "18.0.12"; 7 | 8 | const Octokit = Octokit$1.plugin(requestLog, restEndpointMethods, paginateRest).defaults({ 9 | userAgent: `octokit-rest.js/${VERSION}`, 10 | }); 11 | 12 | export { Octokit }; 13 | //# sourceMappingURL=index.js.map 14 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"18.0.12\";\n","import { Octokit as Core } from \"@octokit/core\";\nimport { requestLog } from \"@octokit/plugin-request-log\";\nimport { paginateRest } from \"@octokit/plugin-paginate-rest\";\nimport { restEndpointMethods } from \"@octokit/plugin-rest-endpoint-methods\";\nimport { VERSION } from \"./version\";\nexport const Octokit = Core.plugin(requestLog, restEndpointMethods, paginateRest).defaults({\n userAgent: `octokit-rest.js/${VERSION}`,\n});\n"],"names":["Core"],"mappings":";;;;;AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACK9B,MAAC,OAAO,GAAGA,SAAI,CAAC,MAAM,CAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC;AAC3F,IAAI,SAAS,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC,CAAC;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/types/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2019 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/README.md: -------------------------------------------------------------------------------- 1 | # types.ts 2 | 3 | > Shared TypeScript definitions for Octokit projects 4 | 5 | [![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) 6 | [![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) 7 | 8 | 9 | 10 | - [Usage](#usage) 11 | - [Examples](#examples) 12 | - [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint) 13 | - [Get response types from endpoint methods](#get-response-types-from-endpoint-methods) 14 | - [Contributing](#contributing) 15 | - [License](#license) 16 | 17 | 18 | 19 | ## Usage 20 | 21 | See all exported types at https://octokit.github.io/types.ts 22 | 23 | ## Examples 24 | 25 | ### Get parameter and response data types for a REST API endpoint 26 | 27 | ```ts 28 | import { Endpoints } from "@octokit/types"; 29 | 30 | type listUserReposParameters = Endpoints["GET /repos/{owner}/{repo}"]["parameters"]; 31 | type listUserReposResponse = Endpoints["GET /repos/{owner}/{repo}"]["response"]; 32 | 33 | async function listRepos( 34 | options: listUserReposParameters 35 | ): listUserReposResponse["data"] { 36 | // ... 37 | } 38 | ``` 39 | 40 | ### Get response types from endpoint methods 41 | 42 | ```ts 43 | import { 44 | GetResponseTypeFromEndpointMethod, 45 | GetResponseDataTypeFromEndpointMethod, 46 | } from "@octokit/types"; 47 | import { Octokit } from "@octokit/rest"; 48 | 49 | const octokit = new Octokit(); 50 | type CreateLabelResponseType = GetResponseTypeFromEndpointMethod< 51 | typeof octokit.issues.createLabel 52 | >; 53 | type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod< 54 | typeof octokit.issues.createLabel 55 | >; 56 | ``` 57 | 58 | ## Contributing 59 | 60 | See [CONTRIBUTING.md](CONTRIBUTING.md) 61 | 62 | ## License 63 | 64 | [MIT](LICENSE) 65 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | const VERSION = "6.1.0"; 6 | 7 | exports.VERSION = VERSION; 8 | //# sourceMappingURL=index.js.map 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":["VERSION"],"mappings":";;;;MAAaA,OAAO,GAAG;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/AuthInterface.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/EndpointDefaults.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/EndpointInterface.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/EndpointOptions.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Fetch.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/OctokitResponse.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestError.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestHeaders.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestInterface.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestMethod.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestOptions.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestParameters.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestRequestOptions.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/ResponseHeaders.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Route.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Signal.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/StrategyInterface.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Url.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/VERSION.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "6.1.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/generated/Endpoints.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export * from "./AuthInterface"; 2 | export * from "./EndpointDefaults"; 3 | export * from "./EndpointInterface"; 4 | export * from "./EndpointOptions"; 5 | export * from "./Fetch"; 6 | export * from "./OctokitResponse"; 7 | export * from "./RequestError"; 8 | export * from "./RequestHeaders"; 9 | export * from "./RequestInterface"; 10 | export * from "./RequestMethod"; 11 | export * from "./RequestOptions"; 12 | export * from "./RequestParameters"; 13 | export * from "./RequestRequestOptions"; 14 | export * from "./ResponseHeaders"; 15 | export * from "./Route"; 16 | export * from "./Signal"; 17 | export * from "./StrategyInterface"; 18 | export * from "./Url"; 19 | export * from "./VERSION"; 20 | export * from "./GetResponseTypeFromEndpointMethod"; 21 | export * from "./generated/Endpoints"; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/AuthInterface.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointOptions } from "./EndpointOptions"; 2 | import { OctokitResponse } from "./OctokitResponse"; 3 | import { RequestInterface } from "./RequestInterface"; 4 | import { RequestParameters } from "./RequestParameters"; 5 | import { Route } from "./Route"; 6 | /** 7 | * Interface to implement complex authentication strategies for Octokit. 8 | * An object Implementing the AuthInterface can directly be passed as the 9 | * `auth` option in the Octokit constructor. 10 | * 11 | * For the official implementations of the most common authentication 12 | * strategies, see https://github.com/octokit/auth.js 13 | */ 14 | export interface AuthInterface { 15 | (...args: AuthOptions): Promise; 16 | hook: { 17 | /** 18 | * Sends a request using the passed `request` instance 19 | * 20 | * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. 21 | */ 22 | (request: RequestInterface, options: EndpointOptions): Promise>; 23 | /** 24 | * Sends a request using the passed `request` instance 25 | * 26 | * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` 27 | * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. 28 | */ 29 | (request: RequestInterface, route: Route, parameters?: RequestParameters): Promise>; 30 | }; 31 | } 32 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestHeaders } from "./RequestHeaders"; 2 | import { RequestMethod } from "./RequestMethod"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | import { Url } from "./Url"; 5 | /** 6 | * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters 7 | * as well as the method property. 8 | */ 9 | export declare type EndpointDefaults = RequestParameters & { 10 | baseUrl: Url; 11 | method: RequestMethod; 12 | url?: Url; 13 | headers: RequestHeaders & { 14 | accept: string; 15 | "user-agent": string; 16 | }; 17 | mediaType: { 18 | format: string; 19 | previews: string[]; 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/EndpointOptions.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestMethod } from "./RequestMethod"; 2 | import { Url } from "./Url"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | export declare type EndpointOptions = RequestParameters & { 5 | method: RequestMethod; 6 | url: Url; 7 | }; 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Fetch.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Browser's fetch method (or compatible such as fetch-mock) 3 | */ 4 | export declare type Fetch = any; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts: -------------------------------------------------------------------------------- 1 | declare type Unwrap = T extends Promise ? U : T; 2 | declare type AnyFunction = (...args: any[]) => any; 3 | export declare type GetResponseTypeFromEndpointMethod = Unwrap>; 4 | export declare type GetResponseDataTypeFromEndpointMethod = Unwrap>["data"]; 5 | export {}; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/OctokitResponse.d.ts: -------------------------------------------------------------------------------- 1 | import { ResponseHeaders } from "./ResponseHeaders"; 2 | import { Url } from "./Url"; 3 | export declare type OctokitResponse = { 4 | headers: ResponseHeaders; 5 | /** 6 | * http response code 7 | */ 8 | status: S; 9 | /** 10 | * URL of response after all redirects 11 | */ 12 | url: Url; 13 | /** 14 | * This is the data you would see in https://developer.Octokit.com/v3/ 15 | */ 16 | data: T; 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestError.d.ts: -------------------------------------------------------------------------------- 1 | export declare type RequestError = { 2 | name: string; 3 | status: number; 4 | documentation_url: string; 5 | errors?: Array<{ 6 | resource: string; 7 | code: string; 8 | field: string; 9 | message?: string; 10 | }>; 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestHeaders.d.ts: -------------------------------------------------------------------------------- 1 | export declare type RequestHeaders = { 2 | /** 3 | * Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead. 4 | */ 5 | accept?: string; 6 | /** 7 | * Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678` 8 | */ 9 | authorization?: string; 10 | /** 11 | * `user-agent` is set do a default and can be overwritten as needed. 12 | */ 13 | "user-agent"?: string; 14 | [header: string]: string | number | undefined; 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestInterface.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface } from "./EndpointInterface"; 2 | import { OctokitResponse } from "./OctokitResponse"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | import { Route } from "./Route"; 5 | import { Endpoints } from "./generated/Endpoints"; 6 | export interface RequestInterface { 7 | /** 8 | * Sends a request based on endpoint options 9 | * 10 | * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. 11 | */ 12 | (options: O & { 13 | method?: string; 14 | } & ("url" extends keyof D ? { 15 | url?: string; 16 | } : { 17 | url: string; 18 | })): Promise>; 19 | /** 20 | * Sends a request based on endpoint options 21 | * 22 | * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` 23 | * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. 24 | */ 25 | (route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise : Promise>; 26 | /** 27 | * Returns a new `request` with updated route and parameters 28 | */ 29 | defaults: (newDefaults: O) => RequestInterface; 30 | /** 31 | * Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint} 32 | */ 33 | endpoint: EndpointInterface; 34 | } 35 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestMethod.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * HTTP Verb supported by GitHub's REST API 3 | */ 4 | export declare type RequestMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT"; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestOptions.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestHeaders } from "./RequestHeaders"; 2 | import { RequestMethod } from "./RequestMethod"; 3 | import { RequestRequestOptions } from "./RequestRequestOptions"; 4 | import { Url } from "./Url"; 5 | /** 6 | * Generic request options as they are returned by the `endpoint()` method 7 | */ 8 | export declare type RequestOptions = { 9 | method: RequestMethod; 10 | url: Url; 11 | headers: RequestHeaders; 12 | body?: any; 13 | request?: RequestRequestOptions; 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestParameters.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestRequestOptions } from "./RequestRequestOptions"; 2 | import { RequestHeaders } from "./RequestHeaders"; 3 | import { Url } from "./Url"; 4 | /** 5 | * Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods 6 | */ 7 | export declare type RequestParameters = { 8 | /** 9 | * Base URL to be used when a relative URL is passed, such as `/orgs/{org}`. 10 | * If `baseUrl` is `https://enterprise.acme-inc.com/api/v3`, then the request 11 | * will be sent to `https://enterprise.acme-inc.com/api/v3/orgs/{org}`. 12 | */ 13 | baseUrl?: Url; 14 | /** 15 | * HTTP headers. Use lowercase keys. 16 | */ 17 | headers?: RequestHeaders; 18 | /** 19 | * Media type options, see {@link https://developer.github.com/v3/media/|GitHub Developer Guide} 20 | */ 21 | mediaType?: { 22 | /** 23 | * `json` by default. Can be `raw`, `text`, `html`, `full`, `diff`, `patch`, `sha`, `base64`. Depending on endpoint 24 | */ 25 | format?: string; 26 | /** 27 | * Custom media type names of {@link https://developer.github.com/v3/media/|API Previews} without the `-preview` suffix. 28 | * Example for single preview: `['squirrel-girl']`. 29 | * Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`. 30 | */ 31 | previews?: string[]; 32 | }; 33 | /** 34 | * Pass custom meta information for the request. The `request` object will be returned as is. 35 | */ 36 | request?: RequestRequestOptions; 37 | /** 38 | * Any additional parameter will be passed as follows 39 | * 1. URL parameter if `':parameter'` or `{parameter}` is part of `url` 40 | * 2. Query parameter if `method` is `'GET'` or `'HEAD'` 41 | * 3. Request body if `parameter` is `'data'` 42 | * 4. JSON in the request body in the form of `body[parameter]` unless `parameter` key is `'data'` 43 | */ 44 | [parameter: string]: unknown; 45 | }; 46 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { Agent } from "http"; 3 | import { Fetch } from "./Fetch"; 4 | import { Signal } from "./Signal"; 5 | /** 6 | * Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled 7 | */ 8 | export declare type RequestRequestOptions = { 9 | /** 10 | * Node only. Useful for custom proxy, certificate, or dns lookup. 11 | */ 12 | agent?: Agent; 13 | /** 14 | * Custom replacement for built-in fetch method. Useful for testing or request hooks. 15 | */ 16 | fetch?: Fetch; 17 | /** 18 | * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. 19 | */ 20 | signal?: Signal; 21 | /** 22 | * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead. 23 | */ 24 | timeout?: number; 25 | [option: string]: any; 26 | }; 27 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts: -------------------------------------------------------------------------------- 1 | export declare type ResponseHeaders = { 2 | "cache-control"?: string; 3 | "content-length"?: number; 4 | "content-type"?: string; 5 | date?: string; 6 | etag?: string; 7 | "last-modified"?: string; 8 | link?: string; 9 | location?: string; 10 | server?: string; 11 | status?: string; 12 | vary?: string; 13 | "x-github-mediatype"?: string; 14 | "x-github-request-id"?: string; 15 | "x-oauth-scopes"?: string; 16 | "x-ratelimit-limit"?: string; 17 | "x-ratelimit-remaining"?: string; 18 | "x-ratelimit-reset"?: string; 19 | [header: string]: string | number | undefined; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Route.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * String consisting of an optional HTTP method and relative path or absolute URL. Examples: `'/orgs/{org}'`, `'PUT /orgs/{org}'`, `GET https://example.com/foo/bar` 3 | */ 4 | export declare type Route = string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Signal.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Abort signal 3 | * 4 | * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal 5 | */ 6 | export declare type Signal = any; 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/StrategyInterface.d.ts: -------------------------------------------------------------------------------- 1 | import { AuthInterface } from "./AuthInterface"; 2 | export interface StrategyInterface { 3 | (...args: StrategyOptions): AuthInterface; 4 | } 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Url.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Relative or absolute URL. Examples: `'/orgs/{org}'`, `https://example.com/foo/bar` 3 | */ 4 | export declare type Url = string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/VERSION.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "6.1.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from "./AuthInterface"; 2 | export * from "./EndpointDefaults"; 3 | export * from "./EndpointInterface"; 4 | export * from "./EndpointOptions"; 5 | export * from "./Fetch"; 6 | export * from "./OctokitResponse"; 7 | export * from "./RequestError"; 8 | export * from "./RequestHeaders"; 9 | export * from "./RequestInterface"; 10 | export * from "./RequestMethod"; 11 | export * from "./RequestOptions"; 12 | export * from "./RequestParameters"; 13 | export * from "./RequestRequestOptions"; 14 | export * from "./ResponseHeaders"; 15 | export * from "./Route"; 16 | export * from "./Signal"; 17 | export * from "./StrategyInterface"; 18 | export * from "./Url"; 19 | export * from "./VERSION"; 20 | export * from "./GetResponseTypeFromEndpointMethod"; 21 | export * from "./generated/Endpoints"; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-web/index.js: -------------------------------------------------------------------------------- 1 | const VERSION = "6.1.0"; 2 | 3 | export { VERSION }; 4 | //# sourceMappingURL=index.js.map 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"} -------------------------------------------------------------------------------- /node_modules/@types/node/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /node_modules/@types/node/base.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.7. 2 | 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: 4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions 5 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1 6 | // - ~/ts3.7/base.d.ts - Definitions specific to TypeScript 3.7 7 | // - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 with assert pulled in 8 | 9 | // Reference required types from the default lib: 10 | /// 11 | /// 12 | /// 13 | /// 14 | 15 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 16 | /// 17 | 18 | // TypeScript 3.7-specific augmentations: 19 | /// 20 | -------------------------------------------------------------------------------- /node_modules/@types/node/buffer.d.ts: -------------------------------------------------------------------------------- 1 | declare module "buffer" { 2 | export const INSPECT_MAX_BYTES: number; 3 | export const kMaxLength: number; 4 | export const kStringMaxLength: number; 5 | export const constants: { 6 | MAX_LENGTH: number; 7 | MAX_STRING_LENGTH: number; 8 | }; 9 | const BuffType: typeof Buffer; 10 | 11 | export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary"; 12 | 13 | export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; 14 | 15 | export const SlowBuffer: { 16 | /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */ 17 | new(size: number): Buffer; 18 | prototype: Buffer; 19 | }; 20 | 21 | export { BuffType as Buffer }; 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/@types/node/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module "constants" { 3 | import { constants as osConstants, SignalConstants } from 'os'; 4 | import { constants as cryptoConstants } from 'crypto'; 5 | import { constants as fsConstants } from 'fs'; 6 | const exp: typeof osConstants.errno & typeof osConstants.priority & SignalConstants & typeof cryptoConstants & typeof fsConstants; 7 | export = exp; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@types/node/domain.d.ts: -------------------------------------------------------------------------------- 1 | declare module "domain" { 2 | import { EventEmitter } from "events"; 3 | 4 | global { 5 | namespace NodeJS { 6 | interface Domain extends EventEmitter { 7 | run(fn: (...args: any[]) => T, ...args: any[]): T; 8 | add(emitter: EventEmitter | Timer): void; 9 | remove(emitter: EventEmitter | Timer): void; 10 | bind(cb: T): T; 11 | intercept(cb: T): T; 12 | } 13 | } 14 | } 15 | 16 | interface Domain extends NodeJS.Domain {} 17 | class Domain extends EventEmitter { 18 | members: Array; 19 | enter(): void; 20 | exit(): void; 21 | } 22 | 23 | function create(): Domain; 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/@types/node/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: NodeJS.Global & typeof globalThis; 2 | -------------------------------------------------------------------------------- /node_modules/@types/node/https.d.ts: -------------------------------------------------------------------------------- 1 | declare module "https" { 2 | import * as tls from "tls"; 3 | import * as events from "events"; 4 | import * as http from "http"; 5 | import { URL } from "url"; 6 | 7 | type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions; 8 | 9 | type RequestOptions = http.RequestOptions & tls.SecureContextOptions & { 10 | rejectUnauthorized?: boolean; // Defaults to true 11 | servername?: string; // SNI TLS Extension 12 | }; 13 | 14 | interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { 15 | rejectUnauthorized?: boolean; 16 | maxCachedSessions?: number; 17 | } 18 | 19 | class Agent extends http.Agent { 20 | constructor(options?: AgentOptions); 21 | options: AgentOptions; 22 | } 23 | 24 | interface Server extends http.HttpBase {} 25 | class Server extends tls.Server { 26 | constructor(requestListener?: http.RequestListener); 27 | constructor(options: ServerOptions, requestListener?: http.RequestListener); 28 | } 29 | 30 | function createServer(requestListener?: http.RequestListener): Server; 31 | function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server; 32 | function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 33 | function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 34 | function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 35 | function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; 36 | let globalAgent: Agent; 37 | } 38 | -------------------------------------------------------------------------------- /node_modules/@types/node/module.d.ts: -------------------------------------------------------------------------------- 1 | declare module "module" { 2 | import { URL } from "url"; 3 | namespace Module { 4 | /** 5 | * Updates all the live bindings for builtin ES Modules to match the properties of the CommonJS exports. 6 | * It does not add or remove exported names from the ES Modules. 7 | */ 8 | function syncBuiltinESMExports(): void; 9 | 10 | function findSourceMap(path: string, error?: Error): SourceMap; 11 | interface SourceMapPayload { 12 | file: string; 13 | version: number; 14 | sources: string[]; 15 | sourcesContent: string[]; 16 | names: string[]; 17 | mappings: string; 18 | sourceRoot: string; 19 | } 20 | 21 | interface SourceMapping { 22 | generatedLine: number; 23 | generatedColumn: number; 24 | originalSource: string; 25 | originalLine: number; 26 | originalColumn: number; 27 | } 28 | 29 | class SourceMap { 30 | readonly payload: SourceMapPayload; 31 | constructor(payload: SourceMapPayload); 32 | findEntry(line: number, column: number): SourceMapping; 33 | } 34 | } 35 | interface Module extends NodeModule {} 36 | class Module { 37 | static runMain(): void; 38 | static wrap(code: string): string; 39 | 40 | /** 41 | * @deprecated Deprecated since: v12.2.0. Please use createRequire() instead. 42 | */ 43 | static createRequireFromPath(path: string): NodeRequire; 44 | static createRequire(path: string | URL): NodeRequire; 45 | static builtinModules: string[]; 46 | 47 | static Module: typeof Module; 48 | 49 | constructor(id: string, parent?: Module); 50 | } 51 | export = Module; 52 | } 53 | -------------------------------------------------------------------------------- /node_modules/@types/node/querystring.d.ts: -------------------------------------------------------------------------------- 1 | declare module "querystring" { 2 | interface StringifyOptions { 3 | encodeURIComponent?: (str: string) => string; 4 | } 5 | 6 | interface ParseOptions { 7 | maxKeys?: number; 8 | decodeURIComponent?: (str: string) => string; 9 | } 10 | 11 | interface ParsedUrlQuery extends NodeJS.Dict { } 12 | 13 | interface ParsedUrlQueryInput extends NodeJS.Dict | ReadonlyArray | ReadonlyArray | null> { 14 | } 15 | 16 | function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; 17 | function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; 18 | /** 19 | * The querystring.encode() function is an alias for querystring.stringify(). 20 | */ 21 | const encode: typeof stringify; 22 | /** 23 | * The querystring.decode() function is an alias for querystring.parse(). 24 | */ 25 | const decode: typeof parse; 26 | function escape(str: string): string; 27 | function unescape(str: string): string; 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/@types/node/string_decoder.d.ts: -------------------------------------------------------------------------------- 1 | declare module "string_decoder" { 2 | class StringDecoder { 3 | constructor(encoding?: BufferEncoding); 4 | write(buffer: Buffer): string; 5 | end(buffer?: Buffer): string; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/@types/node/timers.d.ts: -------------------------------------------------------------------------------- 1 | declare module "timers" { 2 | function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 3 | namespace setTimeout { 4 | function __promisify__(ms: number): Promise; 5 | function __promisify__(ms: number, value: T): Promise; 6 | } 7 | function clearTimeout(timeoutId: NodeJS.Timeout): void; 8 | function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 9 | function clearInterval(intervalId: NodeJS.Timeout): void; 10 | function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate; 11 | namespace setImmediate { 12 | function __promisify__(): Promise; 13 | function __promisify__(value: T): Promise; 14 | } 15 | function clearImmediate(immediateId: NodeJS.Immediate): void; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: NodeJS.Global; 2 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2 - 3.4. 2 | // This is required to enable globalThis support for global in ts3.5 without causing errors 3 | // This is required to enable typing assert in ts3.7 without causing errors 4 | // Typically type modifiations should be made in base.d.ts instead of here 5 | 6 | /// 7 | /// 8 | /// 9 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.6/base.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.5. 2 | 3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths: 4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions 5 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1 6 | // - ~/ts3.5/base.d.ts - Definitions specific to TypeScript 3.5 7 | // - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5 with assert pulled in 8 | 9 | // Reference required types from the default lib: 10 | /// 11 | /// 12 | /// 13 | /// 14 | 15 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 16 | /// 17 | 18 | // TypeScript 3.5-specific augmentations: 19 | /// 20 | 21 | // TypeScript 3.5-specific augmentations: 22 | /// 23 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.6/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.5 - 3.6. 2 | // This is required to enable typing assert in ts3.7 without causing errors 3 | // Typically type modifications should be made in base.d.ts instead of here 4 | 5 | /// 6 | 7 | /// 8 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/index.js: -------------------------------------------------------------------------------- 1 | var register = require('./lib/register') 2 | var addHook = require('./lib/add') 3 | var removeHook = require('./lib/remove') 4 | 5 | // bind with array of arguments: https://stackoverflow.com/a/21792913 6 | var bind = Function.bind 7 | var bindable = bind.bind(bind) 8 | 9 | function bindApi (hook, state, name) { 10 | var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state]) 11 | hook.api = { remove: removeHookRef } 12 | hook.remove = removeHookRef 13 | 14 | ;['before', 'error', 'after', 'wrap'].forEach(function (kind) { 15 | var args = name ? [state, kind, name] : [state, kind] 16 | hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args) 17 | }) 18 | } 19 | 20 | function HookSingular () { 21 | var singularHookName = 'h' 22 | var singularHookState = { 23 | registry: {} 24 | } 25 | var singularHook = register.bind(null, singularHookState, singularHookName) 26 | bindApi(singularHook, singularHookState, singularHookName) 27 | return singularHook 28 | } 29 | 30 | function HookCollection () { 31 | var state = { 32 | registry: {} 33 | } 34 | 35 | var hook = register.bind(null, state) 36 | bindApi(hook, state) 37 | 38 | return hook 39 | } 40 | 41 | var collectionHookDeprecationMessageDisplayed = false 42 | function Hook () { 43 | if (!collectionHookDeprecationMessageDisplayed) { 44 | console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4') 45 | collectionHookDeprecationMessageDisplayed = true 46 | } 47 | return HookCollection() 48 | } 49 | 50 | Hook.Singular = HookSingular.bind() 51 | Hook.Collection = HookCollection.bind() 52 | 53 | module.exports = Hook 54 | // expose constructors as a named property for TypeScript 55 | module.exports.Hook = Hook 56 | module.exports.Singular = Hook.Singular 57 | module.exports.Collection = Hook.Collection 58 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/lib/add.js: -------------------------------------------------------------------------------- 1 | module.exports = addHook 2 | 3 | function addHook (state, kind, name, hook) { 4 | var orig = hook 5 | if (!state.registry[name]) { 6 | state.registry[name] = [] 7 | } 8 | 9 | if (kind === 'before') { 10 | hook = function (method, options) { 11 | return Promise.resolve() 12 | .then(orig.bind(null, options)) 13 | .then(method.bind(null, options)) 14 | } 15 | } 16 | 17 | if (kind === 'after') { 18 | hook = function (method, options) { 19 | var result 20 | return Promise.resolve() 21 | .then(method.bind(null, options)) 22 | .then(function (result_) { 23 | result = result_ 24 | return orig(result, options) 25 | }) 26 | .then(function () { 27 | return result 28 | }) 29 | } 30 | } 31 | 32 | if (kind === 'error') { 33 | hook = function (method, options) { 34 | return Promise.resolve() 35 | .then(method.bind(null, options)) 36 | .catch(function (error) { 37 | return orig(error, options) 38 | }) 39 | } 40 | } 41 | 42 | state.registry[name].push({ 43 | hook: hook, 44 | orig: orig 45 | }) 46 | } 47 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/lib/register.js: -------------------------------------------------------------------------------- 1 | module.exports = register 2 | 3 | function register (state, name, method, options) { 4 | if (typeof method !== 'function') { 5 | throw new Error('method for before hook must be a function') 6 | } 7 | 8 | if (!options) { 9 | options = {} 10 | } 11 | 12 | if (Array.isArray(name)) { 13 | return name.reverse().reduce(function (callback, name) { 14 | return register.bind(null, state, name, callback, options) 15 | }, method)() 16 | } 17 | 18 | return Promise.resolve() 19 | .then(function () { 20 | if (!state.registry[name]) { 21 | return method(options) 22 | } 23 | 24 | return (state.registry[name]).reduce(function (method, registered) { 25 | return registered.hook.bind(null, method, options) 26 | }, method)() 27 | }) 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/lib/remove.js: -------------------------------------------------------------------------------- 1 | module.exports = removeHook 2 | 3 | function removeHook (state, name, method) { 4 | if (!state.registry[name]) { 5 | return 6 | } 7 | 8 | var index = state.registry[name] 9 | .map(function (registered) { return registered.orig }) 10 | .indexOf(method) 11 | 12 | if (index === -1) { 13 | return 14 | } 15 | 16 | state.registry[name].splice(index, 1) 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/deprecation/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Gregor Martynus and contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/deprecation/README.md: -------------------------------------------------------------------------------- 1 | # deprecation 2 | 3 | > Log a deprecation message with stack 4 | 5 | ![build](https://action-badges.now.sh/gr2m/deprecation) 6 | 7 | ## Usage 8 | 9 | 10 | 11 | 24 | 36 | 37 |
12 | Browsers 13 | 14 | 15 | Load `deprecation` directly from [cdn.pika.dev](https://cdn.pika.dev) 16 | 17 | ```html 18 | 21 | ``` 22 | 23 |
25 | Node 26 | 27 | 28 | Install with `npm install deprecation` 29 | 30 | ```js 31 | const { Deprecation } = require("deprecation"); 32 | // or: import { Deprecation } from "deprecation"; 33 | ``` 34 | 35 |
38 | 39 | ```js 40 | function foo() { 41 | bar(); 42 | } 43 | 44 | function bar() { 45 | baz(); 46 | } 47 | 48 | function baz() { 49 | console.warn(new Deprecation("[my-lib] foo() is deprecated, use bar()")); 50 | } 51 | 52 | foo(); 53 | // { Deprecation: [my-lib] foo() is deprecated, use bar() 54 | // at baz (/path/to/file.js:12:15) 55 | // at bar (/path/to/file.js:8:3) 56 | // at foo (/path/to/file.js:4:3) 57 | ``` 58 | 59 | To log a deprecation message only once, you can use the [once](https://www.npmjs.com/package/once) module. 60 | 61 | ```js 62 | const Deprecation = require("deprecation"); 63 | const once = require("once"); 64 | 65 | const deprecateFoo = once(console.warn); 66 | 67 | function foo() { 68 | deprecateFoo(new Deprecation("[my-lib] foo() is deprecated, use bar()")); 69 | } 70 | 71 | foo(); 72 | foo(); // logs nothing 73 | ``` 74 | 75 | ## License 76 | 77 | [ISC](LICENSE) 78 | -------------------------------------------------------------------------------- /node_modules/deprecation/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | class Deprecation extends Error { 6 | constructor(message) { 7 | super(message); // Maintains proper stack trace (only available on V8) 8 | 9 | /* istanbul ignore next */ 10 | 11 | if (Error.captureStackTrace) { 12 | Error.captureStackTrace(this, this.constructor); 13 | } 14 | 15 | this.name = 'Deprecation'; 16 | } 17 | 18 | } 19 | 20 | exports.Deprecation = Deprecation; 21 | -------------------------------------------------------------------------------- /node_modules/deprecation/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export class Deprecation extends Error { 2 | constructor(message) { 3 | super(message); // Maintains proper stack trace (only available on V8) 4 | 5 | /* istanbul ignore next */ 6 | 7 | if (Error.captureStackTrace) { 8 | Error.captureStackTrace(this, this.constructor); 9 | } 10 | 11 | this.name = 'Deprecation'; 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /node_modules/deprecation/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export class Deprecation extends Error { 2 | name: "Deprecation"; 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/deprecation/dist-web/index.js: -------------------------------------------------------------------------------- 1 | class Deprecation extends Error { 2 | constructor(message) { 3 | super(message); // Maintains proper stack trace (only available on V8) 4 | 5 | /* istanbul ignore next */ 6 | 7 | if (Error.captureStackTrace) { 8 | Error.captureStackTrace(this, this.constructor); 9 | } 10 | 11 | this.name = 'Deprecation'; 12 | } 13 | 14 | } 15 | 16 | export { Deprecation }; 17 | -------------------------------------------------------------------------------- /node_modules/deprecation/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "deprecation@^2.0.0", 3 | "_id": "deprecation@2.3.1", 4 | "_inBundle": false, 5 | "_integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", 6 | "_location": "/deprecation", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "range", 10 | "registry": true, 11 | "raw": "deprecation@^2.0.0", 12 | "name": "deprecation", 13 | "escapedName": "deprecation", 14 | "rawSpec": "^2.0.0", 15 | "saveSpec": null, 16 | "fetchSpec": "^2.0.0" 17 | }, 18 | "_requiredBy": [ 19 | "/@octokit/plugin-rest-endpoint-methods", 20 | "/@octokit/request", 21 | "/@octokit/request-error" 22 | ], 23 | "_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", 24 | "_shasum": "6368cbdb40abf3373b525ac87e4a260c3a700919", 25 | "_spec": "deprecation@^2.0.0", 26 | "_where": "/Users/jeremyward/gh-action-get-linked-issues/node_modules/@octokit/request", 27 | "bugs": { 28 | "url": "https://github.com/gr2m/deprecation/issues" 29 | }, 30 | "bundleDependencies": false, 31 | "dependencies": {}, 32 | "deprecated": false, 33 | "description": "Log a deprecation message with stack", 34 | "devDependencies": { 35 | "@pika/pack": "^0.3.7", 36 | "@pika/plugin-build-node": "^0.4.0", 37 | "@pika/plugin-build-types": "^0.4.0", 38 | "@pika/plugin-build-web": "^0.4.0", 39 | "@pika/plugin-standard-pkg": "^0.4.0", 40 | "semantic-release": "^15.13.3" 41 | }, 42 | "esnext": "dist-src/index.js", 43 | "files": [ 44 | "dist-*/", 45 | "bin/" 46 | ], 47 | "homepage": "https://github.com/gr2m/deprecation#readme", 48 | "keywords": [ 49 | "deprecate", 50 | "deprecated", 51 | "deprecation" 52 | ], 53 | "license": "ISC", 54 | "main": "dist-node/index.js", 55 | "module": "dist-web/index.js", 56 | "name": "deprecation", 57 | "pika": true, 58 | "repository": { 59 | "type": "git", 60 | "url": "git+https://github.com/gr2m/deprecation.git" 61 | }, 62 | "sideEffects": false, 63 | "types": "dist-types/index.d.ts", 64 | "version": "2.3.1" 65 | } 66 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2017, Jon Schlinkert. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/dist/is-plain-object.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | /*! 6 | * is-plain-object 7 | * 8 | * Copyright (c) 2014-2017, Jon Schlinkert. 9 | * Released under the MIT License. 10 | */ 11 | 12 | function isObject(o) { 13 | return Object.prototype.toString.call(o) === '[object Object]'; 14 | } 15 | 16 | function isPlainObject(o) { 17 | var ctor,prot; 18 | 19 | if (isObject(o) === false) return false; 20 | 21 | // If has modified constructor 22 | ctor = o.constructor; 23 | if (ctor === undefined) return true; 24 | 25 | // If has modified prototype 26 | prot = ctor.prototype; 27 | if (isObject(prot) === false) return false; 28 | 29 | // If constructor does not have an Object-specific method 30 | if (prot.hasOwnProperty('isPrototypeOf') === false) { 31 | return false; 32 | } 33 | 34 | // Most likely a plain Object 35 | return true; 36 | } 37 | 38 | exports.isPlainObject = isPlainObject; 39 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/dist/is-plain-object.mjs: -------------------------------------------------------------------------------- 1 | /*! 2 | * is-plain-object 3 | * 4 | * Copyright (c) 2014-2017, Jon Schlinkert. 5 | * Released under the MIT License. 6 | */ 7 | 8 | function isObject(o) { 9 | return Object.prototype.toString.call(o) === '[object Object]'; 10 | } 11 | 12 | function isPlainObject(o) { 13 | var ctor,prot; 14 | 15 | if (isObject(o) === false) return false; 16 | 17 | // If has modified constructor 18 | ctor = o.constructor; 19 | if (ctor === undefined) return true; 20 | 21 | // If has modified prototype 22 | prot = ctor.prototype; 23 | if (isObject(prot) === false) return false; 24 | 25 | // If constructor does not have an Object-specific method 26 | if (prot.hasOwnProperty('isPrototypeOf') === false) { 27 | return false; 28 | } 29 | 30 | // Most likely a plain Object 31 | return true; 32 | } 33 | 34 | export { isPlainObject }; 35 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/is-plain-object.d.ts: -------------------------------------------------------------------------------- 1 | export function isPlainObject(o: any): boolean; 2 | -------------------------------------------------------------------------------- /node_modules/node-fetch/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 David Frank 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /node_modules/node-fetch/browser.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // ref: https://github.com/tc39/proposal-global 4 | var getGlobal = function () { 5 | // the only reliable means to get the global object is 6 | // `Function('return this')()` 7 | // However, this causes CSP violations in Chrome apps. 8 | if (typeof self !== 'undefined') { return self; } 9 | if (typeof window !== 'undefined') { return window; } 10 | if (typeof global !== 'undefined') { return global; } 11 | throw new Error('unable to locate global object'); 12 | } 13 | 14 | var global = getGlobal(); 15 | 16 | module.exports = exports = global.fetch; 17 | 18 | // Needed for TypeScript and Webpack. 19 | if (global.fetch) { 20 | exports.default = global.fetch.bind(global); 21 | } 22 | 23 | exports.Headers = global.Headers; 24 | exports.Request = global.Request; 25 | exports.Response = global.Response; -------------------------------------------------------------------------------- /node_modules/once/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/once/README.md: -------------------------------------------------------------------------------- 1 | # once 2 | 3 | Only call a function once. 4 | 5 | ## usage 6 | 7 | ```javascript 8 | var once = require('once') 9 | 10 | function load (file, cb) { 11 | cb = once(cb) 12 | loader.load('file') 13 | loader.once('load', cb) 14 | loader.once('error', cb) 15 | } 16 | ``` 17 | 18 | Or add to the Function.prototype in a responsible way: 19 | 20 | ```javascript 21 | // only has to be done once 22 | require('once').proto() 23 | 24 | function load (file, cb) { 25 | cb = cb.once() 26 | loader.load('file') 27 | loader.once('load', cb) 28 | loader.once('error', cb) 29 | } 30 | ``` 31 | 32 | Ironically, the prototype feature makes this module twice as 33 | complicated as necessary. 34 | 35 | To check whether you function has been called, use `fn.called`. Once the 36 | function is called for the first time the return value of the original 37 | function is saved in `fn.value` and subsequent calls will continue to 38 | return this value. 39 | 40 | ```javascript 41 | var once = require('once') 42 | 43 | function load (cb) { 44 | cb = once(cb) 45 | var stream = createStream() 46 | stream.once('data', cb) 47 | stream.once('end', function () { 48 | if (!cb.called) cb(new Error('not found')) 49 | }) 50 | } 51 | ``` 52 | 53 | ## `once.strict(func)` 54 | 55 | Throw an error if the function is called twice. 56 | 57 | Some functions are expected to be called only once. Using `once` for them would 58 | potentially hide logical errors. 59 | 60 | In the example below, the `greet` function has to call the callback only once: 61 | 62 | ```javascript 63 | function greet (name, cb) { 64 | // return is missing from the if statement 65 | // when no name is passed, the callback is called twice 66 | if (!name) cb('Hello anonymous') 67 | cb('Hello ' + name) 68 | } 69 | 70 | function log (msg) { 71 | console.log(msg) 72 | } 73 | 74 | // this will print 'Hello anonymous' but the logical error will be missed 75 | greet(null, once(msg)) 76 | 77 | // once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time 78 | greet(null, once.strict(msg)) 79 | ``` 80 | -------------------------------------------------------------------------------- /node_modules/once/once.js: -------------------------------------------------------------------------------- 1 | var wrappy = require('wrappy') 2 | module.exports = wrappy(once) 3 | module.exports.strict = wrappy(onceStrict) 4 | 5 | once.proto = once(function () { 6 | Object.defineProperty(Function.prototype, 'once', { 7 | value: function () { 8 | return once(this) 9 | }, 10 | configurable: true 11 | }) 12 | 13 | Object.defineProperty(Function.prototype, 'onceStrict', { 14 | value: function () { 15 | return onceStrict(this) 16 | }, 17 | configurable: true 18 | }) 19 | }) 20 | 21 | function once (fn) { 22 | var f = function () { 23 | if (f.called) return f.value 24 | f.called = true 25 | return f.value = fn.apply(this, arguments) 26 | } 27 | f.called = false 28 | return f 29 | } 30 | 31 | function onceStrict (fn) { 32 | var f = function () { 33 | if (f.called) 34 | throw new Error(f.onceError) 35 | f.called = true 36 | return f.value = fn.apply(this, arguments) 37 | } 38 | var name = fn.name || 'Function wrapped with `once`' 39 | f.onceError = name + " shouldn't be called more than once" 40 | f.called = false 41 | return f 42 | } 43 | -------------------------------------------------------------------------------- /node_modules/once/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "once@^1.4.0", 3 | "_id": "once@1.4.0", 4 | "_inBundle": false, 5 | "_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 6 | "_location": "/once", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "range", 10 | "registry": true, 11 | "raw": "once@^1.4.0", 12 | "name": "once", 13 | "escapedName": "once", 14 | "rawSpec": "^1.4.0", 15 | "saveSpec": null, 16 | "fetchSpec": "^1.4.0" 17 | }, 18 | "_requiredBy": [ 19 | "/@octokit/request", 20 | "/@octokit/request-error" 21 | ], 22 | "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 23 | "_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1", 24 | "_spec": "once@^1.4.0", 25 | "_where": "/Users/jeremyward/gh-action-get-linked-issues/node_modules/@octokit/request", 26 | "author": { 27 | "name": "Isaac Z. Schlueter", 28 | "email": "i@izs.me", 29 | "url": "http://blog.izs.me/" 30 | }, 31 | "bugs": { 32 | "url": "https://github.com/isaacs/once/issues" 33 | }, 34 | "bundleDependencies": false, 35 | "dependencies": { 36 | "wrappy": "1" 37 | }, 38 | "deprecated": false, 39 | "description": "Run a function exactly one time", 40 | "devDependencies": { 41 | "tap": "^7.0.1" 42 | }, 43 | "directories": { 44 | "test": "test" 45 | }, 46 | "files": [ 47 | "once.js" 48 | ], 49 | "homepage": "https://github.com/isaacs/once#readme", 50 | "keywords": [ 51 | "once", 52 | "function", 53 | "one", 54 | "single" 55 | ], 56 | "license": "ISC", 57 | "main": "once.js", 58 | "name": "once", 59 | "repository": { 60 | "type": "git", 61 | "url": "git://github.com/isaacs/once.git" 62 | }, 63 | "scripts": { 64 | "test": "tap test/*.js" 65 | }, 66 | "version": "1.4.0" 67 | } 68 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/node-tunnel.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /node_modules/tunnel/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "6" 5 | - "8" 6 | - "10" 7 | -------------------------------------------------------------------------------- /node_modules/tunnel/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | - 0.0.6 (2018/09/11) 4 | - Fix `localAddress` not working (#25) 5 | - Fix `Host:` header for CONNECT method by @tmurakam (#29, #30) 6 | - Fix default port for https (#32) 7 | - Fix error handling when the proxy send illegal response body (#33) 8 | 9 | - 0.0.5 (2017/06/12) 10 | - Fix socket leak. 11 | 12 | - 0.0.4 (2016/01/23) 13 | - supported Node v0.12 or later. 14 | 15 | - 0.0.3 (2014/01/20) 16 | - fixed package.json 17 | 18 | - 0.0.1 (2012/02/18) 19 | - supported Node v0.6.x (0.6.11 or later). 20 | 21 | - 0.0.0 (2012/02/11) 22 | - first release. 23 | -------------------------------------------------------------------------------- /node_modules/tunnel/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012 Koichi Kobayashi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/tunnel/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/tunnel'); 2 | -------------------------------------------------------------------------------- /node_modules/tunnel/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "tunnel@0.0.6", 3 | "_id": "tunnel@0.0.6", 4 | "_inBundle": false, 5 | "_integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 6 | "_location": "/tunnel", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "version", 10 | "registry": true, 11 | "raw": "tunnel@0.0.6", 12 | "name": "tunnel", 13 | "escapedName": "tunnel", 14 | "rawSpec": "0.0.6", 15 | "saveSpec": null, 16 | "fetchSpec": "0.0.6" 17 | }, 18 | "_requiredBy": [ 19 | "/@actions/http-client" 20 | ], 21 | "_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 22 | "_shasum": "72f1314b34a5b192db012324df2cc587ca47f92c", 23 | "_spec": "tunnel@0.0.6", 24 | "_where": "/Users/jeremyward/gh-action-get-linked-issues/node_modules/@actions/http-client", 25 | "author": { 26 | "name": "Koichi Kobayashi", 27 | "email": "koichik@improvement.jp" 28 | }, 29 | "bugs": { 30 | "url": "https://github.com/koichik/node-tunnel/issues" 31 | }, 32 | "bundleDependencies": false, 33 | "deprecated": false, 34 | "description": "Node HTTP/HTTPS Agents for tunneling proxies", 35 | "devDependencies": { 36 | "mocha": "^5.2.0", 37 | "should": "^13.2.3" 38 | }, 39 | "directories": { 40 | "lib": "./lib" 41 | }, 42 | "engines": { 43 | "node": ">=0.6.11 <=0.7.0 || >=0.7.3" 44 | }, 45 | "homepage": "https://github.com/koichik/node-tunnel/", 46 | "keywords": [ 47 | "http", 48 | "https", 49 | "agent", 50 | "proxy", 51 | "tunnel" 52 | ], 53 | "license": "MIT", 54 | "main": "./index.js", 55 | "name": "tunnel", 56 | "repository": { 57 | "type": "git", 58 | "url": "git+https://github.com/koichik/node-tunnel.git" 59 | }, 60 | "scripts": { 61 | "test": "mocha" 62 | }, 63 | "version": "0.0.6" 64 | } 65 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/LICENSE.md: -------------------------------------------------------------------------------- 1 | # [ISC License](https://spdx.org/licenses/ISC) 2 | 3 | Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/README.md: -------------------------------------------------------------------------------- 1 | # universal-user-agent 2 | 3 | > Get a user agent string in both browser and node 4 | 5 | [![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) 6 | [![Build Status](https://github.com/gr2m/universal-user-agent/workflows/Test/badge.svg)](https://github.com/gr2m/universal-user-agent/actions?query=workflow%3ATest+branch%3Amaster) 7 | [![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) 8 | 9 | ```js 10 | const { getUserAgent } = require("universal-user-agent"); 11 | // or import { getUserAgent } from "universal-user-agent"; 12 | 13 | const userAgent = getUserAgent(); 14 | // userAgent will look like this 15 | // in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" 16 | // in node: Node.js/v8.9.4 (macOS High Sierra; x64) 17 | ``` 18 | 19 | ## Credits 20 | 21 | The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). 22 | 23 | ## License 24 | 25 | [ISC](LICENSE.md) 26 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | function getUserAgent() { 6 | if (typeof navigator === "object" && "userAgent" in navigator) { 7 | return navigator.userAgent; 8 | } 9 | 10 | if (typeof process === "object" && "version" in process) { 11 | return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; 12 | } 13 | 14 | return ""; 15 | } 16 | 17 | exports.getUserAgent = getUserAgent; 18 | //# sourceMappingURL=index.js.map 19 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["export function getUserAgent() {\n if (typeof navigator === \"object\" && \"userAgent\" in navigator) {\n return navigator.userAgent;\n }\n if (typeof process === \"object\" && \"version\" in process) {\n return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;\n }\n return \"\";\n}\n"],"names":["getUserAgent","navigator","userAgent","process","version","substr","platform","arch"],"mappings":";;;;AAAO,SAASA,YAAT,GAAwB;AAC3B,MAAI,OAAOC,SAAP,KAAqB,QAArB,IAAiC,eAAeA,SAApD,EAA+D;AAC3D,WAAOA,SAAS,CAACC,SAAjB;AACH;;AACD,MAAI,OAAOC,OAAP,KAAmB,QAAnB,IAA+B,aAAaA,OAAhD,EAAyD;AACrD,WAAQ,WAAUA,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIF,OAAO,CAACG,QAAS,KAAIH,OAAO,CAACI,IAAK,GAAlF;AACH;;AACD,SAAO,4BAAP;AACH;;;;"} -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export function getUserAgent() { 2 | if (typeof navigator === "object" && "userAgent" in navigator) { 3 | return navigator.userAgent; 4 | } 5 | if (typeof process === "object" && "version" in process) { 6 | return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; 7 | } 8 | return ""; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-web/index.js: -------------------------------------------------------------------------------- 1 | function getUserAgent() { 2 | if (typeof navigator === "object" && "userAgent" in navigator) { 3 | return navigator.userAgent; 4 | } 5 | if (typeof process === "object" && "version" in process) { 6 | return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; 7 | } 8 | return ""; 9 | } 10 | 11 | export { getUserAgent }; 12 | //# sourceMappingURL=index.js.map 13 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["export function getUserAgent() {\n if (typeof navigator === \"object\" && \"userAgent\" in navigator) {\n return navigator.userAgent;\n }\n if (typeof process === \"object\" && \"version\" in process) {\n return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;\n }\n return \"\";\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;AAC/B,IAAI,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,WAAW,IAAI,SAAS,EAAE;AACnE,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,KAAK;AACL,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,SAAS,IAAI,OAAO,EAAE;AAC7D,QAAQ,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7F,KAAK;AACL,IAAI,OAAO,4BAA4B,CAAC;AACxC;;;;"} -------------------------------------------------------------------------------- /node_modules/universal-user-agent/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "universal-user-agent@^6.0.0", 3 | "_id": "universal-user-agent@6.0.0", 4 | "_inBundle": false, 5 | "_integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==", 6 | "_location": "/universal-user-agent", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "range", 10 | "registry": true, 11 | "raw": "universal-user-agent@^6.0.0", 12 | "name": "universal-user-agent", 13 | "escapedName": "universal-user-agent", 14 | "rawSpec": "^6.0.0", 15 | "saveSpec": null, 16 | "fetchSpec": "^6.0.0" 17 | }, 18 | "_requiredBy": [ 19 | "/@octokit/core", 20 | "/@octokit/endpoint", 21 | "/@octokit/graphql", 22 | "/@octokit/request" 23 | ], 24 | "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", 25 | "_shasum": "3381f8503b251c0d9cd21bc1de939ec9df5480ee", 26 | "_spec": "universal-user-agent@^6.0.0", 27 | "_where": "/Users/jeremyward/gh-action-get-linked-issues/node_modules/@octokit/core", 28 | "bugs": { 29 | "url": "https://github.com/gr2m/universal-user-agent/issues" 30 | }, 31 | "bundleDependencies": false, 32 | "dependencies": {}, 33 | "deprecated": false, 34 | "description": "Get a user agent string in both browser and node", 35 | "devDependencies": { 36 | "@gr2m/pika-plugin-build-web": "^0.6.0-issue-84.1", 37 | "@pika/pack": "^0.5.0", 38 | "@pika/plugin-build-node": "^0.9.1", 39 | "@pika/plugin-ts-standard-pkg": "^0.9.1", 40 | "@types/jest": "^25.1.0", 41 | "jest": "^24.9.0", 42 | "prettier": "^2.0.0", 43 | "semantic-release": "^17.0.5", 44 | "ts-jest": "^26.0.0", 45 | "typescript": "^3.6.2" 46 | }, 47 | "files": [ 48 | "dist-*/", 49 | "bin/" 50 | ], 51 | "homepage": "https://github.com/gr2m/universal-user-agent#readme", 52 | "keywords": [], 53 | "license": "ISC", 54 | "main": "dist-node/index.js", 55 | "module": "dist-web/index.js", 56 | "name": "universal-user-agent", 57 | "pika": true, 58 | "repository": { 59 | "type": "git", 60 | "url": "git+https://github.com/gr2m/universal-user-agent.git" 61 | }, 62 | "sideEffects": false, 63 | "source": "dist-src/index.js", 64 | "types": "dist-types/index.d.ts", 65 | "version": "6.0.0" 66 | } 67 | -------------------------------------------------------------------------------- /node_modules/wrappy/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/wrappy/README.md: -------------------------------------------------------------------------------- 1 | # wrappy 2 | 3 | Callback wrapping utility 4 | 5 | ## USAGE 6 | 7 | ```javascript 8 | var wrappy = require("wrappy") 9 | 10 | // var wrapper = wrappy(wrapperFunction) 11 | 12 | // make sure a cb is called only once 13 | // See also: http://npm.im/once for this specific use case 14 | var once = wrappy(function (cb) { 15 | var called = false 16 | return function () { 17 | if (called) return 18 | called = true 19 | return cb.apply(this, arguments) 20 | } 21 | }) 22 | 23 | function printBoo () { 24 | console.log('boo') 25 | } 26 | // has some rando property 27 | printBoo.iAmBooPrinter = true 28 | 29 | var onlyPrintOnce = once(printBoo) 30 | 31 | onlyPrintOnce() // prints 'boo' 32 | onlyPrintOnce() // does nothing 33 | 34 | // random property is retained! 35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true) 36 | ``` 37 | -------------------------------------------------------------------------------- /node_modules/wrappy/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "_from": "wrappy@1", 3 | "_id": "wrappy@1.0.2", 4 | "_inBundle": false, 5 | "_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 6 | "_location": "/wrappy", 7 | "_phantomChildren": {}, 8 | "_requested": { 9 | "type": "range", 10 | "registry": true, 11 | "raw": "wrappy@1", 12 | "name": "wrappy", 13 | "escapedName": "wrappy", 14 | "rawSpec": "1", 15 | "saveSpec": null, 16 | "fetchSpec": "1" 17 | }, 18 | "_requiredBy": [ 19 | "/once" 20 | ], 21 | "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 22 | "_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f", 23 | "_spec": "wrappy@1", 24 | "_where": "/Users/jeremyward/gh-action-get-linked-issues/node_modules/once", 25 | "author": { 26 | "name": "Isaac Z. Schlueter", 27 | "email": "i@izs.me", 28 | "url": "http://blog.izs.me/" 29 | }, 30 | "bugs": { 31 | "url": "https://github.com/npm/wrappy/issues" 32 | }, 33 | "bundleDependencies": false, 34 | "dependencies": {}, 35 | "deprecated": false, 36 | "description": "Callback wrapping utility", 37 | "devDependencies": { 38 | "tap": "^2.3.1" 39 | }, 40 | "directories": { 41 | "test": "test" 42 | }, 43 | "files": [ 44 | "wrappy.js" 45 | ], 46 | "homepage": "https://github.com/npm/wrappy", 47 | "license": "ISC", 48 | "main": "wrappy.js", 49 | "name": "wrappy", 50 | "repository": { 51 | "type": "git", 52 | "url": "git+https://github.com/npm/wrappy.git" 53 | }, 54 | "scripts": { 55 | "test": "tap --coverage test/*.js" 56 | }, 57 | "version": "1.0.2" 58 | } 59 | -------------------------------------------------------------------------------- /node_modules/wrappy/wrappy.js: -------------------------------------------------------------------------------- 1 | // Returns a wrapper function that returns a wrapped callback 2 | // The wrapper function should do some stuff, and return a 3 | // presumably different callback function. 4 | // This makes sure that own properties are retained, so that 5 | // decorations and such are not lost along the way. 6 | module.exports = wrappy 7 | function wrappy (fn, cb) { 8 | if (fn && cb) return wrappy(fn)(cb) 9 | 10 | if (typeof fn !== 'function') 11 | throw new TypeError('need wrapper function') 12 | 13 | Object.keys(fn).forEach(function (k) { 14 | wrapper[k] = fn[k] 15 | }) 16 | 17 | return wrapper 18 | 19 | function wrapper() { 20 | var args = new Array(arguments.length) 21 | for (var i = 0; i < args.length; i++) { 22 | args[i] = arguments[i] 23 | } 24 | var ret = fn.apply(this, args) 25 | var cb = args[args.length-1] 26 | if (typeof ret === 'function' && ret !== cb) { 27 | Object.keys(cb).forEach(function (k) { 28 | ret[k] = cb[k] 29 | }) 30 | } 31 | return ret 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gh-action-get-linked-issues", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@actions/core": "^1.2.6", 14 | "@actions/github": "^4.0.0", 15 | "@octokit/rest": "^18.0.12" 16 | } 17 | } 18 | --------------------------------------------------------------------------------