Skip to content

Commit

Permalink
[engine] git log parsing 부분 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
BeA-Pro committed Oct 22, 2024
2 parents 883453d + 59d163c commit 15a87ef
Show file tree
Hide file tree
Showing 57 changed files with 856 additions and 480 deletions.
145 changes: 66 additions & 79 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "githru-vscode-ext",
"version": "0.7.1",
"version": "0.7.2",
"description": "githru-vscode-ext root package.json",
"scripts": {
"build:all": "npm run build --workspaces",
Expand Down
2 changes: 1 addition & 1 deletion packages/analysis-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@githru-vscode-ext/analysis-engine",
"version": "0.7.1",
"version": "0.7.2",
"description": "analysis-engine module for githru",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
2 changes: 0 additions & 2 deletions packages/analysis-engine/src/constant.ts

This file was deleted.

3 changes: 1 addition & 2 deletions packages/analysis-engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class AnalysisEngine {
if (this.isDebugMode) console.log("stemDict: ", stemDict);
const csmDict = buildCSMDict(commitDict, stemDict, this.baseBranchName, pullRequests);
if (this.isDebugMode) console.log("csmDict: ", csmDict);
const nodes = stemDict.get(this.baseBranchName)?.nodes?.map(({commit}) => commit);
const nodes = stemDict.get(this.baseBranchName)?.nodes?.map(({ commit }) => commit);
const geminiCommitSummary = await getSummary(nodes ? nodes?.slice(-10) : []);
if (this.isDebugMode) console.log("GeminiCommitSummary: ", geminiCommitSummary);

Expand All @@ -94,4 +94,3 @@ export class AnalysisEngine {
}

export default AnalysisEngine;
export { COMMIT_SEPARATOR, GIT_LOG_SEPARATOR } from "./constant";
Loading

0 comments on commit 15a87ef

Please sign in to comment.