mirror of
https://github.com/actions/labeler.git
synced 2026-01-01 01:03:04 +08:00
build
This commit is contained in:
5
node_modules/@octokit/request/README.md
generated
vendored
5
node_modules/@octokit/request/README.md
generated
vendored
@@ -3,8 +3,7 @@
|
||||
> Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node
|
||||
|
||||
[](https://www.npmjs.com/package/@octokit/request)
|
||||
[](https://github.com/octokit/request.js/actions?query=workflow%3ATest)
|
||||
[](https://greenkeeper.io/)
|
||||
[](https://github.com/octokit/request.js/actions?query=workflow%3ATest+branch%3Amaster)
|
||||
|
||||
`@octokit/request` is a request library for browsers & node that makes it easier
|
||||
to interact with [GitHub’s REST API](https://developer.github.com/v3/) and
|
||||
@@ -159,7 +158,7 @@ const requestWithAuth = request.defaults({
|
||||
authorization: "token 0000000000000000000000000000000000000001",
|
||||
},
|
||||
});
|
||||
const result = await request("GET /user");
|
||||
const result = await requestWithAuth("GET /user");
|
||||
```
|
||||
|
||||
For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js).
|
||||
|
||||
Reference in New Issue
Block a user