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 0baf989 commit 0ac85ddCopy full SHA for 0ac85dd
404.html
@@ -4,11 +4,12 @@
4
</head>
5
6
<script>
7
+ const ref = location.pathname.split('/').pop()
8
/* https://docs.github.com/en/rest/commits/commits#get-a-commit
- the `location.pathname` can be:
9
+ the `${ref}` can be:
10
- the prefix(at least 4 characters) of a commit SHA-1 hash
11
- the tag name of a commit */
- const url = `https://api.github.com/repos/liqwang/link/commits${location.pathname}`
12
+ const url = `https://api.github.com/repos/liqwang/link/commits${ref}`
13
14
fetch(url)
15
.then(response => {
0 commit comments