Log the webhook action and labels to diagnose why label events are being ignored. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
0812a9be37
commit
d19798dfea
@@ -22,6 +22,8 @@ export function issueLabel(config: Config, queue: TaskQueue) {
|
|||||||
return async (c: Context) => {
|
return async (c: Context) => {
|
||||||
const event = await c.req.json<IssueEvent>();
|
const event = await c.req.json<IssueEvent>();
|
||||||
|
|
||||||
|
console.log(`[issue-label] action="${event.action}" issue=#${event.issue.number} labels=[${event.issue.labels.map((l) => l.name).join(", ")}]`);
|
||||||
|
|
||||||
if (event.action !== "label_updated" && event.action !== "labeled") {
|
if (event.action !== "label_updated" && event.action !== "labeled") {
|
||||||
return c.text("ignored: not a label event", 200);
|
return c.text("ignored: not a label event", 200);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user