Changeset

3522:c2e038e573be

mod_pubsub_github: Include a summary field in payload
author Kim Alvefur <zash@zash.se>
date Sun, 31 Mar 2019 18:24:49 +0200
parents 3521:a200fbce0ecb
children 3523:68beaf7fd7d6
files mod_pubsub_github/mod_pubsub_github.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_pubsub_github/mod_pubsub_github.lua	Sun Mar 31 18:22:35 2019 +0200
+++ b/mod_pubsub_github/mod_pubsub_github.lua	Sun Mar 31 18:24:49 2019 +0200
@@ -72,6 +72,7 @@
 			:tag("entry", { xmlns = "http://www.w3.org/2005/Atom" })
 				:tag("id"):text(commit.id):up()
 				:tag("title"):text(commit.message:match("^[^\r\n]*")):up()
+				:tag("summary"):text(("Commit to %s by %s: %s"):format(data.repository.name, commit.author.name, commit.message:match("^[^\r\n]*"))):up()
 				:tag("content"):text(commit.message):up()
 				:tag("link", { rel = "alternate", href = commit.url }):up()
 				:tag("published"):text(commit.author.date):up()