Comments (4)
I suspect that's very hard to do since that would introduce statefulnes into the action. Have you checked if there are existing patterns that can throttle entire runs instead if single actions?
from actions-label-merge-conflict.
I hadn't. I might be misunderstanding your suggestion, but our workflow only runs this one action once every 15 minutes (and we're even using a GitHub token from an account dedicated to this workflow, so that our other workflows don't contribute to the API limit).
What sort of thing did you have in mind?
from actions-label-merge-conflict.
If you already throttle the action what would be achieved if the action itself throttles? I don't see how the action could throttle that couldn't be achieved at the workflow level.
The only implementation I can see for throttling at the action level would involve adding statefulness i.e. each action call needs to be aware of the previous calls. I wouldn't know where to begin with implementations. If you have a concrete implementation in form of a PR I can take a look.
from actions-label-merge-conflict.
Hmm, perhaps I wasn't being clear. What I had in mind was more along the lines of adding a (user-specified?) pause after each iteration of this for loop. That way the GitHub API calls can be spread out and we can hopefully avoid getting rate limited.
from actions-label-merge-conflict.
Related Issues (18)
- Mark comment as outdated once conflict resolved HOT 1
- `continueOnMissingPermissions` should continue when `repoToken` is missing? HOT 1
- Missing release for comment feature to work HOT 4
- request changes in PR with merge conflicts HOT 5
- Mark previous `commentOnDirty` comments as "outdated" HOT 2
- Workflow doesnโt run on pull request when pull request is created by another workflow action and have conflict HOT 2
- Dependency Dashboard
- GITHUB_TOKEN permissions used by this action
- Changes requested HOT 1
- Misconfiguration or does this action waste a lot of CI time (and money)? HOT 1
- Please add LINCENSE file
- add label back when conflicts are resolved if the label was removed HOT 6
- Add custom notification mechanism HOT 1
- Duplicate comment HOT 1
- The set-output command is deprecated and will be disabled soon HOT 4
- More meaningful error message if commenting fails, and perhaps retry HOT 2
- No label added HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-label-merge-conflict.