deno deploy function for co-authored-by.
The API is deployed on https://co-authored-by.deno.dev
. Usage:
curl https://co-authored-by.deno.dev/username
For example:
curl https://co-authored-by.deno.dev/LeoDog896 # returns "Co-authored-by: Tristan F. <[email protected]>"
It does it in 4 steps, with a fallback to the next step if the previous one fails.
- Find a primary email address (are any social media accounts attached? Are one of these mail?)
- Find an email address from the latest commit (if this is a non-shadow email, use it).
- Use the modern shadow email (with an id, in the format
[email protected]
). - Generate a legacy shadow email (without an ID).
/
- 400
, Bad Request, no username was provided (message can vary)
/<username>
- 200
, returns the exact Co-authored-by footer format as one line.
Note If the username does not exist OR the username is an organization, a
404
code will be returned instead.