Skip to content

Commit 8f356cf

Browse files
committed
docs: update doc
1 parent 0d8642a commit 8f356cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ const utils = {
1616
return body.includes(`@${process.env.GITHUB_BOT_NAME}`);
1717
},
1818

19+
/**
20+
* 验证请求
21+
*
22+
* @param {Object} request req
23+
*
24+
* @return {boolean}
25+
*/
1926
verifySignature(request) {
2027
let signature = crypto.createHmac('sha1', process.env.GITHUB_SECRET_TOKEN)
2128
.update(request.rawBody)

0 commit comments

Comments
 (0)