parent
3275593617
commit
fb863f5502
@ -21,18 +21,12 @@ export default async function parseParser(data: ChangelogData, parser: Parser):
|
|||||||
if (data.shaList.has(commit.hash)) continue;
|
if (data.shaList.has(commit.hash)) continue;
|
||||||
|
|
||||||
let savedFix: FixUpInfo = undefined;
|
let savedFix: FixUpInfo = undefined;
|
||||||
console.log(`Parsing Commit ${commit.hash} with Parser ${parser.dirs}`)
|
|
||||||
console.log(Array.from(data.commitFixes.values()))
|
|
||||||
if (data.commitFixes.has(commit.hash)) {
|
if (data.commitFixes.has(commit.hash)) {
|
||||||
const fixUpInfo = data.commitFixes.get(commit.hash);
|
const fixUpInfo = data.commitFixes.get(commit.hash);
|
||||||
if (!parser.applyFixCalback || parser.applyFixCalback(fixUpInfo)) {
|
if (!parser.applyFixCalback || parser.applyFixCalback(fixUpInfo)) {
|
||||||
applyFix(commit, fixUpInfo);
|
applyFix(commit, fixUpInfo);
|
||||||
console.log("Applying Fix");
|
|
||||||
console.log(fixUpInfo);
|
|
||||||
} else {
|
} else {
|
||||||
savedFix = fixUpInfo;
|
savedFix = fixUpInfo;
|
||||||
console.log("Saving Fix");
|
|
||||||
console.log(fixUpInfo);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,6 @@ export async function parseIgnore(commitBody: string, commitObject: Commit): Pro
|
|||||||
*/
|
*/
|
||||||
export async function parseFixUp(commit: Commit, fix?: FixUpInfo): Promise<boolean> {
|
export async function parseFixUp(commit: Commit, fix?: FixUpInfo): Promise<boolean> {
|
||||||
if (!commit.body || !commit.body.includes(fixUpKey)) return false;
|
if (!commit.body || !commit.body.includes(fixUpKey)) return false;
|
||||||
console.log(commit.hash, Array.from(data.commitFixes.values()), fix)
|
|
||||||
await parseTOMLWithRootToList<FixUpInfo>(
|
await parseTOMLWithRootToList<FixUpInfo>(
|
||||||
commit.body,
|
commit.body,
|
||||||
commit,
|
commit,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user