What's happening
When someone edits an existing comment on a pull request, PAC receives the notification but doesn't know what to do with it (PAC only acts on newly created comments, not edits). Instead of quietly ignoring the event, PAC logs it as an error:
{"level":"error","ts":"2026-04-08T07:15:30.171Z","logger":"pipelinesascode","caller":"adapter/sinker.go:35","msg":"failed to parse event: only newly created comment is supported, received: edited","commit":"d78ef4e","provider":"github","event-id":"b890a710-331a-11f1-9367-6da78867aefc","stacktrace":"github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEventPayload\n\tgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:35\ngithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEvent\n\tgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:76\ngithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*listener).Start.listener.handleEvent.func2.1\n\tgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter/adapter.go:209"}
Why it's a problem
This is not actually an error — it's a normal, expected situation. Users or bots editing comments is completely routine. The level: error log with a full stacktrace alarms operators and makes them think something is broken, when in reality everything is fine and the event should simply be skipped.
Expected behavior
When PAC receives a webhook for an edited (or deleted) comment, it should silently ignore it — no error, no stacktrace, at most a quiet debug-level log.
Steps to reproduce
- Have PAC installed and watching a repository
- Post a comment on a pull request, then edit it
- Observe the controller logs — the error log with stacktrace appears
What's happening
When someone edits an existing comment on a pull request, PAC receives the notification but doesn't know what to do with it (PAC only acts on newly created comments, not edits). Instead of quietly ignoring the event, PAC logs it as an error:
{"level":"error","ts":"2026-04-08T07:15:30.171Z","logger":"pipelinesascode","caller":"adapter/sinker.go:35","msg":"failed to parse event: only newly created comment is supported, received: edited","commit":"d78ef4e","provider":"github","event-id":"b890a710-331a-11f1-9367-6da78867aefc","stacktrace":"github.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEventPayload\n\tgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:35\ngithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*sinker).processEvent\n\tgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter/sinker.go:76\ngithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter.(*listener).Start.listener.handleEvent.func2.1\n\tgithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter/adapter.go:209"}Why it's a problem
This is not actually an error — it's a normal, expected situation. Users or bots editing comments is completely routine. The
level: errorlog with a full stacktrace alarms operators and makes them think something is broken, when in reality everything is fine and the event should simply be skipped.Expected behavior
When PAC receives a webhook for an edited (or deleted) comment, it should silently ignore it — no error, no stacktrace, at most a quiet debug-level log.
Steps to reproduce