Skip to content

Commit

Permalink
Add a footer to changelog.xml entries
Browse files Browse the repository at this point in the history
Why not solicit some feedback to see if this resonates with anyone?
  • Loading branch information
danott committed Jan 16, 2024
1 parent a2e57c4 commit 9db8812
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/git_commit_changelog_target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def description
input: "GFM",
syntax_highlighter: "rouge"
}
Kramdown::Document.new(body, options).to_html.strip
content = Kramdown::Document.new(body, options).to_html.strip
content + github_footer
end

def link
Expand All @@ -73,5 +74,18 @@ def link
def updated
date.to_s
end

def github_footer
address = %w[danott hey.com].join("@")
link_without_protocol = link.delete_prefix("https://")

<<~HTML
<p>
Thanks for reading via RSS!
Wanna talk about it?
You can <a href="#{link}">comment on GitHub</a> or <a href="mailto:#{address}?subject=Re: #{link_without_protocol}">reply via email</a>.
</p>
HTML
end
end
end

0 comments on commit 9db8812

Please sign in to comment.