diff options
Diffstat (limited to 'git2rss')
-rwxr-xr-x | git2rss | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |