summaryrefslogtreecommitdiffstats
path: root/git2rss
diff options
context:
space:
mode:
Diffstat (limited to 'git2rss')
-rwxr-xr-xgit2rss4
1 files changed, 3 insertions, 1 deletions
diff --git a/git2rss b/git2rss
index 1be99c9..4fe14a1 100755
--- a/git2rss
+++ b/git2rss
@@ -39,7 +39,7 @@ while (count($histo) > 50) {
}
file_put_contents(__DIR__ . '/git2rss.json', json_encode($histo, JSON_PRETTY_PRINT));
-// RSS
+// Generate RSS
$feed = new Feed();
$channel = new Channel();
$channel
@@ -67,5 +67,7 @@ foreach ($histo as $entry) {
->guid("${entry['repo']}_${entry['hash']}", true)
->appendTo($channel);
}
+
+// Save RSS
file_put_contents(__DIR__ . '/index.html', $feed);