feat: add paperclip-pr-notify with code-level event filtering#12
Closed
marvin-tensorleap wants to merge 1 commit into
Closed
feat: add paperclip-pr-notify with code-level event filtering#12marvin-tensorleap wants to merge 1 commit into
marvin-tensorleap wants to merge 1 commit into
Conversation
Implements deterministic filtering for Paperclip GitHub Event Router. Part of TEN-319 / TEN-302.
Collaborator
Author
|
Closing — this approach was superseded before merging. Paperclip plugin-based webhook dispatch handles event filtering locally. See TEN-319 and TEN-302. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this change exists
Part of the TEN-302 GitHub↔TEN mapping architecture. New workflow applies deterministic code-level filtering before forwarding events to the Paperclip GitHub Event Router routine (TEN-319). Without filtering, every repository event would spawn a Paperclip agent.
How this PR fixes it
Only actionable events are forwarded to
${{ secrets.PAPERCLIP_WEBHOOK_URL }}:check_suite: onlycompleted+failure|timed_out|action_required+ linked open PR presentpull_request:opened,closed,synchronize,reopenedpull_request_review:submittedwith stateapprovedorchanges_requestedissues:opened,assigned,closedissue_comment:createdonlyPayload is signed with HMAC-SHA256 (
X-Hub-Signature-256header).Technical summary
.github/workflows/paperclip-pr-notify.ymlPAPERCLIP_WEBHOOK_URL,PAPERCLIP_WEBHOOK_SECRETVerification
Once repo secrets are configured, open a draft PR (should forward) and add a label (should not forward).