newaperio / custodian

GitHub bot to manage routine tasks.
https://newaperio.github.io/custodian
MIT License
4 stars 1 forks source link

Cache tokens within same process #2

Closed lleger closed 6 years ago

lleger commented 6 years ago

Currently, every time we take an action on Github, we are creating a new access token. This is unnecessary. We should do it once per payload and save it for reuse.

lleger commented 6 years ago

Tokens last for 1 hour. Could set TTL to 55 minutes.