From 0e48234e14ee174c5d5e68820eb5c42f8f3dfee5 Mon Sep 17 00:00:00 2001
From: Pilgrim Lyieu <80107081+pilgrimlyieu@users.noreply.github.com>
Date: Tue, 13 Jan 2026 23:07:20 +0800
Subject: [PATCH] fix(github): allow empty notifications feed (#20875)
* fix(github): allow empty notifications feed
* fix(github): set `allowEmpty` to be always true
---
lib/routes/github/notifications.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/routes/github/notifications.ts b/lib/routes/github/notifications.ts
index 3c658fd2a..335fa58e2 100644
--- a/lib/routes/github/notifications.ts
+++ b/lib/routes/github/notifications.ts
@@ -31,7 +31,7 @@ export const route: Route = {
async function handler(ctx) {
if (!config.github || !config.github.access_token) {
- throw new ConfigNotFoundError('GitHub trending RSS is disabled due to the lack of relevant config');
+ throw new ConfigNotFoundError('GitHub notification RSS is disabled due to the lack of relevant config');
}
const headers = {
Accept: 'application/vnd.github.v3+json',
@@ -74,5 +74,6 @@ async function handler(ctx) {
title: 'Github Notifications',
link: 'https://github.com/notifications',
item: items,
+ allowEmpty: true,
};
}