Skip to content

Commit d176996

Browse files
committed
Update authors script
1 parent 8175c69 commit d176996

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

extras/authors/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# Generate authors list
22

33
This small script reads the commit information and generates a list of authors
4-
and links them to their Github profile, if available. This can be run before
4+
and links them to their GitHub profile, if available. This can be run before
55
each release to keep the data up to date.
66

77
## Usage
88

9-
Generate a token to avoid the rate limiting on the Github API:
9+
Note that you might run into rate-limiting issues if you run this script too
10+
often. If so, you can generate a token and use it in the script:
1011
<https://github.com/settings/personal-access-tokens> (no need to select any
1112
permissions, we're just performing reading operations on public data)
1213

1314
Run the script and optionally copy the generated files to their correct locations
15+
16+
```bash
17+
uv run generate_authors_api.py
18+
```

extras/authors/generate_authors_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
# Third Party
1010
import requests
1111

12+
# /// script
13+
# dependencies = [
14+
# "requests",
15+
# ]
16+
# ///
17+
1218
ORGANIZATION = 'wger-project'
1319
REPOSITORIES = ['wger', 'flutter', 'react', 'docker', 'docs']
1420
COMMITS_PER_PAGE = 100

0 commit comments

Comments
 (0)