We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47efa78 commit 35dd1c3Copy full SHA for 35dd1c3
utils/link_issues_CHANGELOG
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+in=CHANGELOG.md
4
5
+# Replace them with Markdown references
6
+sed -i -e 's/(\(#[0-9]\+\))/([\1])/g' "$in"
7
8
+# Populate references
9
+cat "$in" | sponge | sed -n -e 's/.*(\[#\([0-9]\+\)\]).*/\1/gp' | sort | uniq \
10
+| while read issue; do
11
+ # remove old one if exists
12
+ sed -i -e "/^\[#$issue\]:.*/d" "$in"
13
+ echo "[#$issue]: https://github.com/datalad/datalad/issues/$issue" >> "$in";
14
+done
0 commit comments