-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(fix): 修正 github actions 上的 git 無法正確只回傳最後一個 commit 提交的檔案變動列表
- Loading branch information
1 parent
cf0203e
commit 5a4ceff
Showing
5 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { gitlog } from 'gitlog2'; | ||
import { __root } from '../../test/__root'; | ||
|
||
export function getGitLogs(number?: number) | ||
{ | ||
number ||= 1; | ||
return gitlog({ | ||
repo: __root, | ||
cwd: __root, | ||
number, | ||
execOptions: { | ||
// 防止 git ENOBUFS 錯誤 | ||
// https://www.cxyzjd.com/article/F_Origin/108589968 | ||
maxBuffer: 1024 * 1024 * 100, | ||
}, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters