We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e5b3d commit 041b6c7Copy full SHA for 041b6c7
src/proxy/processors/push-action/parsePush.ts
@@ -112,7 +112,7 @@ const getCommitData = (contents: CommitContent[]) => {
112
const authorEmail = author?.split(' ').reverse()[2].slice(1, -1);
113
console.log({ authorEmail });
114
115
- const committerEmail = committer.split(' ').reverse()[2].slice(1, -1);
+ const committerEmail = committer?.split(' ').reverse()[2].slice(1, -1);
116
console.log({ committerEmail });
117
118
console.log({
@@ -133,7 +133,8 @@ const getCommitData = (contents: CommitContent[]) => {
133
!committer ||
134
!commitTimestamp ||
135
!message ||
136
- !authorEmail
+ !authorEmail ||
137
+ !committerEmail
138
) {
139
throw new Error('Invalid commit data');
140
}
0 commit comments