mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-07-05 01:03:13 +08:00
make pr metrics write to pr request
This commit is contained in:
parent
f30640c2cc
commit
b035e809a3
6
dist/cleanup/index.js
generated
vendored
6
dist/cleanup/index.js
generated
vendored
@ -74453,8 +74453,8 @@ function generateReports() {
|
|||||||
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
|
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
|
||||||
const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput));
|
const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput));
|
||||||
yield (0, utils_1.createRef)(treeSha);
|
yield (0, utils_1.createRef)(treeSha);
|
||||||
const prMetrics = yield (0, utils_1.getPrBaseBranchMetrics)();
|
const prMetrics = JSON.parse(yield (0, utils_1.getPrBaseBranchMetrics)());
|
||||||
const prBaseReport = createReport(buildOutput);
|
const prBaseReport = createReport(prMetrics);
|
||||||
const report = createReport(buildOutput);
|
const report = createReport(buildOutput);
|
||||||
if (areJobReportsEnabled()) {
|
if (areJobReportsEnabled()) {
|
||||||
core.summary.addRaw(report);
|
core.summary.addRaw(report);
|
||||||
@ -74462,7 +74462,7 @@ function generateReports() {
|
|||||||
}
|
}
|
||||||
if (arePRReportsEnabled()) {
|
if (arePRReportsEnabled()) {
|
||||||
(0, utils_1.createPRComment)(report);
|
(0, utils_1.createPRComment)(report);
|
||||||
(0, utils_1.createPRComment)(report + buildOutput);
|
(0, utils_1.createPRComment)(prBaseReport);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
6
dist/main/index.js
generated
vendored
6
dist/main/index.js
generated
vendored
@ -74552,8 +74552,8 @@ function generateReports() {
|
|||||||
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
|
const buildOutput = JSON.parse(fs.readFileSync(BUILD_OUTPUT_JSON_PATH, 'utf8'));
|
||||||
const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput));
|
const treeSha = yield (0, utils_1.createTree)(JSON.stringify(buildOutput));
|
||||||
yield (0, utils_1.createRef)(treeSha);
|
yield (0, utils_1.createRef)(treeSha);
|
||||||
const prMetrics = yield (0, utils_1.getPrBaseBranchMetrics)();
|
const prMetrics = JSON.parse(yield (0, utils_1.getPrBaseBranchMetrics)());
|
||||||
const prBaseReport = createReport(buildOutput);
|
const prBaseReport = createReport(prMetrics);
|
||||||
const report = createReport(buildOutput);
|
const report = createReport(buildOutput);
|
||||||
if (areJobReportsEnabled()) {
|
if (areJobReportsEnabled()) {
|
||||||
core.summary.addRaw(report);
|
core.summary.addRaw(report);
|
||||||
@ -74561,7 +74561,7 @@ function generateReports() {
|
|||||||
}
|
}
|
||||||
if (arePRReportsEnabled()) {
|
if (arePRReportsEnabled()) {
|
||||||
(0, utils_1.createPRComment)(report);
|
(0, utils_1.createPRComment)(report);
|
||||||
(0, utils_1.createPRComment)(report + buildOutput);
|
(0, utils_1.createPRComment)(prBaseReport);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -136,8 +136,10 @@ export async function generateReports(): Promise<void> {
|
|||||||
|
|
||||||
const treeSha = await createTree(JSON.stringify(buildOutput))
|
const treeSha = await createTree(JSON.stringify(buildOutput))
|
||||||
await createRef(treeSha)
|
await createRef(treeSha)
|
||||||
const prMetrics = await getPrBaseBranchMetrics()
|
const prMetrics: BuildOutput = JSON.parse(
|
||||||
const prBaseReport = createReport(buildOutput)
|
await getPrBaseBranchMetrics()
|
||||||
|
)
|
||||||
|
const prBaseReport = createReport(prMetrics)
|
||||||
|
|
||||||
const report = createReport(buildOutput)
|
const report = createReport(buildOutput)
|
||||||
if (areJobReportsEnabled()) {
|
if (areJobReportsEnabled()) {
|
||||||
@ -146,7 +148,7 @@ export async function generateReports(): Promise<void> {
|
|||||||
}
|
}
|
||||||
if (arePRReportsEnabled()) {
|
if (arePRReportsEnabled()) {
|
||||||
createPRComment(report)
|
createPRComment(report)
|
||||||
createPRComment(report + buildOutput)
|
createPRComment(prBaseReport)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user