summaryrefslogtreecommitdiffstats
path: root/_scripts/generate_git-commits.lua
blob: f685613ac49d3b516cdbab2b1feabc179d42b5c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
feed = require("feedparser")
lyaml = require("lyaml")

t = feed.parse(io.read("*a"))

-- add a field for updated_date for a nicely formated date
for i=1,#t.entries do
	t.entries[i].updated_date = string.match(t.entries[i].updated, "^(.*)T")
end

io.write(lyaml.dump{t})