Aller au contenu principal

Pull request limit api queries count input

Input

Name: pull-request-limit-api-queries-count
Type: number
Default value: -1 (unlimited)

Description

This input will let you define a limit count of pull requests API queries (read) calls performed during the processing.
If the limit is reached, the ongoing processed pull request will finish it's processing then all other pull requests will be ignored.
This can be useful when you want to play it safe with this action.
This can be also very useful if you have a lot of pull requests to process, and you want to limit the quotas of your associated GitHub token.

info

When the value is below 0, the input will have no effect.

Cache

Some queries are cached during the workflow when loading static resources like the labels.
This will reduce the number of calls made to the GitHub API, which will also reduce the quotas consumed for your GitHub token, avoiding reaching rate limits.

Example

# ...
name: Stale
id: stale
uses: sonia-corporation/stale@latest
with:
pull-request-limit-api-queries-count: 100