File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ HTML="$HTML
76
76
77
77
GITHUB_RELEASES=" https://github.com/facebook/graphql/releases/tag"
78
78
for GITTAG in $( git tag -l --sort=' -*committerdate' ) ; do
79
+ VERSIONYEAR=${GITTAG: -4}
80
+ TAGTITLE=" ${GITTAG% $VERSIONYEAR } $VERSIONYEAR "
81
+ TAGGEDCOMMIT=$( git rev-list -1 " $GITTAG " )
82
+ GITDATE=$( git show -s --format=%cd --date=format:" %a, %b %-d, %Y" $TAGGEDCOMMIT )
83
+
79
84
HTML=" $HTML
80
85
<tr>"
81
86
@@ -84,10 +89,8 @@ for GITTAG in $(git tag -l --sort='-*committerdate') ; do
84
89
<td></td>"
85
90
HAS_LATEST_RELEASE=1
86
91
87
- TAGGEDCOMMIT=$( git rev-list -1 " $GITTAG " )
88
- GITDATE=$( git show -s --format=%cd --date=format:" %a, %b %-d, %Y" $TAGGEDCOMMIT )
89
92
HTML=" $HTML
90
- <td><a href=\" ./$GITTAG \" keep-hash>$GITTAG </a></td>
93
+ <td><a href=\" ./$GITTAG \" keep-hash>$TAGTITLE </a></td>
91
94
<td>$GITDATE </td>
92
95
<td><a href=\" $GITHUB_RELEASES /$GITTAG \" >Release Notes</a></td>
93
96
</tr>"
@@ -100,6 +103,7 @@ HTML="$HTML
100
103
for (var i = 0; i < links.length; i++) {
101
104
if (links[i].hasAttribute('keep-hash')) {
102
105
links[i].href += location.hash;
106
+ links[i].removeAttribute('keep-hash');
103
107
}
104
108
}
105
109
</script>
You can’t perform that action at this time.
0 commit comments