Skip to content

Commit

Permalink
add throttling and automatic retries to octokit
Browse files Browse the repository at this point in the history
make retry_mode default to true
make octokit instance shared between asynchronous tasks
  • Loading branch information
SlevinWasAlreadyTaken committed Dec 1, 2021
1 parent 5ca33e3 commit f68895b
Show file tree
Hide file tree
Showing 11 changed files with 5,289 additions and 2,795 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve

---

## 3.2 - 01/12/2021
* Added Option `RETRY_MODE`

## 3.1 - 11/02/2021
* Added Option `SKIP_CI` [#6](https://github.com/varunsridharan/action-github-workflow-sync/issues/6)
* Added Option `COMMIT_MESSAGE` to provide custom message by end user [#6](https://github.com/varunsridharan/action-github-workflow-sync/issues/6)
Expand Down Expand Up @@ -40,4 +43,4 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve
* Improved performance by migrating to ***Alpine Linux***

## 1.0 - 25/06/2020
### First Release
### First Release
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This also isn't limited to Github Action yaml files - another use case could be
| `PULL_REQUEST` | **false** | Set to `true` if you want the changes to be pushed via pull request. |
| `SKIP_CI` | **false** | Set to `true` if you want skip all automations inside target repository. |
| `COMMIT_MESSAGE` | **false** | You can provide your custom commit message. |
| `RETRY_MODE` | **true** | Enable retry and throttling octokit plugins to avoid secondary rate limits on github content creation. |

### Personal Access Token Scope
#### [Github Personal Token](https://github.com/settings/tokens/new?description=gh-workflow-sync) <small> Is required with the below scope </small>
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ inputs:
description: "Provide your own custom commit MESSAGE"
required: false
default: 'false'
RETRY_MODE:
description: "Enable retry and throttling octokit plugins to avoid secondary rate limits on github content creation"
required: false
default: 'true'

runs:
using: 'node12'
Expand Down
Loading

0 comments on commit f68895b

Please sign in to comment.