-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(issues): add new input
issue-limit-api-queries-count
Before processing each issue, the workflow will check if the input is enabled. If this is the case, the processing may stop if the statistics for queries are higher than the limit. Closes #254
- Loading branch information
Showing
16 changed files
with
879 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
documentation/docs/06-issues/01-inputs/17-limit-api-queries-count-input.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
id: issue-limit-api-queries-count-input | ||
title: Issue limit api queries count input | ||
tags: | ||
- Issues | ||
- Inputs | ||
--- | ||
|
||
### Input {#input} | ||
|
||
Name: `issue-limit-api-queries-count` | ||
Type: `number` | ||
Default value: `-1` | ||
|
||
### Description {#description} | ||
|
||
This input will let you define a limit count of API queries calls performed during the processing. | ||
If the limit is reached, the ongoing processed issue will finish it's processing then all other issues 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 issues to process, and you want to limit the quotas of your associated [GitHub token](../../github-token-input). | ||
|
||
### Example {#example} | ||
|
||
```yml {6} | ||
# ... | ||
name: Stale | ||
id: stale | ||
uses: sonia-corporation/stale@latest | ||
with: | ||
issue-limit-api-queries-count: false | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.