Skip to content

Commit 47a23a7

Browse files
committed
fix: remove debug logs in parsePush
1 parent bbd7f49 commit 47a23a7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,8 @@ const getCommitData = (contents: CommitContent[]) => {
5959
.chain(contents)
6060
.filter({ type: 1 })
6161
.map((x) => {
62-
console.debug({ x });
63-
6462
const formattedContent = x.content.split('\n');
65-
console.debug({ formattedContent });
66-
6763
const parts = formattedContent.filter((part) => part.length > 0);
68-
console.debug({ parts });
6964

7065
if (!parts || parts.length < 5) {
7166
throw new Error('Invalid commit data');
@@ -75,15 +70,12 @@ const getCommitData = (contents: CommitContent[]) => {
7570
.find((t) => t.split(' ')[0] === 'tree')
7671
?.replace('tree', '')
7772
.trim();
78-
console.debug({ tree });
7973

8074
const parentValue = parts.find((t) => t.split(' ')[0] === 'parent');
81-
console.debug({ parentValue });
8275

8376
const parent = parentValue
8477
? parentValue.replace('parent', '').trim()
8578
: '0000000000000000000000000000000000000000';
86-
console.debug({ parent });
8779

8880
const authorStr = parts
8981
.find((t) => t.split(' ')[0] === 'author')
@@ -93,7 +85,6 @@ const getCommitData = (contents: CommitContent[]) => {
9385
const author = authorStr?.split('<')[0].trim();
9486
// slice to trim start and end from `<[email protected]>`
9587
const authorEmail = authorStr?.split(' ').reverse()[2].slice(1, -1);
96-
console.debug({ authorStr, author, authorEmail });
9788

9889
// handle email-like committer string: "UserName <[email protected]> 1746612538 +0100"
9990
const committerStr = parts
@@ -105,14 +96,12 @@ const getCommitData = (contents: CommitContent[]) => {
10596
const commitTimestamp = committerArr[1];
10697
// slice to trim start and end from `<[email protected]>`
10798
const committerEmail = committerArr[2]?.slice(1, -1);
108-
console.debug({ committerStr, committer, committerEmail, commitTimestamp });
10999

110100
const indexOfMessages = formattedContent.indexOf('');
111101
const message = formattedContent
112102
.slice(indexOfMessages + 1)
113103
.join(' ')
114104
.trim();
115-
console.debug({ indexOfMessages, message });
116105

117106
console.log({
118107
tree,

0 commit comments

Comments
 (0)