Commit with GitHub user email (needed for vercel deployment)
This commit is contained in:
15
src/ipc/utils/git_author.ts
Normal file
15
src/ipc/utils/git_author.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { getGithubUser } from "../handlers/github_handlers";
|
||||
|
||||
export async function getGitAuthor() {
|
||||
const user = await getGithubUser();
|
||||
const author = user
|
||||
? {
|
||||
name: `[dyad]`,
|
||||
email: user.email,
|
||||
}
|
||||
: {
|
||||
name: "[dyad]",
|
||||
email: "git@dyad.sh",
|
||||
};
|
||||
return author;
|
||||
}
|
||||
Reference in New Issue
Block a user