Skip to content

Commit

Permalink
Fix GitHub build
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewStanciu committed Mar 16, 2024
1 parent af980c9 commit 55c86a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const getMessage = (type, payload, repo) => {
const getUrl = (type, payload, repo) => {
switch (type) {
case 'PushEvent':
return payload.commits?.[0].url
return payload.commits?.[0]?.url
? normalizeGitHubCommitUrl(payload.commits[0].url)
: 'https://github.com/hackclub'
case 'PullRequestEvent':
Expand Down

0 comments on commit 55c86a4

Please sign in to comment.