Skip to content

Commit 114cdc7

Browse files
committed
feat: automate contributor list generation and display in README, and make support section collapsible
1 parent c871d1a commit 114cdc7

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update Contributors
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "0 0 * * 0" # Every Sunday at midnight UTC
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
update-contributors:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
fetch-depth: 0
26+
27+
- name: Generate contributors SVG
28+
uses: wow-actions/contributors-list@v1
29+
with:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
svgPath: CONTRIBUTORS.svg
32+
svgWidth: 1210
33+
avatarMargin: 12
34+
userNameHeight: 20
35+
noCommit: true
36+
includeBots: false
37+
excludeUsers: "github-actions web-flow dependabot claude"
38+
itemTemplate: |
39+
<g transform="translate({{ x }}, {{ y }})">
40+
<a xlink:href="{{{ url }}}" class="contributor-link" target="_blank" rel="nofollow sponsored" title="{{{ name }}}" id="{{{ name }}}">
41+
<image width="{{ width }}" height="{{ height }}" xlink:href="{{{ avatar }}}" />
42+
<text x="32" y="74" text-anchor="middle" alignment-baseline="middle" font-size="10">{{{ name }}}</text>
43+
</a>
44+
</g>
45+
46+
- name: Commit & Push
47+
uses: stefanzweifel/git-auto-commit-action@v5
48+
with:
49+
commit_message: "chore: update contributors [skip ci]"
50+
file_pattern: CONTRIBUTORS.svg

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,21 @@ Adds 5 commands: `clean`, `uninstall`, `optimize`, `analyze`, `status`. Mole aut
261261

262262
Users from around the world are loving Mole! Join the community and share your experience.
263263

264+
## Developers
265+
266+
Mole's development can not be without these Hackers. They contributed a lot of capabilities for Mole. Also, welcome to follow them! ❤️
267+
268+
<a href="https://github.com/tw93/mole/graphs/contributors">
269+
<img src="https://raw.githubusercontent.com/tw93/mole/main/CONTRIBUTORS.svg?sanitize=true" alt="Contributors" width="1000" />
270+
</a>
271+
264272
## Support
265273

274+
<details>
275+
<summary><strong>Sponsorship and Community</strong></summary>
276+
<br/>
266277
<a href="https://miaoyan.app/cats.html?name=Mole"><img src="https://miaoyan.app/assets/sponsors.svg" width="1000px" /></a>
278+
</details>
267279

268280
- If Mole saved you space, consider starring the repo or sharing it with friends who need a cleaner Mac.
269281
- Have ideas or fixes? Check our [Contributing Guide](CONTRIBUTING.md), then open an issue or PR to help shape Mole's future.

0 commit comments

Comments
 (0)