feat: 支持 Push 和 Release 事件通知及 Webhook 解析修复#6
Open
crt106 wants to merge 1 commit intoSoulter:masterfrom
Open
Conversation
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.
📝 改进描述
在插件原有的基础上,增加了处理 GitHub Push (Commits) 与 Release 事件的功能。
同时修复了 Webhook 模式下当接收到
application/x-www-form-urlencoded数据时解析失败的问题。✨ 新增功能
_fetch_new_items方法现在会一并获取 Issue/PR、Commits 和 Releases。🐛 修复问题
Content-Type为application/x-www-form-urlencoded时,因为缺失字段导致的 JSON 格式解析出NoneType object has no attribute get的错误。现在会自动通过request.form获取表单中payload参数进行解析。📌 测试情况
application/json与application/x-www-form-urlencoded两种 Webhook 推送。