mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
chore(release): v0.1.0
This commit is contained in:
2 files changed
+5
-1
No files matched your search
+4
@@ -50403,6 +50403,7 @@ function setOutputs(results, settings) {
|
|||||||
async function writeJobSummary(results, settings) {
|
async function writeJobSummary(results, settings) {
|
||||||
if (results.length === 0) {
|
if (results.length === 0) {
|
||||||
summary.addHeading("PR Quality Checks - Skipped", "3");
|
summary.addHeading("PR Quality Checks - Skipped", "3");
|
||||||
|
summary.addBreak();
|
||||||
summary.addRaw("No checks were enabled or applicable for this PR.", true);
|
summary.addRaw("No checks were enabled or applicable for this PR.", true);
|
||||||
await summary.write({ overwrite: true });
|
await summary.write({ overwrite: true });
|
||||||
return;
|
return;
|
||||||
@@ -50411,7 +50412,9 @@ async function writeJobSummary(results, settings) {
|
|||||||
const passed = results.filter((r) => r.passed);
|
const passed = results.filter((r) => r.passed);
|
||||||
const statusText = failed.length >= settings.maxFailures ? "Failed" : "Passed";
|
const statusText = failed.length >= settings.maxFailures ? "Failed" : "Passed";
|
||||||
summary.addHeading(`PR Quality Checks - ${statusText}`, "3");
|
summary.addHeading(`PR Quality Checks - ${statusText}`, "3");
|
||||||
|
summary.addBreak();
|
||||||
summary.addRaw(`${String(failed.length)}/${String(results.length)} checks failed · ${String(passed.length)} checks passed`, true);
|
summary.addRaw(`${String(failed.length)}/${String(results.length)} checks failed · ${String(passed.length)} checks passed`, true);
|
||||||
|
summary.addBreak();
|
||||||
const sorted = [...failed, ...passed];
|
const sorted = [...failed, ...passed];
|
||||||
summary.addTable([[
|
summary.addTable([[
|
||||||
{
|
{
|
||||||
@@ -50589,6 +50592,7 @@ async function runDescriptionChecks(settings, context, client) {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const missing = templateHeadings.filter((heading) => !body.includes(heading));
|
const missing = templateHeadings.filter((heading) => !body.includes(heading));
|
||||||
|
debug(`Missing template headings: ${missing.join(", ")}`);
|
||||||
recordCheck(results, {
|
recordCheck(results, {
|
||||||
name: "pr-template",
|
name: "pr-template",
|
||||||
passed: missing.length === 0,
|
passed: missing.length === 0,
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "anti-slop",
|
"name": "anti-slop",
|
||||||
"description": "A GitHub action that detects and automatically closes low-quality and AI slop PRs.",
|
"description": "A GitHub action that detects and automatically closes low-quality and AI slop PRs.",
|
||||||
"version": "0.0.0",
|
"version": "0.1.0",
|
||||||
"author": "peaklabs-dev",
|
"author": "peaklabs-dev",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
Reference in new issue
Block a user