mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
Update github.js
This commit is contained in:
parent
a76e1dc705
commit
6f41eaf8e2
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export default async function github(req, res) {
|
|||
: null,
|
||||
message:
|
||||
x.type === 'PushEvent'
|
||||
? x.payload.commits[0].message
|
||||
? x.payload.commits[0]?.message
|
||||
: x.type === 'PullRequestEvent'
|
||||
? x.payload.pull_request.title
|
||||
: x.type === 'WatchEvent'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue