Add debug logging to checkContainsTrigger for test debugging

Added console.log statements to trace execution flow in trigger validation:
- Log context and inputs at function entry
- Log issue content and regex pattern matching
- Log final return value
- Add logging to tagMode.shouldTrigger to trace delegation

These logs help debug the 'shouldTrigger delegates to checkContainsTrigger' test.
This commit is contained in:
Ashwin Bhat
2025-08-27 17:02:16 -07:00
parent ef8c0a650e
commit 4ebee54a00
3 changed files with 31 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ describe("Tag Mode", () => {
expect(tagMode.shouldCreateTrackingComment()).toBe(true);
});
test("shouldTrigger delegates to checkContainsTrigger", () => {
test.only("shouldTrigger delegates to checkContainsTrigger", () => {
const contextWithTrigger = createMockContext({
eventName: "issue_comment",
isPR: false,