Commit 203ff94
Baudbot
bridge: add GitHub webhook event dispatch and formatting
- New github-events.mjs module with pure formatting/filtering functions
- Add 'github' case to processPulledMessage() generic envelope switch
- Format pull_request, pull_request_review, issue_comment, check_suite,
check_run, push events with security boundary wrapping
- Filter noise: skip baudbot-agent events, configurable GITHUB_IGNORED_USERS,
skip check_suite/check_run lifecycle events, skip PR synchronize
- Handle ping (ack only) and unknown event types gracefully
- 45 tests covering formatting, filtering, boundary wrapping, edge cases
- Backwards compatible: no changes to Slack message flow1 parent caa669f commit 203ff94
5 files changed
Lines changed: 964 additions & 0 deletions
File tree
- slack-bridge
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| 144 | + | |
| 145 | + | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| |||
864 | 872 | | |
865 | 873 | | |
866 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
867 | 915 | | |
868 | 916 | | |
869 | 917 | | |
| |||
896 | 944 | | |
897 | 945 | | |
898 | 946 | | |
| 947 | + | |
| 948 | + | |
899 | 949 | | |
900 | 950 | | |
901 | 951 | | |
| |||
0 commit comments