repomatic sponsor-label - Label issues/PRs from GitHub
sponsors
repomatic sponsor-label [OPTIONS]
Add a label to issues or PRs from GitHub sponsors.
Checks if the author of an issue or PR is a sponsor of the
repository owner. If they are, adds the specified label.
This command requires the gh CLI to be authenticated.
When run in GitHub Actions, all parameters are auto-detected from
environment variables ($GITHUB_REPOSITORY_OWNER, $GITHUB_REPOSITORY) and the
event payload ($GITHUB_EVENT_PATH). You can override any auto-detected value
by passing it explicitly.
- --owner
TEXT
- GitHub username or organization to check sponsorship for. Defaults to
$GITHUB_REPOSITORY_OWNER.
- --author
TEXT
- GitHub username of the issue/PR author to check. Defaults to author from
$GITHUB_EVENT_PATH.
- --repo
TEXT
- Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
- --number INTEGER
RANGE
- Issue or PR number. Defaults to number from $GITHUB_EVENT_PATH.
- --label
TEXT
- Label to add if author is a sponsor.
- --pr /
--issue
- Specify issue or pull request. Auto-detected from $GITHUB_EVENT_PATH.
- --help /
-h
- Show this message and exit.
- GITHUB_REPOSITORY_OWNER
- GitHub username or organization to check sponsorship for. Defaults to
$GITHUB_REPOSITORY_OWNER.
- GitHub username or organization to check sponsorship for. Defaults to
$GITHUB_REPOSITORY_OWNER.
- GitHub username of the issue/PR author to check. Defaults to author from
$GITHUB_EVENT_PATH.
- GITHUB_REPOSITORY
- Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
- Repository in 'owner/repo' format. Defaults to $GITHUB_REPOSITORY.
- Issue or PR number. Defaults to number from $GITHUB_EVENT_PATH.
- Label to add if author is a sponsor.
- Specify issue or pull request. Auto-detected from $GITHUB_EVENT_PATH.
- Show this message and exit.
- 0
- Success.
- 1
- A runtime error, or an aborted prompt (Ctrl-C, a declined
confirmation).
- 2
- A usage error: unknown option, invalid value, missing operand, or an
unparsable configuration file.
In GitHub Actions, with every default auto-detected
Override specific values
repomatic sponsor\-label \-\-label "sponsor"
Manual invocation with all values
repomatic sponsor\-label \-\-owner kdeldycke \-\-author some\-user \-\-repo kdeldycke/repomatic \-\-number 123 \-\-issue