Skip to content

Commit 37035dc

Browse files
committed
misc/news.bash: parameterize the names of project and repository
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 646a785 commit 37035dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

misc/news.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
#!/bin/bash
22
FROM=v6.0.0
33
TO=.
4+
PROJ=universal-ctags
5+
REPO=ctags
46

57
args=("$@")
68

79
pr_title()
810
{
911
local N=$1
10-
curl --no-progress-meter https://github.com/universal-ctags/ctags/pull/"$N" | grep '^ <title>' | \
12+
curl --no-progress-meter https://github.com/${PROJ}/${REPO}/pull/"$N" | grep '^ <title>' | \
1113
sed -e 's!^[[:space:]]*<title>\(.\+Pull Request #[0-9]*\).*</title>$!* \1!' | \
1214
sed -e "s/&#39;/'/g" -e 's/&amp;/\&/g' -e 's/&quot;/"/g' -e 's/&gt;/>/g' -e 's/&lt;/</g'
1315
}
1416

1517
issue_title()
1618
{
1719
local N=$1
18-
curl --no-progress-meter https://github.com/universal-ctags/ctags/issues/"$N" | grep '^ <title>' | \
20+
curl --no-progress-meter https://github.com/${PROJ}/${REPO}/issues/"$N" | grep '^ <title>' | \
1921
sed -e 's!^[[:space:]]*<title>\(.\+Issue #[0-9]*\).*</title>$!* \1!' | \
2022
sed -e "s/&#39;/'/g" -e 's/&amp;/\&/g' -e 's/&quot;/"/g' -e 's/&gt;/>/g' -e 's/&lt;/</g'
2123
}

0 commit comments

Comments
 (0)