mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-08 12:07:39 -06:00
Update draft to use error command format
This commit is contained in:
5
.github/workflows/checklist.yaml
vendored
5
.github/workflows/checklist.yaml
vendored
@@ -54,7 +54,10 @@ jobs:
|
||||
let labels = context.payload.pull_request.labels;
|
||||
|
||||
if (labels.some(l => forbiddenLabels.includes(l.name))) {
|
||||
throw new Error(`Forbidden labels detected: ${forbiddenLabels.join(', ')}`);
|
||||
const message = `Forbidden labels detected: ${forbiddenLabels.join(', ')}`;
|
||||
const command = `::error file=${__filename},line=1,endLine=1,title=Forbidden Labels Detected::${message}`;
|
||||
console.log(command);
|
||||
throw new Error(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user