[geany/geany] 5241f4: Add a script to convert NEWS to GitHub release format
Colomban Wendling
git-noreply at geany.org
Sun Nov 13 17:15:45 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 13 Nov 2016 17:15:45 UTC
Commit: 5241f40dcfe2bf2287c0f81b7b4bbc463873f775
https://github.com/geany/geany/commit/5241f40dcfe2bf2287c0f81b7b4bbc463873f775
Log Message:
-----------
Add a script to convert NEWS to GitHub release format
Modified Paths:
--------------
scripts/github-news
Modified: scripts/github-news
22 lines changed, 22 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Converts the last NEWS entry to GitHub format
+
+sed -n -e '
+n
+:next
+
+# stop at the second header
+/^[A-Za-z0-9_-]/q
+# strip the leading indentation
+s/^ //
+# Make titles
+s/^[A-Za-z0-9_-]/## \0/
+# Turn PR and Issue references to links
+s%PR#\([0-9]\{1,\}\)%[\0](https://github.com/geany/geany/pull/\1)%g
+s%Issue#\([0-9]\{1,\}\)%[\0](https://github.com/geany/geany/issue/\1)%g
+
+p
+n
+b next
+' < NEWS
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list