feat: pull request parsing#93
Conversation
PR Review: Pull request parsing → automatic webhook provisioningNice refactor. This moves the project from manual, per-conversation webhook setup (user copies a payload URL + secret into GitHub) to fully automated provisioning: a posted PR link triggers GitHub-App-authenticated webhook creation, repo→conversation fan-out, and inactivity-based cleanup. The code is clean and idiomatic, matches the existing style (kebab env vars, companion-object constants, 🔴 Bugs / correctness
🔒 Security
⚡ Performance
🧹 Code quality
✅ Test coverageThe
Minor
Overall a solid, well-structured change. Items #1 (blocking I/O) and #4 (constant-time compare) are the two I'd prioritize, followed by tests for the parser and key handling. 🤖 Automated review — feedback may contain mistakes; please verify before acting. |
| } | ||
|
|
||
| internal fun generateHmacSha1( | ||
| internal fun generateHmacSha256( |
There was a problem hiding this comment.
Your AI changed the name of this function but not its body at all, which feels suspicious.
There was a problem hiding this comment.
It changed the algorithm parameter, see
private companion object {
const val ALGORITHM = "HmacSHA256"
}
4a62a46 to
cae6fe2
Compare
This allows creating webhooks for repositories and deleting them
Before, the request was required to be sent for a specific wire conversation. Now, it's just received for a repository the event is emitted for, and will be forwarded to all relevant conversations
cae6fe2 to
9ad2223
Compare
bfa3c1c to
a2a8f5e
Compare
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
Briefly describe the issue you have solved or implemented with this pull request. If the PR contains multiple issues, use a bullet list.
Causes (Optional)
Briefly describe the causes behind the issues. This could be helpful to understand the adopted solutions behind some nasty bugs or complex issues.
Solutions
Briefly describe the solutions you have implemented for the issues explained above.
Dependencies (Optional)
If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.