Skip to content

Commit

Permalink
Merge pull request #1123 from hackclub/matthew/fix-github-build
Browse files Browse the repository at this point in the history
Fix GitHub build
  • Loading branch information
sampoder committed Mar 16, 2024
2 parents af980c9 + 55c86a4 commit e4e9c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/github.js
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 e4e9c3f

Please sign in to comment.