Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devlooped/actions-sponsor
A GitHub Action that labels issues and pull requests if the creator is a sponsor.
https://github.com/devlooped/actions-sponsor
actions github github-actions
Last synced: 4 months ago
JSON representation
A GitHub Action that labels issues and pull requests if the creator is a sponsor.
- Host: GitHub
- URL: https://github.com/devlooped/actions-sponsor
- Owner: devlooped
- License: mit
- Created: 2022-08-11T14:17:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T02:06:34.000Z (5 months ago)
- Last Synced: 2024-10-08T10:02:42.023Z (5 months ago)
- Topics: actions, github, github-actions
- Language: PowerShell
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Funding: .github/FUNDING.yml
- License: license.txt
- Code of conduct: code-of-conduct.md
- Security: security.md
Awesome Lists containing this project
README
# 💜 sponsor
A GitHub Action that labels issues and pull requests if the creator is a sponsor,
or belongs to an organization that is.## Usage
```
- name: 💜 sponsor
uses: devlooped/actions-sponsor@v1
with:
# The label to apply to the issue or pull request.
# Defaults to "sponsor 💜".
label: ''# The label to apply when sponsor amount is above the gold-amount.
# Defaults to "sponsor 💛".
gold-label: ''# Sponsors over this amount are labeled with gold-label instead.
# Defaults to 100.
gold-amount: ''# The account to check for sponsorship.
# Defaults to the repository owner `${{ github.repository.owner }}`
sponsorable: ''# The token to use for querying the GitHub API for sponsorship information.
# Typically set to ${{ secrets.GH_TOKEN }}.
token: ''
```> NOTE: in order to detect the sponsorship tier to trigger gold sponsor labeling,
> the token must be an owner of the sponsorable organization. Otherwise, only
> base sponsoring is detected.## Example
Minimal example, using default labels, repo owner and gold label threshold:
```yml
name: sponsor 💜
on:
issues:
types: [opened, edited, reopened]
pull_request:
types: [opened, edited, synchronize, reopened]jobs:
sponsor:
runs-on: ubuntu-latest
if: ${{ !endsWith(github.event.sender.login, '[bot]') && !endsWith(github.event.sender.login, 'bot') }}
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
- name: 💜 sponsor
uses: devlooped/actions-sponsor@v1
with:
token: ${{ secrets.GH_TOKEN }}
```> NOTE: you will typically want to skip running the workflow at all for bot accounts, hence the `if` above.
Full example overriding all values (and running on *all* issue/PR events):
```yml
name: sponsor 💜
on: [issues, pull_request]jobs:
sponsor:
runs-on: ubuntu-latest
if: ${{ !endsWith(github.event.sender.login, '[bot]') && !endsWith(github.event.sender.login, 'bot') }}
steps:
- name: 🤘 checkout
uses: actions/checkout@v2- name: 💜 sponsor
uses: devlooped/actions-sponsor@v1
with:
label: sponsor
gold-label: gold sponsor
gold-amount: 1000
sponsorable: moq
token: ${{ secrets.MOQ_TOKEN }}
```Note: the provided token must have access to retrieve sponsorships for
the sponsorable account.# Sponsors
[](https://github.com/clarius)
[](https://github.com/KirillOsenkov)
[](https://github.com/MFB-Technologies-Inc)
[](https://github.com/decriptor)
[](https://github.com/torutek-gh)
[](https://github.com/drivenet)
[](https://github.com/davkean)
[](https://github.com/chiluap)
[](https://github.com/dgnaegi)
[](https://github.com/AshleyMedway)
[](https://github.com/Keflon)
[](https://github.com/bitbonk)
[](https://github.com/tbolon)
[](https://github.com/yrashk)
[](https://github.com/kfrancis)
[](https://github.com/wdolek)
[](https://github.com/SeanKilleen)
[](https://github.com/twenzel)
[](https://github.com/Giorgi)
[](https://github.com/mckhendry)
[](https://github.com/aritchie)
[](https://github.com/MikeCodesDotNET)
[](https://github.com/unoplatform)
[](https://github.com/dansiegel)
[](https://github.com/rbnswartz)
[](https://github.com/jeremysimmons)
[](https://github.com/jfoshee)
[](https://github.com/Mrxx99)
[](https://github.com/eajhnsn1)
[](https://github.com/mackayn)
[](https://github.com/certifytheweb)
[](https://github.com/lavahot)
[](https://github.com/mrange)
[](https://github.com/davidpetric)
[](https://github.com/richlee)
[](https://github.com/dannevesdantas)
[](https://github.com/nietras)
[](https://github.com/garywoodfine)
[](https://github.com/kristinnstefansson)
[](https://github.com/DarrenAtConexus)
[](https://github.com/kazo0)
[](https://github.com/IxTechnologies)
[](https://github.com/newrelic)
[](https://github.com/Chris-Johnston)
[](https://github.com/davidjenni)
[](https://github.com/ehonda)
[](https://github.com/Jonathan-Hickey)
[](https://github.com/okyrylchuk)
[](https://github.com/juanfranblanco)
[](https://github.com/LosManos)
[](https://github.com/MariuszKogut)
[](https://github.com/akunzai)
[](https://github.com/meisenring)
[](https://github.com/Tdue21)
[](https://github.com/jakobt)
[](https://github.com/seanalexander)
[](https://github.com/tinohager)
[](https://github.com/pedrobsaila)
[](https://github.com/ploeh)
[](https://github.com/angelobelchior)
[](https://github.com/tonyqus)
[](https://github.com/danielrmay)
[ Ltd")](https://github.com/BlauhausTechnology)
[](https://github.com/rcollette)
[](https://github.com/bngv)
[](https://github.com/KenBonny)
[](https://github.com/SimonCropp)[](https://github.com/sponsors/devlooped)
Â[Learn more about GitHub Sponsors](https://github.com/sponsors)