Skip to content

Webhook Events ​

ClearPR processes these GitHub webhook events:

Pull Request Events ​

EventActionClearPR Behavior
pull_requestopenedQueue automatic review
pull_requestsynchronizeQueue review (new commits pushed)
pull_requestreopenedQueue review
pull_requestclosedIgnored

Comment Events ​

EventActionClearPR Behavior
issue_commentcreatedCheck for @clearpr command
pull_request_review_commentcreatedCheck for @clearpr command

Installation Events ​

EventActionClearPR Behavior
installationcreatedRegister installation, queue PR history indexing
installationdeletedMark installation inactive
installation_repositoriesaddedTrack new repositories
installation_repositoriesremovedStop tracking repositories

Debounce Behavior ​

When multiple pull_request.synchronize events arrive within 30 seconds for the same PR, ClearPR debounces them — only the latest SHA gets reviewed. This prevents wasted reviews when a developer pushes multiple commits rapidly.

Idempotency ​

Every webhook delivery is deduplicated using GitHub's X-GitHub-Delivery header. If the same delivery arrives twice (GitHub retries), the duplicate is silently skipped.

All Other Events ​

Unrecognized events are acknowledged with 200 OK and silently ignored.

Released under the MIT License.