← all docs
← all docs
auto-sponsor-links
github-actionsautomationshelltooling
auto-sponsor-links is a monthly GitHub Actions workflow that scans all public, non-archived, non-fork repositories owned by a given GitHub user or organisation, checks each README for a link to the configured account's GitHub Sponsors page, and opens a pull request adding Ko-fi and GitHub Sponsors links to any repository missing one.
What It Does
- Scans all public, non-archived, non-fork repositories owned by the configured account
- Checks each repository's
README.mdforgithub.com/sponsors/<TARGET_USER> - For repositories missing sponsor links:
- Clones the repository
- Creates a new branch (
add-sponsor-links) - Appends a
## Supportsection with Ko-fi and GitHub Sponsors badges toREADME.md - Commits, pushes, and opens a pull request
Configuration
TARGET_USERselects the account to scan and defaults toewanc26.SPONSOR_LINKS_TOKENis a personal access token with contents and pull-request write access to the target repositories. The workflow falls back toGITHUB_TOKEN, which only has access to the workflow repository.- The workflow runs monthly on a schedule and can also be started manually with
workflow_dispatch.
Tech Stack
Shell scripting driven by a scheduled GitHub Actions workflow.
← all docs