From 114cdc72b0471f62b7f17cb60575c32641414ebe Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 5 Jan 2026 11:16:46 +0800 Subject: [PATCH] feat: automate contributor list generation and display in README, and make support section collapsible --- .github/workflows/update-contributors.yml | 50 +++++++++++++++++++++++ README.md | 12 ++++++ 2 files changed, 62 insertions(+) create mode 100644 .github/workflows/update-contributors.yml diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml new file mode 100644 index 0000000..ea691a7 --- /dev/null +++ b/.github/workflows/update-contributors.yml @@ -0,0 +1,50 @@ +name: Update Contributors + +on: + push: + branches: [main, dev] + workflow_dispatch: + schedule: + - cron: "0 0 * * 0" # Every Sunday at midnight UTC + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + update-contributors: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Generate contributors SVG + uses: wow-actions/contributors-list@v1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + svgPath: CONTRIBUTORS.svg + svgWidth: 1210 + avatarMargin: 12 + userNameHeight: 20 + noCommit: true + includeBots: false + excludeUsers: "github-actions web-flow dependabot claude" + itemTemplate: | + + + + {{{ name }}} + + + + - name: Commit & Push + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: update contributors [skip ci]" + file_pattern: CONTRIBUTORS.svg diff --git a/README.md b/README.md index 55276ca..f6327a1 100644 --- a/README.md +++ b/README.md @@ -261,9 +261,21 @@ Adds 5 commands: `clean`, `uninstall`, `optimize`, `analyze`, `status`. Mole aut Users from around the world are loving Mole! Join the community and share your experience. +## Developers + +Mole's development can not be without these Hackers. They contributed a lot of capabilities for Mole. Also, welcome to follow them! ❤️ + + + Contributors + + ## Support +
+Sponsorship and Community +
+
- If Mole saved you space, consider starring the repo or sharing it with friends who need a cleaner Mac. - Have ideas or fixes? Check our [Contributing Guide](CONTRIBUTING.md), then open an issue or PR to help shape Mole's future.