Skip to content

Commit 041b6c7

Browse files
committed
fix: typing issue in getCommitData
1 parent d8e5b3d commit 041b6c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/proxy/processors/push-action/parsePush.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const getCommitData = (contents: CommitContent[]) => {
112112
const authorEmail = author?.split(' ').reverse()[2].slice(1, -1);
113113
console.log({ authorEmail });
114114

115-
const committerEmail = committer.split(' ').reverse()[2].slice(1, -1);
115+
const committerEmail = committer?.split(' ').reverse()[2].slice(1, -1);
116116
console.log({ committerEmail });
117117

118118
console.log({
@@ -133,7 +133,8 @@ const getCommitData = (contents: CommitContent[]) => {
133133
!committer ||
134134
!commitTimestamp ||
135135
!message ||
136-
!authorEmail
136+
!authorEmail ||
137+
!committerEmail
137138
) {
138139
throw new Error('Invalid commit data');
139140
}

0 commit comments

Comments
 (0)