Skip to content

Commit 5925c97

Browse files
committed
feat: author field for commits
1 parent b4944f3 commit 5925c97

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/create-commit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export async function createCommit(
2222
message,
2323
tree: state.latestCommitTreeSha,
2424
parents: [latestCommitSha],
25+
author: changes.author,
2526
},
2627
)
2728

src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export type Changes = {
2929
}
3030
emptyCommit?: boolean | string
3131
commit: string
32+
author?: {
33+
name?: string
34+
email?: string
35+
}
3236
}
3337

3438
// https://developer.github.com/v3/git/blobs/#parameters

0 commit comments

Comments
 (0)