summary refs log tree commit diff
path: root/etc
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-18 16:34:23 -0400
committerJune McEnroe <june@causal.agency>2018-08-18 16:34:23 -0400
commitad54e6c3564992748192054e479b9cec7d35a841 (patch)
treeb94ecab81f9bdb4457fbcfd44a793f176a9fd6a3 /etc
parentRun tf/cfg link script with /bin/sh (diff)
downloadsrc-ad54e6c3564992748192054e479b9cec7d35a841.tar.gz
src-ad54e6c3564992748192054e479b9cec7d35a841.zip
Only post commits with bodies to Mastodon
Diffstat (limited to 'etc')
-rwxr-xr-xetc/gitea2mastodon.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/gitea2mastodon.rb b/etc/gitea2mastodon.rb
index d2eaafd0..950a881b 100755
--- a/etc/gitea2mastodon.rb
+++ b/etc/gitea2mastodon.rb
@@ -23,6 +23,7 @@ client = Mastodon::REST::Client.new(
 )
 
 payload['commits'].reverse.each do |commit|
+	next unless commit['message'].include?("\n\n")
 	message = commit['message']
 		.split("\n\n")
 		.map {|p| p.split("\n").join(' ') }
21-09-12 21:02:19 -0400'>2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe