mirror of
https://github.com/actions/setup-node.git
synced 2025-06-30 06:33:48 +00:00
.
This commit is contained in:
parent
beb1329f9f
commit
2b95e76931
7736 changed files with 1874747 additions and 51184 deletions
22
node_modules/@octokit/rest/README.md
generated
vendored
22
node_modules/@octokit/rest/README.md
generated
vendored
|
@ -3,11 +3,11 @@
|
|||
> GitHub REST API client for JavaScript
|
||||
|
||||
[](https://www.npmjs.com/package/@octokit/rest)
|
||||
[](https://travis-ci.org/octokit/rest.js)
|
||||
[](https://coveralls.io/github/octokit/rest.js)
|
||||

|
||||
[](https://greenkeeper.io/)
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
npm install @octokit/rest
|
||||
```
|
||||
|
@ -15,16 +15,18 @@ npm install @octokit/rest
|
|||
## Usage
|
||||
|
||||
```js
|
||||
const Octokit = require('@octokit/rest')
|
||||
const octokit = new Octokit()
|
||||
const Octokit = require("@octokit/rest");
|
||||
const octokit = new Octokit();
|
||||
|
||||
// Compare: https://developer.github.com/v3/repos/#list-organization-repositories
|
||||
octokit.repos.listForOrg({
|
||||
org: 'octokit',
|
||||
type: 'public'
|
||||
}).then(({ data }) => {
|
||||
// handle data
|
||||
})
|
||||
octokit.repos
|
||||
.listForOrg({
|
||||
org: "octokit",
|
||||
type: "public"
|
||||
})
|
||||
.then(({ data }) => {
|
||||
// handle data
|
||||
});
|
||||
```
|
||||
|
||||
See https://octokit.github.io/rest.js/ for full documentation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue