-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git blame avatars for everyone #11043
Comments
I think for now it's fine to keep it in there, since it's similar to the permalinks behavior we have.
I don't think we need more than a URL right now. Once we need more, we can add more. |
Okay, I'll undraft the PR and we'll go from there |
The ![]()
function createURL(owner: string, repo: string, sha: string, token: string) {
return `https://gitee.com/api/v5/repos/${owner}/${repo}/commits/${sha}?access_token=${token}`
}
const token = Bun.env["ACCESS_TOKEN"]!
const url = createURL('libkitten', 'zed', 'f72cf2afe34f77bf498454cd5486aa2c31b820d6', token)
console.log(url)
// export ACCESS_TOKEN=$$$
// bun run run.ts | xargs curl | jless Avatar is
|
Currently, only GitHub avatars are supported in git blame. Other hostings should be supported as well.
Avatar support
Questions
Commit
/Author
/User
/... struct for each hosting separately or extract them?For now I've extracted the
Author
struct as it's the only one that is built by hand and not deserialised from the response.The text was updated successfully, but these errors were encountered: