File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -423,11 +423,19 @@ You can build your own Octokit class with preset default options and plugins. In
423423``` js
424424const { Octokit } = require (" @octokit/core" );
425425const MyActionOctokit = Octokit .plugin (
426- require (" @octokit/plugin-paginate-rest" ),
427- require (" @octokit/plugin-throttling" ),
428- require (" @octokit/plugin-retry" )
426+ require (" @octokit/plugin-paginate-rest" ). paginateRest ,
427+ require (" @octokit/plugin-throttling" ). throttling ,
428+ require (" @octokit/plugin-retry" ). retry
429429).defaults ({
430- authStrategy: require (" @octokit/auth-action" ),
430+ throttle: {
431+ onAbuseLimit : (retryAfter , options ) => {
432+ /* ... */
433+ },
434+ onRateLimit : (retryAfter , options ) => {
435+ /* ... */
436+ },
437+ },
438+ authStrategy: require (" @octokit/auth-action" ).createActionAuth ,
431439 userAgent: ` my-octokit-action/v1.2.3` ,
432440});
433441
You can’t perform that action at this time.
0 commit comments