mirror of
https://github.com/Xevion/linkpulse.git
synced 2026-01-31 08:24:45 -06:00
Update draft to use error command format
This commit is contained in:
Vendored
+4
-1
@@ -54,7 +54,10 @@ jobs:
|
|||||||
let labels = context.payload.pull_request.labels;
|
let labels = context.payload.pull_request.labels;
|
||||||
|
|
||||||
if (labels.some(l => forbiddenLabels.includes(l.name))) {
|
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