Hide trigger:workflow_dispatch from prompt
This commit is contained in:
committed by
pullfrog[bot]
parent
c6dfe4fa10
commit
5740eba150
@@ -140237,7 +140237,7 @@ function buildRuntimeContext(ctx) {
|
||||
return encode(filtered);
|
||||
}
|
||||
function buildEventData(event) {
|
||||
const { title, body, ...rest } = event;
|
||||
const { title, body, trigger, ...rest } = event;
|
||||
const sections = [];
|
||||
const trimmedTitle = typeof title === "string" ? title.trim() : "";
|
||||
const trimmedBody = typeof body === "string" ? body.trim() : "";
|
||||
@@ -140247,9 +140247,10 @@ function buildEventData(event) {
|
||||
if (trimmedBody) {
|
||||
sections.push(trimmedBody);
|
||||
}
|
||||
if (Object.keys(rest).length > 0) {
|
||||
const restWithTrigger = trigger === "workflow_dispatch" ? rest : { trigger, ...rest };
|
||||
if (Object.keys(restWithTrigger).length > 0) {
|
||||
if (sections.length > 0) sections.push("---");
|
||||
sections.push(encode(rest));
|
||||
sections.push(encode(restWithTrigger));
|
||||
}
|
||||
return sections.join("\n\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user