We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf1b44 commit e028a21Copy full SHA for e028a21
api/github-webhook.js
@@ -412,7 +412,7 @@ module.exports = async (req, res) => {
412
url: repository.html_url,
413
description: `${sender.login} started watching ${repository.full_name}`,
414
fields: [
415
- { name: 'Watchers', value: `${repository.subscribers_count}`, inline: true }
+ { name: 'Watchers', value: `${repository.watchers_count || repository.watchers || 0}`, inline: true }
416
],
417
footer: {
418
text: `GitHub`,
@@ -495,4 +495,4 @@ module.exports = async (req, res) => {
495
console.error('Error:', error);
496
res.status(500).send('Error');
497
}
498
-};
+};
0 commit comments