@octokit/action
Advanced tools
Comparing version 3.7.1 to 3.7.2
@@ -10,3 +10,3 @@ 'use strict'; | ||
const VERSION = "3.7.1"; | ||
const VERSION = "3.7.2"; | ||
@@ -13,0 +13,0 @@ const Octokit = core.Octokit.plugin(pluginPaginateRest.paginateRest, pluginRestEndpointMethods.legacyRestEndpointMethods).defaults({ |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.7.1"; | ||
export const VERSION = "3.7.2"; |
import { Octokit as Core } from "@octokit/core"; | ||
export { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; | ||
export declare const Octokit: (new (...args: any[]) => { | ||
[x: string]: any; | ||
}) & { | ||
new (...args: any[]): { | ||
[x: string]: any; | ||
}; | ||
plugins: any[]; | ||
} & typeof Core & import("@octokit/core/dist-types/types").Constructor<{ | ||
export declare const Octokit: typeof Core & import("@octokit/core/dist-types/types").Constructor<{ | ||
paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; | ||
} & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types").RestEndpointMethods & import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api>; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.7.1"; | ||
export declare const VERSION = "3.7.2"; |
{ | ||
"name": "@octokit/action", | ||
"description": "GitHub API client for GitHub Actions", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -50,6 +50,7 @@ # action.js | ||
version: 12 | ||
- run: npm install @octokit/action | ||
# Node.js script can be anywhere. A good convention is to put local GitHub Actions | ||
# into the `.github/actions` folder | ||
- run: node .github/actions/my-script.js | ||
with: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
@@ -62,2 +63,4 @@ ``` | ||
// .github/actions/my-script.js | ||
const { Octokit } = require("@octokit/action"); | ||
const octokit = new Octokit(); | ||
@@ -71,2 +74,4 @@ | ||
```js | ||
const { Octokit } = require("@octokit/action"); | ||
const octokit = new Octokit(); | ||
@@ -89,2 +94,4 @@ const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/"); | ||
```js | ||
const { Octokit } = require("@octokit/action"); | ||
const octokit = new Octokit(); | ||
@@ -91,0 +98,0 @@ const eventPayload = require(process.env.GITHUB_EVENT_PATH); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9427
138
39