Created
March 25, 2025 16:07
-
-
Save luoling8192/321a582729efa11eb25b7029bb7afc5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| account=$1 | |
| data=$(curl -s https://api.github.com/users/$account) | |
| id=$(echo $data | jq .id) | |
| name=$(echo $data | jq --raw-output '.name // .login') | |
| printf "Co-authored-by: %s <%d+%[email protected]>\n" "$name" $id $account |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment