Skip to content

Commit

Permalink
contributors: Link to GH profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Apr 26, 2024
1 parent 50a43e6 commit cd9a70e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/contributor.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

以字典序排序:

* (本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`
- [(本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`](#)

Check failure on line 7 in docs/contributor.md

View workflow job for this annotation

GitHub Actions / build

No empty links

docs/contributor.md:7 MD042/no-empty-links No empty links [Context: "[(本文件由 CI 生成,参见仓库中的 scripts/co..."] https://github.com/DavidAnson/markdownlint/blob/v0.33.0/doc/md042.md
5 changes: 3 additions & 2 deletions scripts/contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def get_api():
if "CI" not in os.environ:
return [
{
"login": "(本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`)"
"login": "(本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`)",
"html_url": "#",
}
]
headers = {
Expand All @@ -35,7 +36,7 @@ def main():
data = get_api()
data.sort(key=lambda x: x["login"].casefold())
for item in data:
print(f"* {item['login']}", file=f)
print(f"- [{item['login']}]({item['html_url']})", file=f)


if __name__ == "__main__":
Expand Down

0 comments on commit cd9a70e

Please sign in to comment.