Accessing the polite API pool
get_cr_mailto()
get_cr_mailto
: Get the email address to authenticate into the polite pool
Whenever possible, API calls should be identified by an email address to reach the human responsible for making the call. In this order, returns the first valid email found in:
The crlite.mailto
option.
The CR_MD_MAILTO
environment variable
(recommended only for secure environment variables in the cloud).
On GitHub Actions, you can set the CR_MD_MAILTO
environment variable
to the email of the committer by retrieving the
pusher email
thus:
env: CR_MD_MAILTO: ${{ github.event.pusher.email }}
The git user email address for the repo at the working directory. This
Otherwise, the function errors out.